Show / Hide Table of Contents

Class PathTransformContext

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

Inheritance
System.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

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

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

| Improve this Doc View Source

End

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

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

NextID

Gets the Next ID to be used.

Declaration
public int NextID { get; set; }
Property Value
Type Description
int
| Improve this Doc 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
| Improve this Doc 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
| Improve this Doc View Source

Top

Gets/Sets whether this is the Top Level Pattern.

Declaration
public bool Top { get; set; }
Property Value
Type Description
System.Boolean

Methods

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

| Improve this Doc View Source

GetNextTemporaryVariable()

Gets the next available temporary variable.

Declaration
public BlankNodePattern GetNextTemporaryVariable()
Returns
Type Description
BlankNodePattern
| Improve this Doc 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
| Improve this Doc View Source

ResetObject()

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

Declaration
public void ResetObject()
| Improve this Doc 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)
  • Improve this Doc
  • 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