Show / Hide Table of Contents

Class LetPattern

Class for representing LET Patterns in SPARQL Queries.

Inheritance
object
BaseTriplePattern
LetPattern
Implements
IComparable<LetPattern>
IAssignmentPattern
ITriplePattern
IComparable<ITriplePattern>
IProcessable
IVisitable
IComparable<IAssignmentPattern>
Inherited Members
BaseTriplePattern._vars
BaseTriplePattern.Variables
BaseTriplePattern.CompareTo(ITriplePattern)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class LetPattern : BaseTriplePattern, IComparable<LetPattern>, IAssignmentPattern, ITriplePattern, IComparable<ITriplePattern>, IProcessable, IVisitable, IComparable<IAssignmentPattern>

Constructors

| Edit this page 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

| Edit this page View Source

AssignExpression

Gets the Expression that is used to generate values to be assigned.

Declaration
public ISparqlExpression AssignExpression { get; }
Property Value
Type Description
ISparqlExpression
| Edit this page 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
IEnumerable<string>
Overrides
BaseTriplePattern.FixedVariables
| Edit this page 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
IEnumerable<string>
Overrides
BaseTriplePattern.FloatingVariables
| Edit this page View Source

HasNoBlankVariables

Returns true as a LET can never contain Blank Nodes.

Declaration
public override bool HasNoBlankVariables { get; }
Property Value
Type Description
bool
Overrides
BaseTriplePattern.HasNoBlankVariables
| Edit this page 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
bool
Overrides
BaseTriplePattern.IsAcceptAll
| Edit this page View Source

PatternType

Gets the Pattern Type.

Declaration
public override TriplePatternType PatternType { get; }
Property Value
Type Description
TriplePatternType
Overrides
BaseTriplePattern.PatternType
| Edit this page View Source

UsesDefaultDataset

Gets whether the Pattern uses the Default Dataset.

Declaration
public override bool UsesDefaultDataset { get; }
Property Value
Type Description
bool
Overrides
BaseTriplePattern.UsesDefaultDataset
| Edit this page View Source

VariableName

Gets the Name of the Variable to which values will be assigned.

Declaration
public string VariableName { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

Accept<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
BaseTriplePattern.Accept<T>(ISparqlAlgebraVisitor<T>)
| Edit this page View Source

Accept<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
BaseTriplePattern.Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
| Edit this page View Source

CompareTo(IAssignmentPattern)

Compares this Let to another Let.

Declaration
public int CompareTo(IAssignmentPattern other)
Parameters
Type Name Description
IAssignmentPattern other

Let to compare to.

Returns
Type Description
int

Just calls the base compare method since that implements all the logic we need.

| Edit this page 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.

| Edit this page View Source

ToString()

Gets the string representation of the LET assignment.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
BaseTriplePattern.ToString()

Implements

IComparable<T>
IAssignmentPattern
ITriplePattern
IComparable<T>
IProcessable
IVisitable
IComparable<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • LetPattern(string, ISparqlExpression)
  • Properties
    • AssignExpression
    • FixedVariables
    • FloatingVariables
    • HasNoBlankVariables
    • IsAcceptAll
    • PatternType
    • UsesDefaultDataset
    • VariableName
  • Methods
    • Accept<T>(ISparqlAlgebraVisitor<T>)
    • Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
    • CompareTo(IAssignmentPattern)
    • CompareTo(LetPattern)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX