Class AllegroGraphConnector
Class for connecting to an AllegroGraph Store.
Inheritance
System.Object
AllegroGraphConnector
Implements
System.IDisposable
Inherited Members
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 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)
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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | storeID | Store ID. |
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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | storeID | Store ID. |
System.Net.IWebProxy | proxy | Proxy Server. |
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 |
---|---|---|
System.String | baseUri | Base URI for the Store. |
System.String | catalogID | Catalog ID. |
System.String | storeID | Store ID. |
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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | catalogID | Catalog ID. |
System.String | storeID | Store ID. |
System.Net.IWebProxy | proxy | Proxy Server. |
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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | storeID | Store ID. |
System.String | username | Username for connecting to the Store. |
System.String | password | Password for connecting to the Store. |
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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | storeID | Store ID. |
System.String | username | Username for connecting to the Store. |
System.String | password | Password for connecting to the Store. |
System.Net.IWebProxy | proxy | Proxy Server. |
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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | catalogID | Catalog ID. |
System.String | storeID | Store ID. |
System.String | username | Username for connecting to the Store. |
System.String | password | Password for connecting to the Store. |
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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | catalogID | Catalog ID. |
System.String | storeID | Store ID. |
System.String | username | Username for connecting to the Store. |
System.String | password | Password for connecting to the Store. |
System.Net.IWebProxy | proxy | Proxy Server. |
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 |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreateRequest(String, String, String, Dictionary<String, String>)
Helper method for creating HTTP Requests to the Store.
Declaration
protected override HttpWebRequest CreateRequest(string servicePath, string accept, string method, Dictionary<string, string> queryParams)
Parameters
Type | Name | Description |
---|---|---|
System.String | servicePath | Path to the Service requested. |
System.String | accept | Acceptable Content Types. |
System.String | method | HTTP Method. |
System.Collections.Generic.Dictionary<System.String, System.String> | queryParams | Querystring Parameters. |
Returns
Type | Description |
---|---|
System.Net.HttpWebRequest |
Overrides
| Improve this Doc View SourceEscapeQuery(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 |
---|---|---|
System.String | query | Query to escape. |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceGetSaveContentType()
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 |
---|---|
System.String |
Overrides
| Improve this Doc View SourceSerializeConfiguration(ConfigurationSerializationContext)
Serializes the connection's configuration.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSerializationContext | context | Configuration Serialization Context. |
Overrides
| Improve this Doc View SourceToString()
Gets a String which gives details of the Connection.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceUpdate(String)
Makes a SPARQL Update request to the Allegro Graph server.
Declaration
public virtual void Update(string sparqlUpdate)
Parameters
Type | Name | Description |
---|---|---|
System.String | sparqlUpdate | SPARQL Update. |
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 |
---|---|---|
System.String | sparqlUpdate | SPARQL Update. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Implements
System.IDisposable