annotate stubs/rdflib/graph.pyi @ 2095:ce8b66e68cd5

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