Class BaseSparqlView
Abstract Base class for SPARQL Views which are Graphs which are generated from SPARQL Queries and get automatically updated when the Store they are attached to changes.
Inherited Members
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseSparqlView : Graph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>, IEquatable<Graph>
Remarks
CONSTRUCT, DESCRIBE or SELECT queries can be used to generate a Graph. If you use a SELECT query the returned variables must contain ?s, ?p and ?o in order to generate a view correctly.
Constructors
| Edit this page View SourceBaseSparqlView(string, ITripleStore, IRefNode)
Creates a new SPARQL View.
Declaration
protected BaseSparqlView(string sparqlQuery, ITripleStore store, IRefNode name = null)
Parameters
Type | Name | Description |
---|---|---|
string | sparqlQuery | SPARQL Query. |
ITripleStore | store | Triple Store to query. |
IRefNode | name | The graph name to assign to the view. |
BaseSparqlView(SparqlParameterizedString, ITripleStore, IRefNode)
Creates a new SPARQL View.
Declaration
protected BaseSparqlView(SparqlParameterizedString sparqlQuery, ITripleStore store, IRefNode name = null)
Parameters
Type | Name | Description |
---|---|---|
SparqlParameterizedString | sparqlQuery | SPARQL Query. |
ITripleStore | store | Triple Store to query. |
IRefNode | name | The graph name to assign to the view. |
BaseSparqlView(SparqlQuery, ITripleStore, IRefNode)
Creates a new SPARQL View.
Declaration
protected BaseSparqlView(SparqlQuery sparqlQuery, ITripleStore store, IRefNode name = null)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | sparqlQuery | SPARQL Query. |
ITripleStore | store | Triple Store to query. |
IRefNode | name | The graph name to assign to the view. |
Fields
| Edit this page View Source_graphs
Graphs that are mentioned in the Query.
Declaration
protected HashSet<string> _graphs
Field Value
Type | Description |
---|---|
HashSet<string> |
_q
SPARQL Query.
Declaration
protected SparqlQuery _q
Field Value
Type | Description |
---|---|
SparqlQuery |
_store
Triple Store the query operates over.
Declaration
protected ITripleStore _store
Field Value
Type | Description |
---|---|
ITripleStore |
Properties
| Edit this page View SourceLastError
Gets the error that occurred during the last update (if any).
Declaration
public RdfQueryException LastError { get; protected set; }
Property Value
Type | Description |
---|---|
RdfQueryException |
Methods
| Edit this page View SourceUpdateView()
Forces the view to be updated.
Declaration
public void UpdateView()
UpdateViewInternal()
Abstract method that derived classes should implement to update the view.
Declaration
protected abstract void UpdateViewInternal()