Class BindPattern
Class for representing BIND assignments in SPARQL Queries.
Implements
System.IComparable<BindPattern>
System.IComparable<ITriplePattern>
System.IComparable<IAssignmentPattern>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRDF.dll
Syntax
public class BindPattern : BaseTriplePattern, IComparable<BindPattern>, IAssignmentPattern, ITriplePattern, IComparable<ITriplePattern>, IComparable<IAssignmentPattern>
Constructors
| Improve this Doc View SourceBindPattern(String, ISparqlExpression)
Creates a new BIND Pattern.
Declaration
public BindPattern(string var, ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
System.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 SourceAssignExpression
Gets the Expression that is used to generate values to be assigned.
Declaration
public ISparqlExpression AssignExpression { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
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<System.String> |
Overrides
| Improve this Doc View SourceFloatingVariables
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<System.String> |
Overrides
| Improve this Doc View SourceHasNoBlankVariables
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 SourceIsAcceptAll
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 SourcePatternType
Gets the Pattern Type.
Declaration
public override TriplePatternType PatternType { get; }
Property Value
Type | Description |
---|---|
TriplePatternType |
Overrides
| Improve this Doc View SourceUsesDefaultDataset
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 SourceVariableName
Gets the Name of the Variable to which values will be assigned.
Declaration
public string VariableName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCompareTo(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 |
---|---|
System.Int32 | Just calls the base compare method since that implements all the logic we need. |
CompareTo(IAssignmentPattern)
Compares this Bind to another Bind.
Declaration
public int CompareTo(IAssignmentPattern other)
Parameters
Type | Name | Description |
---|---|---|
IAssignmentPattern | other | Bind to compare to. |
Returns
Type | Description |
---|---|
System.Int32 | Just calls the base compare method since that implements all the logic we need. |
Evaluate(SparqlEvaluationContext)
Evaluates a BIND assignment in the given Evaluation Context.
Declaration
public override void Evaluate(SparqlEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
Overrides
| Improve this Doc View SourceToString()
Gets the string representation of the LET assignment.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>