02_user_tutorials:15_rules:01_xl-queries-and-operators
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 02_user_tutorials:15_rules:01_xl-queries-and-operators [2025/12/10 13:14] – ↷ Page moved from 02_new_tutorials:15_rules:01_xl-queries-and-operators to 02_user_tutorials:15_rules:01_xl-queries-and-operators gaetan | 02_user_tutorials:15_rules:01_xl-queries-and-operators [2025/12/12 11:54] (current) – groimp | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~NOTOC~~ | ||
| ====== XL queries and operators ====== | ====== XL queries and operators ====== | ||
| Line 61: | Line 62: | ||
| </ | </ | ||
| - | The underlying 2d graph of the generated structure given below: | + | {{ :tutorials: |
| - | {{ :tutorials: | + | The underlying 2d graph of the generated structure is given below: |
| - | Beginning from // | + | Beginning from // |
| Line 145: | Line 146: | ||
| Aggregate operations are used to collect multiple values when traversing the graph structure and return a single value. | Aggregate operations are used to collect multiple values when traversing the graph structure and return a single value. | ||
| - | Standard [[01_user_documentation:groimp-platform:xl-builtin-methods|aggregate operations]] are: '' | + | Standard [[:15_cheatsheet:operators|aggregate operations]] are: '' |
| * Count all leaves: | * Count all leaves: | ||
| Line 202: | Line 203: | ||
| </ | </ | ||
| + | ==== Transitive closure ==== | ||
| + | |||
| + | Transitive closure is a concept used to derive relations between successive nodes connected by several edges of the same type. For example, we want to find all descendants of some given node that are of type Internode. | ||
| + | |||
| + | The quantifier '' | ||
| + | |||
| + | * Find all internodes connected to the bud: | ||
| + | |||
| + | <code java> | ||
| + | (* Bud (<--)+ Internode *) | ||
| + | </ | ||
| + | |||
| + | Special syntax is used after the quantifier if we are interested only in finding minimal elements '': | ||
| + | |||
| + | * Find the first internode connected to the bud: | ||
| + | |||
| + | <code java> | ||
| + | (* Bud (<--)+ : | ||
| + | </ | ||
02_user_tutorials/15_rules/01_xl-queries-and-operators.1765368851.txt.gz · Last modified: 2025/12/10 13:14 by gaetan
