Show / Hide Table of Contents

Class ClearCommand

Represents the SPARQL Update CLEAR command.
Inheritance
System.Object
SparqlUpdateCommand
ClearCommand
Inherited Members
SparqlUpdateCommand.CommandType
SparqlUpdateCommand.Optimise(IQueryOptimiser)
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 ClearCommand : SparqlUpdateCommand

Constructors

| Improve this Doc View Source

ClearCommand()

Creates a Command which clears the Default Graph (if any).
Declaration
public ClearCommand()
| Improve this Doc View Source

ClearCommand(Uri)

Creates a Command which clears the given Graph.
Declaration
public ClearCommand(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri URI of the Graph to clear.
| Improve this Doc View Source

ClearCommand(Uri, ClearMode, Boolean)

Creates a Command which clears the given Graph or Graphs depending on the Clear Mode specified.
Declaration
public ClearCommand(Uri graphUri, ClearMode mode, bool silent)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
ClearMode mode Clear Mode.
System.Boolean silent Whether errors should be suppressed.
| Improve this Doc View Source

ClearCommand(ClearMode)

Creates a Command which performs the specified type of clear.
Declaration
public ClearCommand(ClearMode mode)
Parameters
Type Name Description
ClearMode mode Clear Mode.
| Improve this Doc View Source

ClearCommand(ClearMode, Boolean)

Creates a Command which performs the specified type of clear.
Declaration
public ClearCommand(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 Source

AffectsSingleGraph

Gets whether this Command affects a Single Graph.
Declaration
public override bool AffectsSingleGraph { get; }
Property Value
Type Description
System.Boolean
Overrides
SparqlUpdateCommand.AffectsSingleGraph
| Improve this Doc View Source

Mode

Gets the Mode by which Graphs are to be cleared.
Declaration
public ClearMode Mode { get; }
Property Value
Type Description
ClearMode
| Improve this Doc View Source

Silent

Gets whether errors should be suppressed.
Declaration
public bool Silent { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

TargetUri

Gets the URI of the Graph to be cleared (or null if the default graph should be cleared).
Declaration
public Uri TargetUri { get; }
Property Value
Type Description
System.Uri

Methods

| Improve this Doc View Source

AffectsGraph(Uri)

Gets whether this Command affects the given Graph.
Declaration
public override bool AffectsGraph(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
System.Boolean
Overrides
SparqlUpdateCommand.AffectsGraph(Uri)
| Improve this Doc View Source

Evaluate(SparqlUpdateEvaluationContext)

Evaluates the Command in the given Context.
Declaration
public override void Evaluate(SparqlUpdateEvaluationContext context)
Parameters
Type Name Description
SparqlUpdateEvaluationContext context Evaluation Context.
Overrides
SparqlUpdateCommand.Evaluate(SparqlUpdateEvaluationContext)
| Improve this Doc View Source

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
SparqlUpdateCommand.Process(ISparqlUpdateProcessor)
| Improve this Doc View Source

ToString()

Gets the String representation of the Command.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
SparqlUpdateCommand.ToString()

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • ClearCommand()
    • ClearCommand(Uri)
    • ClearCommand(Uri, ClearMode, Boolean)
    • ClearCommand(ClearMode)
    • ClearCommand(ClearMode, Boolean)
  • Properties
    • AffectsSingleGraph
    • Mode
    • Silent
    • TargetUri
  • Methods
    • AffectsGraph(Uri)
    • Evaluate(SparqlUpdateEvaluationContext)
    • Process(ISparqlUpdateProcessor)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX