Class AllegroGraphServer
Represents an AllegroGraph server, may be used to access and manage stores within a catalog on the server.
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)
System.Object.ToString()
Namespace: VDS.RDF.Storage.Management
Assembly: dotNetRDF.dll
Syntax
public class AllegroGraphServer : SesameServer, IAsyncStorageServer, IConfigurationSerializable, IStorageServer, IDisposable
Constructors
| Improve this Doc 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 |
---|---|---|
System.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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.Net.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 |
---|---|---|
System.String | baseUri | Base URI for the Store. |
System.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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | catalogID | Catalog ID. |
System.Net.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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | username | Username for connecting to the Store. |
System.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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | username | Username for connecting to the Store. |
System.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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | catalogID | Catalog ID. |
System.String | username | Username for connecting to the Store. |
System.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 |
---|---|---|
System.String | baseUri | Base Uri for the Store. |
System.String | catalogID | Catalog 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. |
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 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 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 SourceDeleteStore(String)
Requests that AllegroGraph deletes a Store.
Declaration
public override void DeleteStore(string storeID)
Parameters
Type | Name | Description |
---|---|---|
System.String | storeID | Store ID. |
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 |
---|---|---|
System.String | storeId | 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 |
---|---|---|
System.String | id | Store ID. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IStoreTemplate> |
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 |
---|---|---|
System.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 |
---|---|---|
System.String | id | Store ID. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
System.String | id | Store ID. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to callback. |
Overrides
| Improve this Doc View SourceGetStore(String)
Gets a Store within the current catalog.
Declaration
public override IStorageProvider GetStore(string storeID)
Parameters
Type | Name | Description |
---|---|---|
System.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.
|
Improve this Doc
View Source
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 |
---|---|---|
System.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.
|
Improve this Doc
View Source
ListStores()
Get the lists of stores available on the Server.
Declaration
public override IEnumerable<string> ListStores()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Overrides
| Improve this Doc View SourceListStores(AsyncStorageCallback, Object)
Gets the List of Stores available on the server within the current catalog asynchronously.
Declaration
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. |
Overrides
Implements
System.IDisposable