Mercurial > code > home > repos > homeauto
view service/collector/stubs/rdflib/__init__.pyi @ 1253:0e7044b23dad
more stubs for collector typechecking
Ignore-this: 7151f942cfc29c2b3dfaa0a6b20222aa
darcs-hash:47577255eba6b501a19b06231945ae090c05f8fd
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 19 Apr 2019 01:07:29 -0700 |
parents | b3813f6399a9 |
children |
line wrap: on
line source
# Stubs for rdflib (Python 3.4) # from typing import Tuple, Union from rdflib.namespace import RDF, RDFS, OWL, XSD # this is the 1st way that worked. 'from rdflib.term import URIRef' did not work. import rdflib.namespace as _n Namespace = _n.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]