Click or drag to resize

SparqlHttpProtocolConnector Class

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

Namespace:  VDS.RDF.Storage
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class SparqlHttpProtocolConnector : BaseAsyncHttpConnector, 
	IConfigurationSerializable, IAsyncStorageProvider, IStorageCapabilities, IDisposable, IStorageProvider

The SparqlHttpProtocolConnector type exposes the following members.

Constructors
  NameDescription
Public methodSparqlHttpProtocolConnector(Uri)
Creates a new SPARQL Graph Store HTTP Protocol Connector.
Public methodSparqlHttpProtocolConnector(String, IWebProxy)
Creates a new SPARQL Graph Store HTTP Protocol Connector.
Public methodSparqlHttpProtocolConnector(String, MimeTypeDefinition)
Creates a new SPARQL Graph Store HTTP Protocol Connector.
Public methodSparqlHttpProtocolConnector(Uri, IWebProxy)
Creates a new SPARQL Graph Store HTTP Protocol Connector.
Top
Properties
  NameDescription
Public propertyAsyncParentServer
Gets the parent server (if any).
(Inherited from BaseAsyncHttpConnector.)
Public propertyDeleteSupported
Returns that deleting Graphs is supported.
(Overrides BaseAsyncHttpConnectorDeleteSupported.)
Public propertyIOBehaviour
Gets the IO Behaviour of SPARQL Graph Store protocol based stores.
(Overrides BaseAsyncHttpConnectorIOBehaviour.)
Public propertyIsReadOnly
Gets that the Store is not read-only.
(Overrides BaseAsyncHttpConnectorIsReadOnly.)
Public propertyIsReady
Gets that the Store is ready.
(Overrides BaseAsyncHttpConnectorIsReady.)
Public propertyListGraphsSupported
Returns that listing Graphs is not supported.
(Overrides BaseAsyncHttpConnectorListGraphsSupported.)
Public propertyParentServer
Gets the parent server (if any).
(Inherited from BaseAsyncHttpConnector.)
Protected propertyPassword
Password for accessing the Store.
(Inherited from BaseHttpConnector.)
Public propertyProxy
Gets/Sets a Proxy Server to be used.
(Inherited from BaseHttpConnector.)
Public propertyProxyCredentials
Gets/Sets Credentials to be used for Proxy Server.
(Inherited from BaseHttpConnector.)
Public propertyTimeout
Gets/Sets the HTTP Timeouts used specified in milliseconds.
(Inherited from BaseHttpConnector.)
Public propertyUpdateSupported
Gets that Updates are supported.
(Overrides BaseAsyncHttpConnectorUpdateSupported.)
Protected propertyUsername
Password for accessing the Store.
(Inherited from BaseHttpConnector.)
Top
Methods
  NameDescription
Protected methodApplyRequestOptions
Helper method which applies standard request options to the request, these currently include proxy settings and HTTP timeout.
(Inherited from BaseHttpConnector.)
Public methodClearProxy
Clears any in-use credentials so subsequent requests will not use a proxy server.
(Inherited from BaseHttpConnector.)
Public methodClearProxyCredentials
Clears the in-use proxy credentials so subsequent requests still use the proxy server but without credentials.
(Inherited from BaseHttpConnector.)
Public methodDeleteGraph(String)
Deletes a Graph from the store.
Public methodDeleteGraph(Uri)
Deletes a Graph from the store.
Public methodDeleteGraph(Uri, AsyncStorageCallback, Object)
Deletes a Graph from the Store.
(Inherited from BaseAsyncHttpConnector.)
Public methodDeleteGraph(String, AsyncStorageCallback, Object)
Deletes a Graph from the store asynchronously.
(Overrides BaseAsyncHttpConnectorDeleteGraph(String, AsyncStorageCallback, Object).)
Protected methodDeleteGraphAsync
Helper method for doing async delete operations, callers just need to provide an appropriately prepared HTTP request.
(Inherited from BaseAsyncHttpConnector.)
Public methodDispose
Disposes of the Connection.
(Overrides BaseAsyncHttpConnectorDispose.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasGraph(String)
Sends a HEAD Command to the Protocol Server to determine whether a given Graph exists.
Public methodHasGraph(Uri)
Sends a HEAD Command to the Protocol Server to determine whether a given Graph exists.
Public methodListGraphs
Throws an exception as listing graphs in a SPARQL Graph Store HTTP Protocol does not support listing graphs.
Public methodListGraphs(AsyncStorageCallback, Object)
Lists the Graphs in the Store asynchronously.
(Overrides BaseAsyncHttpConnectorListGraphs(AsyncStorageCallback, Object).)
Public methodLoadGraph(IGraph, String)
Loads a Graph from the Protocol Server.
Public methodLoadGraph(IGraph, Uri)
Loads a Graph from the Protocol Server.
Public methodLoadGraph(IRdfHandler, String)
Loads a Graph from the Protocol Server.
Public methodLoadGraph(IRdfHandler, Uri)
Loads a Graph from the Protocol Server.
Public methodLoadGraph(IGraph, Uri, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IGraph, String, AsyncStorageCallback, Object)
Loads a Graph from the Protocol Server.
(Overrides BaseAsyncHttpConnectorLoadGraph(IGraph, String, AsyncStorageCallback, Object).)
Public methodLoadGraph(IRdfHandler, Uri, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IRdfHandler, String, AsyncStorageCallback, Object)
Loads a Graph from the Protocol Server.
(Overrides BaseAsyncHttpConnectorLoadGraph(IRdfHandler, String, AsyncStorageCallback, Object).)
Protected methodLoadGraphAsync
Helper method for doing async load operations, callers just need to provide an appropriately prepared HTTP request.
(Inherited from BaseAsyncHttpConnector.)
Protected methodMakeRequestSequence
Helper method for doing async operations where a sequence of HTTP requests must be run.
(Inherited from BaseAsyncHttpConnector.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSaveGraph(IGraph)
Saves a Graph to the Protocol Server.
Public methodSaveGraph(IGraph, AsyncStorageCallback, Object)
Saves a Graph to the Protocol Server.
(Overrides BaseAsyncHttpConnectorSaveGraph(IGraph, AsyncStorageCallback, Object).)
Protected methodSaveGraphAsync
Helper method for doing async save operations, callers just need to provide an appropriately perpared HTTP requests and a RDF writer which will be used to write the data to the request body.
(Inherited from BaseAsyncHttpConnector.)
Public methodSerializeConfiguration
Serializes the connection's configuration.
Protected methodSerializeStandardConfig
Helper method which adds standard configuration information (proxy and timeout settings) to serialized configuration.
(Inherited from BaseHttpConnector.)
Public methodSetCredentials (Inherited from BaseHttpConnector.)
Public methodSetProxy(String)
Sets a Proxy Server to be used.
(Inherited from BaseHttpConnector.)
Public methodSetProxy(Uri)
Sets a Proxy Server to be used.
(Inherited from BaseHttpConnector.)
Public methodSetProxyCredentials(String, String)
Sets Credentials to be used for Proxy Server.
(Inherited from BaseHttpConnector.)
Public methodSetProxyCredentials(String, String, String)
Sets Credentials to be used for Proxy Server.
(Inherited from BaseHttpConnector.)
Public methodToString
Gets a String representation of the connection.
(Overrides ObjectToString.)
Public methodUpdateGraph(String, IEnumerableTriple, IEnumerableTriple)
Updates a Graph on the Protocol Server.
Public methodUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple)
Updates a Graph on the Protocol Server.
Public methodUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple, AsyncStorageCallback, Object)
Updates a Graph in the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodUpdateGraph(String, IEnumerableTriple, IEnumerableTriple, AsyncStorageCallback, Object)
Updates a Graph on the Protocol Server.
(Overrides BaseAsyncHttpConnectorUpdateGraph(String, IEnumerableTriple, IEnumerableTriple, AsyncStorageCallback, Object).)
Protected methodUpdateGraphAsync
Helper method for doing async update operations, callers just need to provide an appropriately prepared HTTP request and a RDF writer which will be used to write the data to the request body.
(Inherited from BaseAsyncHttpConnector.)
Top
Fields
  NameDescription
Protected field_serviceUri
URI of the Protocol Server.
Protected field_writerMimeTypeDefinition
The MIME type of the syntax to use when sending RDF data to the server.
Top
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.

See Also