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
| Improve this Doc View SourceAllegroGraphServer(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. |
| System.Net.IWebProxy | proxy | Proxy Server. |
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. |
| System.Net.IWebProxy | proxy | Proxy Server. |
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. |
| System.Net.IWebProxy | proxy | Proxy Server. |
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. |
| System.Net.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)
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)
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)
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. |
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
| Improve this Doc 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. |
| System.Collections.Generic.Dictionary<TKey, TValue><string, string> | queryParams | Querystring Parameters. |
Returns
| Type | Description |
|---|---|
| System.Net.HttpWebRequest |
Overrides
| Improve this Doc 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. |
| System.Object | state | State to pass to callback. |
Overrides
| Improve this Doc 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 |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc 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. |
| System.Object | state | State to pass to callback. |
Overrides
| Improve this Doc 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
| Improve this Doc 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. |
| System.Object | state | State to pass to callback. |
Overrides
| Improve this Doc 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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><IStoreTemplate> |
Overrides
| Improve this Doc 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. |
| System.Object | state | State to pass to callback. |
Overrides
| Improve this Doc 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
| Improve this Doc View SourceGetStore(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. |
| System.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.
GetStore(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.
ListStores()
Get the lists of stores available on the Server.
Declaration
public override IEnumerable<string> ListStores()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><string> |
Overrides
| Improve this Doc 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. |
| System.Object | state | State to pass to callback. |
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. |