Show / Hide Table of Contents

Class BindPattern

Class for representing BIND assignments in SPARQL Queries.
Inheritance
System.Object
BaseTriplePattern
BindPattern
Implements
System.IComparable<BindPattern>
IAssignmentPattern
ITriplePattern
System.IComparable<ITriplePattern>
System.IComparable<IAssignmentPattern>
Inherited Members
BaseTriplePattern._vars
BaseTriplePattern.Variables
BaseTriplePattern.CompareTo(ITriplePattern)
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 Source

BindPattern(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 Source

AssignExpression

Gets the Expression that is used to generate values to be assigned.
Declaration
public ISparqlExpression AssignExpression { get; }
Property Value
Type Description
ISparqlExpression
| 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<System.String>
Overrides
BaseTriplePattern.FixedVariables
| 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<System.String>
Overrides
BaseTriplePattern.FloatingVariables
| 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
BaseTriplePattern.HasNoBlankVariables
| 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
BaseTriplePattern.IsAcceptAll
| Improve this Doc View Source

PatternType

Gets the Pattern Type.
Declaration
public override TriplePatternType PatternType { get; }
Property Value
Type Description
TriplePatternType
Overrides
BaseTriplePattern.PatternType
| 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
BaseTriplePattern.UsesDefaultDataset
| 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
Type Description
System.String

Methods

| 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
System.Int32 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
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.
| Improve this Doc View Source

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
BaseTriplePattern.Evaluate(SparqlEvaluationContext)
| Improve this Doc View Source

ToString()

Gets the string representation of the LET assignment.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
BaseTriplePattern.ToString()

Implements

System.IComparable<T>
IAssignmentPattern
ITriplePattern
System.IComparable<T>
System.IComparable<T>

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BindPattern(String, ISparqlExpression)
  • Properties
    • AssignExpression
    • FixedVariables
    • FloatingVariables
    • HasNoBlankVariables
    • IsAcceptAll
    • PatternType
    • UsesDefaultDataset
    • VariableName
  • Methods
    • CompareTo(BindPattern)
    • CompareTo(IAssignmentPattern)
    • Evaluate(SparqlEvaluationContext)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX