Class LeviathanUpdateProcessor
Default SPARQL Update Processor provided by the library's Leviathan SPARQL Engine.
Implements
Inherited Members
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public class LeviathanUpdateProcessor : ISparqlUpdateProcessor
Remarks
Derived implementations may override the relevant virtual protected methods to substitute their own evaluation of an update for our default standards compliant implementations.
Constructors
| Edit this page View SourceLeviathanUpdateProcessor(IInMemoryQueryableStore, Action<LeviathanUpdateOptions>)
Creates a new Leviathan Update Processor.
Declaration
public LeviathanUpdateProcessor(IInMemoryQueryableStore store, Action<LeviathanUpdateOptions> options = null)
Parameters
Type | Name | Description |
---|---|---|
IInMemoryQueryableStore | store | Triple Store. |
Action<LeviathanUpdateOptions> | options | An optional callback invoked to set the options to be used by the update processor. |
LeviathanUpdateProcessor(ISparqlDataset, Action<LeviathanUpdateOptions>)
Creates a new Leviathan Update Processor.
Declaration
public LeviathanUpdateProcessor(ISparqlDataset data, Action<LeviathanUpdateOptions> options = null)
Parameters
Type | Name | Description |
---|---|---|
ISparqlDataset | data | SPARQL Dataset. |
Action<LeviathanUpdateOptions> | options | An optional callback invoked to set the options to be used by the update processor. |
Fields
| Edit this page View Source_dataset
Dataset over which updates are applied.
Declaration
protected ISparqlDataset _dataset
Field Value
Type | Description |
---|---|
ISparqlDataset |
Properties
| Edit this page View SourceAutoCommit
Gets/Sets whether Updates are automatically committed.
Declaration
public bool AutoCommit { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceDiscard()
Discards and outstanding changes from the underlying dataset.
Declaration
public void Discard()
Flush()
Flushes any outstanding changes to the underlying dataset.
Declaration
public void Flush()
GetContext()
Creates a new Evaluation Context.
Declaration
protected SparqlUpdateEvaluationContext GetContext()
Returns
Type | Description |
---|---|
SparqlUpdateEvaluationContext |
GetContext(SparqlUpdateCommandSet)
Creates a new Evaluation Context.
Declaration
protected SparqlUpdateEvaluationContext GetContext(SparqlUpdateCommandSet cmds)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateCommandSet | cmds | Update Commands. |
Returns
Type | Description |
---|---|
SparqlUpdateEvaluationContext |
GetQueryProcessor()
Gets the Query Processor to be used.
Declaration
protected virtual ISparqlQueryAlgebraProcessor<BaseMultiset, SparqlEvaluationContext> GetQueryProcessor()
Returns
Type | Description |
---|---|
ISparqlQueryAlgebraProcessor<BaseMultiset, SparqlEvaluationContext> |
Remarks
By default null is returned which indicates that the default query processing behaviour is used, to use a specific processor extend this class and override this method. If you do so you will have access to the dataset in use so generally you will want to use a query processor that accepts a ISparqlDataset instance.
ProcessAddCommand(AddCommand)
Processes an ADD command.
Declaration
public void ProcessAddCommand(AddCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
AddCommand | cmd | Add Command. |
ProcessAddCommandInternal(AddCommand, SparqlUpdateEvaluationContext)
Processes an ADD command.
Declaration
protected virtual void ProcessAddCommandInternal(AddCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
AddCommand | cmd | Add Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessClearCommand(ClearCommand)
Processes a CLEAR command.
Declaration
public void ProcessClearCommand(ClearCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ClearCommand | cmd | Clear Command. |
ProcessClearCommandInternal(ClearCommand, SparqlUpdateEvaluationContext)
Processes a CLEAR command.
Declaration
protected virtual void ProcessClearCommandInternal(ClearCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
ClearCommand | cmd | Clear Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessCommand(SparqlUpdateCommand)
Processes a command.
Declaration
public void ProcessCommand(SparqlUpdateCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateCommand | cmd | Command. |
ProcessCommandSet(SparqlUpdateCommandSet)
Processes a command set.
Declaration
public void ProcessCommandSet(SparqlUpdateCommandSet commands)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateCommandSet | commands | Command Set. |
ProcessCopyCommand(CopyCommand)
Processes a COPY command.
Declaration
public void ProcessCopyCommand(CopyCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
CopyCommand | cmd | Copy Command. |
ProcessCopyCommandInternal(CopyCommand, SparqlUpdateEvaluationContext)
Processes a COPY command.
Declaration
protected virtual void ProcessCopyCommandInternal(CopyCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
CopyCommand | cmd | Copy Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessCreateCommand(CreateCommand)
Processes a CREATE command.
Declaration
public void ProcessCreateCommand(CreateCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
CreateCommand | cmd | Create Command. |
ProcessCreateCommandInternal(CreateCommand, SparqlUpdateEvaluationContext)
Processes a CREATE command.
Declaration
protected virtual void ProcessCreateCommandInternal(CreateCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
CreateCommand | cmd | Create Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessDeleteCommand(DeleteCommand)
Processes a DELETE command.
Declaration
public void ProcessDeleteCommand(DeleteCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
DeleteCommand | cmd | Delete Command. |
ProcessDeleteCommandInternal(DeleteCommand, SparqlUpdateEvaluationContext)
Processes a DELETE command.
Declaration
protected virtual void ProcessDeleteCommandInternal(DeleteCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
DeleteCommand | cmd | Delete Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessDeleteDataCommand(DeleteDataCommand)
Processes a DELETE DATA command.
Declaration
public void ProcessDeleteDataCommand(DeleteDataCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataCommand | cmd | DELETE Data Command. |
ProcessDeleteDataCommandInternal(DeleteDataCommand, SparqlUpdateEvaluationContext)
Processes a DELETE DATA command.
Declaration
protected virtual void ProcessDeleteDataCommandInternal(DeleteDataCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataCommand | cmd | Delete Data Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessDropCommand(DropCommand)
Processes a DROP command.
Declaration
public void ProcessDropCommand(DropCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
DropCommand | cmd | Drop Command. |
ProcessDropCommandInternal(DropCommand, SparqlUpdateEvaluationContext)
Processes a DROP command.
Declaration
protected virtual void ProcessDropCommandInternal(DropCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
DropCommand | cmd | Drop Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessInsertCommand(InsertCommand)
Processes an INSERT command.
Declaration
public void ProcessInsertCommand(InsertCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
InsertCommand | cmd | Insert Command. |
ProcessInsertCommandInternal(InsertCommand, SparqlUpdateEvaluationContext)
Processes an INSERT command.
Declaration
protected virtual void ProcessInsertCommandInternal(InsertCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
InsertCommand | cmd | Insert Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessInsertDataCommand(InsertDataCommand)
Processes an INSERT DATA command.
Declaration
public void ProcessInsertDataCommand(InsertDataCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
InsertDataCommand | cmd | Insert Data Command. |
ProcessInsertDataCommandInternal(InsertDataCommand, SparqlUpdateEvaluationContext)
Processes an INSERT DATA command.
Declaration
protected virtual void ProcessInsertDataCommandInternal(InsertDataCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
InsertDataCommand | cmd | Insert Data Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessLoadCommand(LoadCommand)
Processes a LOAD command.
Declaration
public void ProcessLoadCommand(LoadCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
LoadCommand | cmd | Load Command. |
ProcessLoadCommandInternal(LoadCommand, SparqlUpdateEvaluationContext)
Processes a LOAD command.
Declaration
protected virtual void ProcessLoadCommandInternal(LoadCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
LoadCommand | cmd | Load Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessModifyCommand(ModifyCommand)
Processes an INSERT/DELETE command.
Declaration
public void ProcessModifyCommand(ModifyCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ModifyCommand | cmd | Insert/Delete Command. |
ProcessModifyCommandInternal(ModifyCommand, SparqlUpdateEvaluationContext)
Processes an INSERT/DELETE command.
Declaration
protected virtual void ProcessModifyCommandInternal(ModifyCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
ModifyCommand | cmd | Insert/Delete Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |
ProcessMoveCommand(MoveCommand)
Processes a MOVE command.
Declaration
public void ProcessMoveCommand(MoveCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
MoveCommand | cmd | Move Command. |
ProcessMoveCommandInternal(MoveCommand, SparqlUpdateEvaluationContext)
Processes a MOVE command.
Declaration
protected virtual void ProcessMoveCommandInternal(MoveCommand cmd, SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
MoveCommand | cmd | Move Command. |
SparqlUpdateEvaluationContext | context | SPARQL Update Evaluation Context. |