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.
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseSparqlView : Graph, IGraph, INodeFactory, IDisposable, IXmlSerializable, ISerializable
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)
Creates a new SPARQL View.
Declaration
protected BaseSparqlView(string sparqlQuery, ITripleStore store)
Parameters
Type | Name | Description |
---|---|---|
System.String | sparqlQuery | SPARQL Query. |
ITripleStore | store | Triple Store to query. |
BaseSparqlView(SparqlParameterizedString, ITripleStore)
Creates a new SPARQL View.
Declaration
protected BaseSparqlView(SparqlParameterizedString sparqlQuery, ITripleStore store)
Parameters
Type | Name | Description |
---|---|---|
SparqlParameterizedString | sparqlQuery | SPARQL Query. |
ITripleStore | store | Triple Store to query. |
BaseSparqlView(SparqlQuery, ITripleStore)
Creates a new SPARQL View.
Declaration
protected BaseSparqlView(SparqlQuery sparqlQuery, ITripleStore store)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | sparqlQuery | SPARQL Query. |
ITripleStore | store | Triple Store to query. |
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<System.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
| 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 |
Methods
| Improve this Doc 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()
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable