Click or drag to resize

BaseStardogConnector Class

Abstract implementation of a connector for Stardog that connects using the HTTP protocol.
Inheritance Hierarchy

Namespace:  VDS.RDF.Storage
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public abstract class BaseStardogConnector : BaseAsyncHttpConnector, 
	IAsyncQueryableStorage, IAsyncStorageProvider, IStorageCapabilities, IDisposable, IAsyncTransactionalStorage, 
	IConfigurationSerializable, IQueryableStorage, IStorageProvider, ITransactionalStorage, IReasoningQueryableStorage

The BaseStardogConnector type exposes the following members.

Constructors
  NameDescription
Protected methodBaseStardogConnector(String, String)
Creates a new connection to a Stardog Store.
Protected methodBaseStardogConnector(String, String, IWebProxy)
Creates a new connection to a Stardog Store.
Protected methodBaseStardogConnector(String, String, StardogReasoningMode)
Creates a new connection to a Stardog Store.
Protected methodBaseStardogConnector(String, String, String, String)
Creates a new connection to a Stardog Store.
Protected methodBaseStardogConnector(String, String, StardogReasoningMode, IWebProxy)
Creates a new connection to a Stardog Store.
Protected methodBaseStardogConnector(String, String, String, String, IWebProxy)
Creates a new connection to a Stardog Store.
Protected methodBaseStardogConnector(String, String, StardogReasoningMode, String, String)
Creates a new connection to a Stardog Store.
Protected methodBaseStardogConnector(String, String, StardogReasoningMode, String, String, IWebProxy)
Creates a new connection to a Stardog Store.
Top
Properties
  NameDescription
