Class FusekiConnector
Class for connecting to any dataset that can be exposed via Fuseki.
Inheritance
System.Object
FusekiConnector
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)
Namespace: VDS.RDF.Storage
Assembly: dotNetRDF.dll
Syntax
public class FusekiConnector : SparqlHttpProtocolConnector, IAsyncUpdateableStorage, IAsyncQueryableStorage, IAsyncStorageProvider, IConfigurationSerializable, IUpdateableStorage, IQueryableStorage, IStorageProvider, IStorageCapabilities, IDisposable
Remarks
Uses all three Services provided by a Fuseki instance - Query, Update and HTTP Update.
Constructors
| Improve this Doc View SourceFusekiConnector(String, IWebProxy)
Creates a new connection to a Fuseki Server.
Declaration
public FusekiConnector(string serviceUri, IWebProxy proxy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | serviceUri | The /data URI of the Fuseki Server. |
| System.Net.IWebProxy | proxy | Proxy Server. |
FusekiConnector(String, MimeTypeDefinition)
Creates a new connection to a Fuseki Server.
Declaration
public FusekiConnector(string serviceUri, MimeTypeDefinition writerMimeTypeDefinition = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | serviceUri | The /data URI of the Fuseki Server. |
| MimeTypeDefinition | writerMimeTypeDefinition | The MIME type of the syntax to use when sending RDF data to the server. Defaults to RDF/XML. |
FusekiConnector(Uri, IWebProxy)
Creates a new connection to a Fuseki Server.
Declaration
public FusekiConnector(Uri serviceUri, IWebProxy proxy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | serviceUri | The /data URI of the Fuseki Server. |
| System.Net.IWebProxy | proxy | Proxy Server. |
FusekiConnector(Uri, MimeTypeDefinition)
Creates a new connection to a Fuseki Server.
Declaration
public FusekiConnector(Uri serviceUri, MimeTypeDefinition writerMimeTypeDefinition = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | serviceUri | The /data URI of the Fuseki Server. |
| MimeTypeDefinition | writerMimeTypeDefinition | The MIME type of the syntax to use when sending RDF data to the server. Defaults to RDF/XML. |
Properties
| Improve this Doc View SourceIOBehaviour
Gets the IO Behaviour of the Store.
Declaration
public override IOBehaviour IOBehaviour { get; }
Property Value
| Type | Description |
|---|---|
| IOBehaviour |
Overrides
| Improve this Doc View SourceListGraphsSupported
Returns that Listing Graphs is supported.
Declaration
public override bool ListGraphsSupported { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceUpdateSupported
Returns that Triple level updates are supported using Fuseki.
Declaration
public override bool UpdateSupported { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Methods
| Improve this Doc View SourceListGraphs()
Gets the List of Graphs from the store.
Declaration
public override IEnumerable<Uri> ListGraphs()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Uri> |
Overrides
| Improve this Doc View SourceListGraphs(AsyncStorageCallback, Object)
Lists the graph sin the Store asynchronously.
Declaration
public override void ListGraphs(AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
Overrides
| Improve this Doc View SourceQuery(String)
Executes a SPARQL Query on the Fuseki store.
Declaration
public object Query(string sparqlQuery)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sparqlQuery | SPARQL Query. |
Returns
| Type | Description |
|---|---|
| System.Object |
Query(String, AsyncStorageCallback, Object)
Makes a SPARQL Query against the underlying store.
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. |
Query(IRdfHandler, ISparqlResultsHandler, String)
Executes a SPARQL Query on the Fuseki store processing the results using an appropriate handler from those provided.
Declaration
public void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery)
Parameters
| Type | Name | Description |
|---|---|---|
| IRdfHandler | rdfHandler | RDF Handler. |
| ISparqlResultsHandler | resultsHandler | Results Handler. |
| System.String | sparqlQuery | SPARQL Query. |
Query(IRdfHandler, ISparqlResultsHandler, String, AsyncStorageCallback, Object)
Executes a SPARQL Query on the Fuseki store processing the results using an appropriate handler from those provided.
Declaration
public void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| IRdfHandler | rdfHandler | RDF Handler. |
| ISparqlResultsHandler | resultsHandler | Results Handler. |
| System.String | sparqlQuery | SPARQL Query. |
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the connection's configuration.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ConfigurationSerializationContext | context | Configuration Serialization Context. |
Overrides
| Improve this Doc View SourceToString()
Gets a String which gives details of the Connection.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
| Improve this Doc View SourceUpdate(String)
Executes SPARQL Updates against the Fuseki store.
Declaration
public void Update(string sparqlUpdate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sparqlUpdate | SPARQL Update. |
Update(String, AsyncStorageCallback, Object)
Executes SPARQL Updates against the Fuseki store.
Declaration
public void Update(string sparqlUpdate, AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sparqlUpdate | SPARQL Update. |
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a Graph in the Fuseki store.
Declaration
public override 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. |
Overrides
| Improve this Doc View SourceUpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
Updates a Graph on the Fuseki Server.
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 SourceUpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a Graph in the Fuseki store.
Declaration
public override 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. |
Overrides
Implements
System.IDisposable