Show / Hide Table of Contents

Class SesameServer

Represents a connection to a Sesame Server.

Inheritance
object
BaseHttpConnector
SesameServer
AllegroGraphServer
Implements
IAsyncStorageServer
IConfigurationSerializable
IStorageServer
IDisposable
Inherited Members
BaseHttpConnector.HttpClient
BaseHttpConnector.HttpClientHandler
BaseHttpConnector.SetProxy(string)
BaseHttpConnector.SetProxy(Uri)
BaseHttpConnector.Proxy
BaseHttpConnector.ClearProxy()
BaseHttpConnector.SetProxyCredentials(string, string)
BaseHttpConnector.SetProxyCredentials(string, string, string)
BaseHttpConnector.ProxyCredentials
BaseHttpConnector.ClearProxyCredentials()
BaseHttpConnector.Timeout
BaseHttpConnector.SerializeStandardConfig(INode, ConfigurationSerializationContext)
BaseHttpConnector.SetCredentials(string, string)
BaseHttpConnector.Dispose()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Storage.Management
Assembly: dotNetRdf.Client.dll
Syntax
public class SesameServer : BaseHttpConnector, IAsyncStorageServer, IConfigurationSerializable, IStorageServer, IDisposable

Constructors

| Edit this page View Source

SesameServer(string)

Creates a new connection to a Sesame HTTP Protocol supporting Store.

Declaration
public SesameServer(string baseUri)
Parameters
Type Name Description
string baseUri

Base Uri of the Store.

| Edit this page View Source

SesameServer(string, IWebProxy)

Creates a new connection to a Sesame HTTP Protocol supporting Store.

Declaration
public SesameServer(string baseUri, IWebProxy proxy)
Parameters
Type Name Description
string baseUri

Base Uri of the Store.

IWebProxy proxy

Proxy Server.

| Edit this page View Source

SesameServer(string, string, string)

Creates a new connection to a Sesame HTTP Protocol supporting Store.

Declaration
public SesameServer(string baseUri, string username, string password)
Parameters
Type Name Description
string baseUri

Base Uri of the Store.

string username

Username to use for requests that require authentication.

string password

Password to use for requests that require authentication.

| Edit this page View Source

SesameServer(string, string, string, IWebProxy)

Creates a new connection to a Sesame HTTP Protocol supporting Store.

Declaration
public SesameServer(string baseUri, string username, string password, IWebProxy proxy)
Parameters
Type Name Description
string baseUri

Base Uri of the Store.

string username

Username to use for requests that require authentication.

string password

Password to use for requests that require authentication.

IWebProxy proxy

Proxy Server.

Fields

| Edit this page View Source

SystemRepositoryID

System Repository ID.

Declaration
public const string SystemRepositoryID = "SYSTEM"
Field Value
Type Description
string
| Edit this page View Source

TemplateTypes

Available Sesame template types.

Declaration
protected List<Type> TemplateTypes
Field Value
Type Description
List<Type>
| Edit this page View Source

_baseUri

Base Uri for the Server.

Declaration
protected string _baseUri
Field Value
Type Description
string
| Edit this page View Source

_hasCredentials

Whether the User has provided credentials for accessing the Server using authentication.

Declaration
protected bool _hasCredentials
Field Value
Type Description
bool
| Edit this page View Source

_pwd

Password for accessing the Server.

Declaration
protected string _pwd
Field Value
Type Description
string
| Edit this page View Source

_repositoriesPrefix

Repositories Prefix.

Declaration
protected string _repositoriesPrefix
Field Value
Type Description
string
| Edit this page View Source

_username

Username for accessing the Server.

Declaration
protected string _username
Field Value
Type Description
string

Properties

| Edit this page View Source

IOBehaviour

Gets the IO Behaviour of the server.

Declaration
public IOBehaviour IOBehaviour { get; }
Property Value
Type Description
IOBehaviour

Methods

| Edit this page View Source

CreateRequest(string, string, HttpMethod, Dictionary<string, string>)

Helper method for creating HTTP Requests to the Store.

Declaration
protected virtual 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
| Edit this page View Source

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.")]
protected virtual 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
| Edit this page View Source

CreateStore(IStoreTemplate)

Creates a new Store based on the given template.

Declaration
public virtual bool CreateStore(IStoreTemplate template)
Parameters
Type Name Description
IStoreTemplate template

Template.

Returns
Type Description
bool
Remarks

Templates must inherit from BaseSesameTemplate.

| Edit this page View Source

CreateStore(IStoreTemplate, AsyncStorageCallback, object)

Creates a new store based on the given template.

Declaration
public virtual void CreateStore(IStoreTemplate template, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IStoreTemplate template

Template.

AsyncStorageCallback callback

Callback.

object state

State to pass to the callback.

Remarks

Template must inherit from BaseSesameTemplate.

| Edit this page View Source

CreateStoreAsync(IStoreTemplate, CancellationToken)

Creates a store asynchronously.

Declaration
public Task<string> CreateStoreAsync(IStoreTemplate template, CancellationToken cancellationToken)
Parameters
Type Name Description
IStoreTemplate template

Template for the store to be created.

CancellationToken cancellationToken
Returns
Type Description
Task<string>
| Edit this page View Source

DeleteStore(string)

Deletes the Store with the given ID.

Declaration
public virtual void DeleteStore(string storeID)
Parameters
Type Name Description
string storeID

Store ID.

Remarks

Whether attempting to delete the Store that you are accessing is permissible is up to the implementation.

| Edit this page View Source

DeleteStore(string, AsyncStorageCallback, object)

Deletes a store asynchronously.

Declaration
public virtual void DeleteStore(string storeID, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
string storeID

ID of the store to delete.

AsyncStorageCallback callback

Callback.

object state

State to pass to the callback.

| Edit this page View Source

DeleteStoreAsync(string, CancellationToken)

Deletes a store asynchronously.

Declaration
public virtual Task DeleteStoreAsync(string storeId, CancellationToken cancellationToken)
Parameters
Type Name Description
string storeId

ID of the store to delete.

CancellationToken cancellationToken
Returns
Type Description
Task
| Edit this page View Source

Dispose(bool)

Disposes of the server.

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
Overrides
BaseHttpConnector.Dispose(bool)
| Edit this page View Source

EnsureSystemConnection()

Ensures the connection to the Sesame SYSTEM repository is prepared if it isn't already.

Declaration
protected virtual void EnsureSystemConnection()
| Edit this page View Source

GetAvailableTemplates(string)

Gets all available templates for creating a store.

Declaration
public virtual IEnumerable<IStoreTemplate> GetAvailableTemplates(string id)
Parameters
Type Name Description
string id

Store ID.

Returns
Type Description
IEnumerable<IStoreTemplate>
| Edit this page View Source

GetAvailableTemplates(string, AsyncStorageCallback, object)

Gets all available templates for creating a store.

Declaration
public virtual 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 the callback.

| Edit this page View Source

GetAvailableTemplatesAsync(string, CancellationToken)

Gets all available templates for creating a store with the given ID.

Declaration
public Task<IEnumerable<IStoreTemplate>> GetAvailableTemplatesAsync(string id, CancellationToken cancellationToken)
Parameters
Type Name Description
string id

The store ID.

CancellationToken cancellationToken
Returns
Type Description
Task<IEnumerable<IStoreTemplate>>
| Edit this page View Source

GetDefaultTemplate(string)

Gets a default template for creating a store.

Declaration
public virtual IStoreTemplate GetDefaultTemplate(string id)
Parameters
Type Name Description
string id

Store ID.

Returns
Type Description
IStoreTemplate
| Edit this page View Source

GetDefaultTemplate(string, AsyncStorageCallback, object)

Gets a default template for creating a store.

Declaration
public virtual 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 the callback.

| Edit this page View Source

GetDefaultTemplateAsync(string, CancellationToken)

Gets a default template for creating a store with the given ID.

Declaration
public Task<IStoreTemplate> GetDefaultTemplateAsync(string id, CancellationToken cancellationToken)
Parameters
Type Name Description
string id

The store ID.

CancellationToken cancellationToken
Returns
Type Description
Task<IStoreTemplate>
| Edit this page View Source

GetStore(string)

Gets the Store with the given ID.

Declaration
public virtual IStorageProvider GetStore(string storeId)
Parameters
Type Name Description
string storeId

Store ID.

Returns
Type Description
IStorageProvider
Remarks

If the Store ID requested represents the current instance then it is acceptable for an implementation to return itself. Consumers of this method should be aware of this and if necessary use other means to create a connection to a store if they want a unique instance of the provider.

| Edit this page View Source

GetStore(string, AsyncStorageCallback, object)

Gets a store asynchronously.

Declaration
public virtual 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 the callback.

Remarks

If the store ID requested matches the current instance an instance MAY invoke the callback immediately returning a reference to itself.

| Edit this page View Source

GetStoreAsync(string, CancellationToken)

Gets a store asynchronously.

Declaration
public virtual Task<IAsyncStorageProvider> GetStoreAsync(string storeId, CancellationToken cancellationToken)
Parameters
Type Name Description
string storeId

Store ID.

CancellationToken cancellationToken
Returns
Type Description
Task<IAsyncStorageProvider>
| Edit this page View Source

ListStores()

Gets the list of available stores.

Declaration
public virtual IEnumerable<string> ListStores()
Returns
Type Description
IEnumerable<string>
| Edit this page View Source

ListStores(AsyncStorageCallback, object)

Lists the available stores asynchronously.

Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Replaced by ListStoresAsync")]
public virtual void ListStores(AsyncStorageCallback callback, object state)
Parameters
Type Name Description
AsyncStorageCallback callback

Callback.

object state

State to pass to the callback.

| Edit this page View Source

ListStoresAsync(CancellationToken)

Lists the available stores asynchronously.

Declaration
public Task<IEnumerable<string>> ListStoresAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<IEnumerable<string>>
| Edit this page View Source

SerializeConfiguration(ConfigurationSerializationContext)

Serializes the connection's configuration.

Declaration
public virtual void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type Name Description
ConfigurationSerializationContext context

Configuration Serialization Context.

Implements

IAsyncStorageServer
IConfigurationSerializable
IStorageServer
IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SesameServer(string)
    • SesameServer(string, IWebProxy)
    • SesameServer(string, string, string)
    • SesameServer(string, string, string, IWebProxy)
  • Fields
    • SystemRepositoryID
    • TemplateTypes
    • _baseUri
    • _hasCredentials
    • _pwd
    • _repositoriesPrefix
    • _username
  • Properties
    • IOBehaviour
  • Methods
    • CreateRequest(string, string, HttpMethod, Dictionary<string, string>)
    • CreateRequest(string, string, string, Dictionary<string, string>)
    • CreateStore(IStoreTemplate)
    • CreateStore(IStoreTemplate, AsyncStorageCallback, object)
    • CreateStoreAsync(IStoreTemplate, CancellationToken)
    • DeleteStore(string)
    • DeleteStore(string, AsyncStorageCallback, object)
    • DeleteStoreAsync(string, CancellationToken)
    • Dispose(bool)
    • EnsureSystemConnection()
    • GetAvailableTemplates(string)
    • GetAvailableTemplates(string, AsyncStorageCallback, object)
    • GetAvailableTemplatesAsync(string, CancellationToken)
    • GetDefaultTemplate(string)
    • GetDefaultTemplate(string, AsyncStorageCallback, object)
    • GetDefaultTemplateAsync(string, CancellationToken)
    • GetStore(string)
    • GetStore(string, AsyncStorageCallback, object)
    • GetStoreAsync(string, CancellationToken)
    • ListStores()
    • ListStores(AsyncStorageCallback, object)
    • ListStoresAsync(CancellationToken)
    • SerializeConfiguration(ConfigurationSerializationContext)
  • Implements
  • Extension Methods
Back to top Generated by DocFX