Class QueryableReadOnlyConnector
Provides a Read-Only wrapper that can be placed around another IQueryableStorage instance.
Implements
Inherited Members
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public class QueryableReadOnlyConnector : ReadOnlyConnector, IConfigurationSerializable, IQueryableStorage, IStorageProvider, IStorageCapabilities, IDisposable
Remarks
This is useful if you want to allow some code read-only access to a mutable store and ensure that it cannot modify the store via the manager instance.
Constructors
| Improve this Doc View SourceQueryableReadOnlyConnector(IQueryableStorage)
Creates a new Queryable Read-Only connection which is a read-only wrapper around another store.
Declaration
public QueryableReadOnlyConnector(IQueryableStorage manager)
Parameters
Type | Name | Description |
---|---|---|
IQueryableStorage | manager | Manager for the Store you want to wrap as read-only. |
Remarks
This is useful if you want to allow some code read-only access to a mutable store and ensure that it cannot modify the store via the manager instance.
Properties
| Improve this Doc View SourceListGraphsSupported
Returns that listing Graphs is supported.
Declaration
public override bool ListGraphsSupported { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Remarks
This is useful if you want to allow some code read-only access to a mutable store and ensure that it cannot modify the store via the manager instance.
Methods
| Improve this Doc View SourceListGraphNames()
Gets an enumeration of the names of the graphs in the store.
Declaration
public override IEnumerable<string> ListGraphNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><string> |
Overrides
Remarks
Implementations should implement this method only if they need to provide a custom way of listing Graphs. If the Store for which you are providing a manager can efficiently return the Graphs using a SELECT DISTINCT ?g WHERE { GRAPH ?g { ?s ?p ?o } } query then there should be no need to implement this function.
ListGraphs()
Lists the Graphs in the Store.
Declaration
[Obsolete("Replaced by ListGraphNames")]
public override IEnumerable<Uri> ListGraphs()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><System.Uri> |
Overrides
Remarks
This is useful if you want to allow some code read-only access to a mutable store and ensure that it cannot modify the store via the manager instance.
Query(string)
Executes a SPARQL Query on the underlying Store.
Declaration
public object Query(string sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
string | sparqlQuery | SPARQL Query. |
Returns
Type | Description |
---|---|
System.Object |
Remarks
This is useful if you want to allow some code read-only access to a mutable store and ensure that it cannot modify the store via the manager instance.
Query(IRdfHandler, ISparqlResultsHandler, string)
Executes a SPARQL Query on the underlying Store processing the results with 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. |
string | sparqlQuery | SPARQL Query. |
Remarks
This is useful if you want to allow some code read-only access to a mutable store and ensure that it cannot modify the store via the manager instance.