Class StardogV2Connector
A Stardog Connector for connecting to Stardog version 2.* servers.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public class StardogV2Connector : StardogV1Connector, IAsyncTransactionalStorage, IConfigurationSerializable, ITransactionalStorage, IReasoningQueryableStorage, IUpdateableStorage, IQueryableStorage, IStorageProvider, IAsyncUpdateableStorage, IAsyncQueryableStorage, IAsyncStorageProvider, IStorageCapabilities, IDisposable
Constructors
| Edit this page View SourceStardogV2Connector(string, string)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
StardogV2Connector(string, string, HttpClientHandler)
Creates a new connection to a Stardog store.
Declaration
public StardogV2Connector(string baseUri, string kbId, HttpClientHandler httpClientHandler)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | |
| string | kbId | |
| HttpClientHandler | httpClientHandler |
StardogV2Connector(string, string, IWebProxy)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID, IWebProxy proxy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
| IWebProxy | proxy | Proxy Server. |
StardogV2Connector(string, string, string, string)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID, string username, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
| string | username | Username. |
| string | password | Password. |
StardogV2Connector(string, string, string, string, IWebProxy)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID, string username, string password, IWebProxy proxy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
| string | username | Username. |
| string | password | Password. |
| IWebProxy | proxy | Proxy Server. |
StardogV2Connector(string, string, StardogReasoningMode)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID, StardogReasoningMode reasoning)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
| StardogReasoningMode | reasoning | Reasoning Mode. |
StardogV2Connector(string, string, StardogReasoningMode, IWebProxy)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID, StardogReasoningMode reasoning, IWebProxy proxy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
| StardogReasoningMode | reasoning | Reasoning Mode. |
| IWebProxy | proxy | Proxy Server. |
StardogV2Connector(string, string, StardogReasoningMode, string, string)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID, StardogReasoningMode reasoning, string username, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
| StardogReasoningMode | reasoning | Reasoning Mode. |
| string | username | Username. |
| string | password | Password. |
StardogV2Connector(string, string, StardogReasoningMode, string, string, IWebProxy)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID, StardogReasoningMode reasoning, string username, string password, IWebProxy proxy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUri | Base Uri of the Server. |
| string | kbID | Knowledge Base (i.e. Database) ID. |
| StardogReasoningMode | reasoning | Reasoning Mode. |
| string | username | Username. |
| string | password | Password. |
| IWebProxy | proxy | Proxy Server. |
Methods
| Edit this page View SourceAddStardogHeaders(HttpRequestMessage)
Adds Stardog specific request headers.
Declaration
protected override void AddStardogHeaders(HttpRequestMessage request)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestMessage | request |
Overrides
| Edit this page View SourceAddStardogHeaders(HttpWebRequest)
Adds Stardog specific request headers.
Declaration
[Obsolete("This method is obsolete and will be removed in a future release")]
protected override void AddStardogHeaders(HttpWebRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpWebRequest | request |
Overrides
| Edit this page View SourceGetReasoningParameter()
Get the query string parameter that specifies the current reasoning mode.
Declaration
protected override string GetReasoningParameter()
Returns
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceUpdate(string)
Executes a SPARQL Update against the Stardog store.
Declaration
public void Update(string sparqlUpdate)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sparqlUpdate | SPARQL Update. |
Remarks
Stardog executes SPARQL update requests in their own self contained transactions which do not interact with normal Stardog transactions that may be managed via this API. In some cases this can lead to unexpected behaviour, for example if you call Begin(), make an update and then call Rollback() the updates will not be rolled back.
Update(string, AsyncStorageCallback, object)
Executes a SPARQL Update against the Stardog store.
Declaration
public void Update(string sparqlUpdates, AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sparqlUpdates | SPARQL Update. |
| AsyncStorageCallback | callback | Callback. |
| object | state | State to pass to callback. |
Remarks
Stardog executes SPARQL update requests in their own self contained transactions which do not interact with normal Stardog transactions that may be managed via this API. In some cases this can lead to unexpected behaviour, for example if you call Begin(AsyncStorageCallback, object), make an update and then call Rollback(AsyncStorageCallback, object) the updates will not be rolled back.
UpdateAsync(string, CancellationToken)
Updates the store asynchronously.
Declaration
public Task UpdateAsync(string sparqlUpdates, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sparqlUpdates | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |