Class SparqlUpdateCommand
Base Class of SPARQL Update Commands.
Inheritance
Inherited Members
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public abstract class SparqlUpdateCommand
Constructors
| Improve this Doc View SourceSparqlUpdateCommand(SparqlUpdateCommandType)
Creates a new SPARQL Update Command.
Declaration
protected SparqlUpdateCommand(SparqlUpdateCommandType type)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateCommandType | type | Command Type. |
Properties
| Improve this Doc View SourceAffectsSingleGraph
Gets whether the Command will only affect a single Graph.
Declaration
public abstract bool AffectsSingleGraph { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CommandType
Gets the Type of this Command.
Declaration
public SparqlUpdateCommandType CommandType { get; }
Property Value
Type | Description |
---|---|
SparqlUpdateCommandType |
Methods
| Improve this Doc View SourceAffectsGraph(Uri)
Gets whether the Command will potentially affect the given Graph.
Declaration
[Obsolete("Replaced by AffectsGraph(IRefNode)")]
public abstract bool AffectsGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
A return value of true does not guarantee that the Graph will be affected. Some Commands (e.g. DROP ALL) affect all Graphs in the Dataset but the command itself doesn't know whether a Graph with the given URI is actually present in the dataset to which it is applied.
AffectsGraph(IRefNode)
Gets whether the Command will potentially affect the given Graph.
Declaration
public abstract bool AffectsGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
A return value of true does not guarantee that the Graph will be affected. Some Commands (e.g. DROP ALL) affect all Graphs in the Dataset but the command itself doesn't know whether a Graph with the given URI is actually present in the dataset to which it is applied.
Optimise(IQueryOptimiser)
Optimises the Command.
Declaration
public virtual void Optimise(IQueryOptimiser optimiser)
Parameters
Type | Name | Description |
---|---|---|
IQueryOptimiser | optimiser |
Process(ISparqlUpdateProcessor)
Processes the Command Set using the given Update Processor.
Declaration
public abstract void Process(ISparqlUpdateProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ISparqlUpdateProcessor | processor | Update Processor. |
ToString()
Gets the String representation of the Command.
Declaration
public override abstract string ToString()
Returns
Type | Description |
---|---|
string |