In this paper, we study how graph transformations based on sesqui-pushout rewriting can be reversed and how the composition of rewrites can be constructed. We illustrate how such reversibility and composition can be used to design an audit trail system for individual graphs and graph hierarchies. This provides us with a compact way to maintain the history of updates of an object, including its multiple versions. The main application of the designed framework is an audit trail of updates to knowledge represented by hierarchies of graphs. Therefore, we introduce the notion of rule hierarchy that represents a transformation of the entire hierarchy, study how rule hierarchies can be applied to hierarchies and analyse the conditions under which this application is reversible. We then present a theory for constructing the composition of consecutive hierarchy rewrites. The prototype audit trail system for transformations in hierarchies of simple graphs with attributes is implemented as part of the ReGraph Python library.
翻译:在本文中, 我们研究如何扭转基于 sesqui- pushout 重写的图形转换, 以及如何构建重写者的构成。 我们演示如何使用这种可逆性和组成来设计单个图形和图形等级的审校线索系统。 这为我们提供了保持一个对象更新历史的紧凑方法, 包括该对象的多个版本。 设计框架的主要应用是用图表的等级结构对知识进行更新的审计线索。 因此, 我们引入规则等级的概念, 代表整个等级结构的转变, 研究如何将规则等级结构应用到等级结构中, 并分析这种应用在何种条件下可以逆转。 我们然后提出构建连续等级重写者构成的理论。 用于具有属性的简单图表等级转换的原型审计线索系统作为 ReGraph Python 图书馆的一部分实施。