Class InsertDataCommand
Represents the SPARQL Update INSERT DATA command.
Inherited Members
Namespace: VDS.RDF.Update.Commands
Assembly: dotNetRdf.dll
Syntax
public class InsertDataCommand : SparqlUpdateCommand
Constructors
| Edit this page View SourceInsertDataCommand(GraphPattern)
Creates a new INSERT DATA command.
Declaration
public InsertDataCommand(GraphPattern pattern)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | pattern | Pattern containing concrete Triples to insert. |
Properties
| Edit this page View SourceAffectsSingleGraph
Gets whether the Command affects a single Graph.
Declaration
public override bool AffectsSingleGraph { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceDataPattern
Gets the Data Pattern containing Triples to insert.
Declaration
public GraphPattern DataPattern { get; }
Property Value
Type | Description |
---|---|
GraphPattern |
Methods
| Edit this page 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 |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page 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 |
---|---|
bool |
Overrides
| Edit this page View SourceIsValidDataPattern(GraphPattern, bool)
Determines whether a Graph Pattern is valid for use in an INSERT DATA command.
Declaration
public static bool IsValidDataPattern(GraphPattern p, bool top)
Parameters
Type | Name | Description |
---|---|---|
GraphPattern | p | Graph Pattern. |
bool | top | Is this the top level pattern?. |
Returns
Type | Description |
---|---|
bool |
Process(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
| Edit this page View SourceToString()
Gets the String representation of the Command.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |