Show / Hide Table of Contents

Class VariablePattern

Pattern which matches Variables.
Inheritance
System.Object
PatternItem
VariablePattern
Inherited Members
PatternItem._context
PatternItem.BindingContext
PatternItem.RigorousEvaluation
PatternItem.Repeated
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 VariablePattern : PatternItem

Constructors

| Improve this Doc View Source

VariablePattern(String)

Creates a new Variable Pattern.
Declaration
public VariablePattern(string name)
Parameters
Type Name Description
System.String name Variable name.
| Improve this Doc View Source

VariablePattern(String, Boolean)

Creates a new Variable Pattern.
Declaration
public VariablePattern(string name, bool rigorousEvaluation)
Parameters
Type Name Description
System.String name Variable name.
System.Boolean rigorousEvaluation Whether to force rigorous evaluation.

Properties

| Improve this Doc View Source

VariableName

Gets the Name of the Variable this Pattern matches.
Declaration
public override string VariableName { get; }
Property Value
Type Description
System.String
Overrides
PatternItem.VariableName

Methods

| Improve this Doc View Source

Accepts(SparqlEvaluationContext, INode)

Checks whether the given Node is a valid value for the Variable in the current Binding Context.
Declaration
protected override bool Accepts(SparqlEvaluationContext context, INode obj)
Parameters
Type Name Description
SparqlEvaluationContext context Evaluation Context.
INode obj Node to test.
Returns
Type Description
System.Boolean
Overrides
PatternItem.Accepts(SparqlEvaluationContext, INode)
| Improve this Doc View Source

Construct(ConstructContext)

Constructs a Node based on the given Set.
Declaration
protected override INode Construct(ConstructContext context)
Parameters
Type Name Description
ConstructContext context Construct Context.
Returns
Type Description
INode The Node which is bound to this Variable in this Solution.
Overrides
PatternItem.Construct(ConstructContext)
| Improve this Doc View Source

ToString()

Gets the String representation of this pattern.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
PatternItem.ToString()

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • VariablePattern(String)
    • VariablePattern(String, Boolean)
  • Properties
    • VariableName
  • Methods
    • Accepts(SparqlEvaluationContext, INode)
    • Construct(ConstructContext)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX