Show / Hide Table of Contents

Class BindPattern

Class for representing BIND assignments in SPARQL Queries.

Inheritance
System.Object
BaseTriplePattern
BindPattern
Implements
System.IComparable<T><BindPattern>
IAssignmentPattern
ITriplePattern
System.IComparable<T><ITriplePattern>
IProcessable
IVisitable
System.IComparable<T><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 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
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<T><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<T><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

InnerExpression

Get the expressions which generates a value to be assigned to the variable.

Declaration
public ISparqlExpression InnerExpression { get; }
Property Value
Type Description
ISparqlExpression
| 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

Variable

Get the variable to assign to.

Declaration
public string Variable { get; }
Property Value
Type Description
string
| 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
string

Methods

| Improve this Doc View Source

Accept<T>(ISparqlAlgebraVisitor<T>)

Declaration
public override T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Type Name Description
ISparqlAlgebraVisitor<T> visitor
Returns
Type Description
T
Type Parameters
Name Description
T
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
Type Name Description
ISparqlQueryAlgebraProcessor<TResult, TContext> processor
TContext context
Returns
Type Description
TResult
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
Type Name Description
IAssignmentPattern 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

ToString()

Gets the string representation of the LET assignment.

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

Implements

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

Extension Methods

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