Mercurial > code > home > repos > light9
annotate stubs/rdflib/__init__.pyi @ 2013:02eb0e99bba5
reformat
Ignore-this: c3c95bdb8f0c67cb898b9eba71d7d97
author | drewp@bigasterisk.com |
---|---|
date | Mon, 10 Jun 2019 02:28:19 +0000 |
parents | f1f426af34ed |
children |
rev | line source |
---|---|
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 # Stubs for rdflib (Python 3.4) |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 # |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 from typing import Tuple, Union |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 # this is the 1st way that worked. 'from rdflib.term import URIRef' did not work. |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 import rdflib.namespace as _n |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 Namespace = _n.Namespace |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 RDF: Namespace |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 RDFS: Namespace |
1914 | 12 XSD: Namespace |
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 import rdflib.term as _t |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 URIRef = _t.URIRef |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 Literal = _t.Literal |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 BNode = _t.BNode |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 import rdflib.graph as _g |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 ConjunctiveGraph = _g.ConjunctiveGraph |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 Graph = _g.Graph |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 # not part of rdflib |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef] |