Show / Hide Table of Contents

Class LeviathanUpdateProcessor

Default SPARQL Update Processor provided by the library's Leviathan SPARQL Engine.

Inheritance
System.Object
LeviathanUpdateProcessor
ExplainUpdateProcessor
Implements
ISparqlUpdateProcessor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public class LeviathanUpdateProcessor : ISparqlUpdateProcessor
Remarks

The Leviathan Update Processor simply invokes the Evaluate 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 Source

LeviathanUpdateProcessor(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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

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 Evaluate 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.

Properties

| Improve this Doc View Source

AutoCommit

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 Evaluate 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.

Methods

| Improve this Doc View Source

Discard()

Discards and outstanding changes from the underlying dataset.

Declaration
public void Discard()
Remarks

The Leviathan Update Processor simply invokes the Evaluate 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.

| Improve this Doc View Source

Flush()

Flushes any outstanding changes to the underlying dataset.

Declaration
public void Flush()
Remarks

The Leviathan Update Processor simply invokes the Evaluate 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.

| Improve this Doc View Source

GetContext()

Creates a new Evaluation Context.

Declaration
protected SparqlUpdateEvaluationContext GetContext()
Returns
Type Description
SparqlUpdateEvaluationContext
Remarks

The Leviathan Update Processor simply invokes the Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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.

Remarks

The Leviathan Update Processor simply invokes the Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| 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.

Remarks

The Leviathan Update Processor simply invokes the Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

| Improve this Doc View Source

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 Evaluate 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.

Implements

ISparqlUpdateProcessor

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • LeviathanUpdateProcessor(IInMemoryQueryableStore, Action<LeviathanUpdateOptions>)
    • LeviathanUpdateProcessor(ISparqlDataset, Action<LeviathanUpdateOptions>)
  • Fields
    • _dataset
  • Properties
    • AutoCommit
  • Methods
    • Discard()
    • Flush()
    • GetContext()
    • GetContext(SparqlUpdateCommandSet)
    • GetQueryProcessor()
    • ProcessAddCommand(AddCommand)
    • ProcessAddCommandInternal(AddCommand, SparqlUpdateEvaluationContext)
    • ProcessClearCommand(ClearCommand)
    • ProcessClearCommandInternal(ClearCommand, SparqlUpdateEvaluationContext)
    • ProcessCommand(SparqlUpdateCommand)
    • ProcessCommandSet(SparqlUpdateCommandSet)
    • ProcessCopyCommand(CopyCommand)
    • ProcessCopyCommandInternal(CopyCommand, SparqlUpdateEvaluationContext)
    • ProcessCreateCommand(CreateCommand)
    • ProcessCreateCommandInternal(CreateCommand, SparqlUpdateEvaluationContext)
    • ProcessDeleteCommand(DeleteCommand)
    • ProcessDeleteCommandInternal(DeleteCommand, SparqlUpdateEvaluationContext)
    • ProcessDeleteDataCommand(DeleteDataCommand)
    • ProcessDeleteDataCommandInternal(DeleteDataCommand, SparqlUpdateEvaluationContext)
    • ProcessDropCommand(DropCommand)
    • ProcessDropCommandInternal(DropCommand, SparqlUpdateEvaluationContext)
    • ProcessInsertCommand(InsertCommand)
    • ProcessInsertCommandInternal(InsertCommand, SparqlUpdateEvaluationContext)
    • ProcessInsertDataCommand(InsertDataCommand)
    • ProcessInsertDataCommandInternal(InsertDataCommand, SparqlUpdateEvaluationContext)
    • ProcessLoadCommand(LoadCommand)
    • ProcessLoadCommandInternal(LoadCommand, SparqlUpdateEvaluationContext)
    • ProcessModifyCommand(ModifyCommand)
    • ProcessModifyCommandInternal(ModifyCommand, SparqlUpdateEvaluationContext)
    • ProcessMoveCommand(MoveCommand)
    • ProcessMoveCommandInternal(MoveCommand, SparqlUpdateEvaluationContext)
  • Implements
  • Extension Methods
Back to top Generated by DocFX