Show / Hide Table of Contents

Class PathTransformContext

Transform Context class that is used in the Path to Algebra Transformation process.

Inheritance
object
PathTransformContext
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query.Paths
Assembly: dotNetRdf.dll
Syntax
public class PathTransformContext

Constructors

| Edit this page View Source

PathTransformContext(PathTransformContext)

Creates a new Path Transform Context from an existing context.

Declaration
public PathTransformContext(PathTransformContext context)
Parameters
Type Name Description
PathTransformContext context

Context.

| Edit this page View Source

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 Source

End

Gets/Sets the Object at the end of the Pattern.

Declaration
public PatternItem End { get; set; }
Property Value
Type Description
PatternItem
| Edit this page View Source

NextID

Gets the Next ID to be used.

Declaration
public int NextID { get; set; }
Property Value
Type Description
int
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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 Source

AddTriplePattern(ITriplePattern)

Adds a Triple Pattern to the Path Transform.

Declaration
public void AddTriplePattern(ITriplePattern p)
Parameters
Type Name Description
ITriplePattern p

Triple Pattern.

| Edit this page View Source

GetNextTemporaryVariable()

Gets the next available temporary variable.

Declaration
public BlankNodePattern GetNextTemporaryVariable()
Returns
Type Description
BlankNodePattern
| Edit this page View Source

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
| Edit this page View Source

ResetObject()

Resets the current Object to be the end Object of the Path.

Declaration
public void ResetObject()
| Edit this page View Source

ToAlgebra()

Returns the BGP that the Path Transform produces.

Declaration
public ISparqlAlgebra ToAlgebra()
Returns
Type Description
ISparqlAlgebra

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • PathTransformContext(PathTransformContext)
    • PathTransformContext(PatternItem, PatternItem)
  • Properties
    • End
    • NextID
    • Object
    • Subject
    • Top
  • Methods
    • AddTriplePattern(ITriplePattern)
    • GetNextTemporaryVariable()
    • GetTriplePattern(PatternItem, ISparqlPath, PatternItem)
    • ResetObject()
    • ToAlgebra()
  • Extension Methods
Back to top Generated by DocFX