JOURNAL ARTICLE

Rewriting XQuery by child-path folding

Abstract

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.

Keywords:
XQuery Rewriting Computer science Folding (DSP implementation) Expression (computer science) Path (computing) Pruning Parsing Theoretical computer science Algorithm Programming language XML

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
19
Refs
0.14
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Algorithms and Data Compression
Physical Sciences →  Computer Science →  Artificial Intelligence
Advanced Database Systems and Queries
Physical Sciences →  Computer Science →  Computer Networks and Communications
Advanced Data Storage Technologies
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

BOOK-CHAPTER

Semantic Optimization of XQuery by Rewriting

Philip HansonMurali Mani

Lecture notes in computer science Year: 2010 Pages: 87-95
JOURNAL ARTICLE

XQuery Query Rewriting for Query Optimization in Distributed Environments

Jong‐Hyun ParkJi-Hoon Kang

Journal:   Journal of the Korea Society of Computer and Information Year: 2009 Vol: 14 (3)Pages: 1-11
© 2026 ScienceGate Book Chapters — All rights reserved.