Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ISparqlPattern.cs
1using System.Collections.Generic;
2using System.Threading.Tasks;
5
7{
11 public interface ISparqlPattern
12 {
16 bool IsEmpty { get; }
17
26 Task<IEnumerable<Possibility>> Search(ISemanticCube Cube,
27 Variables Variables, IEnumerable<Possibility> ExistingMatches, SparqlQuery Query);
28
33 void SetParent(ScriptNode Parent);
34
42 bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order);
43
51 bool ForAll(ScriptNodeEventHandler Callback, object State, SearchMethod Order);
52 }
53}
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
Collection of variables.
Definition: Variables.cs:25
Interface for semantic cubes.
bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
bool ForAll(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
Task< IEnumerable< Possibility > > Search(ISemanticCube Cube, Variables Variables, IEnumerable< Possibility > ExistingMatches, SparqlQuery Query)
Searches for the pattern on information in a semantic cube.
void SetParent(ScriptNode Parent)
Sets the parent node. Can only be used when expression is being parsed.
delegate bool ScriptNodeEventHandler(ScriptNode Node, out ScriptNode NewNode, object State)
Delegate for ScriptNode callback methods.
SearchMethod
Method to traverse the expression structure
Definition: ScriptNode.cs:38