Rewriting XPath queries using materialized XPath views

被引:1
作者
Ramanan, Prakash [1 ]
机构
[1] Wichita State Univ, Dept EECS, Wichita, KS 67260 USA
关键词
XML; XPath; Query evaluation; Views; Rewriting; Homomorphism; Simulation;
D O I
10.1016/j.jcss.2011.12.001
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Let XP(/, //, []) be the fragment of XPath 1.0, consisting of queries that involve only the child and descendant axes, and predicates without disjunction or negation (and no wildcard nodetests); these queries can be represented as tree patterns. We consider the problem of rewriting a query Q using a materialized view V. where Q, V is an element of XP(/, //, []). We present more efficient algorithms for the following: (1) Determine if an equivalent rewriting of Q using V exists; find the smallest such rewriting, when it exists. A previously-known algorithm runs in O(vertical bar Q vertical bar(2) + vertical bar Q vertical bar vertical bar V vertical bar) time. For the special case when Q is known to be minimal, we present an O(vertical bar Q vertical bar vertical bar V vertical bar) algorithm. (2) Determine if a (nonempty) contained rewriting of Q using V exists. We present an O(vertical bar Q vertical bar vertical bar V vertical bar) algorithm, compared to the previous O(vertical bar Q vertical bar vertical bar V vertical bar(2)) algorithm. We also present a more efficient algorithm for finding a maximal such rewriting, when it exists. Then we extend this result to a subset of XP(/, //, [], *) that allows restricted occurrences of wildcard nodetests. (C) 2011 Elsevier Inc. All rights reserved.
引用
收藏
页码:1006 / 1025
页数:20
相关论文
共 30 条
  • [1] Tree pattern query minimization
    Amer-Yahia, S
    Cho, S
    Lakshmanan, LVS
    Srivastava, D
    [J]. VLDB JOURNAL, 2002, 11 (04) : 315 - 331
  • [2] Arion A., 2007, P INT C VER LARG DAT
  • [3] BALMIN A., 2004, P INT C VER LARG DAT
  • [4] On the memory requirements of XPath evaluation over XML streams
    Bar-Yossef, Ziv
    Fontoura, Marcus
    Josifovski, Vanja
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2007, 73 (03) : 391 - 441
  • [5] TRANSFORMATIONAL DESIGN AND IMPLEMENTATION OF A NEW EFFICIENT SOLUTION TO THE READY SIMULATION PROBLEM
    BLOOM, B
    PAIGE, R
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 1995, 24 (03) : 189 - 220
  • [6] Calvanese D., 2000, Proceedings of 16th International Conference on Data Engineering (Cat. No.00CB37073), P389, DOI 10.1109/ICDE.2000.839439
  • [7] Chen Li., 2002, WEBDB, P31
  • [8] Clark J., 1999, XML path language (XPath) version 1.0
  • [9] Deutsch A, 2003, LECT NOTES COMPUT SC, V2572, P225
  • [10] Fan W., 2007, P IEEE INT C DAT ENG