Mercurial > code > home > repos > light9
view stubs/rdflib/__init__.pyi @ 1891:36849634d50b
mymy on collector
Ignore-this: 8c3be45e0a4b7608f40e81020636424f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Wed, 29 May 2019 15:58:23 +0000 |
parents | 0f0ff27e55a3 |
children | f1f426af34ed |
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 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]