Show / Hide Table of Contents

Class ClearCommand

Represents the SPARQL Update CLEAR command.

Inheritance
object
SparqlUpdateCommand
ClearCommand
Inherited Members
SparqlUpdateCommand.CommandType
SparqlUpdateCommand.Optimise(IQueryOptimiser)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Update.Commands
Assembly: dotNetRdf.dll
Syntax
public class ClearCommand : SparqlUpdateCommand

Constructors

| Edit this page View Source

ClearCommand()

Creates a Command which clears the Default Graph (if any).

Declaration
public ClearCommand()
| Edit this page View Source

ClearCommand(Uri)

Creates a Command which clears the given Graph.

Declaration
[Obsolete("Replaced by ClearCommand(IRefNode)")]
public ClearCommand(Uri graphUri)
Parameters
Type Name Description
Uri graphUri

URI of the Graph to clear.

| Edit this page View Source

ClearCommand(Uri, ClearMode, bool)

Creates a Command which clears the given Graph or Graphs depending on the Clear Mode specified.

Declaration
[Obsolete("Replaced by ClearCommand(IRefNode, ClearMode, bool)")]
public ClearCommand(Uri graphName, ClearMode mode, bool silent)
Parameters
Type Name Description
Uri graphName

Graph name.

ClearMode mode

Clear Mode.

bool silent

Whether errors should be suppressed.

| Edit this page View Source

ClearCommand(IRefNode)

Creates a Command which clears the given Graph.

Declaration
public ClearCommand(IRefNode graphUri)
Parameters
Type Name Description
IRefNode graphUri

URI of the Graph to clear.

| Edit this page View Source

ClearCommand(IRefNode, ClearMode, bool)

Creates a Command which clears the given Graph or Graphs depending on the Clear Mode specified.

Declaration
public ClearCommand(IRefNode graphName, ClearMode mode, bool silent)
Parameters
Type Name Description
IRefNode graphName

Graph URI.

ClearMode mode

Clear Mode.

bool silent

Whether errors should be suppressed.

| Edit this page 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.

| Edit this page View Source

ClearCommand(ClearMode, bool)

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.

bool silent

Whether errors should be suppressed.

Properties

| Edit this page View Source

AffectsSingleGraph

Gets whether this Command affects a Single Graph.

Declaration
public override bool AffectsSingleGraph { get; }
Property Value
Type Description
bool
Overrides
SparqlUpdateCommand.AffectsSingleGraph
| Edit this page View Source

Mode

Gets the Mode by which Graphs are to be cleared.

Declaration
public ClearMode Mode { get; }
Property Value
Type Description
ClearMode
| Edit this page View Source

Silent

Gets whether errors should be suppressed.

Declaration
public bool Silent { get; }
Property Value
Type Description
bool
| Edit this page View Source

TargetGraphName

Gets the name of the graph to be cleared (or null if the default graph should be cleared).

Declaration
public IRefNode TargetGraphName { get; }
Property Value
Type Description
IRefNode
| Edit this page View Source

TargetUri

Gets the URI of the Graph to be cleared (or null if the default graph should be cleared).

Declaration
[Obsolete("Replaced by TargetGraphName")]
public Uri TargetUri { get; }
Property Value
Type Description
Uri

Methods

| Edit this page View Source

AffectsGraph(Uri)

Gets whether this Command affects the 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
SparqlUpdateCommand.AffectsGraph(Uri)
| Edit this page View Source

AffectsGraph(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
SparqlUpdateCommand.AffectsGraph(IRefNode)
| Edit this page 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)
| Edit this page View Source

ToString()

Gets the String representation of the Command.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
SparqlUpdateCommand.ToString()

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • ClearCommand()
    • ClearCommand(Uri)
    • ClearCommand(Uri, ClearMode, bool)
    • ClearCommand(IRefNode)
    • ClearCommand(IRefNode, ClearMode, bool)
    • ClearCommand(ClearMode)
    • ClearCommand(ClearMode, bool)
  • Properties
    • AffectsSingleGraph
    • Mode
    • Silent
    • TargetGraphName
    • TargetUri
  • Methods
    • AffectsGraph(Uri)
    • AffectsGraph(IRefNode)
    • Process(ISparqlUpdateProcessor)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX