Class PotentialPath
Class representing a potential path used during the evaluation of complex property paths.
Inherited Members
Namespace: VDS.RDF.Query.Paths
Assembly: dotNetRdf.dll
Syntax
public class PotentialPath
Constructors
| Edit this page View SourcePotentialPath(INode, INode)
Creates a new Potential Path.
Declaration
public PotentialPath(INode start, INode current)
Parameters
Type | Name | Description |
---|---|---|
INode | start | Start Point of the Path. |
INode | current | Current Point on the Path. |
PotentialPath(PotentialPath)
Creates a new Potential Path which is a copy of an existing Path.
Declaration
public PotentialPath(PotentialPath p)
Parameters
Type | Name | Description |
---|---|---|
PotentialPath | p | Potentuak Path. |
Properties
| Edit this page View SourceCurrent
Gets/Sets the Current Point of the Path - in the case of a complete Path this is the end of the Path.
Declaration
public INode Current { get; }
Property Value
Type | Description |
---|---|
INode |
IsComplete
Gets/Sets whether the Path is complete.
Declaration
public bool IsComplete { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsDeadEnd
Gets/Sets whether the Path is a dead-end.
Declaration
public bool IsDeadEnd { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
This may be useful information as it can help stop us uneccessarily regenerating partial paths which are dead ends.
IsPartial
Gets/Sets whether the Path is Partial.
Declaration
public bool IsPartial { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
While this may seem something of a misnomer what this represents is that the path is only part of the overall path so in the case of a sequence path we'll make all incomplete paths from the first part of the sequence as partial so they can't be themselves completed but they can be used to form complete paths.
Length
Gets/Sets the Length of the Path.
Declaration
public int Length { get; set; }
Property Value
Type | Description |
---|---|
int |
Start
Gets the Start of the Path.
Declaration
public INode Start { get; }
Property Value
Type | Description |
---|---|
INode |
Methods
| Edit this page View SourceEquals(object)
Checks whether the other object is an equivalent potential path.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | Object to test. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Gets the Hash Code for the potential path.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
| Edit this page View SourceToString()
Gets the String representation of the path.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |