Show / Hide Table of Contents

Class SparqlHttpProtocolConnector

Class for connecting to any store that implements the SPARQL Graph Store HTTP Protocol for Managing Graphs.

Inheritance
System.Object
BaseHttpConnector
BaseAsyncHttpConnector
SparqlHttpProtocolConnector
FusekiConnector
Implements
IConfigurationSerializable
IAsyncStorageProvider
IStorageProvider
IStorageCapabilities
System.IDisposable
Inherited Members
BaseAsyncHttpConnector.ParentServer
BaseAsyncHttpConnector.AsyncParentServer
BaseAsyncHttpConnector.LoadGraph(IGraph, Uri, AsyncStorageCallback, object)
BaseAsyncHttpConnector.LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, object)
BaseAsyncHttpConnector.LoadGraphAsync(IGraph, string, CancellationToken)
BaseAsyncHttpConnector.LoadGraphAsync(HttpRequestMessage, IRdfHandler, AsyncStorageCallback, object)
BaseAsyncHttpConnector.LoadGraphAsync(HttpRequestMessage, IRdfHandler, CancellationToken)
BaseAsyncHttpConnector.SaveGraphAsync(HttpRequestMessage, IRdfWriter, IGraph, AsyncStorageCallback, object)
BaseAsyncHttpConnector.SaveGraphAsync(HttpRequestMessage, IGraph, AsyncStorageCallback, object)
BaseAsyncHttpConnector.SaveGraphAsync(HttpRequestMessage, CancellationToken)
BaseAsyncHttpConnector.SaveGraphAsync(HttpWebRequest, IRdfWriter, IGraph, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraphAsync(HttpWebRequest, IRdfWriter, Uri, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraphAsync(HttpRequestMessage, IRdfWriter, Uri, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraphAsync(HttpRequestMessage, IRdfWriter, IEnumerable<Triple>, CancellationToken)
BaseAsyncHttpConnector.DeleteGraph(Uri, AsyncStorageCallback, object)
BaseAsyncHttpConnector.DeleteGraphAsync(HttpWebRequest, bool, string, AsyncStorageCallback, object)
BaseAsyncHttpConnector.DeleteGraphAsync(HttpRequestMessage, bool, string, AsyncStorageCallback, object)
BaseAsyncHttpConnector.DeleteGraphAsync(HttpRequestMessage, bool, CancellationToken)
BaseAsyncHttpConnector.UriFactory
BaseAsyncHttpConnector.MakeRequestSequence(IEnumerable<HttpRequestMessage>, AsyncStorageCallback, object)
BaseHttpConnector.HttpClient
BaseHttpConnector.HttpClientHandler
BaseHttpConnector.SetProxy(string)
BaseHttpConnector.SetProxy(Uri)
BaseHttpConnector.Proxy
BaseHttpConnector.ClearProxy()
BaseHttpConnector.SetProxyCredentials(string, string)
BaseHttpConnector.SetProxyCredentials(string, string, string)
BaseHttpConnector.ProxyCredentials
BaseHttpConnector.ClearProxyCredentials()
BaseHttpConnector.Timeout
BaseHttpConnector.SerializeStandardConfig(INode, ConfigurationSerializationContext)
BaseHttpConnector.SetCredentials(string, string)
BaseHttpConnector.Dispose()
BaseHttpConnector.Dispose(bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public class SparqlHttpProtocolConnector : BaseAsyncHttpConnector, IConfigurationSerializable, IAsyncStorageProvider, IStorageProvider, IStorageCapabilities, IDisposable
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

Constructors

| Improve this Doc View Source

SparqlHttpProtocolConnector(string, IWebProxy)

Creates a new SPARQL Graph Store HTTP Protocol Connector.

Declaration
public SparqlHttpProtocolConnector(string serviceUri, IWebProxy proxy)
Parameters
Type Name Description
string serviceUri

URI of the Protocol Server.

System.Net.IWebProxy proxy

Proxy Server.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

SparqlHttpProtocolConnector(string, MimeTypeDefinition)

Creates a new SPARQL Graph Store HTTP Protocol Connector.

Declaration
public SparqlHttpProtocolConnector(string serviceUri, MimeTypeDefinition writerMimeTypeDefinition = null)
Parameters
Type Name Description
string serviceUri

URI of the Protocol Server.

MimeTypeDefinition writerMimeTypeDefinition

The MIME type specifying the syntax to use when sending RDF data to the server. Defaults to "application/rdf+xml".

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

SparqlHttpProtocolConnector(Uri, IWebProxy)

Creates a new SPARQL Graph Store HTTP Protocol Connector.

Declaration
public SparqlHttpProtocolConnector(Uri serviceUri, IWebProxy proxy)
Parameters
Type Name Description
System.Uri serviceUri

URI of the Protocol Server.

System.Net.IWebProxy proxy

Proxy Server.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

SparqlHttpProtocolConnector(Uri)

Creates a new SPARQL Graph Store HTTP Protocol Connector.

Declaration
public SparqlHttpProtocolConnector(Uri serviceUri)
Parameters
Type Name Description
System.Uri serviceUri

URI of the Protocol Server.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

Fields

| Improve this Doc View Source

_serviceUri

URI of the Protocol Server.

Declaration
protected string _serviceUri
Field Value
Type Description
string
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

_writerMimeTypeDefinition

The MIME type of the syntax to use when sending RDF data to the server.

Declaration
protected MimeTypeDefinition _writerMimeTypeDefinition
Field Value
Type Description
MimeTypeDefinition
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

Properties

| Improve this Doc View Source

DeleteSupported

Returns that deleting Graphs is supported.

Declaration
public override bool DeleteSupported { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncHttpConnector.DeleteSupported
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

IOBehaviour

Gets the IO Behaviour of SPARQL Graph Store protocol based stores.

Declaration
public override IOBehaviour IOBehaviour { get; }
Property Value
Type Description
IOBehaviour
Overrides
BaseAsyncHttpConnector.IOBehaviour
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

IsReadOnly

Gets that the Store is not read-only.

Declaration
public override bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncHttpConnector.IsReadOnly
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

IsReady

Gets that the Store is ready.

Declaration
public override bool IsReady { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncHttpConnector.IsReady
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

ListGraphsSupported

Returns that listing Graphs is not supported.

Declaration
public override bool ListGraphsSupported { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncHttpConnector.ListGraphsSupported
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

UpdateSupported

Gets that Updates are supported.

Declaration
public override bool UpdateSupported { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncHttpConnector.UpdateSupported
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

Methods

| Improve this Doc View Source

DeleteGraph(string, AsyncStorageCallback, object)

Deletes a Graph from the store asynchronously.

Declaration
public override void DeleteGraph(string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
string graphUri

URI of the graph to delete.

AsyncStorageCallback callback

Callback.

System.Object state

State to pass to the callback.

Overrides
BaseAsyncHttpConnector.DeleteGraph(string, AsyncStorageCallback, object)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

DeleteGraph(string)

Deletes a Graph from the store.

Declaration
public virtual void DeleteGraph(string graphUri)
Parameters
Type Name Description
string graphUri

URI of the Graph to delete.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

DeleteGraph(Uri)

Deletes a Graph from the store.

Declaration
public virtual void DeleteGraph(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri

URI of the Graph to delete.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

DeleteGraphAsync(string, CancellationToken)

Deletes a graph from the store asynchronously.

Declaration
public override Task DeleteGraphAsync(string graphName, CancellationToken cancellationToken)
Parameters
Type Name Description
string graphName

Name of the graph to delete.

System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
Overrides
BaseAsyncHttpConnector.DeleteGraphAsync(string, CancellationToken)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

HasGraph(string)

Sends a HEAD Command to the Protocol Server to determine whether a given Graph exists.

Declaration
public virtual bool HasGraph(string graphUri)
Parameters
Type Name Description
string graphUri

URI of the Graph to check for.

Returns
Type Description
System.Boolean
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

HasGraph(Uri)

Sends a HEAD Command to the Protocol Server to determine whether a given Graph exists.

Declaration
public virtual bool HasGraph(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri

URI of the Graph to check for.

Returns
Type Description
System.Boolean
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

ListGraphNames()

Gets an enumeration of the names of the graphs in the store.

Declaration
public virtual IEnumerable<string> ListGraphNames()
Returns
Type Description
System.Collections.Generic.IEnumerable<T><string>
Remarks

Implementations should implement this method only if they need to provide a custom way of listing Graphs. If the Store for which you are providing a manager can efficiently return the Graphs using a SELECT DISTINCT ?g WHERE { GRAPH ?g { ?s ?p ?o } } query then there should be no need to implement this function.

| Improve this Doc View Source

ListGraphs()

Throws an exception as listing graphs in a SPARQL Graph Store HTTP Protocol does not support listing graphs.

Declaration
[Obsolete("Replaced by ListGraphNames")]
public virtual IEnumerable<Uri> ListGraphs()
Returns
Type Description
System.Collections.Generic.IEnumerable<T><System.Uri>
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

Exceptions
Type Condition
System.NotSupportedException

Thrown since SPARQL Graph Store HTTP Protocol does not support listing graphs.

| Improve this Doc View Source

ListGraphs(AsyncStorageCallback, object)

Lists the Graphs in the Store asynchronously.

Declaration
[Obsolete("Replaced with ListGraphsAsync(CancellationToken)")]
public override void ListGraphs(AsyncStorageCallback callback, object state)
Parameters
Type Name Description
AsyncStorageCallback callback

Callback.

System.Object state

State to pass to the callback.

Overrides
BaseAsyncHttpConnector.ListGraphs(AsyncStorageCallback, object)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

ListGraphsAsync(CancellationToken)

List the names of the graph on the remote server asynchronously.

Declaration
public override Task<IEnumerable<string>> ListGraphsAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><string>>

Task that returns the list of graph names.

Overrides
BaseAsyncHttpConnector.ListGraphsAsync(CancellationToken)
Remarks

This implementation uses a SPARQL query to list the names of the graphs in the store. Many stores support more efficient means of listing graphs and so this method SHOULD be overridden. If the store does not implement the IAsyncQueryableStorage interface, then this method MUST be overridden.

Exceptions
Type Condition
RdfStorageException

Raised if the store does not support the asynchronous SPARQL query required to retrieve a list of graph names.

| Improve this Doc View Source

LoadGraph(IGraph, string, AsyncStorageCallback, object)

Loads a Graph from the Protocol Server.

Declaration
public override void LoadGraph(IGraph g, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IGraph g

Graph to load into.

string graphUri

URI of the Graph to load.

AsyncStorageCallback callback

Callback.

System.Object state

State to pass to the callback.

Overrides
BaseAsyncHttpConnector.LoadGraph(IGraph, string, AsyncStorageCallback, object)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

LoadGraph(IGraph, string)

Loads a Graph from the Protocol Server.

Declaration
public virtual void LoadGraph(IGraph g, string graphUri)
Parameters
Type Name Description
IGraph g

Graph to load into.

string graphUri

URI of the Graph to load.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

LoadGraph(IGraph, Uri)

Loads a Graph from the Protocol Server.

Declaration
public virtual void LoadGraph(IGraph g, Uri graphUri)
Parameters
Type Name Description
IGraph g

Graph to load into.

System.Uri graphUri

URI of the Graph to load.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)

Loads a Graph from the Protocol Server.

Declaration
public override void LoadGraph(IRdfHandler handler, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler.

string graphUri

URI of the Graph to load.

AsyncStorageCallback callback

Callback.

System.Object state

State to pass to the callback.

Overrides
BaseAsyncHttpConnector.LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

LoadGraph(IRdfHandler, string)

Loads a Graph from the Protocol Server.

Declaration
public virtual void LoadGraph(IRdfHandler handler, string graphUri)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler.

string graphUri

URI of the Graph to load.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

LoadGraph(IRdfHandler, Uri)

Loads a Graph from the Protocol Server.

Declaration
public virtual void LoadGraph(IRdfHandler handler, Uri graphUri)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler.

System.Uri graphUri

URI of the Graph to load.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

LoadGraphAsync(IRdfHandler, string, CancellationToken)

Loads a graph from the store asynchronously.

Declaration
public override Task LoadGraphAsync(IRdfHandler handler, string graphName, CancellationToken cancellationToken)
Parameters
Type Name Description
IRdfHandler handler

The handler to receive the loaded triples.

string graphName

Name of the graph to load.

System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
Overrides
BaseAsyncHttpConnector.LoadGraphAsync(IRdfHandler, string, CancellationToken)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

SaveGraph(IGraph, AsyncStorageCallback, object)

Saves a Graph to the Protocol Server.

Declaration
public override void SaveGraph(IGraph g, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IGraph g

Graph to save.

AsyncStorageCallback callback

Callback.

System.Object state

State to pass to the callback.

Overrides
BaseAsyncHttpConnector.SaveGraph(IGraph, AsyncStorageCallback, object)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

SaveGraph(IGraph)

Saves a Graph to the Protocol Server.

Declaration
public virtual void SaveGraph(IGraph g)
Parameters
Type Name Description
IGraph g

Graph to save.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

SaveGraphAsync(IGraph, CancellationToken)

Saves a Graph to the Store asynchronously.

Declaration
public override Task SaveGraphAsync(IGraph g, CancellationToken cancellationToken)
Parameters
Type Name Description
IGraph g

Graph to save.

System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
Overrides
BaseAsyncHttpConnector.SaveGraphAsync(IGraph, CancellationToken)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

SerializeConfiguration(ConfigurationSerializationContext)

Serializes the connection's configuration.

Declaration
public virtual void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type Name Description
ConfigurationSerializationContext context

Configuration Serialization Context.

Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

ToString()

Gets a String representation of the connection.

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

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

| Improve this Doc View Source

UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)

Updates a Graph on the Protocol Server.

Declaration
public override void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
string graphUri

URI of the Graph to update.

System.Collections.Generic.IEnumerable<T><Triple> additions

Triples to be added.

System.Collections.Generic.IEnumerable<T><Triple> removals

Triples to be removed.

AsyncStorageCallback callback

Callback.

System.Object state

State to pass to the callback.

Overrides
BaseAsyncHttpConnector.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
Remarks

Note: The SPARQL Graph Store HTTP Protocol for Graph Management only supports the addition of Triples to a Graph and does not support removal of Triples from a Graph. If you attempt to remove Triples then an RdfStorageException will be thrown.

| Improve this Doc View Source

UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>)

Updates a Graph on the Protocol Server.

Declaration
public virtual void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type Name Description
string graphUri

URI of the Graph to update.

System.Collections.Generic.IEnumerable<T><Triple> additions

Triples to be added.

System.Collections.Generic.IEnumerable<T><Triple> removals

Triples to be removed.

Remarks

Note: The SPARQL Graph Store HTTP Protocol for Graph Management only supports the addition of Triples to a Graph and does not support removal of Triples from a Graph. If you attempt to remove Triples then an RdfStorageException will be thrown.

| Improve this Doc View Source

UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)

Updates a Graph on the Protocol Server.

Declaration
public virtual void UpdateGraph(Uri graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type Name Description
System.Uri graphUri

URI of the Graph to update.

System.Collections.Generic.IEnumerable<T><Triple> additions

Triples to be added.

System.Collections.Generic.IEnumerable<T><Triple> removals

Triples to be removed.

Remarks

Note: The SPARQL Graph Store HTTP Protocol for Graph Management only supports the addition of Triples to a Graph and does not support removal of Triples from a Graph. If you attempt to remove Triples then an RdfStorageException will be thrown.

| Improve this Doc View Source

UpdateGraph(IRefNode, IEnumerable<Triple>, IEnumerable<Triple>)

Updates a Graph in the Store.

Declaration
public virtual void UpdateGraph(IRefNode graphName, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type Name Description
IRefNode graphName

Name of the Graph to update.

System.Collections.Generic.IEnumerable<T><Triple> additions

Triples to add to the Graph.

System.Collections.Generic.IEnumerable<T><Triple> removals

Triples to remove from the Graph.

Remarks

Note: Not all Stores are capable of supporting update at the individual Triple level and as such it is acceptable for such a Store to throw a NotSupportedException or an RdfStorageException if the Store cannot provide this functionality.

Behaviour of this method with regards to non-existent Graph is up to the implementor, it may create a new empty Graph and apply the updates to that or it may throw an error. Implementors should state in the XML comments for their implementation what behaviour is implemented.

Implementers MUST allow for either the additions or removals argument to be null.

Exceptions
Type Condition
System.NotSupportedException

May be thrown if the underlying Store is not capable of doing Updates at the Triple level.

RdfStorageException

May be thrown if the underlying Store is not capable of doing Updates at the Triple level or if some error occurs while attempting the Update.

| Improve this Doc View Source

UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)

Updates a graph in the store asynchronously.

Declaration
public override Task UpdateGraphAsync(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, CancellationToken cancellationToken)
Parameters
Type Name Description
string graphUri
System.Collections.Generic.IEnumerable<T><Triple> additions

Triples to be added.

System.Collections.Generic.IEnumerable<T><Triple> removals

Triples to be removed.

System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
Overrides
BaseAsyncHttpConnector.UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
Remarks

The SPARQL Graph Store HTTP Protocol is defined as part of SPARQL 1.1 and is currently a working draft so implementations are not guaranteed to be fully compliant with the draft and the protocol may change in the future.

Note: While this connector supports the update of a Graph the Graph Store HTTP Protocol only allows for the addition of data to an existing Graph and not the removal of data, therefore any calls to UpdateGraph() that would require the removal of Triple(s) will result in an error.

Implements

IConfigurationSerializable
IAsyncStorageProvider
IStorageProvider
IStorageCapabilities
System.IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • SparqlHttpProtocolConnector(string, IWebProxy)
    • SparqlHttpProtocolConnector(string, MimeTypeDefinition)
    • SparqlHttpProtocolConnector(Uri, IWebProxy)
    • SparqlHttpProtocolConnector(Uri)
  • Fields
    • _serviceUri
    • _writerMimeTypeDefinition
  • Properties
    • DeleteSupported
    • IOBehaviour
    • IsReadOnly
    • IsReady
    • ListGraphsSupported
    • UpdateSupported
  • Methods
    • DeleteGraph(string, AsyncStorageCallback, object)
    • DeleteGraph(string)
    • DeleteGraph(Uri)
    • DeleteGraphAsync(string, CancellationToken)
    • HasGraph(string)
    • HasGraph(Uri)
    • ListGraphNames()
    • ListGraphs()
    • ListGraphs(AsyncStorageCallback, object)
    • ListGraphsAsync(CancellationToken)
    • LoadGraph(IGraph, string, AsyncStorageCallback, object)
    • LoadGraph(IGraph, string)
    • LoadGraph(IGraph, Uri)
    • LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)
    • LoadGraph(IRdfHandler, string)
    • LoadGraph(IRdfHandler, Uri)
    • LoadGraphAsync(IRdfHandler, string, CancellationToken)
    • SaveGraph(IGraph, AsyncStorageCallback, object)
    • SaveGraph(IGraph)
    • SaveGraphAsync(IGraph, CancellationToken)
    • SerializeConfiguration(ConfigurationSerializationContext)
    • ToString()
    • UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
    • UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>)
    • UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
    • UpdateGraph(IRefNode, IEnumerable<Triple>, IEnumerable<Triple>)
    • UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
  • Implements
  • Extension Methods
Back to top Generated by DocFX