Home | Trees | Index | Help |
---|
Package rdflib :: Package backends :: Module Memory :: Class Memory |
|
object
--+ |Backend
--+ | Memory
An in memory implementation of a triple store.
This triple store uses nested dictionaries to store triples. Each triple is stored in two such indices as follows spo[s][p][o] = 1 and pos[p][o][s] = 1.Method Summary | |
---|---|
__init__(self)
| |
__len__(self)
| |
Add a triple to the store of triples. | |
bind(self,
prefix,
namespace)
| |
namespace(self,
prefix)
| |
namespaces(self)
| |
prefix(self,
namespace)
| |
remove(self,
(subject,
predicate,
object))
| |
A generator over all the triples matching | |
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) |
Method Details |
---|
add(self, (subject, predicate, object))Add a triple to the store of triples. |
triples(self, (subject, predicate, object))A generator over all the triples matching |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jun 29 09:50:17 2005 | http://epydoc.sf.net |