01_user_documentation:07_rgg_xl:02_xl:03_query:04_context
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 01_user_documentation:07_rgg_xl:02_xl:03_query:04_context [2025/09/04 10:17] – gaetan | 01_user_documentation:07_rgg_xl:02_xl:03_query:04_context [2025/09/04 10:26] (current) – gaetan | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Example ===== | ===== Example ===== | ||
| - | For the following graph: | + | <code java> |
| + | module A; | ||
| + | module B; | ||
| + | module C; | ||
| + | module D; | ||
| + | protected void init () | ||
| + | [ | ||
| + | Axiom ==> A [>D] B C; | ||
| + | ] | ||
| + | public void ruleWithContext () | ||
| + | [ | ||
| + | (*A [> D]*) B ==> C; | ||
| + | ] | ||
| + | |||
| + | public void ruleNoContext () | ||
| + | [ | ||
| + | A [> D] B ==> C; | ||
| + | ] | ||
| + | </ | ||
| + | |||
| + | produce | ||
| {{: | {{: | ||
| + | |||
| + | |||
| + | The two rules declared above use the same query. Thus will match the same nodes. The first one (with context) will not replace the bounded '' | ||
| + | |||
| + | The first rule ('' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | The '' | ||
| + | |||
| + | {{: | ||
01_user_documentation/07_rgg_xl/02_xl/03_query/04_context.1756973879.txt.gz · Last modified: 2025/09/04 10:17 by gaetan
