Class BindPattern
Class for representing BIND assignments in SPARQL Queries.
Inheritance
System.Object
BindPattern
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 BindPattern : BaseTriplePattern, IComparable<BindPattern>, IAssignmentPattern, ITriplePattern, IComparable<ITriplePattern>, IProcessable, IVisitable, IComparable<IAssignmentPattern>
Constructors
|
Improve this Doc
View Source
BindPattern(string, ISparqlExpression)
Creates a new BIND Pattern.
Declaration
public BindPattern(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 BIND can never contain a Blank Variable.
Declaration
public override bool HasNoBlankVariables { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
InnerExpression
Get the expressions which generates a value to be assigned to the variable.
Declaration
public ISparqlExpression InnerExpression { get; }
Property Value
|
Improve this Doc
View Source
IsAcceptAll
Returns that this is not an accept all since it is a BIND 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
Variable
Get the variable to assign to.
Declaration
public string Variable { get; }
Property Value
|
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(BindPattern)
Compares this Bind to another Bind.
Declaration
public int CompareTo(BindPattern other)
Parameters
Type |
Name |
Description |
BindPattern |
other |
Bind 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
CompareTo(IAssignmentPattern)
Compares this Bind to another Bind.
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
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