一句话:提出局部化 RETE,使图查询可在相关子图上局部增量执行并保持结果完备。
图基建模工件规模不断增大,需要高效执行图查询。基于 RETE 的增量方法虽能避免重复计算,但通常在整个图上搜索查询结果;当用户只关心大模型的局部子图时,全局执行会带来显著开销。本文提出一种 RETE 扩展,实现局部且完全增量的图查询执行,同时保证相对于相关子图的结果完备性。作者通过源自软件开发的场景以及独立社交网络基准中的查询和数据开展实验。结果表明,在有利情况下该方法能显著改善内存消耗和执行时间,但在不利情况下也会引入可见开销。
The growing size of graph-based modeling artifacts in model-driven engineering calls for techniques that enable efficient execution of graph queries. Incremental approaches based on the RETE algorithm provide an adequate solution in many scenarios, but are generally designed to search for query results over the entire graph. However, in certain situations, a user may only be interested in query results for a subgraph, for instance when a developer is working on a large model of which only a part is loaded into their workspace. In this case, the global execution semantics can result in significant computational overhead. To mitigate the outlined shortcoming, in this article we propose an extension of the RETE approach that enables local, yet fully incremental execution of graph queries, while still guaranteeing completeness of results with respect to the relevant subgraph. We empirically evaluate the presented approach via experiments inspired by a scenario from software development and with queries and data from an independent social network benchmark. The experimental results indicate that the proposed technique can significantly improve performance regarding memory consumption and execution time in favorable cases, but may incur a noticeable overhead in unfavorable cases.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@article{abs-2412-13918,
title = {Localized RETE for Incremental Graph Queries with Nested Graph Conditions},
author = {Matthias Barkowsky and Holger Giese},
journal = {Logical Methods in Computer Science},
volume = {Volume 22, Issue 1},
year = {2026},
doi = {10.46298/lmcs-22(1:4)2026}
}