Click or drag to resize

SparqlConnector Class

Class for connecting to any SPARQL Endpoint as a read-only Store.
Inheritance Hierarchy

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

The SparqlConnector type exposes the following members.

Constructors
  NameDescription
Public methodSparqlConnector(Uri)
Creates a new SPARQL Connector which uses the given SPARQL Endpoint.
Public methodSparqlConnector(SparqlRemoteEndpoint)
Creates a new SPARQL Connector which uses the given SPARQL Endpoint.
Public methodSparqlConnector(Uri, SparqlConnectorLoadMethod)
Creates a new SPARQL Connector which uses the given SPARQL Endpoint.
Public methodSparqlConnector(SparqlRemoteEndpoint, SparqlConnectorLoadMethod)
Creates a new SPARQL Connector which uses the given SPARQL Endpoint.
Top
Properties
  NameDescription
Public propertyDeleteSupported
Returns that deleting graphs is not supported.
Public propertyEndpoint
Gets the underlying SparqlRemoteEndpoint which this class is a wrapper around.
Public propertyIOBehaviour
Gets the IO Behaviour of SPARQL Connections.
Public propertyIsReadOnly
Returns that the Connection is read-only.
Public propertyIsReady
Returns that the Connection is ready.
Public propertyListGraphsSupported
Returns that listing graphs is supported.
Public propertyParentServer
Gets the parent server (if any).
Public propertySkipLocalParsing
Controls whether the Query will be parsed locally to accurately determine its Query Type for processing the response.
Public propertyTimeout
Gets/Sets the HTTP Timeout in milliseconds used for communicating with the SPARQL Endpoint.
Public propertyUpdateSupported
Returns that Updates are not supported since this connection is read-only.
Top
Methods
  NameDescription
Public methodDeleteGraph(String)
Throws an exception as this connector provides a read-only connection.
Public methodDeleteGraph(Uri)
Throws an exception as this connector provides a read-only connection.
Public methodDispose
Disposes of the Connection.
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 methodListGraphs
Lists the Graphs in the Store.
Public methodLoadGraph(IGraph, String)
Loads a Graph from the SPARQL Endpoint.
Public methodLoadGraph(IGraph, Uri)
Loads a Graph from the SPARQL Endpoint.
Public methodLoadGraph(IRdfHandler, String)
Loads a Graph from the SPARQL Endpoint.
Public methodLoadGraph(IRdfHandler, Uri)
Loads a Graph from the SPARQL Endpoint.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodQuery(String)
Makes a Query against the SPARQL Endpoint.
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String)
Makes a Query against the SPARQL Endpoint processing the results with an appropriate handler from those provided.
Public methodSaveGraph
Throws an error since this Manager is read-only.
Public methodSerializeConfiguration
Serializes the connection's configuration.
Public methodToString
Gets a String which gives details of the Connection.
(Overrides ObjectToString.)
Public methodUpdateGraph(String, IEnumerableTriple, IEnumerableTriple)
Throws an error since this Manager is read-only.
Public methodUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple)
Throws an error since this Manager is read-only.
Top
Fields
  NameDescription
Protected field_endpoint
Underlying SPARQL query endpoint.
Protected field_mode
Method for loading graphs.
Protected field_skipLocalParsing
Whether to skip local parsing.
Protected field_timeout
Timeout for endpoints.
Top
Remarks

This class is effectively a read-only wrapper around a SparqlRemoteEndpoint using it with it's default settings, if you only need to query an endpoint and require more control over the settings used to access the endpoint you should use that class directly or use the constructors which allow you to provide your own pre-configure SparqlRemoteEndpoint instance.

Unlike other HTTP based connectors this connector does not derive from BaseHttpConnector - if you need to specify proxy information you should do so on the SPARQL Endpoint you are wrapping either by providing a SparqlRemoteEndpoint instance pre-configured with the proxy settings or by accessing the endpoint via the Endpoint property and programmatically adding the settings.

See Also