Show / Hide Table of Contents

Class SparqlUpdateCommandSet

Represents a sequence of SPARQL Update Commands to be executed on a Dataset.

Inheritance
object
SparqlUpdateCommandSet
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public class SparqlUpdateCommandSet

Constructors

| Edit this page View Source

SparqlUpdateCommandSet()

Creates a new empty Command Set.

Declaration
public SparqlUpdateCommandSet()
| Edit this page View Source

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.

| Edit this page View Source

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 Source

AlgebraOptimisers

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>
| Edit this page View Source

BaseUri

Gets/Sets the Base URI for the Command Set.

Declaration
public Uri BaseUri { get; }
Property Value
Type Description
Uri
| Edit this page View Source

CommandCount

Gets the number of Commands in the set.

Declaration
public int CommandCount { get; }
Property Value
Type Description
int
| Edit this page View Source

Commands

Gets the enumeration of Commands in the set.

Declaration
public IEnumerable<SparqlUpdateCommand> Commands { get; }
Property Value
Type Description
IEnumerable<SparqlUpdateCommand>
| Edit this page View Source

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
| Edit this page View Source

NamespaceMap

Gets the Namespace Map for the Command Set.

Declaration
public NamespaceMapper NamespaceMap { get; }
Property Value
Type Description
NamespaceMapper
| Edit this page View Source

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.

| Edit this page View Source

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 Source

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

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

ToString()

Gets the String representation of the Command Set.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SparqlUpdateCommandSet()
    • SparqlUpdateCommandSet(IEnumerable<SparqlUpdateCommand>)
    • SparqlUpdateCommandSet(SparqlUpdateCommand)
  • Properties
    • AlgebraOptimisers
    • BaseUri
    • CommandCount
    • Commands
    • this[int]
    • NamespaceMap
    • Timeout
    • UpdateExecutionTime
  • Methods
    • ApplyAlgebraOptimisers(ISparqlAlgebra, IEnumerable<IAlgebraOptimiser>)
    • Optimise(IQueryOptimiser)
    • Process(ISparqlUpdateProcessor)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX