Bag equivalence of XPath queries

Sara Cohen*, Yaacov Y. Weiss

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

When a query is evaluated under bag semantics, each answer is returned as many times as it has derivations. Bag semantics has long been recognized as important, especially when aggregation functions will be applied to query results. This paper is the first to focus on bag semantics for XPath queries. In particular, the problem of bag-equivalence of a large class of XPath queries (modeled as tree patterns) is explored. The queries can contain unions, branching, label wildcards, the vertical child and descendant axes, the horizontal following, following-sibling and immediately-following sibling axes, as well as positional (i.e., first and last) axes. Equivalence characterizations are provided, and their complexity is analyzed. As the descendent axis involves a recursive relationship, this paper is also the first to address bag equivalence over recursive queries, in any setting.

Original languageEnglish
Title of host publicationDatabase Theory - ICDT 2010
Subtitle of host publication13th International Conference on Database Theory, Proceedings
Pages116-128
Number of pages13
DOIs
StatePublished - 2010
Event13th International Conference on Database Theory, ICDT'10 - Lausanne, Switzerland
Duration: 23 Mar 201025 Mar 2010

Publication series

NameACM International Conference Proceeding Series

Conference

Conference13th International Conference on Database Theory, ICDT'10
Country/TerritorySwitzerland
CityLausanne
Period23/03/1025/03/10

Keywords

  • XPath
  • bag semantics
  • multiset semantics
  • query equivalence

Fingerprint

Dive into the research topics of 'Bag equivalence of XPath queries'. Together they form a unique fingerprint.

Cite this