Class CreateCommand
Represents the SPARQL Update CREATE command.
Inherited Members
Namespace: VDS.RDF.Update.Commands
Assembly: dotNetRdf.dll
Syntax
public class CreateCommand : SparqlUpdateCommand
Constructors
| Edit this page View SourceCreateCommand(Uri)
Creates a new CREATE command.
Declaration
public CreateCommand(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | URI of the Graph to create. |
CreateCommand(Uri, bool)
Creates a new CREATE command.
Declaration
public CreateCommand(Uri graphUri, bool silent)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | URI of the Graph to create. |
bool | silent | Whether the create should be done silently. |
CreateCommand(IRefNode, bool)
Creates a new CREATE command.
Declaration
public CreateCommand(IRefNode graphName, bool silent = false)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Name of the graph to create. |
bool | silent | Whether the create should be done silently. |
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 SourceSilent
Gets whether the Create should be done silently.
Declaration
public bool Silent { get; }
Property Value
Type | Description |
---|---|
bool |
TargetGraphName
Gets the name of the graph to be created.
Declaration
public IRefNode TargetGraphName { get; }
Property Value
Type | Description |
---|---|
IRefNode |
TargetUri
Gets the URI of the Graph to be created.
Declaration
[Obsolete("Replaced by TargetGraphName")]
public Uri TargetUri { get; }
Property Value
Type | Description |
---|---|
Uri |
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 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
| Edit this page View SourceToString()
Gets the String representation of the Command.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |