Click or drag to resize

FourStoreConnector Class

Class for connecting to 4store.
Inheritance Hierarchy

Namespace:  VDS.RDF.Storage
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class FourStoreConnector : BaseAsyncHttpConnector, 
	IAsyncUpdateableStorage, IAsyncQueryableStorage, IAsyncStorageProvider, IStorageCapabilities, IDisposable, 
	IConfigurationSerializable, IUpdateableStorage, IQueryableStorage, IStorageProvider

The FourStoreConnector type exposes the following members.

Constructors
  NameDescription
Public methodFourStoreConnector(String)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Public methodFourStoreConnector(String, Boolean)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Public methodFourStoreConnector(String, IWebProxy)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Public methodFourStoreConnector(String, Boolean, IWebProxy)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Top
Properties
  NameDescription
Public propertyAsyncParentServer
Gets the parent server (if any).
(Inherited from BaseAsyncHttpConnector.)
Public propertyDeleteSupported
Returns that deleting Graph is supported.
(Overrides BaseAsyncHttpConnectorDeleteSupported.)
Public propertyIOBehaviour
Gets the IO Behaviour of 4store.
(Overrides BaseAsyncHttpConnectorIOBehaviour.)
Public propertyIsReadOnly
Returns that the Connection is not read-only.
(Overrides BaseAsyncHttpConnectorIsReadOnly.)
Public propertyIsReady
Returns that the Connection is ready.
(Overrides BaseAsyncHttpConnectorIsReady.)
Public propertyListGraphsSupported
Returns that Listing Graphs is 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
Returns whether this connector has been instantiated with update support or not.
(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 4store server.
Public methodDeleteGraph(Uri)
Deletes a Graph from the 4store server.
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.
(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 a 4store 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 methodListGraphs
Lists the Graphs in the Store.
Public methodListGraphs(AsyncStorageCallback, Object)
Lists the Graphs in the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IGraph, String)
Loads a Graph from the 4store instance.
Public methodLoadGraph(IGraph, Uri)
Loads a Graph from the 4store instance.
Public methodLoadGraph(IRdfHandler, String)
Loads a Graph from the 4store instance.
Public methodLoadGraph(IRdfHandler, Uri)
Loads a Graph from the 4store instance using an RDF Handler.
Public methodLoadGraph(IGraph, String, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IGraph, Uri, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
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 Store asynchronously.
(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 methodQuery(String)
Makes a SPARQL Query against the underlying 4store Instance.
Public methodQuery(String, AsyncStorageCallback, Object)
Queries the store asynchronously.
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String)
Makes a SPARQL Query against the underlying 4store Instance processing the results with the appropriate handler from those provided.
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String, AsyncStorageCallback, Object)
Queries the store asynchronously.
Public methodSaveGraph(IGraph)
Saves a Graph to a 4store instance (Warning: Completely replaces any existing Graph with the same URI).
Public methodSaveGraph(IGraph, AsyncStorageCallback, Object)
Saves a Graph to the Store asynchronously.
(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 which gives details of the Connection.
(Overrides ObjectToString.)
Public methodUpdate(String)
Applies a SPARQL Update against 4store.
Public methodUpdate(String, AsyncStorageCallback, Object)
Updates the store asynchronously.
Public methodUpdateGraph(String, IEnumerableTriple, IEnumerableTriple)
Updates a Graph in the store.
Public methodUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple)
Updates a Graph in the store.
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 in the Store asychronously.
(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
Remarks

Depending on the version of RASQAL used for your 4store instance and the options it was built with some kinds of queries may not suceed or return unexpected results.

Prior to the 1.x releases 4store did not permit the saving of unamed Graphs to the Store or Triple level updates. There was a branch of 4store that supports Triple level updates and you could tell the connector if your 4store instance supports this when you instantiate it. From the 0.4.0 release of the library onwards this support was enabled by default since the 1.x builds of 4store have this feature integrated into them by default.

See Also