auditable Module
This wrapper intercepts calls through the store interface and implements
thread-safe logging of destructive operations (adds / removes) in reverse.
This is persisted on the store instance and the reverse operations are
executed In order to return the store to the state it was when the transaction
began Since the reverse operations are persisted on the store, the store
itself acts as a transaction.
Calls to commit or rollback, flush the list of reverse operations This
provides thread-safe atomicity and isolation (assuming concurrent operations
occur with different store instances), but no durability (transactions are
persisted in memory and wont be available to reverse operations after the
system fails): A and I out of ACID.
-
class rdflib.plugins.stores.auditable.AuditableStore(store)[source]
Bases: rdflib.store.Store
-
__init__(store)[source]
-
__len__(context=None)[source]
-
__module__ = 'rdflib.plugins.stores.auditable'
-
add(triple, context, quoted=False)[source]
-
bind(prefix, namespace)[source]
-
close(commit_pending_transaction=False)[source]
-
commit()[source]
-
contexts(triple=None)[source]
-
destroy(configuration)[source]
-
namespace(prefix)[source]
-
namespaces()[source]
-
open(configuration, create=True)[source]
-
prefix(namespace)[source]
-
remove((subject, predicate, object_), context=None)[source]
-
rollback()[source]
-
triples(triple, context=None)[source]
regexmatching Module
This wrapper intercepts calls through the store interface which make use of
the REGEXTerm class to represent matches by REGEX instead of literal
comparison.
Implemented for stores that don’t support this and essentially
provides the support by replacing the REGEXTerms by wildcards (None) and
matching against the results from the store it’s wrapping.
-
class rdflib.plugins.stores.regexmatching.REGEXMatching(storage)[source]
Bases: rdflib.store.Store
-
__init__(storage)[source]
-
__len__(context=None)[source]
-
__module__ = 'rdflib.plugins.stores.regexmatching'
-
add(triple, context, quoted=False)[source]
-
bind(prefix, namespace)[source]
-
close(commit_pending_transaction=False)[source]
-
commit()[source]
-
contexts(triple=None)[source]
-
destroy(configuration)[source]
-
namespace(prefix)[source]
-
namespaces()[source]
-
open(configuration, create=True)[source]
-
prefix(namespace)[source]
-
remove(triple, context=None)[source]
-
remove_context(identifier)[source]
-
rollback()[source]
-
triples(triple, context=None)[source]
-
class rdflib.plugins.stores.regexmatching.REGEXTerm(expr)[source]
Bases: unicode
REGEXTerm can be used in any term slot and is interpreted as a request to
perform a REGEX match (not a string comparison) using the value
(pre-compiled) for checking rdf:type matches
-
__init__(expr)[source]
-
__module__ = 'rdflib.plugins.stores.regexmatching'
-
__reduce__()[source]
-
rdflib.plugins.stores.regexmatching.regexCompareQuad(quad, regexQuad)[source]