| Home | Trees | Index | Help |
|---|
| Package rdflib :: Package store :: Class Store |
|
object --+
|
Store
AbstractSQLStore,
AuditableStorage,
IOMemory,
Memory,
MySQL,
REGEXMatching,
Sleepycat| Method Summary | |
|---|---|
identifier: URIRef of the Store. | |
Number of statements in the store. | |
Adds the given statement to a specific context or to the model. | |
Adds each item in the list of statements to a specific context. | |
bind(self,
prefix,
namespace)
| |
This closes the database connection. | |
commit(self)
| |
Generator over all contexts in the graph. | |
create(self,
configuration)
| |
This destroys the instance of the store identified by the configuration string. | |
Allows the store to perform any needed garbage collection | |
namespace(self,
prefix)
| |
namespaces(self)
| |
Opens the store specified by the configuration string. | |
prefix(self,
namespace)
| |
Remove the set of triples matching the pattern from the store | |
rollback(self)
| |
A generator over all the triples matching the pattern. | |
A variant of triples that can take a list of terms instead of a single term in any slot. | |
__get_node_pickler(self)
| |
| 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 | |
|---|---|
node_pickler | |
| Class Variable Summary | |
|---|---|
bool |
context_aware = False
|
bool |
formula_aware = False
|
bool |
transaction_aware = False
|
| Method Details |
|---|
__init__(self,
configuration=None,
identifier=None)
identifier: URIRef of the Store. Defaults to CWD configuration:
string containing infomation open can use to connect to datastore.
|
__len__(self,
context=None)
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.
|
add(self, (subject, predicate, object), context, quoted=False)Adds the given statement to a specific context or to the model. The quoted argument is interpreted by formula-aware stores to indicate this statement is quoted/hypothetical It should be an error to not specify a context and have the quoted argument be True. It should also be an error for the quoted argument to be True when the store is not formula-aware. |
addN(self, quads)Adds each item in the list of statements to a specific context. The quoted argument is interpreted by formula-aware stores to indicate this statement is quoted/hypothetical. Note that the default implementation is a redirect to add |
close(self, commit_pending_transaction=False)This closes the database connection. The commit_pending_transaction parameter specifies whether to commit all pending transactions before closing (if the store is transactional). |
contexts(self, triple=None)Generator over all contexts in the graph. If triple is specified, a generator over all contexts the triple is in. |
destroy(self, configuration)This destroys the instance of the store identified by the configuration string. |
gc(self)Allows the store to perform any needed garbage collection |
open(self, configuration, create=False)Opens the store specified by the configuration string. If create is True a store will be created if it does not already exist. If create is False and a store does not already exist an exception is raised. An exception is also raised if a store exists, but there is insufficient permissions to open the store. This should return one of VALID_STORE,CORRUPTED_STORE,or NO_STORE |
remove(self, (subject, predicate, object), context=None)Remove the set of triples matching the pattern from the store |
triples(self, (subject, predicate, object), context=None)A generator over all the triples matching the pattern. Pattern can include any objects for used for comparing against nodes in the store, for example, REGEXTerm, URIRef, Literal, BNode, Variable, Graph, QuotedGraph, Date? DateRange? A conjunctive query can be indicated by either providing a value of None for the context or the identifier associated with the Conjunctive Graph (if it's context aware). |
triples_choices(self, (subject, predicate, object_), context=None)A variant of triples that can take a list of terms instead of a single term in any slot. Stores can implement this to optimize the response time from the default 'fallback' implementation, which will iterate over each term in the list and dispatch to tripless |
| Property Details |
|---|
node_pickler
|
| Class Variable Details |
|---|
context_aware
|
formula_aware
|
transaction_aware
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Mon Oct 23 14:11:21 2006 | http://epydoc.sf.net |