Class AllegroGraphServer
Represents an AllegroGraph server, may be used to access and manage stores within a catalog on the server.
Inherited Members
Namespace: VDS.RDF.Storage.Management
Assembly: dotNetRdf.Client.dll
Syntax
public class AllegroGraphServer : SesameServer, IAsyncStorageServer, IConfigurationSerializable, IStorageServer, IDisposable
Constructors
| Edit this page View SourceAllegroGraphServer(string)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Declaration
public AllegroGraphServer(string baseUri)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base Uri for the Store. |
AllegroGraphServer(string, IWebProxy)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Declaration
public AllegroGraphServer(string baseUri, IWebProxy proxy)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base Uri for the Store. |
IWebProxy | proxy | Proxy Server. |
AllegroGraphServer(string, string)
Creates a new Connection to an AllegroGraph store.
Declaration
public AllegroGraphServer(string baseUri, string catalogID)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base URI for the Store. |
string | catalogID | Catalog ID. |
AllegroGraphServer(string, string, IWebProxy)
Creates a new Connection to an AllegroGraph store.
Declaration
public AllegroGraphServer(string baseUri, string catalogID, IWebProxy proxy)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base Uri for the Store. |
string | catalogID | Catalog ID. |
IWebProxy | proxy | Proxy Server. |
AllegroGraphServer(string, string, string)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Declaration
public AllegroGraphServer(string baseUri, string username, string password)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base Uri for the Store. |
string | username | Username for connecting to the Store. |
string | password | Password for connecting to the Store. |
AllegroGraphServer(string, string, string, IWebProxy)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Declaration
public AllegroGraphServer(string baseUri, string username, string password, IWebProxy proxy)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base Uri for the Store. |
string | username | Username for connecting to the Store. |
string | password | Password for connecting to the Store. |
IWebProxy | proxy | Proxy Server. |
AllegroGraphServer(string, string, string, string)
Creates a new Connection to an AllegroGraph store.
Declaration
public AllegroGraphServer(string baseUri, string catalogID, string username, string password)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base Uri for the Store. |
string | catalogID | Catalog ID. |
string | username | Username for connecting to the Store. |
string | password | Password for connecting to the Store. |
AllegroGraphServer(string, string, string, string, IWebProxy)
Creates a new Connection to an AllegroGraph store.
Declaration
public AllegroGraphServer(string baseUri, string catalogID, string username, string password, IWebProxy proxy)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | Base Uri for the Store. |
string | catalogID | Catalog ID. |
string | username | Username for connecting to the Store. |
string | password | Password for connecting to the Store. |
IWebProxy | proxy | Proxy Server. |
Methods
| Edit this page 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. |
HttpMethod | method | HTTP Method. |
Dictionary<string, string> | queryParams | Querystring Parameters. |
Returns
Type | Description |
---|---|
HttpRequestMessage |
Overrides
| Edit this page View SourceCreateRequest(string, string, string, Dictionary<string, string>)
Helper method for creating HTTP Requests to the Store.
Declaration
[Obsolete]
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
| Edit this page View SourceCreateStore(IStoreTemplate)
Creates a new Store (if it doesn't already exist).
Declaration
public override bool CreateStore(IStoreTemplate template)
Parameters
Type | Name | Description |
---|---|---|
IStoreTemplate | template | Template for creating the new Store. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceCreateStore(IStoreTemplate, AsyncStorageCallback, object)
Creates a new Store on the server within the current catalog asynchronously.
Declaration
public override void CreateStore(IStoreTemplate template, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
IStoreTemplate | template | Template to create the store from. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to callback. |
Overrides
| Edit this page View SourceDeleteStore(string)
Requests that AllegroGraph deletes a Store.
Declaration
public override void DeleteStore(string storeID)
Parameters
Type | Name | Description |
---|---|---|
string | storeID | Store ID. |
Overrides
| Edit this page View SourceDeleteStore(string, AsyncStorageCallback, object)
Deletes a Store from the server within the current catalog asynchronously.
Declaration
public override void DeleteStore(string storeId, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | storeId | Store ID. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to callback. |
Overrides
| Edit this page View SourceGetAvailableTemplates(string)
Gets all available templates for creating a new Store.
Declaration
public override IEnumerable<IStoreTemplate> GetAvailableTemplates(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Store ID. |
Returns
Type | Description |
---|---|
IEnumerable<IStoreTemplate> |
Overrides
| Edit this page View SourceGetAvailableTemplates(string, AsyncStorageCallback, object)
Gets all available templates for creating a new Store.
Declaration
public override void GetAvailableTemplates(string id, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | id | Store ID. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to callback. |
Overrides
| Edit this page View SourceGetDefaultTemplate(string)
Gets a default template for creating a new Store.
Declaration
public override IStoreTemplate GetDefaultTemplate(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Store ID. |
Returns
Type | Description |
---|---|
IStoreTemplate |
Overrides
| Edit this page View SourceGetDefaultTemplate(string, AsyncStorageCallback, object)
Gets a default template for creating a new Store.
Declaration
public override void GetDefaultTemplate(string id, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | id | Store ID. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to callback. |
Overrides
| Edit this page View SourceGetStore(string)
Gets a Store within the current catalog.
Declaration
public override IStorageProvider GetStore(string storeId)
Parameters
Type | Name | Description |
---|---|---|
string | storeId | Store ID. |
Returns
Type | Description |
---|---|
IStorageProvider |
Overrides
Remarks
AllegroGraph groups stores by catalogue, you may only use this method to obtain stores within your current catalogue.
GetStore(string, AsyncStorageCallback, object)
Gets a Store within the current catalog asynchronously.
Declaration
public override void GetStore(string storeId, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | storeId | Store ID. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to call back. |
Overrides
Remarks
AllegroGraph groups stores by catalog, you may only use this method to obtain stores within your current catalogue.
ListStores()
Get the lists of stores available on the Server.
Declaration
public override IEnumerable<string> ListStores()
Returns
Type | Description |
---|---|
IEnumerable<string> |
Overrides
| Edit this page View SourceListStores(AsyncStorageCallback, object)
Gets the List of Stores available on the server within the current catalog asynchronously.
Declaration
[Obsolete("Replaced with ListStoresAsync(CancellationToken).")]
public override void ListStores(AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to callback. |
Overrides
| Edit this page View SourceSerializeConfiguration(ConfigurationSerializationContext)
Serializes the connection's configuration.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSerializationContext | context | Configuration Serialization Context. |