Method Summary |
|
__init__ (self,
connection,
context,
table_name,
sequence_name,
debug)
Initialise access to the store via the given 'connection' and
employing the given, optional 'context' URI, using a table with the
given, optional 'table_name' ("triples" by default) and a
sequence (for BNode generation) with the optional 'sequence_name'
("bnode" by default). |
|
add (self,
pattern)
Add a triple using the information found in the given 'pattern'. |
|
close (self)
Close the connection to the database system. |
|
commit (self)
Commit the changes made to the triple store. |
|
contexts (self)
Return a list of contexts found in this store. |
|
count (self,
pattern)
Return a count of the triples conforming to the given 'pattern'. |
|
delete (self)
Drop the store's table and sequence. |
|
delete_sequence (self)
Drop the BNode sequence. |
|
delete_table (self)
Drop the triple store's table. |
|
get_context (self,
context)
Return a copy of this store which uses the given 'context' to
constrain operations on the stored triples. |
|
init (self)
Initialise the database by creating a table and a sequence. |
|
init_sequence (self)
Initialise the BNode sequence. |
|
init_table (self)
Initialise the triple store's table. |
|
objects (self,
subject,
predicate,
ordering,
limit)
Return objects for the given 'subject' and/or 'predicate'
identifiers. |
|
predicates (self,
subject,
object,
ordering,
limit)
Return predicates for the given 'subject' and/or 'object'
identifiers. |
|
remove (self,
pattern)
Remove all triples conforming to the given 'pattern'. |
|
remove_context (self,
context)
Removes the specified 'context' from the database. |
|
rollback (self)
Roll back (undo) the changes made to the triple store. |
|
subject (self,
subject)
Return a Subject for the given 'subject' identifier. |
|
subjects (self,
predicate,
object,
ordering,
limit)
Return subjects for the given 'predicate' and/or 'object'
identifiers. |
|
triples (self,
pattern,
ordering,
limit)
Return triples conforming to the given 'pattern'. |