2using System.Collections.Generic;
3using System.Threading.Tasks;
24 this.subQuery = SubQuery;
47 if (ResultSet.BooleanResult.HasValue)
50 LinkedList<Possibility> Result =
new LinkedList<Possibility>();
91 this.
ForAll(Callback, State, Order);
108 if (!Callback(this.subQuery, out
ScriptNode NewNode, State))
111 if (!(NewNode is
null))
114 throw new Exception(
"Expected sub-query node.");
116 this.subQuery = SubQuery;
126 this.subQuery.
Equals(Typed.subQuery);
133 Result ^= Result << 5 ^ this.subQuery.
GetHashCode();
Contains the results of a SPARQL query. https://www.w3.org/TR/2023/WD-sparql12-results-xml-20230516/ ...
Script runtime exception.
Base class for all nodes in a parsed script tree.
void SetParent(ScriptNode Parent)
Sets the parent node. Can only be used when expression is being parsed.
override int GetHashCode()
bool IsEmpty
If pattern is empty.
SubQueryPattern(SparqlQuery SubQuery)
A sub-query
bool ForAll(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
void SetParent(ScriptNode Parent)
Sets the parent node. Can only be used when expression is being parsed.
bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
async Task< IEnumerable< Possibility > > Search(ISemanticCube Cube, Variables Variables, IEnumerable< Possibility > ExistingMatches, SparqlQuery Query)
Searches for the pattern on information in a semantic cube.
override bool Equals(object obj)
Represents a possible solution during SPARQL evaluation.
override int GetHashCode()
override bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
override bool Equals(object obj)
override Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node asynchronously, using the variables provided in the Variables collection.
Interface for semantic cubes.
Interface for items in a record from the results of a SPARQL query.
string Name
Name of item in record.
ISemanticElement Value
Value of item in record.
Interface for result records of a SPARQL query.
Basic interface for all types of elements.
object AssociatedObjectValue
Associated object value.
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