Class PersistentTripleStore
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
public sealed class PersistentTripleStore : BaseTripleStore, INativelyQueryableStore, IUpdateableTripleStore, ITransactionalStore, ITripleStore, IDisposable
Remarks
Persistence Behaviour
Note: This is a transactional implementation - this means that changes made are not persisted until you either call Flush() or you dispose of the instance. Alternatively you may invoke the Discard() method to throw away changes made to the in-memory state.
The actual level of persistence provided will vary according to the IStorage
The Contains() method of the underlying Base
SPARQL Query Behaviour
The exact SPARQL Query behaviour will depend on the capabilities of the underlying IStorage
If the underlying store does not support SPARQL itself then SPARQL queries cannot be applied and a System.
SPARQL Update Behaviour
Similarly to SPARQL Query support the SPARQL Update behaviour depends on whether the underlying IStorage
Please be aware that as with SPARQL Query if the in-memory view is not synced with the underlying store a Sparql
Other Notes
It is possible for the in-memory view of the triple store to get out of sync with the underlying store if that store is being modified by other processes or other code not utilising the Persistent
Constructors
| Improve this Doc View SourcePersistentTripleStore(IStorageProvider)
Declaration
public PersistentTripleStore(IStorageProvider manager)
Parameters
Type | Name | Description |
---|---|---|
IStorage |
manager | IO Manager. |
Remarks
Properties
| Improve this Doc View SourceUnderlyingStore
Declaration
public IStorageProvider UnderlyingStore { get; }
Property Value
Type | Description |
---|---|
IStorage |
Methods
| Improve this Doc View SourceDiscard()
Declaration
public void Discard()
Dispose()
Declaration
public override void Dispose()
Overrides
Remarks
ExecuteQuery(String)
Declaration
public object ExecuteQuery(string query)
Parameters
Type | Name | Description |
---|---|---|
System. |
query | Sparql Query as unparsed String. |
Returns
Type | Description |
---|---|
System. |
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, String)
Declaration
public void ExecuteQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string query)
Parameters
Type | Name | Description |
---|---|---|
IRdf |
rdfHandler | RDF Handler. |
ISparql |
resultsHandler | Results Handler. |
System. |
query | SPARQL Query as unparsed String. |
ExecuteUpdate(String)
Declaration
public void ExecuteUpdate(string update)
Parameters
Type | Name | Description |
---|---|---|
System. |
update | SPARQL Update Command(s). |
Remarks
ExecuteUpdate(SparqlUpdateCommand)
Declaration
public void ExecuteUpdate(SparqlUpdateCommand update)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
update | SPARQL Update Command. |
ExecuteUpdate(SparqlUpdateCommandSet)
Declaration
public void ExecuteUpdate(SparqlUpdateCommandSet updates)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
updates | SPARQL Update Command Set. |
Finalize()
Declaration
protected void Finalize()
Remarks
Flush()
Declaration
public void Flush()