|
|
__init__(self,
url,
context=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
construct(self,
strOrTriple,
initBindings={},
initNs={})
Executes a SPARQL Construct
:param strOrTriple: can be either |
source code
|
|
|
|
triples(self,
(s, p, o),
method='CONSTRUCT')
Use SELECT if you expect a large result set or may consume less than the entire result |
source code
|
|
|
|
__iter__(self)
Iterates over all triples in the store |
source code
|
|
|
|
__contains__(self,
triple)
Support for 'triple in graph' syntax |
source code
|
|
|
|
subjects(self,
predicate=None,
object=None)
A generator of subjects with the given predicate and object |
source code
|
|
|
|
predicates(self,
subject=None,
object=None)
A generator of predicates with the given subject and object |
source code
|
|
|
|
objects(self,
subject=None,
predicate=None)
A generator of objects with the given subject and predicate |
source code
|
|
|
|
subject_predicates(self,
object=None)
A generator of (subject, predicate) tuples for the given object |
source code
|
|
|
|
subject_objects(self,
predicate=None)
A generator of (subject, object) tuples for the given predicate |
source code
|
|
|
|
predicate_objects(self,
subject=None)
A generator of (predicate, object) tuples for the given subject |
source code
|
|
|
|
value(self,
subject=None,
predicate=rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#value'),
object=None,
default=None,
any=True)
Get a value for a pair of two criteria |
source code
|
|
|
|
label(self,
subject,
default='')
Query for the RDFS.label of the subject |
source code
|
|
|
|
|
|
|
items(self,
list)
Generator over all items in the resource specified by list |
source code
|
|
|
|
|
|
|
|
|
|
qname(self,
uri)
turn uri into a qname given self.namespaces
This works for rdflib graphs and is defined for SesameGraph
but is not part of SPARQLGraph |
source code
|
|
|
|
query(self,
strOrQuery,
initBindings={},
initNs={},
resultMethod='xml',
processor='sparql',
rawResults=False)
Executes a SPARQL query against this Graph |
source code
|
|
|
|
|
|
|
describe(self,
s_or_po,
initBindings={},
initNs={})
Executes a SPARQL describe of resource |
source code
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|