Class LoadCommand
Represents the SPARQL Update LOAD command.
Inherited Members
Namespace: VDS.RDF.Update.Commands
Assembly: dotNetRdf.dll
Syntax
public class LoadCommand : SparqlUpdateCommand
Constructors
| Edit this page View SourceLoadCommand(Uri)
Creates a new LOAD command which operates on the Default Graph.
Declaration
[Obsolete("Replaced by LoadCommand(Uri, IRefNode, bool Loader)")]
public LoadCommand(Uri sourceUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | sourceUri | Source URI to load data from. |
LoadCommand(Uri, bool)
Creates a new LOAD command.
Declaration
[Obsolete("Replaced by LoadCommand(Uri, IRefNode, bool Loader)")]
public LoadCommand(Uri sourceUri, bool silent)
Parameters
Type | Name | Description |
---|---|---|
Uri | sourceUri | Source URI to load data from. |
bool | silent | Whether errors loading should be suppressed. |
LoadCommand(Uri, Uri)
Creates a new LOAD command.
Declaration
[Obsolete("Replaced by LoadCommand(Uri, IRefNode, bool Loader)")]
public LoadCommand(Uri sourceUri, Uri targetUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | sourceUri | Source URI to load data from. |
Uri | targetUri | Target URI for the Graph to store data in. |
LoadCommand(Uri, Uri, bool, Loader)
Creates a new LOAD command.
Declaration
[Obsolete("Replaced by LoadCommand(Uri, IRefNode, bool Loader)")]
public LoadCommand(Uri sourceUri, Uri graphUri, bool silent, Loader loader = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | sourceUri | Source URI to load data from. |
Uri | graphUri | Target URI for the Graph to store data in. |
bool | silent | Whether errors loading should be suppressed. |
Loader | loader | The loader to use for retrieving and parsing data. |
LoadCommand(Uri, IRefNode, bool, Loader)
Creates a new LOAD command.
Declaration
public LoadCommand(Uri sourceUri, IRefNode graphName = null, bool silent = false, Loader loader = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | sourceUri | Source URI to load data from. |
IRefNode | graphName | Name of the graph to store data in. If null or omitted, the target is the default graph. |
bool | silent | Whether errors loading should be suppressed. |
Loader | loader | The loader to use for retrieving and parsing data. |
Properties
| Edit this page View SourceAffectsSingleGraph
Gets whether the Command affects a specific Graph.
Declaration
public override bool AffectsSingleGraph { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceLoader
Get the loader to use for retrieving and parsing the data.
Declaration
public Loader Loader { get; }
Property Value
Type | Description |
---|---|
Loader |
Silent
Gets whether errors loading the data are suppressed.
Declaration
public bool Silent { get; }
Property Value
Type | Description |
---|---|
bool |
SourceUri
Gets the URI that data is loaded from.
Declaration
public Uri SourceUri { get; }
Property Value
Type | Description |
---|---|
Uri |
TargetGraphName
Get the name of the graph to load data into.
Declaration
public IRefNode TargetGraphName { get; }
Property Value
Type | Description |
---|---|
IRefNode |
TargetUri
Gets the URI of the Graph to load data into.
Declaration
[Obsolete("Replaced by TargetGraphName")]
public Uri TargetUri { get; }
Property Value
Type | Description |
---|---|
Uri |
Methods
| Edit this page View SourceAffectsGraph(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
| Edit this page View SourceAffectsGraph(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
| Edit this page View SourceProcess(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
| Edit this page View SourceToString()
Gets the String representation of the Command.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |