| Home | Trees | Index | Help |
|---|
| Package rdflib :: Module Graph :: Class BackwardCompatGraph |
|
object--+ |Node--+ |Graph--+ |ConjunctiveGraph--+ | BackwardCompatGraph
TripleStore| Method Summary | |
|---|---|
__init__(self,
backend)
| |
Number of triples in the entire graph | |
__reduce__(self)
| |
Add to to the given context or to the default context | |
Iterate over all contexts in the graph | |
Return a context graph for the given identifier | |
Generate objects with the given subject and predicate | |
Open the graph store | |
Generate (predicate, object) tuples for the given subject | |
Generate predicates with the given subject and object | |
Remove from the given context or from the default context | |
Remove the given context from the graph | |
save(self,
destination,
format,
base,
encoding)
| |
Generate (subject, object) tuples for the given predicate | |
Generate (subject, predicate) tuples for the given object | |
Generate subjects with the given predicate and object | |
Iterate over all the triples in the entire graph | |
| Inherited from ConjunctiveGraph | |
| |
Add a sequence of triple with context | |
URI#context | |
Parse source into Graph into it's own context (sub graph) | |
Iterate over all the quads in the entire conjunctive graph | |
Iterate over all the triples in the entire conjunctive graph | |
| Inherited from Graph | |
Set theoretical union | |
| |
Support for 'triple in graph' syntax | |
| |
Add all triples in Graph other to Graph | |
Subtract all triples in Graph other from Graph | |
Iterates over all triples in the store | |
Set theoretical intersection | |
| |
Set theoretical difference | |
Turn uri into an absolute URI if it's not one already | |
| |
Bind prefix to namespace | |
Close the graph store | |
Query for the RDFS.comment of the subject | |
Commits active transactions | |
| |
Check if the Graph is connected | |
Destroy the store identified by `configuration` if supported | |
| |
Generator over all items in the resource specified by list | |
Query for the RDFS.label of the subject | |
| |
| |
return an n3 identifier for the Graph | |
Generator over all the prefix, namespace tuples | |
| |
| |
Executes a SPARQL query (eventually will support Versa queries with same method) against this Graph strOrQuery - Is either a string consisting of the SPARQL query or an instance of rdflib.sparql.bison.Query.Query initBindings - A mapping from a Variable to an RDFLib term (used as initial bindings for SPARQL query) initNS - A mapping from a namespace prefix to an instance of rdflib.Namespace (used for SPARQL query) DEBUG - A boolean flag passed on to the SPARQL parser and evaluation engine processor - The kind of RDF query (must be 'sparql' until Versa is ported) | |
Rollback active transactions | |
Check if subject is an rdf:Seq | |
Serialize the Graph to destination | |
Convenience method to update the value of object | |
Transitively generate objects for the `property` relationship | |
Transitively generate objects for the `property` relationship | |
Get a value for a pair of two criteria Exactly one of subject, predicate, object must be None. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
| Property Summary | |
|---|---|
backend | |
| Inherited from Graph | |
identifier | |
namespace_manager | |
store | |
| Class Variable Summary | |
|---|---|
| Inherited from Node | |
Implements |
__implemented__ = <implementedBy rdflib.Node.Node>
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
tuple |
__slots__ = ()
|
| Method Details |
|---|
__len__(self,
context=None)
Number of triples in the entire graph
|
add(self, (s, p, o), context=None)Add to to the given context or to the default context
|
contexts(self, triple=None)Iterate over all contexts in the graph If triple is specified, iterate over all contexts the triple is in.
|
get_context(self, identifier, quoted=False)Return a context graph for the given identifier identifier must be a URIRef or BNode. |
objects(self, subject=None, predicate=None, context=None)Generate objects with the given subject and predicate
|
open(self, configuration, create=True)Open the graph store Might be necessary for stores that require opening a connection to a database or acquiring some resource.
|
predicate_objects(self, subject=None, context=None)Generate (predicate, object) tuples for the given subject
|
predicates(self, subject=None, object=None, context=None)Generate predicates with the given subject and object
|
remove(self, (s, p, o), context=None)Remove from the given context or from the default context
|
remove_context(self, context)Remove the given context from the graph
|
subject_objects(self, predicate=None, context=None)Generate (subject, object) tuples for the given predicate
|
subject_predicates(self, object=None, context=None)Generate (subject, predicate) tuples for the given object
|
subjects(self, predicate=None, object=None, context=None)Generate subjects with the given predicate and object
|
triples(self, (s, p, o), context=None)Iterate over all the triples in the entire graph
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Apr 4 16:05:45 2007 | http://epydoc.sf.net |