Show / Hide Table of Contents

Class SparqlUpdateCommand

Base Class of SPARQL Update Commands.

Inheritance
object
SparqlUpdateCommand
BaseModificationCommand
BaseTransferCommand
ClearCommand
CreateCommand
DeleteDataCommand
DropCommand
InsertDataCommand
LoadCommand
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public abstract class SparqlUpdateCommand

Constructors

| Edit this page View Source

SparqlUpdateCommand(SparqlUpdateCommandType)

Creates a new SPARQL Update Command.

Declaration
protected SparqlUpdateCommand(SparqlUpdateCommandType type)
Parameters
Type Name Description
SparqlUpdateCommandType type

Command Type.

Properties

| Edit this page View Source

AffectsSingleGraph

Gets whether the Command will only affect a single Graph.

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

CommandType

Gets the Type of this Command.

Declaration
public SparqlUpdateCommandType CommandType { get; }
Property Value
Type Description
SparqlUpdateCommandType

Methods

| Edit this page View Source

AffectsGraph(Uri)

Gets whether the Command will potentially affect the given Graph.

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

Graph URI.

Returns
Type Description
bool
Remarks

A return value of true does not guarantee that the Graph will be affected. Some Commands (e.g. DROP ALL) affect all Graphs in the Dataset but the command itself doesn't know whether a Graph with the given URI is actually present in the dataset to which it is applied.

| Edit this page View Source

AffectsGraph(IRefNode)

Gets whether the Command will potentially affect the given Graph.

Declaration
public abstract bool AffectsGraph(IRefNode graphName)
Parameters
Type Name Description
IRefNode graphName

Graph name.

Returns
Type Description
bool
Remarks

A return value of true does not guarantee that the Graph will be affected. Some Commands (e.g. DROP ALL) affect all Graphs in the Dataset but the command itself doesn't know whether a Graph with the given URI is actually present in the dataset to which it is applied.

| Edit this page View Source

Optimise(IQueryOptimiser)

Optimises the Command.

Declaration
public virtual void Optimise(IQueryOptimiser optimiser)
Parameters
Type Name Description
IQueryOptimiser optimiser
| Edit this page View Source

Process(ISparqlUpdateProcessor)

Processes the Command Set using the given Update Processor.

Declaration
public abstract void Process(ISparqlUpdateProcessor processor)
Parameters
Type Name Description
ISparqlUpdateProcessor processor

Update Processor.

| Edit this page View Source

ToString()

Gets the String representation of the Command.

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

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SparqlUpdateCommand(SparqlUpdateCommandType)
  • Properties
    • AffectsSingleGraph
    • CommandType
  • Methods
    • AffectsGraph(Uri)
    • AffectsGraph(IRefNode)
    • Optimise(IQueryOptimiser)
    • Process(ISparqlUpdateProcessor)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX