Abstract
Tree patterns represent important fragments of XPath. In this paper, we show that some classes $${\mathcal{C}}$$ of tree patterns exhibit such a property that, given a finite number of compatible tree patterns $${P_1, \ldots, P_n\in \mathcal{C}}$$, there exists another pattern P such that P 1, . . . , P n are all contained in P, and for any tree pattern $${Q\in \mathcal{C}}$$, P 1, . . . , P n are all contained in Q if and only if P is contained in Q. We experimentally demonstrate that the pattern P is usually much smaller than P 1, . . . , P n combined together. Using the existence of P above, we show that testing whether a tree pattern, P, is contained in another, $${Q\in \mathcal{C}}$$, under an acyclic schema graph G, can be reduced to testing whether P G , a transformed version of P, is contained in Q without any schema graph, provided that the distinguished node of P is not labeled *. We then show that, under G, the maximal contained rewriting (MCR) of a tree pattern Q using a view V can be found by finding the MCR of Q using V G without G, when there are no *-nodes on the distinguished path of V and no *-nodes in Q.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.