Containment and equivalence for a fragment of XPath

Author:

Miklau Gerome1,Suciu Dan1

Affiliation:

1. University of Washington, Seattle, Washington

Abstract

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.

Publisher

Association for Computing Machinery (ACM)

Subject

Artificial Intelligence,Hardware and Architecture,Information Systems,Control and Systems Engineering,Software

Reference29 articles.

1. Minimization of tree pattern queries

2. Keys for XML

3. More efficient bottom-up multi-pattern matching in trees

4. Chamberlin D. Clark J. Florescu D. Robie J. Simeon J. and Stefanascu M. 2001. XQuery 1.0: An XML query language. http://www.w3.org/TR/xquery/.W3C working draft.]] Chamberlin D. Clark J. Florescu D. Robie J. Simeon J. and Stefanascu M. 2001. XQuery 1.0: An XML query language. http://www.w3.org/TR/xquery/.W3C working draft.]]

Cited by 168 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Solving the SPARQL query containment problem with SpeCS;Journal of Web Semantics;2023-04

2. Towards Theory for Real-World Data;Proceedings of the 41st ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems;2022-06-12

3. Learning Disjunctive Multiplicity Expressions and Disjunctive Generalize Multiplicity Expressions From Both Positive and Negative Examples;The Computer Journal;2022-04-18

4. AQT—A Query Template for AutomationML;IEEE Transactions on Industrial Informatics;2021-02

5. Workload-Aware Views Materialization for Big Open Linked Data;Vietnam Journal of Computer Science;2020-10-22

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3