Class DropCommand
Represents a SPARQL Update DROP 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 DropCommand : SparqlUpdateCommand
Constructors
| Improve this Doc View SourceDropCommand()
Creates a new DROP command which drops the Default Graph.
Declaration
public DropCommand()
DropCommand(Uri)
Creates a new DROP command.
Declaration
public DropCommand(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | URI of the Graph to DROP. |
DropCommand(Uri, ClearMode)
Creates a new DROP command.
Declaration
public DropCommand(Uri graphUri, ClearMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | URI of the Graph to DROP. |
ClearMode | mode | DROP Mode to use. |
DropCommand(Uri, ClearMode, Boolean)
Creates a new DROP command.
Declaration
public DropCommand(Uri graphUri, ClearMode mode, bool silent)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | URI ofthe Graph to DROP. |
ClearMode | mode | DROP Mode to use. |
System.Boolean | silent | Whether the DROP should be done silently. |
DropCommand(ClearMode)
Creates a new DROP command which performs a specific clear mode drop operation.
Declaration
public DropCommand(ClearMode mode)
Parameters
Type | Name | Description |
---|---|---|
ClearMode | mode | Clear Mode. |
DropCommand(ClearMode, Boolean)
Creates a new DROP command which performs a specific clear mode drop operation.
Declaration
public DropCommand(ClearMode mode, bool silent)
Parameters
Type | Name | Description |
---|---|---|
ClearMode | mode | Clear Mode. |
System.Boolean | silent | Whether errors should be suppressed. |
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 SourceMode
Gets the type of DROP operation to perform.
Declaration
public ClearMode Mode { get; }
Property Value
Type | Description |
---|---|
ClearMode |
Silent
Gets whether the Drop should be done silently.
Declaration
public bool Silent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
TargetUri
Gets the URI of the Graph to be dropped.
Declaration
public Uri TargetUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
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 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 |