Class ModifyCommand
Represents the SPARQL Update INSERT/DELETE command.
Inherited Members
Namespace: VDS.RDF.Update.Commands
Assembly: dotNetRdf.dll
Syntax
public class ModifyCommand : BaseModificationCommand
Constructors
| Improve this Doc View SourceModifyCommand(GraphPattern, GraphPattern, GraphPattern, Uri)
Creates a new INSERT/DELETE command.
Declaration
public ModifyCommand(GraphPattern deletions, GraphPattern insertions, GraphPattern where, Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | deletions | Pattern to construct Triples to delete. |
GraphPattern | insertions | Pattern to construct Triples to insert. |
GraphPattern | where | Pattern to select data which is then used in evaluating the insertions and deletions. |
System.Uri | graphUri | URI of the affected Graph. |
ModifyCommand(GraphPattern, GraphPattern, GraphPattern, IRefNode)
Creates a new INSERT/DELETE command.
Declaration
public ModifyCommand(GraphPattern deletions, GraphPattern insertions, GraphPattern where, IRefNode graphName = null)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | deletions | Pattern to construct Triples to delete. |
GraphPattern | insertions | Pattern to construct Triples to insert. |
GraphPattern | where | Pattern to select data which is then used in evaluating the insertions and deletions. |
IRefNode | graphName | Name of the affected Graph. |
ModifyCommand(GraphPattern, GraphPattern, GraphPattern)
Creates a new INSERT/DELETE command which operates on the Default Graph.
Declaration
public ModifyCommand(GraphPattern deletions, GraphPattern insertions, GraphPattern where)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | deletions | Pattern to construct Triples to delete. |
GraphPattern | insertions | Pattern to construct Triples to insert. |
GraphPattern | where | Pattern to select data which is then used in evaluating the insertions and deletions. |
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 |
InsertPattern
Gets the pattern used for insertions.
Declaration
public GraphPattern InsertPattern { get; }
Property Value
Type | Description |
---|---|
GraphPattern |
TargetGraph
Gets the name of the graph to be modified.
Declaration
public IRefNode TargetGraph { get; }
Property Value
Type | Description |
---|---|
IRefNode |
TargetUri
Gets the URI of the Graph the insertions are made to.
Declaration
[Obsolete("Replaced by TargetGraph")]
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
[Obsolete("Replaced by AffectsGraph(IRefNode)")]
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 SourceAffectsGraph(IRefNode)
Gets whether the Command will potentially affect the given Graph.
Declaration
public override bool AffectsGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
System.Boolean |
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 |
---|---|
string |