Show / Hide Table of Contents

Class QueryableReadOnlyConnector

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

Inheritance
System.Object
ReadOnlyConnector
QueryableReadOnlyConnector
Implements
IConfigurationSerializable
IQueryableStorage
IStorageProvider
IStorageCapabilities
System.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

| Improve this Doc 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.

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 Source

ListGraphsSupported

Returns that listing Graphs is supported.

Declaration
public override bool ListGraphsSupported { get; }
Property Value
Type Description
System.Boolean
Overrides
ReadOnlyConnector.ListGraphsSupported
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 Source

ListGraphNames()

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
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.

| Improve this Doc View Source

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
ReadOnlyConnector.ListGraphs()
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.

| Improve this Doc 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
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.

| Improve this Doc 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.

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.

Implements

IConfigurationSerializable
IQueryableStorage
IStorageProvider
IStorageCapabilities
System.IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • 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