User Tools

Site Tools


01_user_documentation:07_rgg_xl:02_xl:03_query:04_context

This is an old revision of the document!


Context

The notion of context in the rule-based paradigm refers to some structure which has to exist within the current host structure and which is related in some way with the match, but which is not replaced on rule application. Thus, in a query, marking context on some predicate enable to use these patterns to match and ensure that the Nodes bounded by these patterns will not be removed or replaced.

Context is marked by asterisked parenthesis: (* and *). These are the same symbols used for declaring query expressions, but the two concepts are different.

Example

For the following graph:

01_user_documentation/07_rgg_xl/02_xl/03_query/04_context.1756973879.txt.gz · Last modified: 2025/09/04 10:17 by gaetan