Click or drag to resize

AllegroGraphConnector Class

Class for connecting to an AllegroGraph Store.
Inheritance Hierarchy

Namespace:  VDS.RDF.Storage
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class AllegroGraphConnector : BaseSesameHttpProtocolConnector, 
	IAsyncUpdateableStorage, IAsyncQueryableStorage, IAsyncStorageProvider, IStorageCapabilities, IDisposable, 
	IUpdateableStorage, IQueryableStorage, IStorageProvider

The AllegroGraphConnector type exposes the following members.

Constructors
  NameDescription
Public methodAllegroGraphConnector(String, String)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Public methodAllegroGraphConnector(String, String, IWebProxy)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Public methodAllegroGraphConnector(String, String, String)
Creates a new Connection to an AllegroGraph store.
Public methodAllegroGraphConnector(String, String, String, IWebProxy)
Creates a new Connection to an AllegroGraph store.
Public methodAllegroGraphConnector(String, String, String, String)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Public methodAllegroGraphConnector(String, String, String, String, IWebProxy)
Creates a new Connection to an AllegroGraph store in the Root Catalog (AllegroGraph 4.x and higher).
Public methodAllegroGraphConnector(String, String, String, String, String)
Creates a new Connection to an AllegroGraph store.
Public methodAllegroGraphConnector(String, String, String, String, String, IWebProxy)
Creates a new Connection to an AllegroGraph store.
Top
Properties
  NameDescription
Public propertyAsyncParentServer
Gets the parent server.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyBaseUri
Gets the Base URI to the repository.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyCatalog
Gets the Catalog under which the repository you are connected to is located.
Public propertyDeleteSupported
Returns that deleting graphs from the Sesame store is supported.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyIOBehaviour
Gets the Save Behaviour of Stores that use the Sesame HTTP Protocol.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyIsReadOnly
Returns that the Connection is not read-only.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyIsReady
Returns that the Connection is ready.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyListGraphsSupported
Returns that listing Graphs is supported.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyParentServer
Gets the parent server.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected propertyPassword
Password for accessing the Store.
(Inherited from BaseHttpConnector.)
Public propertyProxy
Gets/Sets a Proxy Server to be used.
(Inherited from BaseHttpConnector.)
Public propertyProxyCredentials
Gets/Sets Credentials to be used for Proxy Server.
(Inherited from BaseHttpConnector.)
Public propertyRepositoryName
Gets the Repository Name that is in use.
(Inherited from BaseSesameHttpProtocolConnector.)
Public propertyTimeout
Gets/Sets the HTTP Timeouts used specified in milliseconds.
(Inherited from BaseHttpConnector.)
Public propertyUpdateSupported
Returns that Updates are supported on Sesame HTTP Protocol supporting Stores.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected propertyUsername
Password for accessing the Store.
(Inherited from BaseHttpConnector.)
Top
Methods
  NameDescription
Protected methodApplyRequestOptions
Helper method which applies standard request options to the request, these currently include proxy settings and HTTP timeout.
(Inherited from BaseHttpConnector.)
Public methodClearProxy
Clears any in-use credentials so subsequent requests will not use a proxy server.
(Inherited from BaseHttpConnector.)
Public methodClearProxyCredentials
Clears the in-use proxy credentials so subsequent requests still use the proxy server but without credentials.
(Inherited from BaseHttpConnector.)
Protected methodCreateRdfWriter
Creates an RDF Writer to use for saving data to the store.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected methodCreateRequest
Helper method for creating HTTP Requests to the Store.
(Overrides BaseSesameHttpProtocolConnectorCreateRequest(String, String, String, DictionaryString, String).)
Public methodDeleteGraph(String)
Deletes a Graph from the Sesame store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodDeleteGraph(Uri)
Deletes a Graph from the Sesame store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodDeleteGraph(Uri, AsyncStorageCallback, Object)
Deletes a Graph from the Store.
(Inherited from BaseAsyncHttpConnector.)
Public methodDeleteGraph(String, AsyncStorageCallback, Object)
Deletes a Graph from the Store.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected methodDeleteGraphAsync
Helper method for doing async delete operations, callers just need to provide an appropriately prepared HTTP request.
(Inherited from BaseAsyncHttpConnector.)
Public methodDispose
Disposes of the Connector.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodEscapeQuery
Does nothing as AllegroGraph does not require the same query escaping that Sesame does.
(Overrides BaseSesameHttpProtocolConnectorEscapeQuery(String).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetSaveContentType
Gets the Content Type used to save data to the store i.e. the MIME type to use for the Content-Type header.
(Overrides BaseSesameHttpProtocolConnectorGetSaveContentType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodListGraphs
Gets the list of Graphs in the Sesame store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodListGraphs(AsyncStorageCallback, Object)
Lists the Graphs in the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IGraph, String)
Loads a Graph from the Store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodLoadGraph(IGraph, Uri)
Loads a Graph from the Store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodLoadGraph(IRdfHandler, String)
Loads a Graph from the Store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodLoadGraph(IRdfHandler, Uri)
Loads a Graph from the Store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodLoadGraph(IGraph, String, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IGraph, Uri, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IRdfHandler, Uri, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodLoadGraph(IRdfHandler, String, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected methodLoadGraphAsync
Helper method for doing async load operations, callers just need to provide an appropriately prepared HTTP request.
(Inherited from BaseAsyncHttpConnector.)
Protected methodMakeRequestSequence
Helper method for doing async operations where a sequence of HTTP requests must be run.
(Inherited from BaseAsyncHttpConnector.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodQuery(String)
Makes a SPARQL Query against the underlying Store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodQuery(String, AsyncStorageCallback, Object)
Makes a SPARQL Query against the underlying store.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String)
Makes a SPARQL Query against the underlying Store processing the results with an appropriate handler from those provided.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodQuery(IRdfHandler, ISparqlResultsHandler, String, AsyncStorageCallback, Object)
Makes a SPARQL Query against the underlying store processing the resulting Graph/Result Set with a handler of your choice.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodSaveGraph(IGraph)
Saves a Graph into the Store (Warning: Completely replaces any existing Graph with the same URI unless there is no URI - see remarks for details).
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodSaveGraph(IGraph, AsyncStorageCallback, Object)
Saves a Graph to the Store asynchronously.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected methodSaveGraphAsync
Helper method for doing async save operations, callers just need to provide an appropriately perpared HTTP requests and a RDF writer which will be used to write the data to the request body.
(Inherited from BaseAsyncHttpConnector.)
Public methodSerializeConfiguration
Serializes the connection's configuration.
(Overrides BaseSesameHttpProtocolConnectorSerializeConfiguration(ConfigurationSerializationContext).)
Protected methodSerializeStandardConfig
Helper method which adds standard configuration information (proxy and timeout settings) to serialized configuration.
(Inherited from BaseHttpConnector.)
Public methodSetCredentials (Inherited from BaseHttpConnector.)
Public methodSetProxy(String)
Sets a Proxy Server to be used.
(Inherited from BaseHttpConnector.)
Public methodSetProxy(Uri)
Sets a Proxy Server to be used.
(Inherited from BaseHttpConnector.)
Public methodSetProxyCredentials(String, String)
Sets Credentials to be used for Proxy Server.
(Inherited from BaseHttpConnector.)
Public methodSetProxyCredentials(String, String, String)
Sets Credentials to be used for Proxy Server.
(Inherited from BaseHttpConnector.)
Public methodToString
Gets a String which gives details of the Connection.
(Overrides BaseSesameHttpProtocolConnectorToString.)
Public methodUpdate(String)
Makes a SPARQL Update request to the Allegro Graph server.
Public methodUpdate(String, AsyncStorageCallback, Object)
Makes a SPARQL Update request to the Allegro Graph server.
Public methodUpdateGraph(String, IEnumerableTriple, IEnumerableTriple)
Updates a Graph.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple)
Updates a Graph.
(Inherited from BaseSesameHttpProtocolConnector.)
Public methodUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple, AsyncStorageCallback, Object)
Updates a Graph in the Store asynchronously.
(Inherited from BaseAsyncHttpConnector.)
Public methodUpdateGraph(String, IEnumerableTriple, IEnumerableTriple, AsyncStorageCallback, Object)
Updates a Graph in the Store asychronously.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected methodUpdateGraphAsync
Helper method for doing async update operations, callers just need to provide an appropriately prepared HTTP request and a RDF writer which will be used to write the data to the request body.
(Inherited from BaseAsyncHttpConnector.)
Top
Fields
  NameDescription
Protected field_baseUri
Base Uri for the Store.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected field_fullContextEncoding
Whether to do full encoding of contexts.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected field_postAllQueries Obsolete.
Whether queries should always be posted.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected field_queryPath
Query Path Prefix.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected field_repositoriesPrefix
Repositories Prefix.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected field_server
Server the store is hosted on.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected field_store
Store ID.
(Inherited from BaseSesameHttpProtocolConnector.)
Protected field_updatePath
Update Path Prefix.
(Inherited from BaseSesameHttpProtocolConnector.)
Top
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.

See Also