1using System.Collections.Generic;
2using System.Threading.Tasks;
28 this.pattern = Pattern;
68 IEnumerable<Possibility> Possibilities = await this.pattern.Search(Cube,
Variables,
70 if (Possibilities is
null)
73 return Possibilities.GetEnumerator().MoveNext() ? BooleanValue.False :
BooleanValue.
True;
92 if (!this.pattern.ForAllChildNodes(Callback, State, Order))
96 if (!this.pattern.ForAll(Callback, State, Order))
101 if (!this.pattern.ForAllChildNodes(Callback, State, Order))
112 this.pattern.
Equals(O.pattern) &&
119 int Result = base.GetHashCode();
120 Result ^= Result << 5 ^ this.pattern.GetHashCode();
Class managing a script expression.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
static readonly BooleanValue False
Constant false value.
static readonly BooleanValue True
Constant true value.
Checks if a pattern has at least no matches.
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override IElement Evaluate(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
override bool Equals(object obj)
NotExists(ISparqlPattern Pattern, int Start, int Length, Expression Expression)
Checks if a pattern has at least no matches.
async Task< IElement > EvaluateAsync(Variables Variables, ISemanticCube Cube, SparqlQuery Query, Possibility Possibility)
Evaluates the node, using the variables provided in the Variables collection.
override bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
override Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
override int GetHashCode()
Represents a possible solution during SPARQL evaluation.
Interface for semantic cubes.
Basic interface for all types of elements.
Interface for filter nodes.
Interface for SPARQL patterns.
delegate bool ScriptNodeEventHandler(ScriptNode Node, out ScriptNode NewNode, object State)
Delegate for ScriptNode callback methods.
SearchMethod
Method to traverse the expression structure