We investigate graph transformations, defined using Datalog-like rules based on acyclic conjunctive two-way regular path queries (acyclic C2RPQs), and we study two fundamental static analysis problems: type checking and equivalence of transformations in the presence of graph schemas. Additionally, we investigate the problem of target schema elicitation, which aims to construct a schema that closely captures all outputs of a transformation over graphs conforming to the input schema. We show all these problems are in EXPTIME by reducing them to C2RPQ containment modulo schema; we also provide matching lower bounds. We use cycle reversing to reduce query containment to the problem of unrestricted (finite or infinite) satisfiability of C2RPQs modulo a theory expressed in a description logic.
翻译:我们研究基于无环两向正则路径查询(acyclic C2RPQs)的Datalog规则定义的图转换,并研究图模式存在情况下的两个基本静态分析问题:类型检查和等价转换。此外,我们研究了目标模式引出问题,旨在构建一个可捕获符合输入模式的图转换的所有输出的模式。我们通过将它们减少为C2RPQ包含模式来显示所有这些问题均在EXPTIME中;我们还提供了匹配的下界。我们使用循环反转将查询包含减少到通过描述逻辑表达的理论的C2RPQ的无限制(有限或无限)满足性问题。