带字符串变量的合取正则路径映射
Conjunctive Regular Path Queries with String Variables
摘要:
我们引入类CXRPQ的合取xregex路径查询,这是从合取正则路径查询(CRPQs)通过添加字符串变量(也称为反向引用),发现在实际实现的正则表达式。CXRPQ可以被认为是用户友好的,因为它们结合了两个在实践中已经很好建立的概念:基于模式的图查询和带反向引用的正则表达式。由于字符串变量,CXRPQ可以表达路径间的依赖性,这是CRPQ无法表达的。CXRPQ的评估复杂度,如果不进一步限制,是PSPACE-硬的数据复杂度。我们确定了三个自然片段更可接受的评估复杂性:他们的数据复杂性是在NL,而他们的组合复杂性之间的EXPSPACE,PSPACE和NP。在表达能力方面,我们比较CXRPQ片段与CRPQ和工会的CRPQ,并与扩展的合取正则路径查询(ECRPQ)和工会的ECRPQ。
英文摘要:
We introduce the class CXRPQ of conjunctive xregex path queries, which are obtained from conjunctive regular path queries (CRPQs) by adding string variables (also called backreferences) as found in practical implementations of regular expressions. CXRPQs can be considered user-friendly, since they combine two concepts that are well-established in practice: pattern-based graph queries and regular expressions with backreferences. Due to the string variables, CXRPQs can express inter-path dependencies, which are not expressible by CRPQs. The evaluation complexity of CXRPQs, if not further restricted, is PSPACE-hard in data-complexity. We identify three natural fragments with more acceptable evaluation complexity: their data-complexity is in NL, while their combined complexity varies between EXPSPACE, PSPACE and NP. In terms of expressive power, we compare the CXRPQ-fragments with CRPQs and unions of CRPQs, and with extended conjunctive regular path queries (ECRPQs) and unions of ECRPQs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。