Class BaseDescribeAlgorithm
Abstract Base Class for SPARQL Describe Algorithms which provides BNode rewriting functionality.
Inheritance
System.Object
BaseDescribeAlgorithm
Implements
Inherited Members
System.Object.Equals(System.Object)
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.Describe
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseDescribeAlgorithm : ISparqlDescribe
Methods
| Improve this Doc View SourceDescribe(IRdfHandler, SparqlEvaluationContext)
Gets the Description Graph based on the Query Results from the given Evaluation Context passing the resulting Triples to the given RDF Handler.
Declaration
public void Describe(IRdfHandler handler, SparqlEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
SparqlEvaluationContext | context | SPARQL Evaluation Context. |
Describe(SparqlEvaluationContext)
Gets the Description Graph based on the Query Results from the given Evaluation Context.
Declaration
public IGraph Describe(SparqlEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | SPARQL Evaluation Context. |
Returns
Type | Description |
---|---|
IGraph |
DescribeInternal(IRdfHandler, SparqlEvaluationContext, IEnumerable<INode>)
Generates the Description for each of the Nodes to be described.
Declaration
protected abstract void DescribeInternal(IRdfHandler handler, SparqlEvaluationContext context, IEnumerable<INode> nodes)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
SparqlEvaluationContext | context | SPARQL Evaluation Context. |
System.Collections.Generic.IEnumerable<INode> | nodes | Nodes to be described. |
RewriteDescribeBNodes(Triple, Dictionary<String, INode>, INodeFactory)
Helper method which rewrites Blank Node IDs for Describe Queries.
Declaration
protected Triple RewriteDescribeBNodes(Triple t, Dictionary<string, INode> mapping, INodeFactory factory)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
System.Collections.Generic.Dictionary<System.String, INode> | mapping | Mapping of IDs to new Blank Nodes. |
INodeFactory | factory | Factory to create Nodes in. |
Returns
Type | Description |
---|---|
Triple |