Show / Hide Table of Contents

Class QueryableReadOnlyConnector

Provides a Read-Only wrapper that can be placed around another IQueryableStorage instance.

Inheritance
object
ReadOnlyConnector
QueryableReadOnlyConnector
Implements
IConfigurationSerializable
IQueryableStorage
IStorageProvider
IStorageCapabilities
IDisposable
Inherited Members
ReadOnlyConnector.ParentServer
ReadOnlyConnector.LoadGraph(IGraph, Uri)
ReadOnlyConnector.LoadGraph(IGraph, string)
ReadOnlyConnector.LoadGraph(IRdfHandler, Uri)
ReadOnlyConnector.LoadGraph(IRdfHandler, string)
ReadOnlyConnector.SaveGraph(IGraph)
ReadOnlyConnector.IOBehaviour
ReadOnlyConnector.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
ReadOnlyConnector.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>)
ReadOnlyConnector.UpdateGraph(IRefNode, IEnumerable<Triple>, IEnumerable<Triple>)
ReadOnlyConnector.UpdateSupported
ReadOnlyConnector.DeleteGraph(Uri)
ReadOnlyConnector.DeleteGraph(string)
ReadOnlyConnector.DeleteSupported
ReadOnlyConnector.IsReady
ReadOnlyConnector.IsReadOnly
ReadOnlyConnector.Dispose()
ReadOnlyConnector.ToString()
ReadOnlyConnector.SerializeConfiguration(ConfigurationSerializationContext)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 Source

QueryableReadOnlyConnector(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 Source

ListGraphsSupported

Returns that listing Graphs is supported.

Declaration
public override bool ListGraphsSupported { get; }
Property Value
Type Description
bool
Overrides
ReadOnlyConnector.ListGraphsSupported

Methods

| Edit this page View Source

ListGraphNames()

Gets an enumeration of the names of the graphs in the store.

Declaration
public override IEnumerable<string> ListGraphNames()
Returns
Type Description
IEnumerable<string>
Overrides
ReadOnlyConnector.ListGraphNames()
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.

| Edit this page View Source

ListGraphs()

Lists the Graphs in the Store.

Declaration
[Obsolete("Replaced by ListGraphNames")]
public override IEnumerable<Uri> ListGraphs()
Returns
Type Description
IEnumerable<Uri>
Overrides
ReadOnlyConnector.ListGraphs()
| Edit this page View Source

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
object
| Edit this page View Source

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.

Implements

IConfigurationSerializable
IQueryableStorage
IStorageProvider
IStorageCapabilities
IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • QueryableReadOnlyConnector(IQueryableStorage)
  • Properties
    • ListGraphsSupported
  • Methods
    • ListGraphNames()
    • ListGraphs()
    • Query(string)
    • Query(IRdfHandler, ISparqlResultsHandler, string)
  • Implements
  • Extension Methods
Back to top Generated by DocFX