Class AllegroGraphConnector
Class for connecting to an AllegroGraph Store.
Inheritance
Implements
Inherited Members
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
| Improve this Doc View SourceAllegroGraphConnector(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. |
System.Net.IWebProxy | proxy | Proxy Server. |
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.
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. |
System.Net.IWebProxy | proxy | Proxy Server. |
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.
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. |
System.Net.IWebProxy | proxy | Proxy Server. |
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.
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. |
System.Net.IWebProxy | proxy | Proxy Server. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
Properties
| Improve this Doc View SourceCatalog
Gets the Catalog under which the repository you are connected to is located.
Declaration
public string Catalog { get; }
Property Value
Type | Description |
---|---|
string |
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.
Methods
| Improve this Doc View SourceCreateRequest(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. |
System.Net.Http.HttpMethod | method | HTTP Method. |
System.Collections.Generic.Dictionary<TKey, TValue><string, string> | queryParams | Querystring Parameters. |
Returns
Type | Description |
---|---|
System.Net.Http.HttpRequestMessage |
Overrides
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.
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. |
System.Collections.Generic.Dictionary<TKey, TValue><string, string> | queryParams | Querystring Parameters. |
Returns
Type | Description |
---|---|
System.Net.HttpWebRequest |
Overrides
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.
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
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.
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
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.
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the connection's configuration.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSerializationContext | context | Configuration Serialization Context. |
Overrides
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.
ToString()
Gets a String which gives details of the Connection.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
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.
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. |
System.Object | state | State to pass to the callback. |
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.
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. |
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.
UpdateAsync(string, CancellationToken)
Updates the store asynchronously.
Declaration
public virtual Task UpdateAsync(string sparqlUpdate, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | sparqlUpdate | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
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.