Class DeleteCommand
Represents the SPARQL Update DELETE command.
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.Commands
Assembly: dotNetRDF.dll
Syntax
public class DeleteCommand : BaseModificationCommand
Constructors
| Improve this Doc View SourceDeleteCommand(GraphPattern)
Createa a new DELETE command which operates on the Default Graph.
Declaration
public DeleteCommand(GraphPattern where)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | where | Pattern to construct Triples to delete. |
DeleteCommand(GraphPattern, Uri)
Creates a new DELETE command.
Declaration
public DeleteCommand(GraphPattern where, Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | where | Pattern to construct Triples to delete. |
System.Uri | graphUri | URI of the affected Graph. |
DeleteCommand(GraphPattern, GraphPattern)
Creates a new DELETE command which operates on the Default Graph.
Declaration
public DeleteCommand(GraphPattern deletions, GraphPattern where)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | deletions | Pattern to construct Triples to delete. |
GraphPattern | where | Pattern to select data which is then used in evaluating the deletions pattern. |
DeleteCommand(GraphPattern, GraphPattern, Uri)
Creates a new DELETE command.
Declaration
public DeleteCommand(GraphPattern deletions, GraphPattern where, Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | deletions | Pattern to construct Triples to delete. |
GraphPattern | where | Pattern to select data which is then used in evaluating the deletions pattern. |
System.Uri | graphUri | URI of the affected Graph. |
Properties
| Improve this Doc View SourceAffectsSingleGraph
Gets whether the Command affects a single Graph.
Declaration
public override bool AffectsSingleGraph { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceDeletePattern
Gets the pattern used for Deletions.
Declaration
public GraphPattern DeletePattern { get; }
Property Value
Type | Description |
---|---|
GraphPattern |
TargetUri
Gets the URI of the Graph the deletions are made from.
Declaration
public Uri TargetUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
WherePattern
Gets the pattern used for the WHERE clause.
Declaration
public GraphPattern WherePattern { get; }
Property Value
Type | Description |
---|---|
GraphPattern |
Methods
| Improve this Doc View SourceAffectsGraph(Uri)
Gets whether the Command affects a given Graph.
Declaration
public override bool AffectsGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEvaluate(SparqlUpdateEvaluationContext)
Evaluates the Command in the given Context.
Declaration
public override void Evaluate(SparqlUpdateEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateEvaluationContext | context | Evaluation Context. |
Overrides
| Improve this Doc View SourceOptimise(IQueryOptimiser)
Optimises the Commands WHERE pattern.
Declaration
public override void Optimise(IQueryOptimiser optimiser)
Parameters
Type | Name | Description |
---|---|---|
IQueryOptimiser | optimiser |
Overrides
| Improve this Doc View SourceProcess(ISparqlUpdateProcessor)
Processes the Command using the given Update Processor.
Declaration
public override void Process(ISparqlUpdateProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ISparqlUpdateProcessor | processor | SPARQL Update Processor. |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of the Command.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |