We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/Rewriting XQuery by child-path folding
PeriodicalsComputer Science & Information Technology

Rewriting XQuery by child-path folding

Checking your access to this record.

Abstract & Overview

An XQuery optimization by rewriting based on a partial evaluation using folding expressions is proposed. It consists of two parts: one is the main algorithm, which is a recursive algorithm based on an inductive definition of XQuery expressions. The other is invoked by the main algorithm with an expression whose subexpressions are already folded as its input, and it applies the expression-specific folding function. The main contributions of this paper is to propose an algorithm of an expression-specific folding called “child-path folding”. For a given query to the child axis over an element constructed by another XQuery, that is, a composite XQuery, this folding eliminates redundant element construction operators and expressions. These kinds of queries are typical in Global-As-View approach to data integration systems. We also show that all redundant element construction operators and expressions in child-path expressions are eliminated by applying auxiliary transformations. In addition to child-path folding, we discuss folding of major XQuery constructors including FLWOR and quantified expressions. Moreover, we improve the rewriting algorithm based on pruning by adding two annotations to the parsed trees of XQuery expressions.

Cite this record

Hiroyuki Kato, Soichiro Hidaka, Masatoshi Yoshikawa (2007). Rewriting XQuery by child-path folding. Progress in Informatics, (4), 15–15. https://doi.org/10.2201/niipi.2007.4.3

Copy in another style

Kato, H., Hidaka, S., & Yoshikawa, M. (2007). Rewriting XQuery by child-path folding. Progress in Informatics, 15–15. https://doi.org/10.2201/niipi.2007.4.3
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.