Show / Hide Table of Contents

Class AllegroGraphConnector

Class for connecting to an AllegroGraph Store.

Inheritance
object
BaseHttpConnector
BaseAsyncHttpConnector
BaseSesameHttpProtocolConnector
AllegroGraphConnector
Implements
IConfigurationSerializable
IAsyncUpdateableStorage
IAsyncQueryableStorage
IAsyncStorageProvider
IUpdateableStorage
IQueryableStorage
IStorageProvider
IStorageCapabilities
IDisposable
Inherited Members
BaseSesameHttpProtocolConnector._baseUri
BaseSesameHttpProtocolConnector._store
BaseSesameHttpProtocolConnector._repositoriesPrefix
BaseSesameHttpProtocolConnector._queryPath
BaseSesameHttpProtocolConnector._updatePath
BaseSesameHttpProtocolConnector._fullContextEncoding
BaseSesameHttpProtocolConnector._server
BaseSesameHttpProtocolConnector.BaseUri
BaseSesameHttpProtocolConnector.RepositoryName
BaseSesameHttpProtocolConnector.IOBehaviour
BaseSesameHttpProtocolConnector.UpdateSupported
BaseSesameHttpProtocolConnector.DeleteSupported
BaseSesameHttpProtocolConnector.ListGraphsSupported
BaseSesameHttpProtocolConnector.IsReady
BaseSesameHttpProtocolConnector.IsReadOnly
BaseSesameHttpProtocolConnector.ParentServer
BaseSesameHttpProtocolConnector.Query(string)
BaseSesameHttpProtocolConnector.Query(IRdfHandler, ISparqlResultsHandler, string)
BaseSesameHttpProtocolConnector.CreateRdfWriter()
BaseSesameHttpProtocolConnector.LoadGraph(IGraph, Uri)
BaseSesameHttpProtocolConnector.LoadGraph(IRdfHandler, Uri)
BaseSesameHttpProtocolConnector.LoadGraph(IGraph, string)
BaseSesameHttpProtocolConnector.LoadGraph(IRdfHandler, string)
BaseSesameHttpProtocolConnector.SaveGraph(IGraph)
BaseSesameHttpProtocolConnector.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
BaseSesameHttpProtocolConnector.UpdateGraph(IRefNode, IEnumerable<Triple>, IEnumerable<Triple>)
BaseSesameHttpProtocolConnector.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>)
BaseSesameHttpProtocolConnector.UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
BaseSesameHttpProtocolConnector.DeleteGraph(Uri)
BaseSesameHttpProtocolConnector.DeleteGraph(string)
BaseSesameHttpProtocolConnector.ListGraphs()
BaseSesameHttpProtocolConnector.ListGraphNames()
BaseSesameHttpProtocolConnector.ListGraphsAsync(CancellationToken)
BaseSesameHttpProtocolConnector.AsyncParentServer
BaseSesameHttpProtocolConnector.SaveGraph(IGraph, AsyncStorageCallback, object)
BaseSesameHttpProtocolConnector.SaveGraphAsync(HttpRequestMessage, IGraph, AsyncStorageCallback, object)
BaseSesameHttpProtocolConnector.SaveGraphAsync(HttpRequestMessage, CancellationToken)
BaseSesameHttpProtocolConnector.SaveGraphAsync(IGraph, CancellationToken)
BaseSesameHttpProtocolConnector.LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)
BaseSesameHttpProtocolConnector.LoadGraphAsync(IRdfHandler, string, CancellationToken)
BaseSesameHttpProtocolConnector.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
BaseSesameHttpProtocolConnector.DeleteGraph(string, AsyncStorageCallback, object)
BaseSesameHttpProtocolConnector.DeleteGraphAsync(string, CancellationToken)
BaseSesameHttpProtocolConnector.Query(string, AsyncStorageCallback, object)
BaseSesameHttpProtocolConnector.Query(IRdfHandler, ISparqlResultsHandler, string, AsyncStorageCallback, object)
BaseSesameHttpProtocolConnector.QueryAsync(string, CancellationToken)
BaseSesameHttpProtocolConnector.QueryAsync(IRdfHandler, ISparqlResultsHandler, string, CancellationToken)
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(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.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()
BaseHttpConnector.Dispose(bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.Client.dll
Syntax
public class AllegroGraphConnector : BaseSesameHttpProtocolConnector, IConfigurationSerializable, IAsyncUpdateableStorage, IAsyncQueryableStorage, IAsyncStorageProvider, IUpdateableStorage, IQueryableStorage, IStorageProvider, IStorageCapabilities, IDisposable
Remarks

Connection to AllegroGraph is based on their new HTTP Protocol which is an extension of the Sesame 2.0 HTTP Protocol. The specification for the AllegroGraph protocol can be found. here

If you wish to use a Store which is part of the Root Catalog on an AllegroGraph 4.x and higher server you can either use the constructor overloads that omit the catalogID parameter or pass in null as the value for that parameter.

Constructors

| Edit this page View Source

AllegroGraphConnector(string, string)

Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).

Declaration
public AllegroGraphConnector(string baseUri, string storeID)
Parameters
Type Name Description
string baseUri

Base Uri for the Store.

string storeID

Store ID.

| Edit this page View Source

AllegroGraphConnector(string, string, IWebProxy)

Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).

