| Home | Trees | Index | Help |
|---|
| Package rdflib :: Module Graph :: Class ReadOnlyGraphAggregate |
|
object--+ |Node--+ |Graph--+ |ConjunctiveGraph--+ | ReadOnlyGraphAggregate
Utility class for treating a set of graphs as a single graph
Only read operations are supported (hence the name). Essentially a ConjunctiveGraph over an explicit subset of the entire store.| Method Summary | |
|---|---|
__init__(self,
graphs,
store)
| |
__cmp__(self,
other)
| |
__hash__(self)
| |
Add all triples in Graph other to Graph | |
Subtract all triples in Graph other from Graph | |
Number of triples in the entire conjunctive graph | |
__reduce__(self)
| |
__repr__(self)
| |
Turn uri into an absolute URI if it's not one already | |
Add the triple to the default context | |
Add a sequence of triple with context | |
Bind prefix to namespace | |
close(self)
| |
Commits active transactions | |
compute_qname(self,
uri)
| |
Destroy the store identified by `configuration` if supported | |
return an n3 identifier for the Graph | |
Generator over all the prefix, namespace tuples | |
Open the graph store | |
Parse source into Graph into it's own context (sub graph) | |
qname(self,
uri)
| |
Iterate over all the quads in the entire aggregate graph | |
Removes from all its contexts | |
Rollback active transactions | |
Iterate over all the triples in the entire conjunctive graph | |
triples_choices(self,
(subject,
predicate,
object_),
context)
| |
| Inherited from ConjunctiveGraph | |
| |
URI#context | |
Iterate over all contexts in the graph | |
Removes the given context from the graph | |
| Inherited from Graph | |
Set theoretical union | |
Support for 'triple in graph' syntax | |
Iterates over all triples in the store | |
Set theoretical intersection | |
Set theoretical difference | |
| |
Query for the RDFS.comment of the subject | |
Check if the Graph is connected | |
| |
Generator over all items in the resource specified by list | |
Query for the RDFS.label of the subject | |
| |
| |
A generator of objects with the given subject and predicate | |
A generator of (predicate, object) tuples for the given subject | |
A generator of predicates with the given subject and object | |
| |
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) | |
Check if subject is an rdf:Seq | |
Serialize the Graph to destination | |
Convenience method to update the value of object | |
A generator of (subject, object) tuples for the given predicate | |
A generator of (subject, predicate) tuples for the given object | |
A generator of subjects with the given predicate and 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 | |
|---|---|
| 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 |
|---|
__iadd__(self, other)Add all triples in Graph other to Graph
|
__isub__(self, other)Subtract all triples in Graph other from Graph
|
__len__(self)
Number of triples in the entire conjunctive graph
|
absolutize(self, uri, defrag=1)Turn uri into an absolute URI if it's not one already
|
add(self, (s, p, o))Add the triple to the default context
|
addN(self, quads)Add a sequence of triple with context
|
bind(self, prefix, namespace, override=True)Bind prefix to namespace If override is True will bind namespace to given prefix if namespace was already bound to a different prefix.
|
commit(self)Commits active transactions
|
destroy(self, configuration)Destroy the store identified by `configuration` if supported
|
n3(self)return an n3 identifier for the Graph
|
namespaces(self)Generator over all the prefix, namespace tuples
|
open(self, configuration, create=False)Open the graph store Might be necessary for stores that require opening a connection to a database or acquiring some resource.
|
parse(self, source, publicID=None, format='xml', **args)Parse source into Graph into it's own context (sub graph) Format defaults to xml (AKA rdf/xml). The publicID argument is for specifying the logical URI for the case that it's different from the physical source URI. Returns the context into which the source was parsed. In the case of n3 it returns the root context.
|
quads(self, (s, p, o))Iterate over all the quads in the entire aggregate graph
|
remove(self, (s, p, o))Removes from all its contexts
|
rollback(self)Rollback active transactions
|
triples(self, (s, p, o))Iterate over all the triples in the entire conjunctive graph
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Apr 4 16:05:47 2007 | http://epydoc.sf.net |