# HG changeset patch # User drewp@bigasterisk.com # Date 1555649987 25200 # Node ID 8cd163e0e50ccf9549fae69b3f9913c38e690c42 # Parent 3d51d4b63497b3aa5f9f89c7e6a74b08501bf014 add some rdflib stubs Ignore-this: 20804bfeadf49741c27cb48d12e29b6b diff -r 3d51d4b63497 -r 8cd163e0e50c service/collector/stubs/rdflib/__init__.pyi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/collector/stubs/rdflib/__init__.pyi Thu Apr 18 21:59:47 2019 -0700 @@ -0,0 +1,9 @@ +# Stubs for rdflib (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from rdflib.term import URIRef, BNode, Literal, Variable +from rdflib.namespace import Namespace +from rdflib.graph import Dataset, Graph, ConjunctiveGraph +from rdflib.namespace import RDF, RDFS, OWL, XSD + diff -r 3d51d4b63497 -r 8cd163e0e50c service/collector/stubs/rdflib/graph.pyi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/collector/stubs/rdflib/graph.pyi Thu Apr 18 21:59:47 2019 -0700 @@ -0,0 +1,186 @@ +# Stubs for rdflib.graph (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional, Tuple, Sequence +from io import StringIO as BytesIO +from rdflib.term import Node + +class Graph(Node): + context_aware = ... # type: Any + formula_aware = ... # type: Any + def __init__(self, store='', identifier=None, namespace_manager=None): ... + store = ... # type: Any + identifier = ... # type: Any + namespace_manager = ... # type: Any + def toPython(self): ... + def destroy(self, configuration): ... + def commit(self): ... + def rollback(self): ... + def open(self, configuration, create=False): ... + def close(self, commit_pending_transaction=False): ... + def add(self, xxx_todo_changeme): ... + def addN(self, quads): ... + def remove(self, xxx_todo_changeme1): ... + def triples(self, xxx_todo_changeme2) -> Sequence[Tuple[Node, Node, Node]]: ... + def __getitem__(self, item): ... + def __len__(self) -> int: ... + def __iter__(self): ... + def __contains__(self, triple) -> bool: ... + def __hash__(self): ... + def md5_term_hash(self): ... + def __cmp__(self, other): ... + def __eq__(self, other): ... + def __lt__(self, other): ... + def __le__(self, other): ... + def __gt__(self, other): ... + def __ge__(self, other): ... + def __iadd__(self, other): ... + def __isub__(self, other): ... + def __add__(self, other): ... + def __mul__(self, other): ... + def __sub__(self, other): ... + def __xor__(self, other): ... + __or__ = ... # type: Any + __and__ = ... # type: Any + def set(self, triple): ... + def subjects(self, predicate=None, object=None) -> Sequence[Node]: ... + def predicates(self, subject=None, object=None) -> Sequence[Node]: ... + def objects(self, subject=None, predicate=None) -> Sequence[Node]: ... + def subject_predicates(self, object=None) -> Sequence[Tuple[Node, Node]]: ... + def subject_objects(self, predicate=None) -> Sequence[Tuple[Node, Node]]: ... + def predicate_objects(self, subject=None) -> Sequence[Tuple[Node, Node]]: ... + def triples_choices(self, xxx_todo_changeme3, context=None): ... + def value(self, subject=None, predicate=..., object=None, default=None, any=True) -> Optional[Node]: ... + def label(self, subject, default='') -> Optional[Node]: ... + def preferredLabel(self, subject, lang=None, default=None, labelProperties=...): ... + def comment(self, subject, default=''): ... + def items(self, list): ... + def transitiveClosure(self, func, arg, seen=None): ... + def transitive_objects(self, subject, property, remember=None): ... + def transitive_subjects(self, predicate, object, remember=None): ... + def seq(self, subject): ... + def qname(self, uri): ... + def compute_qname(self, uri, generate=True): ... + def bind(self, prefix, namespace, override=True): ... + def namespaces(self): ... + def absolutize(self, uri, defrag=1): ... + def serialize(self, destination=None, format='', base=None, encoding=None, **args): ... + def parse(self, source=None, publicID=None, format=None, location=None, file=None, data=None, **args): ... + def load(self, source, publicID=None, format=''): ... + def query(self, query_object, processor='', result='', initNs=None, initBindings=None, use_store_provided=True, **kwargs): ... + def update(self, update_object, processor='', initNs=..., initBindings=..., use_store_provided=True, **kwargs): ... + def n3(self): ... + def __reduce__(self): ... + def isomorphic(self, other): ... + def connected(self): ... + def all_nodes(self): ... + def resource(self, identifier): ... + def skolemize(self, new_graph=None, bnode=None): ... + def de_skolemize(self, new_graph=None, uriref=None): ... + +class ConjunctiveGraph(Graph): + context_aware = ... # type: Any + default_context = ... # type: Any + def __init__(self, store='', identifier=None): ... + def __contains__(self, triple_or_quad): ... + def add(self, xxx_todo_changeme4): ... + def addN(self, quads): ... + def remove(self, xxx_todo_changeme5): ... + def triples(self, xxx_todo_changeme6, context=None): ... + def quads(self, pattern=None): ... + def triples_choices(self, xxx_todo_changeme7): ... + def __len__(self): ... + def contexts(self, triple=None): ... + def get_context(self, identifier, quoted=False): ... + def remove_context(self, context): ... + def context_id(self, uri, context_id=None): ... + def parse(self, source=None, publicID=None, format='', location=None, file=None, data=None, **args): ... + def __reduce__(self): ... + +class Dataset(ConjunctiveGraph): + __doc__ = ... # type: Any + DEFAULT = ... # type: Any + graph_names = ... # type: Any + def __init__(self, store=''): ... + def graph(self, identifier=None): ... + def remove_graph(self, g): ... + def graphs(self, empty=True): ... + def add_quad(self, quad): ... + def remove_quad(self, xxx_todo_changeme8): ... + def quads(self, quad): ... + +class QuotedGraph(Graph): + def __init__(self, store, identifier): ... + def add(self, triple): ... + def addN(self, quads): ... + def n3(self): ... + def __reduce__(self): ... + +class GraphValue(QuotedGraph): + def __init__(self, store, identifier=None, graph=None): ... + def add(self, triple): ... + def remove(self, triple): ... + def __reduce__(self): ... + +class Seq: + def __init__(self, graph, subject): ... + def toPython(self): ... + def __iter__(self): ... + def __len__(self): ... + def __getitem__(self, index): ... + +class BackwardCompatGraph(ConjunctiveGraph): + def __init__(self, backend=''): ... + backend = ... # type: Any + def open(self, configuration, create=True): ... + def add(self, xxx_todo_changeme9, context=None): ... + def remove(self, xxx_todo_changeme10, context=None): ... + def triples(self, xxx_todo_changeme11, context=None): ... + def __len__(self, context=None): ... + def get_context(self, identifier, quoted=False): ... + def remove_context(self, context): ... + def contexts(self, triple=None): ... + def subjects(self, predicate=None, object=None, context=None): ... + def predicates(self, subject=None, object=None, context=None): ... + def objects(self, subject=None, predicate=None, context=None): ... + def subject_predicates(self, object=None, context=None): ... + def subject_objects(self, predicate=None, context=None): ... + def predicate_objects(self, subject=None, context=None): ... + def __reduce__(self): ... + def save(self, destination, format='', base=None, encoding=None): ... + +class ModificationException(Exception): + def __init__(self): ... + +class UnSupportedAggregateOperation(Exception): + def __init__(self): ... + +class ReadOnlyGraphAggregate(ConjunctiveGraph): + graphs = ... # type: Any + def __init__(self, graphs, store=''): ... + def destroy(self, configuration): ... + def commit(self): ... + def rollback(self): ... + def open(self, configuration, create=False): ... + def close(self): ... + def add(self, xxx_todo_changeme12): ... + def addN(self, quads): ... + def remove(self, xxx_todo_changeme13): ... + def triples(self, xxx_todo_changeme14): ... + def __contains__(self, triple_or_quad): ... + def quads(self, xxx_todo_changeme15): ... + def __len__(self): ... + def __hash__(self): ... + def __cmp__(self, other): ... + def __iadd__(self, other): ... + def __isub__(self, other): ... + def triples_choices(self, xxx_todo_changeme16, context=None): ... + def qname(self, uri): ... + def compute_qname(self, uri, generate=True): ... + def bind(self, prefix, namespace, override=True): ... + def namespaces(self): ... + def absolutize(self, uri, defrag=1): ... + def parse(self, source, publicID=None, format='', **args): ... + def n3(self): ... + def __reduce__(self): ... diff -r 3d51d4b63497 -r 8cd163e0e50c service/collector/stubs/rdflib/namespace.pyi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/collector/stubs/rdflib/namespace.pyi Thu Apr 18 21:59:47 2019 -0700 @@ -0,0 +1,60 @@ +# Stubs for rdflib.namespace (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class Namespace(str): + __doc__ = ... # type: Any + def __new__(cls, value): ... + @property + def title(self): ... + def term(self, name): ... + def __getitem__(self, key, default=None): ... + def __getattr__(self, name): ... + +class URIPattern(str): + __doc__ = ... # type: Any + def __new__(cls, value): ... + def __mod__(self, *args, **kwargs): ... + def format(self, *args, **kwargs): ... + +class ClosedNamespace: + uri = ... # type: Any + def __init__(self, uri, terms): ... + def term(self, name): ... + def __getitem__(self, key, default=None): ... + def __getattr__(self, name): ... + +class _RDFNamespace(ClosedNamespace): + def __init__(self): ... + def term(self, name): ... + +RDF = ... # type: Any +RDFS = ... # type: Any +OWL = ... # type: Any +XSD = ... # type: Any +SKOS = ... # type: Any +DOAP = ... # type: Any +FOAF = ... # type: Any +DC = ... # type: Any +DCTERMS = ... # type: Any +VOID = ... # type: Any + +class NamespaceManager: + graph = ... # type: Any + def __init__(self, graph): ... + def reset(self): ... + store = ... # type: Any + def qname(self, uri): ... + def normalizeUri(self, rdfTerm): ... + def compute_qname(self, uri, generate=True): ... + def bind(self, prefix, namespace, override=True): ... + def namespaces(self): ... + def absolutize(self, uri, defrag=1): ... + +def is_ncname(name): ... + +XMLNS = ... # type: Any + +def split_uri(uri): ... diff -r 3d51d4b63497 -r 8cd163e0e50c service/collector/stubs/rdflib/parser.pyi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/collector/stubs/rdflib/parser.pyi Thu Apr 18 21:59:47 2019 -0700 @@ -0,0 +1,26 @@ +# Stubs for rdflib.parser (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any +from io import StringIO as BytesIO + +class Parser: + def __init__(self): ... + def parse(self, source, sink): ... + +class InputSource: # subclass of xmlreader + ... + + +class StringInputSource(InputSource): + def __init__(self, value, system_id=None): ... + +class URLInputSource(InputSource): + url = ... # type: Any + content_type = ... # type: Any + def __init__(self, system_id=None, format=None): ... + +class FileInputSource(InputSource): + file = ... # type: Any + def __init__(self, file): ... diff -r 3d51d4b63497 -r 8cd163e0e50c service/collector/stubs/rdflib/term.pyi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/collector/stubs/rdflib/term.pyi Thu Apr 18 21:59:47 2019 -0700 @@ -0,0 +1,90 @@ +# Stubs for rdflib.term (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union +import datetime +from decimal import Decimal + +class Node: ... + +class Identifier(Node, str): + def __new__(cls, value): ... + def eq(self, other): ... + def neq(self, other): ... + def __ne__(self, other): ... + def __eq__(self, other): ... + def __gt__(self, other): ... + def __lt__(self, other): ... + def __le__(self, other): ... + def __ge__(self, other): ... + def __hash__(self): ... + +class URIRef(Identifier): + def __new__(cls, value, base=None): ... + def toPython(self) -> str: ... + def n3(self, namespace_manager=None) -> bytes: ... + def defrag(self): ... + def __reduce__(self): ... + def __getnewargs__(self): ... + def __add__(self, other): ... + def __radd__(self, other): ... + def __mod__(self, other): ... + def md5_term_hash(self): ... + def de_skolemize(self): ... + +class Genid(URIRef): ... +class RDFLibGenid(Genid): ... + +class BNode(Identifier): + def __new__(cls, value=None, _sn_gen=..., _prefix=...): ... + def toPython(self) -> str: ... + def n3(self, namespace_manager=None) -> bytes: ... + def __getnewargs__(self): ... + def __reduce__(self): ... + def md5_term_hash(self): ... + def skolemize(self, authority=''): ... + +class Literal(Identifier): + __doc__ = ... # type: Any + def __new__(cls, lexical_or_value, lang=None, datatype=None, normalize=None): ... + def normalize(self): ... + @property + def value(self): ... + @property + def language(self): ... + @property + def datatype(self): ... + def __reduce__(self): ... + def __add__(self, val): ... + def __bool__(self): ... + def __neg__(self): ... + def __pos__(self): ... + def __abs__(self): ... + def __invert__(self): ... + def __gt__(self, other): ... + def __lt__(self, other): ... + def __le__(self, other): ... + def __ge__(self, other): ... + def __hash__(self): ... + def __eq__(self, other): ... + def eq(self, other): ... + def neq(self, other): ... + def n3(self, namespace_manager=None) -> bytes: ... + # Literal has many converters: + def toPython(self) -> Union[Literal, str, int, float, bytes, bool, Decimal, datetime.datetime, datetime.date, datetime.time]: ... + def md5_term_hash(self): ... + +def bind(datatype, pythontype, constructor=None, lexicalizer=None): ... + +class Variable(Identifier): + def __new__(cls, value): ... + def toPython(self): ... + def n3(self, namespace_manager=None) -> bytes: ... + def __reduce__(self): ... + def md5_term_hash(self): ... + +class Statement(Node, tuple): + def __new__(cls, xxx_todo_changeme, context): ... + def __reduce__(self): ... + def toPython(self): ...