stores Package¶
stores
Package¶
This package contains modules for additional RDFLib stores
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
-
__module__
= 'rdflib.plugins.stores.auditable'¶
-
concurrent
Module¶
-
class
rdflib.plugins.stores.concurrent.
ConcurrentStore
(store)[source]¶ Bases:
object
-
__module__
= 'rdflib.plugins.stores.concurrent'¶
-
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
-
__module__
= 'rdflib.plugins.stores.regexmatching'¶
-
-
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
-
__module__
= 'rdflib.plugins.stores.regexmatching'¶
-