Show / Hide Table of Contents

Class DeleteCommand

Represents the SPARQL Update DELETE command.

Inheritance
object
SparqlUpdateCommand
BaseModificationCommand
DeleteCommand
Inherited Members
BaseModificationCommand._usingUris
BaseModificationCommand._usingNamedUris
BaseModificationCommand.UsingUris
BaseModificationCommand.UsingNamedUris
BaseModificationCommand.GraphUri
BaseModificationCommand.WithGraphName
BaseModificationCommand.AddUsingUri(Uri)
BaseModificationCommand.AddUsingNamedUri(Uri)
BaseModificationCommand.IsValidDeletePattern(GraphPattern, bool)
SparqlUpdateCommand.CommandType
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 DeleteCommand : BaseModificationCommand

Constructors

| Edit this page View Source

DeleteCommand(GraphPattern)

Createa a new DELETE command which operates on the Default Graph.

Declaration
public DeleteCommand(GraphPattern where)
Parameters
Type Name Description
GraphPattern where

Pattern to construct Triples to delete.

| Edit this page View Source

DeleteCommand(GraphPattern, Uri)

Creates a new DELETE command.

Declaration
[Obsolete("Replaced by DeleteCommand(GraphPattern, IRefNode)")]
public DeleteCommand(GraphPattern where, Uri graphUri)
Parameters
Type Name Description
GraphPattern where

Pattern to construct Triples to delete.

Uri graphUri

URI of the affected Graph.

| Edit this page View Source

DeleteCommand(GraphPattern, IRefNode)

Creates a new DELETE command.

Declaration
public DeleteCommand(GraphPattern where, IRefNode graphName)
Parameters
Type Name Description
GraphPattern where

Pattern to construct Triples to delete.

IRefNode graphName

Name of the affected Graph.

| Edit this page View Source

DeleteCommand(GraphPattern, GraphPattern)

Creates a new DELETE command which operates on the Default Graph.

Declaration
public DeleteCommand(GraphPattern deletions, GraphPattern where)
Parameters
Type Name Description
GraphPattern deletions

Pattern to construct Triples to delete.

GraphPattern where

Pattern to select data which is then used in evaluating the deletions pattern.

| Edit this page View Source

DeleteCommand(GraphPattern, GraphPattern, Uri)

Creates a new DELETE command.

Declaration
[Obsolete("Replaced by DeleteCommand(GraphPatten, GraphPatter, IRefNode")]
public DeleteCommand(GraphPattern deletions, GraphPattern where, Uri graphUri)
Parameters
Type Name Description
GraphPattern deletions

Pattern to construct Triples to delete.

GraphPattern where

Pattern to select data which is then used in evaluating the deletions pattern.

Uri graphUri

URI of the affected Graph.

| Edit this page View Source

DeleteCommand(GraphPattern, GraphPattern, IRefNode)

Creates a new DELETE command.

Declaration
public DeleteCommand(GraphPattern deletions, GraphPattern where, IRefNode graphName)
Parameters
Type Name Description
GraphPattern deletions

Pattern to construct Triples to delete.

GraphPattern where

Pattern to select data which is then used in evaluating the deletions pattern.

IRefNode graphName

Name of the affected Graph.

Properties

| Edit this page View Source

AffectsSingleGraph

Gets whether the Command affects a single Graph.

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

DeletePattern

Gets the pattern used for Deletions.

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

TargetGraph

Gets the name of the graph the deletions are made from.

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

TargetUri

Gets the URI of the Graph the deletions are made from.

Declaration
[Obsolete("Replaced by TargetGraph")]
public Uri TargetUri { get; }
Property Value
Type Description
Uri
| Edit this page View Source

WherePattern

Gets the pattern used for the WHERE clause.

Declaration
public GraphPattern WherePattern { get; }
Property Value
Type Description
GraphPattern

Methods

| Edit this page View Source

AffectsGraph(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
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

Optimise(IQueryOptimiser)

Optimises the Commands WHERE pattern.

Declaration
public override void Optimise(IQueryOptimiser optimiser)
Parameters
Type Name Description
IQueryOptimiser optimiser
Overrides
SparqlUpdateCommand.Optimise(IQueryOptimiser)
| 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
    • DeleteCommand(GraphPattern)
    • DeleteCommand(GraphPattern, Uri)
    • DeleteCommand(GraphPattern, IRefNode)
    • DeleteCommand(GraphPattern, GraphPattern)
    • DeleteCommand(GraphPattern, GraphPattern, Uri)
    • DeleteCommand(GraphPattern, GraphPattern, IRefNode)
  • Properties
    • AffectsSingleGraph
    • DeletePattern
    • TargetGraph
    • TargetUri
    • WherePattern
  • Methods
    • AffectsGraph(Uri)
    • AffectsGraph(IRefNode)
    • Optimise(IQueryOptimiser)
    • Process(ISparqlUpdateProcessor)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX