Home | Trees | Index | Help |
---|
Package rdflib :: Module Graph :: Class Context |
|
object
--+ |Graph
--+ | Context
Method Summary | |
---|---|
__init__(self,
graph,
identifier)
| |
Returns the number of triples in the graph. | |
add(self,
triple,
context)
| |
Bind prefix to namespace. | |
remove(self,
triple,
context)
| |
triples(self,
triple,
context)
| |
_get_context_aware(self)
| |
Inherited from Graph | |
Support for 'triple in graph' syntax. | |
Test if Graph is exactly equal to Graph other. | |
Add all triples in Graph other to Graph. | |
Subtract all triples in Graph other from Graph. | |
Iterates over all triples in the store. | |
Will turn uri into an absolute URI if it's not one already. | |
Close the graph backend. | |
Queries for the RDFS.comment of the subject, returns default if no comment exists. | |
Generator over all contexts in the graph. | |
Returns a Context graph for the given identifier, which must be a URIRef or BNode. | |
Generator over all items in the resource specified by list (an RDF collection) | |
Queries for the RDFS.label of the subject, returns default if no label exists. | |
for b/w compat. | |
Generator over all the prefix, namespace tuples. | |
A generator of objects with the given subject and predicate. | |
Open the graph backend. | |
Parse source into Graph. | |
A generator of (predicate, object) tuples for the given subject | |
A generator of predicates with the given subject and object. | |
Removes the given context from the graph. | |
Save Graph to location using format. | |
Check if subject is an rdf:Seq. | |
Serialize the Graph to destination. | |
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. | |
| |
| |
Get a value for a subject/predicate, predicate/object, or subject/object pair -- exactly one of subject, predicate, object must be None. | |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Property Summary | |
---|---|
context_aware | |
Inherited from Graph | |
backend | |
namespace_manager |
Method Details |
---|
__len__(self,
context=None)
Returns the number of triples in the graph. If context is specified
then the number of triples in the context is returned instead.
|
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.
|
Property Details |
---|
context_aware
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jun 29 09:50:16 2005 | http://epydoc.sf.net |