Mercurial > code > home > repos > light9
comparison stubs/rdflib/graph.pyi @ 1863:0f0ff27e55a3
stubs, mostly autogen or empty
Ignore-this: bc70818d2bc92bf022c65c3572b9775e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 25 May 2019 12:01:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1862:d92757c88817 | 1863:0f0ff27e55a3 |
---|---|
1 # Stubs for rdflib.graph (Python 3.4) | |
2 # | |
3 | |
4 | |
5 from typing import Any, Optional, Tuple, Sequence, Iterable | |
6 from io import StringIO as BytesIO | |
7 from rdflib import StatementType | |
8 from rdflib.term import Node, URIRef | |
9 | |
10 # real Graph is a subclass of Node, but I have bugs where the context | |
11 # in a statement is the wrong one of Graph or URIRef, so I want that to be more clear. | |
12 class Graph: | |
13 context_aware = ... # type: Any | |
14 formula_aware = ... # type: Any | |
15 def __init__(self, store='', identifier: Optional[URIRef]=None, namespace_manager=None): ... | |
16 store = ... # type: Any | |
17 identifier: URIRef = ... | |
18 namespace_manager = ... # type: Any | |
19 def toPython(self): ... | |
20 def destroy(self, configuration): ... | |
21 def commit(self): ... | |
22 def rollback(self): ... | |
23 def open(self, configuration, create=False): ... | |
24 def close(self, commit_pending_transaction=False): ... | |
25 def add(self, xxx_todo_changeme): ... | |
26 def addN(self, quads: Iterable[StatementType]): ... | |
27 def remove(self, xxx_todo_changeme1): ... | |
28 def triples(self, xxx_todo_changeme2) -> Sequence[Tuple[Node, Node, Node]]: ... | |
29 def __getitem__(self, item): ... | |
30 def __len__(self) -> int: ... | |
31 def __iter__(self): ... | |
32 def __contains__(self, triple) -> bool: ... | |
33 def __hash__(self): ... | |
34 def md5_term_hash(self): ... | |
35 def __cmp__(self, other): ... | |
36 def __eq__(self, other): ... | |
37 def __lt__(self, other): ... | |
38 def __le__(self, other): ... | |
39 def __gt__(self, other): ... | |
40 def __ge__(self, other): ... | |
41 def __iadd__(self, other): ... | |
42 def __isub__(self, other): ... | |
43 def __add__(self, other): ... | |
44 def __mul__(self, other): ... | |
45 def __sub__(self, other): ... | |
46 def __xor__(self, other): ... | |
47 __or__ = ... # type: Any | |
48 __and__ = ... # type: Any | |
49 def set(self, triple): ... | |
50 def subjects(self, predicate=None, object=None) -> Sequence[Node]: ... | |
51 def predicates(self, subject=None, object=None) -> Sequence[Node]: ... | |
52 def objects(self, subject=None, predicate=None) -> Sequence[Node]: ... | |
53 def subject_predicates(self, object=None) -> Sequence[Tuple[Node, Node]]: ... | |
54 def subject_objects(self, predicate=None) -> Sequence[Tuple[Node, Node]]: ... | |
55 def predicate_objects(self, subject=None) -> Sequence[Tuple[Node, Node]]: ... | |
56 def triples_choices(self, xxx_todo_changeme3, context=None): ... | |
57 def value(self, subject=None, predicate=..., object=None, default=None, any=True) -> Optional[Node]: ... | |
58 def label(self, subject, default='') -> Optional[Node]: ... | |
59 def preferredLabel(self, subject, lang=None, default=None, labelProperties=...): ... | |
60 def comment(self, subject, default=''): ... | |
61 def items(self, list): ... | |
62 def transitiveClosure(self, func, arg, seen=None): ... | |
63 def transitive_objects(self, subject, property, remember=None): ... | |
64 def transitive_subjects(self, predicate, object, remember=None): ... | |
65 def seq(self, subject): ... | |
66 def qname(self, uri): ... | |
67 def compute_qname(self, uri, generate=True): ... | |
68 def bind(self, prefix, namespace, override=True): ... | |
69 def namespaces(self): ... | |
70 def absolutize(self, uri, defrag=1): ... | |
71 def serialize(self, destination=None, format='', base=None, encoding=None, **args): ... | |
72 def parse(self, source=None, publicID=None, format=None, location=None, file=None, data=None, **args): ... | |
73 def load(self, source, publicID=None, format=''): ... | |
74 def query(self, query_object, processor='', result='', initNs=None, initBindings=None, use_store_provided=True, **kwargs): ... | |
75 def update(self, update_object, processor='', initNs=..., initBindings=..., use_store_provided=True, **kwargs): ... | |
76 def n3(self): ... | |
77 def __reduce__(self): ... | |
78 def isomorphic(self, other): ... | |
79 def connected(self): ... | |
80 def all_nodes(self): ... | |
81 def resource(self, identifier): ... | |
82 def skolemize(self, new_graph=None, bnode=None): ... | |
83 def de_skolemize(self, new_graph=None, uriref=None): ... | |
84 | |
85 class ConjunctiveGraph(Graph): | |
86 context_aware = ... # type: Any | |
87 default_context = ... # type: Any | |
88 def __init__(self, store='', identifier=None): ... | |
89 def __contains__(self, triple_or_quad): ... | |
90 def add(self, xxx_todo_changeme4): ... | |
91 def addN(self, quads: Iterable[StatementType]): ... | |
92 def remove(self, xxx_todo_changeme5): ... | |
93 def triples(self, xxx_todo_changeme6, context=None): ... | |
94 def quads(self, pattern=None) -> Iterable[StatementType]: ... | |
95 def triples_choices(self, xxx_todo_changeme7): ... | |
96 def __len__(self): ... | |
97 def contexts(self, triple=None): ... | |
98 def get_context(self, identifier, quoted=False): ... | |
99 def remove_context(self, context): ... | |
100 def context_id(self, uri, context_id=None): ... | |
101 def parse(self, source=None, publicID=None, format='', location=None, file=None, data=None, **args): ... | |
102 def __reduce__(self): ... | |
103 | |
104 class Dataset(ConjunctiveGraph): | |
105 __doc__ = ... # type: Any | |
106 DEFAULT = ... # type: Any | |
107 graph_names = ... # type: Any | |
108 def __init__(self, store=''): ... | |
109 def graph(self, identifier=None): ... | |
110 def remove_graph(self, g): ... | |
111 def graphs(self, empty=True): ... | |
112 def add_quad(self, quad): ... | |
113 def remove_quad(self, xxx_todo_changeme8): ... | |
114 def quads(self, quad): ... | |
115 | |
116 class QuotedGraph(Graph): | |
117 def __init__(self, store, identifier): ... | |
118 def add(self, triple): ... | |
119 def addN(self, quads): ... | |
120 def n3(self): ... | |
121 def __reduce__(self): ... | |
122 | |
123 class GraphValue(QuotedGraph): | |
124 def __init__(self, store, identifier=None, graph=None): ... | |
125 def add(self, triple): ... | |
126 def remove(self, triple): ... | |
127 def __reduce__(self): ... | |
128 | |
129 class Seq: | |
130 def __init__(self, graph, subject): ... | |
131 def toPython(self): ... | |
132 def __iter__(self): ... | |
133 def __len__(self): ... | |
134 def __getitem__(self, index): ... | |
135 | |
136 class ModificationException(Exception): | |
137 def __init__(self): ... | |
138 | |
139 class UnSupportedAggregateOperation(Exception): | |
140 def __init__(self): ... | |
141 | |
142 class ReadOnlyGraphAggregate(ConjunctiveGraph): | |
143 graphs = ... # type: Any | |
144 def __init__(self, graphs, store=''): ... | |
145 def destroy(self, configuration): ... | |
146 def commit(self): ... | |
147 def rollback(self): ... | |
148 def open(self, configuration, create=False): ... | |
149 def close(self): ... | |
150 def add(self, xxx_todo_changeme12): ... | |
151 def addN(self, quads): ... | |
152 def remove(self, xxx_todo_changeme13): ... | |
153 def triples(self, xxx_todo_changeme14): ... | |
154 def __contains__(self, triple_or_quad): ... | |
155 def quads(self, xxx_todo_changeme15): ... | |
156 def __len__(self): ... | |
157 def __hash__(self): ... | |
158 def __cmp__(self, other): ... | |
159 def __iadd__(self, other): ... | |
160 def __isub__(self, other): ... | |
161 def triples_choices(self, xxx_todo_changeme16, context=None): ... | |
162 def qname(self, uri): ... | |
163 def compute_qname(self, uri, generate=True): ... | |
164 def bind(self, prefix, namespace, override=True): ... | |
165 def namespaces(self): ... | |
166 def absolutize(self, uri, defrag=1): ... | |
167 def parse(self, source, publicID=None, format='', **args): ... | |
168 def n3(self): ... | |
169 def __reduce__(self): ... |