Show / Hide Table of Contents

Class InsertCommand

Represents a SPARQL Update INSERT command.

Inheritance
System.Object
SparqlUpdateCommand
BaseModificationCommand
InsertCommand
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 InsertCommand : BaseModificationCommand

Constructors

| Improve this Doc View Source

InsertCommand(GraphPattern, GraphPattern, Uri)

Creates a new INSERT command.

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

Pattern to construct Triples to insert.

GraphPattern where

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

System.Uri graphUri

URI of the affected Graph.

| Improve this Doc View Source

InsertCommand(GraphPattern, GraphPattern, IRefNode)

Creates a new INSERT command.

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

Pattern to construct Triples to insert.

GraphPattern where

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

IRefNode graphName

Name of the affected Graph.

| Improve this Doc View Source

InsertCommand(GraphPattern, GraphPattern)

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

Declaration
public InsertCommand(GraphPattern insertions, GraphPattern where)
Parameters
Type Name Description
GraphPattern insertions

Pattern to construct Triples to insert.

GraphPattern where

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

Properties

| Improve this Doc View Source

AffectsSingleGraph

Gets whether the 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

InsertPattern

Gets the pattern used for insertions.

Declaration
public GraphPattern InsertPattern { get; }
Property Value
Type Description
GraphPattern
| Improve this Doc View Source

TargetGraph

Gets the name of the graph insertions are applied to.

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

TargetUri

Gets the URI of the Graph the insertions are made to.

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

WherePattern

Gets the pattern used for the WHERE clause.

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

Methods

| Improve this Doc 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
System.Uri graphUri

Graph URI.

Returns
Type Description
System.Boolean
Overrides
SparqlUpdateCommand.AffectsGraph(Uri)
| Improve this Doc 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
System.Boolean
Overrides
SparqlUpdateCommand.AffectsGraph(IRefNode)
| Improve this Doc 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)
| 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
string
Overrides
SparqlUpdateCommand.ToString()

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • InsertCommand(GraphPattern, GraphPattern, Uri)
    • InsertCommand(GraphPattern, GraphPattern, IRefNode)
    • InsertCommand(GraphPattern, GraphPattern)
  • Properties
    • AffectsSingleGraph
    • InsertPattern
    • TargetGraph
    • TargetUri
    • WherePattern
  • Methods
    • AffectsGraph(Uri)
    • AffectsGraph(IRefNode)
    • Optimise(IQueryOptimiser)
    • Process(ISparqlUpdateProcessor)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX