Show / Hide Table of Contents

Class StardogV2Connector

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

Inheritance
object
BaseHttpConnector
BaseAsyncHttpConnector
BaseStardogConnector
StardogV1Connector
StardogV2Connector
StardogV3Connector
Implements
IAsyncTransactionalStorage
IConfigurationSerializable
ITransactionalStorage
IReasoningQueryableStorage
IUpdateableStorage
IQueryableStorage
IStorageProvider
IAsyncUpdateableStorage
IAsyncQueryableStorage
IAsyncStorageProvider
IStorageCapabilities
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

| Edit this page 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.

| Edit this page 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
HttpClientHandler httpClientHandler
| Edit this page 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.

IWebProxy proxy

Proxy Server.

| Edit this page 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.

| Edit this page 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.

IWebProxy proxy

Proxy Server.

| Edit this page 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.

| Edit this page 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.

IWebProxy proxy

Proxy Server.

| Edit this page 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.

| Edit this page 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.

IWebProxy proxy

Proxy Server.

Methods

| Edit this page View Source

AddStardogHeaders(HttpRequestMessage)

Adds Stardog specific request headers.

Declaration
protected override void AddStardogHeaders(HttpRequestMessage request)
Parameters
Type Name Description
HttpRequestMessage request
Overrides
BaseStardogConnector.AddStardogHeaders(HttpRequestMessage)
| Edit this page 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
HttpWebRequest request
Overrides
BaseStardogConnector.AddStardogHeaders(HttpWebRequest)
| Edit this page 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()
| Edit this page 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.

| Edit this page 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.

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.

| Edit this page View Source

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

Implements

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

Extension Methods

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