Show / Hide Table of Contents

Interface IQueryableStorage

Interface for storage providers which allow SPARQL Queries to be made against them.

Inherited Members
IStorageProvider.ParentServer
IStorageProvider.LoadGraph(IGraph, Uri)
IStorageProvider.LoadGraph(IGraph, string)
IStorageProvider.LoadGraph(IRdfHandler, Uri)
IStorageProvider.LoadGraph(IRdfHandler, string)
IStorageProvider.SaveGraph(IGraph)
IStorageProvider.UpdateGraph(IRefNode, IEnumerable<Triple>, IEnumerable<Triple>)
IStorageProvider.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
IStorageProvider.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>)
IStorageProvider.DeleteGraph(Uri)
IStorageProvider.DeleteGraph(string)
IStorageProvider.ListGraphs()
IStorageProvider.ListGraphNames()
IStorageCapabilities.IsReady
IStorageCapabilities.IsReadOnly
IStorageCapabilities.IOBehaviour
IStorageCapabilities.UpdateSupported
IStorageCapabilities.DeleteSupported
IStorageCapabilities.ListGraphsSupported
IDisposable.Dispose()
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public interface IQueryableStorage : IStorageProvider, IStorageCapabilities, IDisposable

Methods

| Edit this page View Source

Query(string)

Makes a SPARQL Query against the underlying store.

Declaration
object Query(string sparqlQuery)
Parameters
Type Name Description
string sparqlQuery

SPARQL Query.

Returns
Type Description
object

SparqlResultSet or a Graph depending on the Sparql Query.

Exceptions
Type Condition
RdfQueryException

Thrown if an error occurs performing the query.

RdfStorageException

Thrown if an error occurs performing the query.

RdfParseException

Thrown if the query is invalid when validated by dotNetRDF prior to passing the query request to the store or if the request succeeds but the store returns malformed results.

RdfParserSelectionException

Thrown if the store returns results in a format dotNetRDF does not understand.

| Edit this page View Source

Query(IRdfHandler, ISparqlResultsHandler, string)

Makes a SPARQL Query against the underlying store processing the resulting Graph/Result Set with a handler of your choice.

Declaration
void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery)
Parameters
Type Name Description
IRdfHandler rdfHandler

RDF Handler.

ISparqlResultsHandler resultsHandler

SPARQL Results Handler.

string sparqlQuery

SPARQL Query.

Exceptions
Type Condition
RdfQueryException

Thrown if an error occurs performing the query.

RdfStorageException

Thrown if an error occurs performing the query.

RdfParseException

Thrown if the query is invalid when validated by dotNetRDF prior to passing the query request to the store or if the request succeeds but the store returns malformed results.

RdfParserSelectionException

Thrown if the store returns results in a format dotNetRDF does not understand.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Methods
    • Query(string)
    • Query(IRdfHandler, ISparqlResultsHandler, string)
  • Extension Methods
Back to top Generated by DocFX