skip to main content
10.1145/1066157.1066215acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
Article

Extending XQuery for analytics

Published: 14 June 2005 Publication History

Abstract

XQuery is a query language under development by the W3C XML Query Working Group. The language contains constructs for navigating, searching, and restructuring XML data. With XML gaining importance as the standard for representing business data, XQuery must support the types of queries that are common in business analytics. One such class of queries is OLAP-style aggregation queries. Although these queries are expressible in XQuery Version 1, the lack of explicit grouping constructs makes the construction of these queries non-intuitive and places a burden on the XQuery engine to recognize and optimize the implicit grouping constructs. Furthermore, although the flexibility of the XML data model provides an opportunity for advanced forms of grouping that are not easily represented in relational systems, these queries are difficult to express using the current XQuery syntax. In this paper, we provide a proposal for extending the XQuery FLWOR expression with explicit syntax for grouping and for numbering of results. We show that these new XQuery constructs not only simplify the construction and evaluation of queries requiring grouping and ranking but also enable complex analytic queries such as moving-window aggregation and rollups along dynamic hierarchies to be expressed without additional language extensions.

References

[1]
K. Beyer, R. J. Cochrane, L. S. Colby, F. Özcan, H. Pirahesh, "XQuery for Analytics: Challenges and Requirements", XIME-P 2004.
[2]
K. Beyer, et al, "System RX: One Part Relational, One Part XML", SIGMOD 2005.
[3]
K. Beyer and R. Ramakrishnan, "Bottom-Up Computation of Sparse and Iceberg CUBEs", SIGMOD 1999, pages 359--370.
[4]
V. Borkar and M. Carey, "Extending XQuery for Grouping, Duplicate Elimination, and Outer Joins", XML 2004.
[5]
S. Cluet and G. Moerkotte, "Nested Queries in Object Bases", DBPL 1993.
[6]
A. Deutsch, Y. Papakonstantinou and Y. Xu, "The NEXT Framework for Logical XQuery Optimization", VLDB 2004, pages 168--179.
[7]
L. Fegaras, D. Levine, S. Bose, and V. Chaluvadi, "Query processing of streamed XML data", CIKM 2002, pages 126--133.
[8]
T. Fiebig and G. Moerkotte, "Algebraic XML Construction in Natix", WISE(1), 2001, pages 212--221.
[9]
J. Gray, A. Bosworth, A. Layman, and H. Pirahesh, "Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals", ICDE 1996, pages 152--159.
[10]
W. Kim, "On Optimizing an SQL-like Nested Query", ACM TODS, 7(3), pages 443--469, 1982.
[11]
N. May, S. Helmer, and G. Moerkotte, "Three cases for query decorrelation in XQuery", XSym 2003, pages 70--84.
[12]
S. Paparizos, et al, "Grouping in XML", EDBT 2002 Workshop, LNCS 2490, pages 128--147.
[13]
P. Seshadri, H. Pirahesh and T. Y. Cliff Leung, "Complex Query Decorrelation", ICDE 1996, pages 450--458.
[14]
World Wide Web Consortium (W3C). XML Query Working Group. See http://www.w3.org/XML/Query.
[15]
World Wide Web Consortium (W3C). XQuery 1.0: An XML Query Language. W3C Working Draft, Apr. 4, 2005. See http://www.w3.org/TR/xquery/.
[16]
World Wide Web Consortium (W3C). XQuery 1.0 and XPath 2.0 Data Model. W3C Working Draft, Apr. 4, 2005. See http://www.w3.org/TR/xpath-datamodel/.
[17]
World Wide Web Consortium (W3C). XQuery 1.0 and XPath 2.0 Functions and Operators. W3C Working Draft, Apr. 4, 2005. See http://www.w3.org/TR/xpath-functions/.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
SIGMOD '05: Proceedings of the 2005 ACM SIGMOD international conference on Management of data
June 2005
990 pages
ISBN:1595930604
DOI:10.1145/1066157
  • Conference Chair:
  • Fatma Ozcan
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 14 June 2005

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Conference

SIGMOD/PODS05
Sponsor:

Acceptance Rates

Overall Acceptance Rate 785 of 4,003 submissions, 20%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)4
  • Downloads (Last 6 weeks)1
Reflects downloads up to 16 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media