Swinburne
Browse

On tree pattern query rewriting using views

Download (210.14 kB)
conference contribution
posted on 2024-07-11, 11:03 authored by Junhu Wang, Jeffrey Xu Yu, Chengfei LiuChengfei Liu
We study and present our findings on two closely related problems on XPATH rewriting using views when both the view and the query are tree patterns involving /,// and []. First, given view V and query Q, is it possible for Q to have an equivalent rewriting using V which is the union of two or more tree patterns, but not an equivalent rewriting which is a single pattern? This problem is of both theoretical and practical importance because, if the answer is no, then, to answer a query completely using the views, we should use more efficient methods, such as the PTIME algorithm of [13], to find the equivalent rewriting, rather than try to find the union of all contained rewritings and test its equivalence to Q. Second, given a set V of views, we want to know under what conditions a subset V' of the views are redundant in the sense that for any query Q, the contained rewritings of Q using the views in V' are contained in those using the views in V-V'. Solving this problem can help us to, for example, choose the minimum number of views to be cached, or better design the virtual schema in a mediated data integration system, or avoid repeated calculation in query optimization. We provide necessary and sufficient conditions for the second problem, based on answers to the first problem. When the views produce comparable answers, we extend our findings to include the case where the intersection of views, in addition to the individual views, are used in the rewriting.

History

Available versions

PDF (Accepted manuscript)

ISBN

9783540769927

ISSN

1611-3349

Journal title

Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)

Volume

4831 LNCS

Pagination

11 pp

Publisher

Springer

Copyright statement

Copyright © 2007 Springer-Verlag Berlin Heidelberg 2007. The accepted manuscript is reproduced in accordance with the copyright policy of the publisher. The definitive version of the publication is available at www.springer.com.

Language

eng

Usage metrics

    Publications

    Categories

    No categories selected

    Keywords

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC