Class PathTransformContext
Transform Context class that is used in the Path to Algebra Transformation process.
Inherited Members
Namespace: VDS.RDF.Query.Paths
Assembly: dotNetRdf.dll
Syntax
public class PathTransformContext
Constructors
| Edit this page View SourcePathTransformContext(PathTransformContext)
Creates a new Path Transform Context from an existing context.
Declaration
public PathTransformContext(PathTransformContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| PathTransformContext | context | Context. |
PathTransformContext(PatternItem, PatternItem)
Creates a new Path Transform Context.
Declaration
public PathTransformContext(PatternItem start, PatternItem end)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternItem | start | Subject that is the start of the Path. |
| PatternItem | end | Object that is the end of the Path. |
Properties
| Edit this page View SourceEnd
Gets/Sets the Object at the end of the Pattern.
Declaration
public PatternItem End { get; set; }
Property Value
| Type | Description |
|---|---|
| PatternItem |
NextID
Gets the Next ID to be used.
Declaration
public int NextID { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Object
Gets/Sets the Object of the Triple Pattern at this point in the Path Transformation.
Declaration
public PatternItem Object { get; set; }
Property Value
| Type | Description |
|---|---|
| PatternItem |
Subject
Gets/Sets the Subject of the Triple Pattern at this point in the Path Transformation.
Declaration
public PatternItem Subject { get; set; }
Property Value
| Type | Description |
|---|---|
| PatternItem |
Top
Gets/Sets whether this is the Top Level Pattern.
Declaration
public bool Top { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceAddTriplePattern(ITriplePattern)
Adds a Triple Pattern to the Path Transform.
Declaration
public void AddTriplePattern(ITriplePattern p)
Parameters
| Type | Name | Description |
|---|---|---|
| ITriplePattern | p | Triple Pattern. |
GetNextTemporaryVariable()
Gets the next available temporary variable.
Declaration
public BlankNodePattern GetNextTemporaryVariable()
Returns
| Type | Description |
|---|---|
| BlankNodePattern |
GetTriplePattern(PatternItem, ISparqlPath, PatternItem)
Creates a Triple Pattern.
Declaration
public ITriplePattern GetTriplePattern(PatternItem subj, ISparqlPath path, PatternItem obj)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternItem | subj | Subject. |
| ISparqlPath | path | Property Path. |
| PatternItem | obj | Object. |
Returns
| Type | Description |
|---|---|
| ITriplePattern |
ResetObject()
Resets the current Object to be the end Object of the Path.
Declaration
public void ResetObject()
ToAlgebra()
Returns the BGP that the Path Transform produces.
Declaration
public ISparqlAlgebra ToAlgebra()
Returns
| Type | Description |
|---|---|
| ISparqlAlgebra |