Class SparqlUpdateCommandSet
Represents a sequence of SPARQL Update Commands to be executed on a Dataset.
Inheritance
System.Object
SparqlUpdateCommandSet
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)
Namespace: VDS.RDF.Update
Assembly: dotNetRDF.dll
Syntax
public class SparqlUpdateCommandSet
Constructors
| Improve this Doc 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 |
---|---|---|
System.Collections.Generic.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
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<IAlgebraOptimiser> |
BaseUri
Gets/Sets the Base URI for the Command Set.
Declaration
public Uri BaseUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
CommandCount
Gets the number of Commands in the set.
Declaration
public int CommandCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Commands
Gets the enumeration of Commands in the set.
Declaration
public IEnumerable<SparqlUpdateCommand> Commands { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SparqlUpdateCommand> |
Item[Int32]
Gets the Command at the given index.
Declaration
public SparqlUpdateCommand this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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 |
---|---|
System.Int64 |
Remarks
Default is no timeout.
|
Improve this Doc
View Source
UpdateExecutionTime
Gets/Sets the Time the updates took to execute.
Declaration
public TimeSpan? UpdateExecutionTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if you try to inspect the execution time before/during the execution of updates. |
Methods
| Improve this Doc View SourceOptimise()
Optimises the Commands in the Command Set.
Declaration
public void Optimise()
Remarks
Uses the globally registered query optimiser from QueryOptimiser.
|
Improve this Doc
View Source
Optimise(IQueryOptimiser)
Optimises the Commands in the Command Set.
Declaration
public void Optimise(IQueryOptimiser optimiser)
Parameters
Type | Name | Description |
---|---|---|
IQueryOptimiser | optimiser | Optimiser to use. |
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 |
---|---|
System.String |
Overrides
System.Object.ToString()