Class PotentialPath
Class representing a potential path used during the evaluation of complex property paths.
Inheritance
System.Object
PotentialPath
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query.Paths
Assembly: dotNetRDF.dll
Syntax
public class PotentialPath
Constructors
| Improve this Doc 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
| Improve this Doc 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 |
|---|---|
| System.Boolean |
IsDeadEnd
Gets/Sets whether the Path is a dead-end.
Declaration
public bool IsDeadEnd { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
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 |
|---|---|
| System.Boolean |
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.
|
Improve this Doc
View Source
Length
Gets/Sets the Length of the Path.
Declaration
public int Length { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Start
Gets the Start of the Path.
Declaration
public INode Start { get; }
Property Value
| Type | Description |
|---|---|
| INode |
Methods
| Improve this Doc View SourceEquals(Object)
Checks whether the other object is an equivalent potential path.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | Object to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Gets the Hash Code for the potential path.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Gets the String representation of the path.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()