Declaration
public AllegroGraphConnector(string baseUri, string storeID, IWebProxy proxy)
Parameters
Type Name Description
string baseUri

Base Uri for the Store.

string storeID

Store ID.

IWebProxy proxy

Proxy Server.

| Edit this page View Source

AllegroGraphConnector(string, string, string)

Creates a new Connection to an AllegroGraph store.

Declaration
public AllegroGraphConnector(string baseUri, string catalogID, string storeID)
Parameters
Type Name Description
string baseUri

Base URI for the Store.

string catalogID

Catalog ID.

string storeID

Store ID.

| Edit this page View Source

AllegroGraphConnector(string, string, string, IWebProxy)

Creates a new Connection to an AllegroGraph store.

Declaration
public AllegroGraphConnector(string baseUri, string catalogID, string storeID, IWebProxy proxy)
Parameters
Type Name Description
string baseUri

Base Uri for the Store.

string catalogID

Catalog ID.

string storeID

Store ID.

IWebProxy proxy

Proxy Server.

| Edit this page View Source

AllegroGraphConnector(string, string, string, string)

Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).

Declaration
public AllegroGraphConnector(string baseUri, string storeID, string username, string password)
Parameters
Type Name Description
string baseUri

Base Uri for the Store.

string storeID

Store ID.

string username

Username for connecting to the Store.

string password

Password for connecting to the Store.

| Edit this page View Source

AllegroGraphConnector(string, string, string, string, IWebProxy)

Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).

Declaration
public AllegroGraphConnector(string baseUri, string storeID, string username, string password, IWebProxy proxy)
Parameters
Type Name Description
string baseUri

Base Uri for the Store.

string storeID

Store ID.

string username

Username for connecting to the Store.

string password

Password for connecting to the Store.

IWebProxy proxy

Proxy Server.

| Edit this page View Source

AllegroGraphConnector(string, string, string, string, string)

Creates a new Connection to an AllegroGraph store.

Declaration
public AllegroGraphConnector(string baseUri, string catalogID, string storeID, string username, string password)
Parameters
Type Name Description
string baseUri

Base Uri for the Store.

string catalogID

Catalog ID.

string storeID

Store ID.

string username

Username for connecting to the Store.

string password

Password for connecting to the Store.

| Edit this page View Source

AllegroGraphConnector(string, string, string, string, string, IWebProxy)

Creates a new Connection to an AllegroGraph store.

Declaration
public AllegroGraphConnector(string baseUri, string catalogID, string storeID, string username, string password, IWebProxy proxy)
Parameters
Type Name Description
string baseUri

Base Uri for the Store.

string catalogID

Catalog ID.

string storeID

Store ID.

string username

Username for connecting to the Store.

string password

Password for connecting to the Store.

IWebProxy proxy

Proxy Server.

Properties

| Edit this page View Source

Catalog

Gets the Catalog under which the repository you are connected to is located.

Declaration
public string Catalog { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

CreateRequest(string, string, HttpMethod, Dictionary<string, string>)

Helper method for creating HTTP Requests to the Store.

Declaration
protected override HttpRequestMessage CreateRequest(string servicePath, string accept, HttpMethod method, Dictionary<string, string> queryParams)
Parameters
Type Name Description
string servicePath

Path to the Service requested.

string accept

Acceptable Content Types.

HttpMethod method

HTTP Method.

Dictionary<string, string> queryParams

Querystring Parameters.

Returns
Type Description
HttpRequestMessage
Overrides
BaseSesameHttpProtocolConnector.CreateRequest(string, string, HttpMethod, Dictionary<string, string>)
| Edit this page View Source

CreateRequest(string, string, string, Dictionary<string, string>)

Helper method for creating HTTP Requests to the Store.

Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Use CreateRequest(string, string, HttpMethod, Dictionary<string, string>) instead.")]
protected override HttpWebRequest CreateRequest(string servicePath, string accept, string method, Dictionary<string, string> queryParams)
Parameters
Type Name Description
string servicePath

Path to the Service requested.

string accept

Acceptable Content Types.

string method

HTTP Method.

Dictionary<string, string> queryParams

Querystring Parameters.

Returns
Type Description
HttpWebRequest
Overrides
BaseSesameHttpProtocolConnector.CreateRequest(string, string, string, Dictionary<string, string>)
| Edit this page View Source

EscapeQuery(string)

Does nothing as AllegroGraph does not require the same query escaping that Sesame does.

Declaration
protected override string EscapeQuery(string query)
Parameters
Type Name Description
string query

Query to escape.

Returns
Type Description
string
Overrides
BaseSesameHttpProtocolConnector.EscapeQuery(string)
| Edit this page View Source

GetSaveContentType()

Gets the Content Type used to save data to the store i.e. the MIME type to use for the Content-Type header.

Declaration
protected override string GetSaveContentType()
Returns
Type Description
string
Overrides
BaseSesameHttpProtocolConnector.GetSaveContentType()
| Edit this page View Source

SerializeConfiguration(ConfigurationSerializationContext)

Serializes the connection's configuration.

Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type Name Description
ConfigurationSerializationContext context

Configuration Serialization Context.

Overrides
BaseSesameHttpProtocolConnector.SerializeConfiguration(ConfigurationSerializationContext)
| Edit this page View Source

ToString()

Gets a String which gives details of the Connection.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
BaseSesameHttpProtocolConnector.ToString()
| Edit this page View Source

Update(string)

Makes a SPARQL Update request to the Allegro Graph server.

Declaration
public virtual void Update(string sparqlUpdate)
Parameters
Type Name Description
string sparqlUpdate

SPARQL Update.

| Edit this page View Source

Update(string, AsyncStorageCallback, object)

Makes a SPARQL Update request to the Allegro Graph server.

Declaration
public virtual void Update(string sparqlUpdate, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
string sparqlUpdate

SPARQL Update.

AsyncStorageCallback callback

Callback.

object state

State to pass to the callback.

| Edit this page View Source

UpdateAsync(string, CancellationToken)

Updates the store asynchronously.

Declaration
public virtual Task UpdateAsync(string sparqlUpdate, CancellationToken cancellationToken)
Parameters
Type Name Description
string sparqlUpdate
CancellationToken cancellationToken
Returns
Type Description
Task

Implements

IConfigurationSerializable
IAsyncUpdateableStorage
IAsyncQueryableStorage
IAsyncStorageProvider
IUpdateableStorage
IQueryableStorage
IStorageProvider
IStorageCapabilities
IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • AllegroGraphConnector(string, string)
    • AllegroGraphConnector(string, string, IWebProxy)
    • AllegroGraphConnector(string, string, string)
    • AllegroGraphConnector(string, string, string, IWebProxy)
    • AllegroGraphConnector(string, string, string, string)
    • AllegroGraphConnector(string, string, string, string, IWebProxy)
    • AllegroGraphConnector(string, string, string, string, string)
    • AllegroGraphConnector(string, string, string, string, string, IWebProxy)
  • Properties
    • Catalog
  • Methods
    • CreateRequest(string, string, HttpMethod, Dictionary<string, string>)
    • CreateRequest(string, string, string, Dictionary<string, string>)
    • EscapeQuery(string)
    • GetSaveContentType()
    • SerializeConfiguration(ConfigurationSerializationContext)
    • ToString()
    • Update(string)
    • Update(string, AsyncStorageCallback, object)
    • UpdateAsync(string, CancellationToken)
  • Implements
  • Extension Methods
Back to top Generated by DocFX