Class ZeroLengthPath
Represents a Zero Length Path in the SPARQL Algebra.
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class ZeroLengthPath : BasePathOperator, IPathOperator, ISparqlAlgebra, IVisitable, IProcessable
Constructors
| Edit this page View SourceZeroLengthPath(PatternItem, PatternItem, ISparqlPath)
Creates a new Zero Length Path.
Declaration
public ZeroLengthPath(PatternItem start, PatternItem end, ISparqlPath path)
Parameters
Type | Name | Description |
---|---|---|
PatternItem | start | Path Start. |
PatternItem | end | Path End. |
ISparqlPath | path | Property Path. |
Methods
| Edit this page View SourceAccept<T>(ISparqlAlgebraVisitor<T>)
Accept a simple algebra visitor.
Declaration
public override T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAlgebraVisitor<T> | visitor | The visitor implementation. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The type returned by the Visit methods of the visitor. |
Overrides
| Edit this page View SourceAccept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Called by an algebra visitor to process an item by invoking the appropriate method on the processor
passed in.
Declaration
public override TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
Type | Name | Description |
---|---|---|
ISparqlQueryAlgebraProcessor<TResult, TContext> | processor | The processor to invoke. |
TContext | context | The context to pass to the processor. |
Returns
Type | Description |
---|---|
TResult | The result of invoking the processor method. |
Type Parameters
Name | Description |
---|---|
TResult | The type of result returned by the processor. |
TContext | The type of the context object to be provided to the processor. |
Overrides
| Edit this page View SourceAreBothTerms()
Return true if both the path start and the path end are fixed terms, or false if either start or end are a variable.
Declaration
public bool AreBothTerms()
Returns
Type | Description |
---|---|
bool |
AreSameTerms()
Return true of the path start and path end reference the same term, false otherwise.
Declaration
public bool AreSameTerms()
Returns
Type | Description |
---|---|
bool |
ToGraphPattern()
Transforms the Algebra back into a Graph Pattern.
Declaration
public override GraphPattern ToGraphPattern()
Returns
Type | Description |
---|---|
GraphPattern |
Overrides
| Edit this page View SourceToString()
Gets the String representation of the Algebra.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |