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
| Improve this Doc 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. |
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.
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. |
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.
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. |
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.
Fields
| Improve this Doc View Source_graphs
Graphs that are mentioned in the Query.
Declaration
protected HashSet<string> _graphs
Field Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<T><string> |
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.
_q
SPARQL Query.
Declaration
protected SparqlQuery _q
Field Value
Type | Description |
---|---|
SparqlQuery |
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.
_store
Triple Store the query operates over.
Declaration
protected ITripleStore _store
Field Value
Type | Description |
---|---|
ITripleStore |
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.
Properties
| Improve this Doc 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 |
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.
Methods
| Improve this Doc View SourceUpdateView()
Forces the view to be updated.
Declaration
public void UpdateView()
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.
UpdateViewInternal()
Abstract method that derived classes should implement to update the view.
Declaration
protected abstract void UpdateViewInternal()
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.