We introduce injective semantics for Conjunctive Regular Path Queries (CRPQs), and study their fundamental properties. We identify two such semantics: atom-injective and query-injective semantics, both defined in terms of injective homomorphisms. These semantics are natural generalizations of the well-studied class of RPQs under simple-path semantics to the class of CRPQs. We study their evaluation and containment problems, providing useful characterizations for them, and we pinpoint the complexities of these problems. Perhaps surprisingly, we show that containment for CRPQs becomes undecidable for atom-injective semantics, and PSPACE-complete for query-injective semantics, in contrast to the known EXPSPACE-completeness result for the standard semantics. The techniques used differ significantly from the ones known for the standard semantics, and new tools tailored to injective semantics are needed. We complete the picture of complexity by investigating, for each semantics, the containment problem for the main subclasses of CRPQs, namely Conjunctive Queries and CRPQs with finite languages.
翻译:我们引入了连通正则路径查询(CRPQ)的正向定义并研究了它们的基本特性。我们确定了两种这样的语义:原子正向和查询正向语义,它们都是由单射同态定义的。这些语义是对简单路径语义下的CRPQ类的自然推广。我们研究了它们的评估和包含问题,为它们提供了有用的表征,并指出了这些问题的复杂度。也许令人惊讶的是,我们展示了对于原子正向语义,CRPQ的包含问题变得不可判定,而对于查询正向语义,复杂度为PSPACE完全,这与标准语义已知的EXPSPACE完全性结果不同。所使用的技术与标准语义的技术有着显著的差异,并需要专门针对正向语义的工具。我们通过研究每个语义的主要子类(即连通查询和具有有限语言的CRPQ)的包含问题来完善这一复杂度图景。