Public propertyAsyncParentServer
Gets the parent server.
(Overrides BaseAsyncHttpConnectorAsyncParentServer.)
Public propertyBaseUri
Gets the Base URI of the Stardog server.
Public propertyDeleteSupported
Returns that deleting graphs from the Stardog store is not yet supported (due to a .Net specific issue).
(Overrides BaseAsyncHttpConnectorDeleteSupported.)
Public propertyIOBehaviour
Gets the IO Behaviour of Stardog.
(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 propertyKbId
Gets the knowledge base ID being used by this connector.
Public propertyListGraphsSupported
Returns that listing Graphs is supported.
(Overrides BaseAsyncHttpConnectorListGraphsSupported.)
Public propertyParentServer
Gets the parent server.
(Overrides BaseAsyncHttpConnectorParentServer.)
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 propertyReasoning
Gets/Sets the reasoning mode to use for queries.
Public propertyTimeout
Gets/Sets the HTTP Timeouts used specified in milliseconds.
(Inherited from BaseHttpConnector.)
Public propertyUpdateSupported
Returns that Updates are supported on Stardog Stores.
(Overrides BaseAsyncHttpConnectorUpdateSupported.)
Protected propertyUsername
Password for accessing the Store.
(Inherited from BaseHttpConnector.)
Top
Methods
  NameDescription
Protected methodAddStardogHeaders
Adds Stardog specific request headers; reasoning needed for < 2.2.
Protected methodApplyRequestOptions
Helper method which applies standard request options to the request, these currently include proxy settings and HTTP timeout.
(Inherited from BaseHttpConnector.)
Public methodBegin
Begins a new Transaction.
Public methodBegin(Boolean)
Begins a new Transaction.
Public methodBegin(AsyncStorageCallback, Object)
Begins a transaction asynchronously.
Protected methodBeginTransaction
Start a transaction.
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 methodCommit
Commits the active Transaction.
Public methodCommit(AsyncStorageCallback, Object)
Commits a transaction asynchronously.
Protected methodCommitTransaction
Commit an open transaction.
Protected methodCreateRequest
Helper method for creating HTTP Requests to the Store.
Public methodDeleteGraph(String)
Deletes a Graph from the Stardog store.
Public methodDeleteGraph(Uri)
Deletes a Graph from the Stardog 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.
(Overrides BaseAsyncHttpConnectorDeleteGraph(String, AsyncStorageCallback, Object).)
Protected methodDeleteGraphAsync(HttpWebRequest, Boolean, String, AsyncStorageCallback, Object)
Helper method for doing async delete operations, callers just need to provide an appropriately prepared HTTP request.
(Inherited from BaseAsyncHttpConnector.)
Protected methodDeleteGraphAsync(String, Boolean, String, AsyncStorageCallback, Object)
Delete a graph as part of an open transaction.
Public methodDispose
Disposes of the Connector.
(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.)
Protected methodGetReasoningParameter
Get the query parameter string that specifies the current reasoning mode.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodListGraphs
Gets the list of Graphs in the Stardog store.
Public methodListGraphs(AsyncStorageCallback, Object)
Lists the Graphs in the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IGraph, String)
Loads a Graph from the Store.
Public methodLoadGraph(IGraph, Uri)
Loads a Graph from the Store.
Public methodLoadGraph(IRdfHandler, String)
Loads a Graph from the Store.
Public methodLoadGraph(IRdfHandler, Uri)
Loads a Graph from the Store.
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 Store using whatever reasoning mode is currently in-use.
Public methodQuery(String, Boolean)
Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use, the reasoning can be set by query.
Public methodQuery(String, AsyncStorageCallback, Object)
Queries the store asynchronously.
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String)
Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use processing the results using an appropriate handler from those provided.
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String, Boolean)
Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use processing the results using an appropriate handler from those provided, the reasoning can be set by query.
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String, AsyncStorageCallback, Object)
Queries the store asynchronously.
Public methodRollback
Rolls back the active Transaction.
Public methodRollback(AsyncStorageCallback, Object)
Rolls back a transaction asynchronously.
Protected methodRollbackTransaction
Rollback an open transaction.
Public methodSaveGraph(IGraph)
Saves a Graph into the Store (see remarks for notes on merge/overwrite behaviour).
Public methodSaveGraph(IGraph, AsyncStorageCallback, Object)
Saves a Graph to the Store asynchronously.
(Overrides BaseAsyncHttpConnectorSaveGraph(IGraph, AsyncStorageCallback, Object).)
Protected methodSaveGraphAsync(IGraph, AsyncStorageCallback, Object)
Saves a Graph to the Store asynchronously.
Protected methodSaveGraphAsync(HttpWebRequest, IRdfWriter, IGraph, AsyncStorageCallback, Object)
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.)
Protected methodSaveGraphAsync(String, Boolean, IGraph, AsyncStorageCallback, Object)
Save a graph to the database asynchronously within the context of an open transaction.
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 methodUpdateGraph(String, IEnumerableTriple, IEnumerableTriple)
Updates a Graph in the Stardog store.
Public methodUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple)
Updates a Graph in the Stardog 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(String, IEnumerableTriple, IEnumerableTriple, AsyncStorageCallback, Object)
Apply an update to a graph.
Protected methodUpdateGraphAsync(HttpWebRequest, IRdfWriter, Uri, IEnumerableTriple, AsyncStorageCallback, Object)
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.)
Protected methodUpdateGraphAsync(String, Boolean, String, IEnumerableTriple, IEnumerableTriple, AsyncStorageCallback, Object)
Apply an update to a graph as part of a transaction.
Top
Fields
  NameDescription
Public fieldStatic memberAnonymousUser
Constant for the default Anonymous user account and password used by Stardog if you have not supplied a shiro.ini file or otherwise disabled security.
Protected fieldServer
The underlying server connection.
Top
Remarks

Has full support for Stardog Transactions, connection is in auto-commit mode by default i.e. all write operations (Delete/Save/Update) will create and use a dedicated transaction for their operation, if the operation fails the transaction will automatically be rolled back. You can manage Transactions using the Begin(), Commit() and Rollback() methods.

The connector maintains a single transaction which is shared across all threads since Stardog is currently provides only MRSW (Multiple Reader Single Writer) concurrency and does not permit multiple transactions to occur simultaneously.

See Also