|
|
__init__(self,
url,
context=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
_statement_encode(self,
(s, p, o),
context)
helper function to encode triples to sesame statement uri's |
source code
|
|
|
|
add(self,
(s, p, o),
context=None)
Add a triple with optional context |
source code
|
|
|
|
|
|
|
|
|
|
__len__(self)
Returns the number of triples in the graph
calls http://{self.url}/size very fast |
source code
|
|
|
|
set(self,
(subject, predicate, object))
Convenience method to update the value of object |
source code
|
|
|
|
|
|
|
query(self,
strOrQuery,
initBindings={},
initNs={},
resultMethod='brtr',
processor='sparql',
rawResults=False)
Executes a SPARQL query against this Graph |
source code
|
|
|
|
parse(self,
source,
publicID=None,
format='xml',
method='POST')
Parse source into Graph |
source code
|
|
|
|
load(self,
source,
publicID=None,
format='xml') |
source code
|
|
|
Inherited from SPARQLGraph:
__contains__,
__iter__,
comment,
construct,
describe,
getParser,
items,
label,
objects,
predicate_objects,
predicates,
subject_objects,
subject_predicates,
subjects,
transitive_objects,
transitive_subjects,
value
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|