TY - GEN
T1 - Bag equivalence of XPath queries
AU - Cohen, Sara
AU - Weiss, Yaacov Y.
PY - 2010
Y1 - 2010
N2 - 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.
AB - 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.
KW - XPath
KW - bag semantics
KW - multiset semantics
KW - query equivalence
UR - http://www.scopus.com/inward/record.url?scp=77954521515&partnerID=8YFLogxK
U2 - 10.1145/1804669.1804685
DO - 10.1145/1804669.1804685
M3 - ???researchoutput.researchoutputtypes.contributiontobookanthology.conference???
AN - SCOPUS:77954521515
SN - 9781605589473
T3 - ACM International Conference Proceeding Series
SP - 116
EP - 128
BT - Database Theory - ICDT 2010
T2 - 13th International Conference on Database Theory, ICDT'10
Y2 - 23 March 2010 through 25 March 2010
ER -