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
The Leviathan Update Processor simply invokes the
Constructors
| Improve this Doc 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. |
| System.Action<T><LeviathanUpdateOptions> | options | An optional callback invoked to set the options to be used by the update processor. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
| System.Action<T><LeviathanUpdateOptions> | options | An optional callback invoked to set the options to be used by the update processor. |
Remarks
The Leviathan Update Processor simply invokes the
Fields
| Improve this Doc View Source_dataset
Dataset over which updates are applied.
Declaration
protected ISparqlDataset _dataset
Field Value
| Type | Description |
|---|---|
| ISparqlDataset |
Remarks
The Leviathan Update Processor simply invokes the
Properties
| Improve this Doc View SourceAutoCommit
Gets/Sets whether Updates are automatically committed.
Declaration
public bool AutoCommit { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
The Leviathan Update Processor simply invokes the
Methods
| Improve this Doc View SourceDiscard()
Discards and outstanding changes from the underlying dataset.
Declaration
public void Discard()
Remarks
The Leviathan Update Processor simply invokes the
Flush()
Flushes any outstanding changes to the underlying dataset.
Declaration
public void Flush()
Remarks
The Leviathan Update Processor simply invokes the
GetContext()
Creates a new Evaluation Context.
Declaration
protected SparqlUpdateEvaluationContext GetContext()
Returns
| Type | Description |
|---|---|
| SparqlUpdateEvaluationContext |
Remarks
The Leviathan Update Processor simply invokes the
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 |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessClearCommand(ClearCommand)
Processes a CLEAR command.
Declaration
public void ProcessClearCommand(ClearCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| ClearCommand | cmd | Clear Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessCommand(SparqlUpdateCommand)
Processes a command.
Declaration
public void ProcessCommand(SparqlUpdateCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| SparqlUpdateCommand | cmd | Command. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessCommandSet(SparqlUpdateCommandSet)
Processes a command set.
Declaration
public void ProcessCommandSet(SparqlUpdateCommandSet commands)
Parameters
| Type | Name | Description |
|---|---|---|
| SparqlUpdateCommandSet | commands | Command Set. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessCopyCommand(CopyCommand)
Processes a COPY command.
Declaration
public void ProcessCopyCommand(CopyCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| CopyCommand | cmd | Copy Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessCreateCommand(CreateCommand)
Processes a CREATE command.
Declaration
public void ProcessCreateCommand(CreateCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCommand | cmd | Create Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessDeleteCommand(DeleteCommand)
Processes a DELETE command.
Declaration
public void ProcessDeleteCommand(DeleteCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteCommand | cmd | Delete Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessDeleteDataCommand(DeleteDataCommand)
Processes a DELETE DATA command.
Declaration
public void ProcessDeleteDataCommand(DeleteDataCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteDataCommand | cmd | DELETE Data Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessDropCommand(DropCommand)
Processes a DROP command.
Declaration
public void ProcessDropCommand(DropCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| DropCommand | cmd | Drop Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessInsertCommand(InsertCommand)
Processes an INSERT command.
Declaration
public void ProcessInsertCommand(InsertCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| InsertCommand | cmd | Insert Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessInsertDataCommand(InsertDataCommand)
Processes an INSERT DATA command.
Declaration
public void ProcessInsertDataCommand(InsertDataCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| InsertDataCommand | cmd | Insert Data Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessLoadCommand(LoadCommand)
Processes a LOAD command.
Declaration
public void ProcessLoadCommand(LoadCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| LoadCommand | cmd | Load Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessModifyCommand(ModifyCommand)
Processes an INSERT/DELETE command.
Declaration
public void ProcessModifyCommand(ModifyCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| ModifyCommand | cmd | Insert/Delete Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the
ProcessMoveCommand(MoveCommand)
Processes a MOVE command.
Declaration
public void ProcessMoveCommand(MoveCommand cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveCommand | cmd | Move Command. |
Remarks
The Leviathan Update Processor simply invokes the
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. |
Remarks
The Leviathan Update Processor simply invokes the