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
相关论文
共 50 条
  • [31] Filtering unsatisfiable XPath queries
    Groppe, Jinghua
    Groppe, Sven
    DATA & KNOWLEDGE ENGINEERING, 2008, 64 (01) : 134 - 169
  • [32] Parallelization of XPath Queries Using Modern XQuery Processors
    Sato, Shigeyuki
    Hao, Wei
    Matsuzaki, Kiminori
    NEW TRENDS IN DATABASES AND INFORMATION SYSTEMS, ADBIS 2018, 2018, 909 : 54 - 62
  • [33] Rewriting OLAP queries using materialized views and dimension hierarchies in data warehouses
    Park, CS
    Kim, MH
    Lee, YJ
    17TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 2001, : 515 - 523
  • [34] Finding an efficient rewriting of OLAP queries using materialized views in data warehouses
    Park, CS
    Kim, MH
    Lee, YJ
    DECISION SUPPORT SYSTEMS, 2002, 32 (04) : 379 - 399
  • [35] Using BMH Algorithm to Solve Subset of XPath Queries
    Toth, David
    DATESO 2007 - DATABASES, TEXTS, SPECIFICATIONS, OBJECTS: PROCEEDINGS OF THE 7TH ANNUAL INTERNATIONAL WORKSHOP, 2007, 235 : 81 - 88
  • [36] Satisfiability of XPath queries with sibling axes
    Geerts, F
    Fan, WF
    DATABASE PROGRAMMING LANGUAGES, 2005, 3774 : 122 - 137
  • [37] Parallelization of XPath queries with tree skeletons
    Nomura, Yoshiaki
    Emoto, Kento
    Matsuzaki, Kiminori
    Hu, Zhonjiang
    Takeichi, Masato
    Computer Software, 2007, 24 (03) : 51 - 62
  • [38] Containment between Unions of XPath Queries
    Zhou, Rui
    Liu, Chengfei
    Wang, Junhu
    Li, Jianxin
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS, PROCEEDINGS, 2009, 5463 : 405 - +
  • [39] Distributed Structural Relaxation of XPath Queries
    Koloniari, Georgia
    Pitoura, Evaggelia
    ICDE: 2009 IEEE 25TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2009, : 529 - 540
  • [40] Streaming XPath queries in XSQ: A demonstration
    Peng, F
    Chawathe, SS
    19TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 2003, : 780 - 782