Package rdflib :: Package store :: Module BerkeleyDB :: Class BerkeleyDB
[show private | hide private]
[frames | no frames]

Type BerkeleyDB

object --+    
         |    
     Store --+
             |
            BerkeleyDB


A transaction-capable BerkeleyDB implementation The major difference are:
Method Summary
  __init__(self, configuration, identifier)
identifier: URIRef of the Store.
  __del__(self)
Redirects python's native garbage collection into Store.close
  __len__(self, context)
Number of statements in the store.
  add(self, (subject, predicate, object_), context, quoted)
Add a triple to the store of triples.
  bind(self, prefix, namespace)
  close(self, commit_pending_transaction)
Properly handles transactions explicitely (with parameter) or by default
  commit(self)
Bsddb tx objects cannot be reused after commit
  contexts(self, triple)
Generator over all contexts in the graph.
  destroy(self, configuration)
Destroy the underlying bsddb persistence for this store
  namespace(self, prefix)
  namespaces(self)
  open(self, path, create)
  prefix(self, namespace)
  remove(self, (subject, predicate, object_), context)
  rollback(self)
Bsddb tx objects cannot be reused after commit
  sync(self)
  triples(self, (subject, predicate, object_), context)
A generator over all the triples matching
    Inherited from Store
  addN(self, quads)
Adds each item in the list of statements to a specific context.
  create(self, configuration)
  gc(self)
Allows the store to perform any needed garbage collection
  triples_choices(self, (subject, predicate, object_), context)
A variant of triples that can take a list of terms instead of a single term in any slot.
    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)

Property Summary
  identifier
    Inherited from Store
  node_pickler

Class Variable Summary
bool context_aware = True
bool formula_aware = True
bool transaction_aware = True

Method Details

__init__(self, configuration=None, identifier=None)
(Constructor)

identifier: URIRef of the Store. Defaults to CWD configuration: string containing infomation open can use to connect to datastore.
Overrides:
rdflib.store.Store.__init__ (inherited documentation)

__del__(self)
(Destructor)

Redirects python's native garbage collection into Store.close

__len__(self, context=None)
(Length operator)

Number of statements in the store. This should only account for non-quoted (asserted) statements if the context is not specified, otherwise it should return the number of statements in the formula or context given.
Overrides:
rdflib.store.Store.__len__ (inherited documentation)

add(self, (subject, predicate, object_), context, quoted=False)

Add a triple to the store of triples.
Overrides:
rdflib.store.Store.add

close(self, commit_pending_transaction=False)

Properly handles transactions explicitely (with parameter) or by default
Overrides:
rdflib.store.Store.close

commit(self)

Bsddb tx objects cannot be reused after commit
Overrides:
rdflib.store.Store.commit

contexts(self, triple=None)

Generator over all contexts in the graph. If triple is specified, a generator over all contexts the triple is in.
Overrides:
rdflib.store.Store.contexts (inherited documentation)

destroy(self, configuration)

Destroy the underlying bsddb persistence for this store
Overrides:
rdflib.store.Store.destroy

rollback(self)

Bsddb tx objects cannot be reused after commit
Overrides:
rdflib.store.Store.rollback

triples(self, (subject, predicate, object_), context=None)

A generator over all the triples matching
Overrides:
rdflib.store.Store.triples

Class Variable Details

context_aware

Type:
bool
Value:
True                                                                   

formula_aware

Type:
bool
Value:
True                                                                   

transaction_aware

Type:
bool
Value:
True                                                                   

Generated by Epydoc 2.1 on Wed Apr 4 16:05:45 2007 http://epydoc.sf.net