Show / Hide Table of Contents

Class StardogV2Connector

A Stardog Connector for connecting to Stardog version 2.* servers.

Inheritance
System.Object
BaseHttpConnector
BaseAsyncHttpConnector
BaseStardogConnector
StardogV1Connector
StardogV2Connector
StardogV3Connector
Implements
IAsyncTransactionalStorage
IConfigurationSerializable
ITransactionalStorage
IReasoningQueryableStorage
IUpdateableStorage
IQueryableStorage
IStorageProvider
IAsyncUpdateableStorage
IAsyncQueryableStorage
IAsyncStorageProvider
IStorageCapabilities
System.IDisposable
Inherited Members
BaseStardogConnector.AnonymousUser
BaseStardogConnector.Server
BaseStardogConnector.BaseUri
BaseStardogConnector.KbId
BaseStardogConnector.Reasoning
BaseStardogConnector.IOBehaviour
BaseStardogConnector.ListGraphsSupported
BaseStardogConnector.IsReady
BaseStardogConnector.IsReadOnly
BaseStardogConnector.UpdateSupported
BaseStardogConnector.DeleteSupported
BaseStardogConnector.ParentServer
BaseStardogConnector.Query(string)
BaseStardogConnector.Query(string, bool)
BaseStardogConnector.Query(IRdfHandler, ISparqlResultsHandler, string)
BaseStardogConnector.Query(IRdfHandler, ISparqlResultsHandler, string, bool)
BaseStardogConnector.LoadGraph(IGraph, Uri)
BaseStardogConnector.LoadGraph(IRdfHandler, Uri)
BaseStardogConnector.LoadGraph(IGraph, string)
BaseStardogConnector.LoadGraph(IRdfHandler, string)
BaseStardogConnector.SaveGraph(IGraph)
BaseStardogConnector.UpdateGraph(IRefNode, IEnumerable<Triple>, IEnumerable<Triple>)
BaseStardogConnector.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
BaseStardogConnector.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>)
BaseStardogConnector.DeleteGraph(Uri)
BaseStardogConnector.DeleteGraph(string)
BaseStardogConnector.ListGraphs()
BaseStardogConnector.ListGraphNames()
BaseStardogConnector.AsyncParentServer
BaseStardogConnector.SaveGraph(IGraph, AsyncStorageCallback, object)
BaseStardogConnector.SaveGraphAsync(IGraph, CancellationToken)
BaseStardogConnector.SaveGraphAsync(IGraph, AsyncStorageCallback, object)
BaseStardogConnector.SaveGraphAsync(string, bool, IGraph, AsyncStorageCallback, object)
BaseStardogConnector.SaveGraphAsync(string, bool, IGraph, CancellationToken)
BaseStardogConnector.LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)
BaseStardogConnector.LoadGraphAsync(IRdfHandler, string, CancellationToken)
BaseStardogConnector.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseStardogConnector.UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseStardogConnector.UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
BaseStardogConnector.UpdateGraphAsync(string, bool, string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseStardogConnector.MakeAddTriplesRequestMessage(string, string, IEnumerable<Triple>)
BaseStardogConnector.MakeRemoveTriplesRequestMessage(string, string, IEnumerable<Triple>)
BaseStardogConnector.UpdateGraphAsync(string, bool, string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
BaseStardogConnector.DeleteGraph(string, AsyncStorageCallback, object)
BaseStardogConnector.DeleteGraphAsync(string, bool, string, AsyncStorageCallback, object)
BaseStardogConnector.MakeDeleteGraphRequestMessage(string, string)
BaseStardogConnector.DeleteGraphAsync(string, CancellationToken)
BaseStardogConnector.DeleteGraphAsync(string, string, bool, CancellationToken)
BaseStardogConnector.Query(string, AsyncStorageCallback, object)
BaseStardogConnector.QueryAsync(string, CancellationToken)
BaseStardogConnector.Query(IRdfHandler, ISparqlResultsHandler, string, AsyncStorageCallback, object)
BaseStardogConnector.QueryAsync(IRdfHandler, ISparqlResultsHandler, string, CancellationToken)
BaseStardogConnector.CreateRequest(string, string, string, Dictionary<string, string>)
BaseStardogConnector.CreateRequest(string, string, HttpMethod, Dictionary<string, string>)
BaseStardogConnector.BeginTransaction(bool)
BaseStardogConnector.CommitTransaction(string)
BaseStardogConnector.RollbackTransaction(string)
BaseStardogConnector.Begin()
BaseStardogConnector.Begin(bool)
BaseStardogConnector.Commit()
BaseStardogConnector.Rollback()
BaseStardogConnector.Begin(AsyncStorageCallback, object)
BaseStardogConnector.BeginAsync(CancellationToken)
BaseStardogConnector.Commit(AsyncStorageCallback, object)
BaseStardogConnector.CommitAsync(CancellationToken)
BaseStardogConnector.Rollback(AsyncStorageCallback, object)
BaseStardogConnector.RollbackAsync(CancellationToken)
BaseStardogConnector.Dispose(bool)
BaseStardogConnector.ToString()
BaseStardogConnector.SerializeConfiguration(ConfigurationSerializationContext)
BaseAsyncHttpConnector.LoadGraph(IGraph, Uri, AsyncStorageCallback, object)
BaseAsyncHttpConnector.LoadGraph(IGraph, string, AsyncStorageCallback, object)
BaseAsyncHttpConnector.LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, object)
BaseAsyncHttpConnector.LoadGraphAsync(IGraph, string, CancellationToken)
BaseAsyncHttpConnector.LoadGraphAsync(HttpRequestMessage, IRdfHandler, AsyncStorageCallback, object)
BaseAsyncHttpConnector.LoadGraphAsync(HttpRequestMessage, IRdfHandler, CancellationToken)
BaseAsyncHttpConnector.SaveGraphAsync(HttpRequestMessage, IRdfWriter, IGraph, AsyncStorageCallback, object)
BaseAsyncHttpConnector.SaveGraphAsync(HttpRequestMessage, IGraph, AsyncStorageCallback, object)
BaseAsyncHttpConnector.SaveGraphAsync(HttpRequestMessage, CancellationToken)
BaseAsyncHttpConnector.SaveGraphAsync(HttpWebRequest, IRdfWriter, IGraph, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraphAsync(HttpWebRequest, IRdfWriter, Uri, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraphAsync(HttpRequestMessage, IRdfWriter, Uri, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseAsyncHttpConnector.UpdateGraphAsync(HttpRequestMessage, IRdfWriter, IEnumerable<Triple>, CancellationToken)
BaseAsyncHttpConnector.DeleteGraph(Uri, AsyncStorageCallback, object)
BaseAsyncHttpConnector.DeleteGraphAsync(HttpWebRequest, bool, string, AsyncStorageCallback, object)
BaseAsyncHttpConnector.DeleteGraphAsync(HttpRequestMessage, bool, string, AsyncStorageCallback, object)
BaseAsyncHttpConnector.DeleteGraphAsync(HttpRequestMessage, bool, CancellationToken)
BaseAsyncHttpConnector.ListGraphs(AsyncStorageCallback, object)
BaseAsyncHttpConnector.ListGraphsAsync(CancellationToken)
BaseAsyncHttpConnector.UriFactory
BaseAsyncHttpConnector.MakeRequestSequence(IEnumerable<HttpRequestMessage>, AsyncStorageCallback, object)
BaseHttpConnector.HttpClient
BaseHttpConnector.HttpClientHandler
BaseHttpConnector.SetProxy(string)
BaseHttpConnector.SetProxy(Uri)
BaseHttpConnector.Proxy
BaseHttpConnector.ClearProxy()
BaseHttpConnector.SetProxyCredentials(string, string)
BaseHttpConnector.SetProxyCredentials(string, string, string)
BaseHttpConnector.ProxyCredentials
BaseHttpConnector.ClearProxyCredentials()
BaseHttpConnector.Timeout
BaseHttpConnector.SerializeStandardConfig(INode, ConfigurationSerializationContext)
BaseHttpConnector.SetCredentials(string, string)
BaseHttpConnector.Dispose()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, 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 Source

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
System.Net.Http.HttpClientHandler httpClientHandler
| Improve this Doc View Source

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.

System.Net.IWebProxy proxy

Proxy Server.

| Improve this Doc View Source

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.

System.Net.IWebProxy proxy

Proxy Server.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

System.Net.IWebProxy proxy

Proxy Server.

| Improve this Doc View Source

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.

System.Net.IWebProxy proxy

Proxy Server.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

StardogV2Connector(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.

Methods

| Improve this Doc View Source

AddStardogHeaders(HttpRequestMessage)

Adds Stardog specific request headers.

Declaration
protected override void AddStardogHeaders(HttpRequestMessage request)
Parameters
Type Name Description
System.Net.Http.HttpRequestMessage request
Overrides
BaseStardogConnector.AddStardogHeaders(HttpRequestMessage)
| Improve this Doc View Source

AddStardogHeaders(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
System.Net.HttpWebRequest request
Overrides
BaseStardogConnector.AddStardogHeaders(HttpWebRequest)
| Improve this Doc View Source

GetReasoningParameter()

Get the query string parameter that specifies the current reasoning mode.

Declaration
protected override string GetReasoningParameter()
Returns
Type Description
string
Overrides
BaseStardogConnector.GetReasoningParameter()
| 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
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.

| Improve this Doc View Source

Update(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.

| Improve this Doc View Source

UpdateAsync(string, CancellationToken)

Updates the store asynchronously.

Declaration
public Task UpdateAsync(string sparqlUpdates, CancellationToken cancellationToken)
Parameters
Type Name Description
string sparqlUpdates
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task

Implements

IAsyncTransactionalStorage
IConfigurationSerializable
ITransactionalStorage
IReasoningQueryableStorage
IUpdateableStorage
IQueryableStorage
IStorageProvider
IAsyncUpdateableStorage
IAsyncQueryableStorage
IAsyncStorageProvider
IStorageCapabilities
System.IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • StardogV2Connector(string, string, HttpClientHandler)
    • StardogV2Connector(string, string, IWebProxy)
    • StardogV2Connector(string, string, string, string, IWebProxy)
    • StardogV2Connector(string, string, string, string)
    • StardogV2Connector(string, string, StardogReasoningMode, IWebProxy)
    • StardogV2Connector(string, string, StardogReasoningMode, string, string, IWebProxy)
    • StardogV2Connector(string, string, StardogReasoningMode, string, string)
    • StardogV2Connector(string, string, StardogReasoningMode)
    • StardogV2Connector(string, string)
  • Methods
    • AddStardogHeaders(HttpRequestMessage)
    • AddStardogHeaders(HttpWebRequest)
    • GetReasoningParameter()
    • Update(string, AsyncStorageCallback, object)
    • Update(string)
    • UpdateAsync(string, CancellationToken)
  • Implements
  • Extension Methods
Back to top Generated by DocFX