groimp-platform:xl-query
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
groimp-platform:xl-query [2025/01/10 11:41] – created gaetan | groimp-platform:xl-query [2025/01/24 09:51] (current) – [Nested Transitive closures] Tim | ||
---|---|---|---|
Line 39: | Line 39: | ||
|**Combined** ||| | |**Combined** ||| | ||
| %%f:F, A +> f, A < f %% | {f1} | patterns combined by comma | | | %%f:F, A +> f, A < f %% | {f1} | patterns combined by comma | | ||
+ | |||
+ | |||
+ | ====== Additional information ====== | ||
+ | |||
+ | |||
+ | ===== Field based conditions===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |Query | Result | Description | | ||
+ | | A(2,2.3)| a1 | all fields are defined | | ||
+ | | A(2,) | a1,a3,a4| only the first field is defined and considered | | ||
+ | | A(2, | ||
+ | | A(, | ||
+ | | A(x, | ||
+ | |||
+ | The condition part behind the comma can be replaced by any boolean condition, including predefined functions that return a boolean value. | ||
+ | The query variables defined here can also be used in the production of the rewriting rule or in followup expressions of a lambda expression. | ||
+ | ===== Queries as query conditions ===== | ||
+ | |||
+ | As said above a query condition can be any boolean condition, this includes also queries and lambda expressions, | ||
+ | < | ||
+ | [f: | ||
+ | </ | ||
+ | |||
+ | Or a query as a part of a boolean condition, for example used with the count operator to get the order of an internode in a tree model: | ||
+ | < | ||
+ | (*f: | ||
+ | (*f: | ||
+ | </ | ||
+ | |||
+ | The inner query of this is explained below. | ||
+ | |||
+ | ===== Transitive closures ===== | ||
+ | |||
+ | As shown above transitive closure can be used to define a range of edges between two nodes, e.g. '' | ||
+ | |||
+ | | query | description | | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | Using transitive closure it is possible to find the same node several times!!! for instance | ||
+ | |||
+ | %%Axiom ==> A A A B;%% | ||
+ | |||
+ | the pattern (*A (>)* B*) would return B three times. | ||
+ |
groimp-platform/xl-query.1736505714.txt.gz · Last modified: 2025/01/10 11:41 by gaetan