view stubs/rdflib/__init__.pyi @ 1926:1a7e5b07bf17

use my greplin fork's stats/ code instead of an old local one Ignore-this: f0935bd61f0b982e544c1991e14fb51e
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 02 Jun 2019 00:05:12 +0000
parents f1f426af34ed
children
line wrap: on
line source

# Stubs for rdflib (Python 3.4)
#
from typing import Tuple, Union


# this is the 1st way that worked. 'from rdflib.term import URIRef' did not work.
import rdflib.namespace as _n
Namespace = _n.Namespace

RDF: Namespace
RDFS: Namespace
XSD: Namespace

import rdflib.term as _t
URIRef = _t.URIRef
Literal = _t.Literal
BNode = _t.BNode

import rdflib.graph as _g
ConjunctiveGraph = _g.ConjunctiveGraph
Graph = _g.Graph

# not part of rdflib
StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef]