Class LetPattern
Class for representing LET Patterns in SPARQL Queries.
Inheritance
System.Object
LetPattern
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Assembly: dotNetRdf.dll
Syntax
public class LetPattern : BaseTriplePattern, IComparable<LetPattern>, IAssignmentPattern, ITriplePattern, IComparable<ITriplePattern>, IProcessable, IVisitable, IComparable<IAssignmentPattern>
Constructors
|
Improve this Doc
View Source
LetPattern(string, ISparqlExpression)
Creates a new LET Pattern.
Declaration
public LetPattern(string var, ISparqlExpression expr)
Parameters
Type |
Name |
Description |
string |
var |
Variable to assign to.
|
ISparqlExpression |
expr |
Expression which generates a value which will be assigned to the variable.
|
Properties
|
Improve this Doc
View Source
AssignExpression
Gets the Expression that is used to generate values to be assigned.
Declaration
public ISparqlExpression AssignExpression { get; }
Property Value
|
Improve this Doc
View Source
FixedVariables
Returns an empty enumeration as any evaluation error will result in an unbound value so we can't guarantee any variables are bound.
Declaration
public override IEnumerable<string> FixedVariables { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<T><string> |
|
Overrides
|
Improve this Doc
View Source
FloatingVariables
Returns the variable being assigned to as any evaluation error will result in an unbound value so we can't guarantee it is bound.
Declaration
public override IEnumerable<string> FloatingVariables { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<T><string> |
|
Overrides
|
Improve this Doc
View Source
HasNoBlankVariables
Returns true as a LET can never contain Blank Nodes.
Declaration
public override bool HasNoBlankVariables { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
IsAcceptAll
Returns that this is not an accept all since it is a LET assignment.
Declaration
public override bool IsAcceptAll { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
PatternType
Declaration
public override TriplePatternType PatternType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
UsesDefaultDataset
Gets whether the Pattern uses the Default Dataset.
Declaration
public override bool UsesDefaultDataset { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
VariableName
Gets the Name of the Variable to which values will be assigned.
Declaration
public string VariableName { get; }
Property Value
Methods
|
Improve this Doc
View Source
Accept<T>(ISparqlAlgebraVisitor<T>)
Declaration
public override T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Returns
Type Parameters
Overrides
VDS.RDF.Query.Patterns.BaseTriplePattern.Accept<T>(VDS.RDF.Query.ISparqlAlgebraVisitor<T>)
|
Improve this Doc
View Source
Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Declaration
public override TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
Returns
Type Parameters
Name |
Description |
TResult |
|
TContext |
|
Overrides
VDS.RDF.Query.Patterns.BaseTriplePattern.Accept<TResult, TContext>(VDS.RDF.Query.ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
|
Improve this Doc
View Source
CompareTo(IAssignmentPattern)
Compares this Let to another Let.
Declaration
public int CompareTo(IAssignmentPattern other)
Parameters
Returns
Type |
Description |
int |
Just calls the base compare method since that implements all the logic we need.
|
|
Improve this Doc
View Source
CompareTo(LetPattern)
Compares this Let to another Let.
Declaration
public int CompareTo(LetPattern other)
Parameters
Type |
Name |
Description |
LetPattern |
other |
Let to compare to.
|
Returns
Type |
Description |
int |
Just calls the base compare method since that implements all the logic we need.
|
|
Improve this Doc
View Source
ToString()
Gets the string representation of the LET assignment.
Declaration
public override string ToString()
Returns
Overrides
Implements
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
Extension Methods