Class FourStoreConnector
Class for connecting to 4store.
Inheritance
System.Object
FourStoreConnector
Implements
System.IDisposable
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)
Assembly: dotNetRDF.dll
Syntax
public class FourStoreConnector : BaseAsyncHttpConnector, IAsyncUpdateableStorage, IAsyncQueryableStorage, IAsyncStorageProvider, IConfigurationSerializable, IUpdateableStorage, IQueryableStorage, IStorageProvider, IStorageCapabilities, IDisposable
Constructors
|
Improve this Doc
View Source
FourStoreConnector(String)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Declaration
public FourStoreConnector(string baseUri)
Parameters
Type |
Name |
Description |
System.String |
baseUri |
Base Uri of the 4store. |
|
Improve this Doc
View Source
FourStoreConnector(String, Boolean)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Declaration
public FourStoreConnector(string baseUri, bool enableUpdateSupport)
Parameters
Type |
Name |
Description |
System.String |
baseUri |
Base Uri of the 4store. |
System.Boolean |
enableUpdateSupport |
Indicates to the connector that you are using a 4store instance that supports Triple level updates. |
|
Improve this Doc
View Source
FourStoreConnector(String, Boolean, IWebProxy)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Declaration
public FourStoreConnector(string baseUri, bool enableUpdateSupport, IWebProxy proxy)
Parameters
Type |
Name |
Description |
System.String |
baseUri |
Base Uri of the 4store. |
System.Boolean |
enableUpdateSupport |
Indicates to the connector that you are using a 4store instance that supports Triple level updates. |
System.Net.IWebProxy |
proxy |
Proxy Server. |
|
Improve this Doc
View Source
FourStoreConnector(String, IWebProxy)
Creates a new 4store connector which manages access to the services provided by a 4store server.
Declaration
public FourStoreConnector(string baseUri, IWebProxy proxy)
Parameters
Type |
Name |
Description |
System.String |
baseUri |
Base Uri of the 4store. |
System.Net.IWebProxy |
proxy |
Proxy Server. |
Properties
|
Improve this Doc
View Source
DeleteSupported
Returns that deleting Graph is supported.
Declaration
public override bool DeleteSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
IOBehaviour
Gets the IO Behaviour of 4store.
Declaration
public override IOBehaviour IOBehaviour { get; }
Property Value
Overrides
|
Improve this Doc
View Source
IsReadOnly
Returns that the Connection is not read-only.
Declaration
public override bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
IsReady
Returns that the Connection is ready.
Declaration
public override bool IsReady { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
ListGraphsSupported
Returns that Listing Graphs is supported.
Declaration
public override bool ListGraphsSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
UpdateSupported
Returns whether this connector has been instantiated with update support or not.
Declaration
public override bool UpdateSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
|
Improve this Doc
View Source
DeleteGraph(String)
Deletes a Graph from the 4store server.
Declaration
public void DeleteGraph(string graphUri)
Parameters
Type |
Name |
Description |
System.String |
graphUri |
Uri of Graph to delete. |
|
Improve this Doc
View Source
DeleteGraph(String, AsyncStorageCallback, Object)
Deletes a Graph from the Store.
Declaration
public override void DeleteGraph(string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type |
Name |
Description |
System.String |
graphUri |
URI of the Graph to delete. |
AsyncStorageCallback |
callback |
Callback. |
System.Object |
state |
State to pass to the callback. |
Overrides
|
Improve this Doc
View Source
DeleteGraph(Uri)
Deletes a Graph from the 4store server.
Declaration
public void DeleteGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Uri of Graph to delete. |
|
Improve this Doc
View Source
Dispose()
Disposes of a 4store connection.
Declaration
public override void Dispose()
Overrides
|
Improve this Doc
View Source
ListGraphs()
Lists the Graphs in the Store.
Declaration
public IEnumerable<Uri> ListGraphs()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Uri> |
|
|
Improve this Doc
View Source
LoadGraph(IGraph, String)
Loads a Graph from the 4store instance.
Declaration
public void LoadGraph(IGraph g, string graphUri)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to load into. |
System.String |
graphUri |
URI of the Graph to load. |
|
Improve this Doc
View Source
LoadGraph(IGraph, Uri)
Loads a Graph from the 4store instance.
Declaration
public void LoadGraph(IGraph g, Uri graphUri)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to load into. |
System.Uri |
graphUri |
Uri of the Graph to load. |
|
Improve this Doc
View Source
LoadGraph(IRdfHandler, String)
Loads a Graph from the 4store instance.
Declaration
public void LoadGraph(IRdfHandler handler, string graphUri)
Parameters
Type |
Name |
Description |
IRdfHandler |
handler |
RDF Handler. |
System.String |
graphUri |
URI of the Graph to load. |
|
Improve this Doc
View Source
LoadGraph(IRdfHandler, String, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
Declaration
public override void LoadGraph(IRdfHandler handler, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type |
Name |
Description |
IRdfHandler |
handler |
Handler to load with. |
System.String |
graphUri |
URI of the Graph to load. |
AsyncStorageCallback |
callback |
Callback. |
System.Object |
state |
State to pass to the callback. |
Overrides
|
Improve this Doc
View Source
LoadGraph(IRdfHandler, Uri)
Loads a Graph from the 4store instance using an RDF Handler.
Declaration
public void LoadGraph(IRdfHandler handler, Uri graphUri)
Parameters
Type |
Name |
Description |
IRdfHandler |
handler |
RDF Handler. |
System.Uri |
graphUri |
URI of the Graph to load. |
|
Improve this Doc
View Source
Query(String)
Makes a SPARQL Query against the underlying 4store Instance.
Declaration
public object Query(string sparqlQuery)
Parameters
Type |
Name |
Description |
System.String |
sparqlQuery |
SPARQL Query. |
Returns
|
Improve this Doc
View Source
Query(String, AsyncStorageCallback, Object)
Queries the store asynchronously.
Declaration
public void Query(string sparqlQuery, AsyncStorageCallback callback, object state)
Parameters
Type |
Name |
Description |
System.String |
sparqlQuery |
SPARQL Query. |
AsyncStorageCallback |
callback |
Callback. |
System.Object |
state |
State to pass to the callback. |
|
Improve this Doc
View Source
Query(IRdfHandler, ISparqlResultsHandler, String)
Makes a SPARQL Query against the underlying 4store Instance processing the results with the appropriate handler from those provided.
Declaration
public void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery)
Parameters
|
Improve this Doc
View Source
Query(IRdfHandler, ISparqlResultsHandler, String, AsyncStorageCallback, Object)
Queries the store asynchronously.
Declaration
public void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, AsyncStorageCallback callback, object state)
Parameters
|
Improve this Doc
View Source
SaveGraph(IGraph)
Saves a Graph to a 4store instance (Warning: Completely replaces any existing Graph with the same URI).
Declaration
public void SaveGraph(IGraph g)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to save. |
Exceptions
Type |
Condition |
RdfStorageException |
Thrown if you try and save a Graph without a Base Uri or if there is an error communicating with the 4store instance. |
|
Improve this Doc
View Source
SaveGraph(IGraph, AsyncStorageCallback, Object)
Saves a Graph to the Store asynchronously.
Declaration
public override void SaveGraph(IGraph g, AsyncStorageCallback callback, object state)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to save. |
AsyncStorageCallback |
callback |
Callback. |
System.Object |
state |
State to pass to the callback. |
Overrides
|
Improve this Doc
View Source
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the connection's configuration.
Declaration
public void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
|
Improve this Doc
View Source
ToString()
Gets a String which gives details of the Connection.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Update(String)
Applies a SPARQL Update against 4store.
Declaration
public void Update(string sparqlUpdate)
Parameters
Type |
Name |
Description |
System.String |
sparqlUpdate |
SPARQL Update. |
|
Improve this Doc
View Source
Update(String, AsyncStorageCallback, Object)
Updates the store asynchronously.
Declaration
public void Update(string sparqlUpdates, AsyncStorageCallback callback, object state)
Parameters
Type |
Name |
Description |
System.String |
sparqlUpdates |
SPARQL Update. |
AsyncStorageCallback |
callback |
Callback. |
System.Object |
state |
State to pass to the callback. |
|
Improve this Doc
View Source
UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a Graph in the store.
Declaration
public void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type |
Name |
Description |
System.String |
graphUri |
Uri of the Graph to Update. |
System.Collections.Generic.IEnumerable<Triple> |
additions |
Triples to be added. |
System.Collections.Generic.IEnumerable<Triple> |
removals |
Triples to be removed. |
|
Improve this Doc
View Source
UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
Updates a Graph in the Store asychronously.
Declaration
public override void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, AsyncStorageCallback callback, object state)
Parameters
Type |
Name |
Description |
System.String |
graphUri |
URI of the Graph to update. |
System.Collections.Generic.IEnumerable<Triple> |
additions |
Triples to be added. |
System.Collections.Generic.IEnumerable<Triple> |
removals |
Triples to be removed. |
AsyncStorageCallback |
callback |
Callback. |
System.Object |
state |
State to pass to the callback. |
Overrides
|
Improve this Doc
View Source
UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a Graph in the store.
Declaration
public void UpdateGraph(Uri graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Uri of the Graph to Update. |
System.Collections.Generic.IEnumerable<Triple> |
additions |
Triples to be added. |
System.Collections.Generic.IEnumerable<Triple> |
removals |
Triples to be removed. |
Implements
System.IDisposable
Extension Methods