User Tools

Site Tools


01_user_documentation:07_rgg_xl:03_query_graph

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
01_user_documentation:07_rgg_xl:03_query_graph [2025/08/19 15:58] gaetan01_user_documentation:07_rgg_xl:03_query_graph [2025/11/21 16:17] (current) gaetan
Line 1: Line 1:
-====== Query graph ======+====== Model graph ======
  
-This section presents the query graphs. Query graph are used at runtime to perform queries onto a [[:01_user_documentation:06_graph|data graph]]. The query graph is responsible for matching the pattern on the data graph and executing the production statements.+This section presents the model graphs. Model graphs (or query graphs) are used at runtime to perform queries onto a [[:01_user_documentation:06_graph|data graph]]. The query graph is responsible for matching the pattern on the data graph and executing the production statements. Each instance of a model graph is linked to a data graph, thus, it is possible to use different model graph of the same type, to run rules on different data graphs. Also, several model graph can be linked to the same data graph. 
 + 
 +It is possible to specify which model graph is to be used for a given rule with the syntax:  
 +<code java> 
 +RGGGraph qgraph = rgggraph(); // get or create a rgggraph  
 +qgraph.[ /* a rule block */]; // to use the model graph on the rule block 
 +qgraph.(* /* a query expr */ *); // or on a query expression 
 +</code>
  
 ====== ====== ====== ======
01_user_documentation/07_rgg_xl/03_query_graph.1755611887.txt.gz · Last modified: 2025/08/19 15:58 by gaetan