User Tools

Site Tools


15_cheatsheet:base_query

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
15_cheatsheet:base_query [2025/11/03 04:20] – created gaetan15_cheatsheet:base_query [2025/12/12 15:33] (current) – [Queries as query conditions] groimp
Line 29: Line 29:
 | %%(*F -+- *) A  %% | {a1} | undirected |  | %%(*F -+- *) A  %% | {a1} | undirected | 
 |**Single Match, Late Match and Optional Patterns** ||| |**Single Match, Late Match and Optional Patterns** |||
-| %%A (: --> F)%% | {f1} | find first pattern | +| %%A (: --> F)%% | {f1} | stop after the first pattern | 
-| %%A (& --> F)%% | {f1} | find last pattern |+| %%A (& --> F)%% | {f1} | search for this pattern last |
 | %%A (? +> F)%% | {Null} | changes nothing to NULL | | %%A (? +> F)%% | {Null} | changes nothing to NULL |
 |**Transitive closures** ||| |**Transitive closures** |||
-| %%(* A > > *) A %% | {a3} | Path described by single edges | 
-| %%(* A +> > *) A %% | {a2} | other example | 
 | %%(* A (-->)* *) A %% | {a1,a2,a3,a4} |(0-to-n edges possible) | | %%(* A (-->)* *) A %% | {a1,a2,a3,a4} |(0-to-n edges possible) |
 | %%(* A (-->)+ *) A %% | {a2,a3,a4} | (1-to-n edges possible) | | %%(* A (-->)+ *) A %% | {a2,a3,a4} | (1-to-n edges possible) |
Line 42: Line 40:
 |**Combined** ||| |**Combined** |||
 | %%f:F, A +> f, A < f %% | {f1} | patterns combined by comma |  | %%f:F, A +> f, A < f %% | {f1} | patterns combined by comma | 
 +| %%(* A > > *) A %% | {a3} | Path described by single edges |
 +| %%(* A +> > *) A %% | {a2} | other example |
  
  
Line 62: Line 62:
 ===== Queries as query conditions ===== ===== Queries as query conditions =====
  
-As said above a query condition can be any boolean condition, this includes also queries and lambda expressions, as long as the return a boolean value for example the [[groimp-platform:xl-builtin-methods|Analytical Operator]] empty(), here used to find the last F of each branch and remove it using a [[:groimp-platform:xl-rules |SPO rule]].  +As said above a query condition can be any boolean condition, this includes also queries and lambda expressions, as long as the return a boolean value for example the [[15_cheatsheet:operators|Analytical Operator]] empty(), here used to find the last F of each branch and remove it using a [[01_user_documentation:07_rgg_xl:02_xl:05_rule:02_spo |SPO rule]].  
 <code> <code>
 [f:F,(empty((*f (-->)+ F*))) ==>>;] [f:F,(empty((*f (-->)+ F*))) ==>>;]
15_cheatsheet/base_query.1762140029.txt.gz · Last modified: 2025/11/03 04:20 by gaetan