Class VariablePattern
Pattern which matches Variables.
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 VariablePattern : PatternItem
Constructors
| Improve this Doc View SourceVariablePattern(String)
Creates a new Variable Pattern.
Declaration
public VariablePattern(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Variable name. |
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 SourceVariableName
Gets the Name of the Variable this Pattern matches.
Declaration
public override string VariableName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceAccepts(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
| Improve this Doc View SourceConstruct(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
| Improve this Doc View SourceToString()
Gets the String representation of this pattern.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |