Package rdflib :: Package backends :: Module Memory :: Class Memory
[show private | hide private]
[frames | no frames]

Type 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(self, (subject, predicate, object))
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))
  triples(self, (subject, predicate, object))
A generator over all the triples matching
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
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

Generated by Epydoc 2.1 on Wed Jun 29 09:50:17 2005 http://epydoc.sf.net