Show / Hide Table of Contents

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.
Inheritance
System.Object
BaseGraph
Graph
BaseSparqlView
NativeSparqlView
SparqlView
Implements
IGraph
INodeFactory
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable
Inherited Members
Graph.Assert(Triple)
Graph.Assert(IEnumerable<Triple>)
Graph.Retract(Triple)
Graph.Retract(IEnumerable<Triple>)
Graph.GetUriNode(Uri)
Graph.GetUriNode(String)
Graph.GetLiteralNode(String)
Graph.GetLiteralNode(String, String)
Graph.GetLiteralNode(String, Uri)
Graph.GetBlankNode(String)
Graph.GetTriples(INode)
Graph.GetTriples(Uri)
Graph.GetTriplesWithSubject(INode)
Graph.GetTriplesWithSubject(Uri)
Graph.GetTriplesWithPredicate(INode)
Graph.GetTriplesWithPredicate(Uri)
Graph.GetTriplesWithObject(INode)
Graph.GetTriplesWithObject(Uri)
Graph.GetTriplesWithSubjectPredicate(INode, INode)
Graph.GetTriplesWithSubjectObject(INode, INode)
Graph.GetTriplesWithPredicateObject(INode, INode)
BaseGraph._triples
BaseGraph._nsmapper
BaseGraph._baseuri
BaseGraph._bnodemapper
BaseGraph.Triples
BaseGraph.Nodes
BaseGraph.AllNodes
BaseGraph.NamespaceMap
BaseGraph.BaseUri
BaseGraph.IsEmpty
BaseGraph.Clear()
BaseGraph.CreateBlankNode()
BaseGraph.CreateBlankNode(String)
BaseGraph.CreateLiteralNode(String)
BaseGraph.CreateLiteralNode(String, String)
BaseGraph.CreateLiteralNode(String, Uri)
BaseGraph.CreateUriNode()
BaseGraph.CreateUriNode(Uri)
BaseGraph.CreateUriNode(String)
BaseGraph.CreateVariableNode(String)
BaseGraph.CreateGraphLiteralNode()
BaseGraph.CreateGraphLiteralNode(IGraph)
BaseGraph.ContainsTriple(Triple)
BaseGraph.Merge(IGraph)
BaseGraph.Merge(IGraph, Boolean)
BaseGraph.Equals(Object)
BaseGraph.Equals(IGraph, Dictionary<INode, INode>)
BaseGraph.IsSubGraphOf(IGraph)
BaseGraph.IsSubGraphOf(IGraph, Dictionary<INode, INode>)
BaseGraph.HasSubGraph(IGraph)
BaseGraph.HasSubGraph(IGraph, Dictionary<INode, INode>)
BaseGraph.Difference(IGraph)
BaseGraph.ResolveQName(String)
BaseGraph.GetNextBlankNodeID()
BaseGraph.TripleAsserted
BaseGraph.TripleRetracted
BaseGraph.Changed
BaseGraph.ClearRequested
BaseGraph.Cleared
BaseGraph.MergeRequested
BaseGraph.Merged
BaseGraph.OnTripleAsserted(Object, TripleEventArgs)
BaseGraph.RaiseTripleAsserted(TripleEventArgs)
BaseGraph.RaiseTripleAsserted(Triple)
BaseGraph.OnTripleRetracted(Object, TripleEventArgs)
BaseGraph.RaiseTripleRetracted(TripleEventArgs)
BaseGraph.RaiseTripleRetracted(Triple)
BaseGraph.RaiseGraphChanged(TripleEventArgs)
BaseGraph.RaiseGraphChanged()
BaseGraph.RaiseClearRequested()
BaseGraph.RaiseCleared()
BaseGraph.RaiseMergeRequested()
BaseGraph.RaiseMerged()
BaseGraph.AttachEventHandlers(BaseTripleCollection)
BaseGraph.DetachEventHandlers(BaseTripleCollection)
BaseGraph.Dispose()
BaseGraph.GetObjectData(SerializationInfo, StreamingContext)
BaseGraph.GetSchema()
BaseGraph.ReadXml(XmlReader)
BaseGraph.WriteXml(XmlWriter)
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 Source

BaseSparqlView(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.
| Improve this Doc View Source

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

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>
| Improve this Doc View Source

_q

SPARQL Query.
Declaration
protected SparqlQuery _q
Field Value
Type Description
SparqlQuery
| Improve this Doc View Source

_store

Triple Store the query operates over.
Declaration
protected ITripleStore _store
Field Value
Type Description
ITripleStore

Properties

| Improve this Doc View Source

LastError

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 Source

UpdateView()

Forces the view to be updated.
Declaration
public void UpdateView()
| Improve this Doc View Source

UpdateViewInternal()

Abstract method that derived classes should implement to update the view.
Declaration
protected abstract void UpdateViewInternal()

Implements

IGraph
INodeFactory
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable

Extension Methods

GraphExtensions.ToDataTable(IGraph)
Extensions.AsEnumerable<T>(T)
Extensions.Assert(IGraph, INode, INode, INode)
Extensions.Retract(IGraph, INode, INode, INode)
Extensions.AssertList<T>(IGraph, IEnumerable<T>, Func<T, INode>)
Extensions.AssertList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.AssertList(IGraph, IEnumerable<INode>)
Extensions.AssertList(IGraph, INode, IEnumerable<INode>)
Extensions.GetListAsTriples(IGraph, INode)
Extensions.GetListItems(IGraph, INode)
Extensions.GetListNodes(IGraph, INode)
Extensions.RetractList(IGraph, INode)
Extensions.AddToList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.AddToList(IGraph, INode, IEnumerable<INode>)
Extensions.RemoveFromList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.RemoveFromList(IGraph, INode, IEnumerable<INode>)
GraphExtensions.ExecuteQuery(IGraph, String)
GraphExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, String)
GraphExtensions.ExecuteQuery(IGraph, SparqlParameterizedString)
GraphExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlParameterizedString)
GraphExtensions.ExecuteQuery(IGraph, SparqlQuery)
GraphExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlQuery)
GraphExtensions.LoadFromFile(IGraph, String, IRdfReader)
GraphExtensions.LoadFromFile(IGraph, String)
GraphExtensions.LoadFromUri(IGraph, Uri, IRdfReader)
GraphExtensions.LoadFromUri(IGraph, Uri)
GraphExtensions.LoadFromString(IGraph, String, IRdfReader)
GraphExtensions.LoadFromString(IGraph, String)
GraphExtensions.LoadFromEmbeddedResource(IGraph, String)
GraphExtensions.LoadFromEmbeddedResource(IGraph, String, IRdfReader)
GraphExtensions.SaveToFile(IGraph, String, IRdfWriter)
GraphExtensions.SaveToFile(IGraph, String, IStoreWriter)
GraphExtensions.SaveToFile(IGraph, String)
GraphExtensions.SaveToStream(IGraph, TextWriter, IRdfWriter)
GraphExtensions.SaveToStream(IGraph, TextWriter, IStoreWriter)
GraphExtensions.SaveToStream(IGraph, String, TextWriter)
DynamicExtensions.AsDynamic(IGraph, Uri, Uri)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseSparqlView(String, ITripleStore)
    • BaseSparqlView(SparqlParameterizedString, ITripleStore)
    • BaseSparqlView(SparqlQuery, ITripleStore)
  • Fields
    • _graphs
    • _q
    • _store
  • Properties
    • LastError
  • Methods
    • UpdateView()
    • UpdateViewInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX