Class StardogV2Connector
A Stardog Connector for connecting to Stardog version 2.* servers.
Inheritance
System.Object
StardogV2Connector
Implements
System.IDisposable
Inherited Members
BaseStardogConnector.Query(IRdfHandler, ISparqlResultsHandler, String, AsyncStorageCallback, Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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
| Improve this Doc View SourceStardogV2Connector(String, String)
Creates a new connection to a Stardog Store.
Declaration
public StardogV2Connector(string baseUri, string kbID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.String | kbID | Knowledge Base (i.e. Database) ID. |
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 |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.String | kbID | Knowledge Base (i.e. Database) ID. |
| System.Net.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 |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.String | kbID | Knowledge Base (i.e. Database) ID. |
| System.String | username | Username. |
| System.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 |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.String | kbID | Knowledge Base (i.e. Database) ID. |
| System.String | username | Username. |
| System.String | password | Password. |
| System.Net.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 |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.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 |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.String | kbID | Knowledge Base (i.e. Database) ID. |
| StardogReasoningMode | reasoning | Reasoning Mode. |
| System.Net.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 |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.String | kbID | Knowledge Base (i.e. Database) ID. |
| StardogReasoningMode | reasoning | Reasoning Mode. |
| System.String | username | Username. |
| System.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 |
|---|---|---|
| System.String | baseUri | Base Uri of the Server. |
| System.String | kbID | Knowledge Base (i.e. Database) ID. |
| StardogReasoningMode | reasoning | Reasoning Mode. |
| System.String | username | Username. |
| System.String | password | Password. |
| System.Net.IWebProxy | proxy | Proxy Server. |
Methods
| Improve this Doc View SourceAddStardogHeaders(HttpWebRequest)
Adds Stardog specific request headers.
Declaration
protected override void AddStardogHeaders(HttpWebRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.HttpWebRequest | request |
Overrides
| Improve this Doc View SourceGetReasoningParameter()
Get the query string parameter that specifies the current reasoning mode.
Declaration
protected override string GetReasoningParameter()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
| Improve this Doc View SourceUpdate(String)
Executes a SPARQL Update against the Stardog store.
Declaration
public void Update(string sparqlUpdate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.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.
|
Improve this Doc
View Source
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 |
|---|---|---|
| System.String | sparqlUpdates | SPARQL Update. |
| AsyncStorageCallback | callback | Callback. |
| System.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.
Implements
System.IDisposable