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
| Edit this page 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. |
Properties
| Edit this page View SourceListGraphsSupported
Returns that listing Graphs is supported.
Declaration
public override bool ListGraphsSupported { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceListGraphNames()
Gets an enumeration of the names of the graphs in the store.
Declaration
public override IEnumerable<string> ListGraphNames()
Returns
Type | Description |
---|---|
IEnumerable<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 |
---|---|
IEnumerable<Uri> |
Overrides
| Edit this page View SourceQuery(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 |
---|---|
object |
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. |