Class LeviathanUpdateProcessor
Default SPARQL Update Processor provided by the library's Leviathan SPARQL Engine.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Update
Assembly: dotNetRDF.dll
Syntax
public class LeviathanUpdateProcessor : ISparqlUpdateProcessor
Remarks
The Leviathan Update Processor simply invokes the Evaluate(SparqlUpdateEvaluationContext) method of the SPARQL Commands it is asked to process. Derived implementations may override the relevant virtual protected methods to substitute their own evaluation of an update for our default standards compliant implementations.
Constructors
| Improve this Doc View SourceLeviathanUpdateProcessor(IInMemoryQueryableStore)
Creates a new Leviathan Update Processor.
Declaration
public LeviathanUpdateProcessor(IInMemoryQueryableStore store)
Parameters
Type | Name | Description |
---|---|---|
IInMemoryQueryableStore | store | Triple Store. |
LeviathanUpdateProcessor(ISparqlDataset)
Creates a new Leviathan Update Processor.
Declaration
public LeviathanUpdateProcessor(ISparqlDataset data)
Parameters
Type | Name | Description |
---|---|---|
ISparqlDataset | data | SPARQL Dataset. |
Fields
| Improve this Doc View Source_dataset
Dataset over which updates are applied.
Declaration
protected ISparqlDataset _dataset
Field Value
Type | Description |
---|---|
ISparqlDataset |
Properties
| Improve this Doc View SourceAutoCommit
Gets/Sets whether Updates are automatically committed.
Declaration
public bool AutoCommit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc 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.
|
Improve this Doc
View Source
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. |
Remarks
Invokes ProcessCommand(SparqlUpdateCommand) on each command in turn.
|
Improve this Doc
View Source
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. |