Class SparqlUpdateCommandSet
Represents a sequence of SPARQL Update Commands to be executed on a Dataset.
Inherited Members
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public class SparqlUpdateCommandSet
Constructors
| Edit this page View SourceSparqlUpdateCommandSet()
Creates a new empty Command Set.
Declaration
public SparqlUpdateCommandSet()
SparqlUpdateCommandSet(IEnumerable<SparqlUpdateCommand>)
Creates a new Command Set with the given Commands.
Declaration
public SparqlUpdateCommandSet(IEnumerable<SparqlUpdateCommand> commands)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<SparqlUpdateCommand> | commands | Commands. |
SparqlUpdateCommandSet(SparqlUpdateCommand)
Creates a new Command Set containing the given Command.
Declaration
public SparqlUpdateCommandSet(SparqlUpdateCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| SparqlUpdateCommand | command | Command. |
Properties
| Edit this page View SourceAlgebraOptimisers
Gets/Sets the Algebra Optimisers to be applied to portions of updates that require queries to be made.
Declaration
public IEnumerable<IAlgebraOptimiser> AlgebraOptimisers { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IAlgebraOptimiser> |
BaseUri
Gets/Sets the Base URI for the Command Set.
Declaration
public Uri BaseUri { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
CommandCount
Gets the number of Commands in the set.
Declaration
public int CommandCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Commands
Gets the enumeration of Commands in the set.
Declaration
public IEnumerable<SparqlUpdateCommand> Commands { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<SparqlUpdateCommand> |
this[int]
Gets the Command at the given index.
Declaration
public SparqlUpdateCommand this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index. |
Property Value
| Type | Description |
|---|---|
| SparqlUpdateCommand |
NamespaceMap
Gets the Namespace Map for the Command Set.
Declaration
public NamespaceMapper NamespaceMap { get; }
Property Value
| Type | Description |
|---|---|
| NamespaceMapper |
Timeout
Gets/Sets the Timeout in milliseconds for the execution of the Updates.
Declaration
public long Timeout { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Remarks
Default is no timeout.
UpdateExecutionTime
Gets/Sets the Time the updates took to execute.
Declaration
public TimeSpan? UpdateExecutionTime { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan? |
Remarks
Returns NULL if no execution time has been set yet (e.g. if the command set has not yet been processed).
Methods
| Edit this page View SourceApplyAlgebraOptimisers(ISparqlAlgebra, IEnumerable<IAlgebraOptimiser>)
Apply algebra optimisers to the specified algebra, returning the optimised algebra.
Declaration
public ISparqlAlgebra ApplyAlgebraOptimisers(ISparqlAlgebra algebra, IEnumerable<IAlgebraOptimiser> globalOptimisers = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ISparqlAlgebra | algebra | The algebra to be optimised. |
| IEnumerable<IAlgebraOptimiser> | globalOptimisers | Additional optimisers to apply after applying all of the local optimisers specified by AlgebraOptimisers. |
Returns
| Type | Description |
|---|---|
| ISparqlAlgebra | The optimised algebra. |
Remarks
If the globalOptimisers is null or not specified, the default algebra optimisers defined by Default are applied.
Optimise(IQueryOptimiser)
Optimises the Commands in the Command Set.
Declaration
public void Optimise(IQueryOptimiser optimiser = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryOptimiser | optimiser | The query optimiser to apply. If this parameter is null or omitted, the query optimiser from Default is used. |
Process(ISparqlUpdateProcessor)
Processes the Command Set using the given Update Processor.
Declaration
public void Process(ISparqlUpdateProcessor processor)
Parameters
| Type | Name | Description |
|---|---|---|
| ISparqlUpdateProcessor | processor | Update Processor. |
ToString()
Gets the String representation of the Command Set.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |