...
首页> 外文期刊>Journal of the Association for Computing Machinery >Containment and Equivalence for a Fragment of XPath
【24h】

Containment and Equivalence for a Fragment of XPath

机译:XPath片段的包含和对等

获取原文
获取原文并翻译 | 示例
           

摘要

XPath is a language for navigating an XML document and selecting a set of element nodes. XPath expressions are used to query XML data, describe key constraints, express transformations, and reference elements in remote documents. This article studies the containment and equivalence problems for a fragment of the XPath query language, with applications in all these contexts. In particular, we study a class of XPath queries that contain branching, label wildcards and can express descendant relationships between nodes. Prior work has shown that languages that combine any two of these three features have efficient containment algorithms. However, we show that for the combination of features, containment is coNP-complete. We provide a sound and complete algorithm for containment that runs in exponential time, and study parameterized PTIME special cases. While we identify one parameterized class of queries for which containment can be decided efficiently, we also show that even with some bounded parameters, containment remains coNP-complete. In response to these negative results, we describe a sound algorithm that is efficient for all queries, but may return false negatives in some cases.
机译:XPath是一种用于浏览XML文档并选择一组元素节点的语言。 XPath表达式用于查询XML数据,描述关键约束,表达转换以及引用远程文档中的元素。本文研究了XPath查询语言片段的包含性和等效性问题,并在所有这些情况下进行了应用。特别是,我们研究了一类XPath查询,这些查询包含分支,标签通配符并可以表示节点之间的后代关系。先前的工作表明,结合了这三个功能中的任何两个功能的语言具有有效的包含算法。但是,我们表明,对于特征的组合,遏制是coNP完全的。我们提供了一种可靠且完整的遏制算法,该算法可以在指数时间内运行,并研究参数化的PTIME特殊情况。尽管我们确定了可以有效确定容纳的一个参数化查询类别,但我们也表明,即使具有某些有界参数,容纳仍保持coNP完整。针对这些负面结果,我们描述了一种对所有查询均有效的声音算法,但在某些情况下可能会返回假阴性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号