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 条
  • [41] Generating XML Data for XPath Queries
    Rychnovsky, Dusan
    Holubova, Irena
    30TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, VOLS I AND II, 2015, : 724 - 731
  • [42] Efficient algorithms for processing XPath queries
    Gottlob, G
    Koch, C
    Pichler, R
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2005, 30 (02): : 444 - 491
  • [43] Information disclosure by answers to XPath queries
    Boettcher, Stefan
    Hartel, Rita
    JOURNAL OF COMPUTER SECURITY, 2009, 17 (01) : 69 - 99
  • [44] Efficient cache answerability for XPath queries
    Marrón, PJ
    Lausen, G
    EFFICIENCY AND EFFECTIVENESS OF XML TOOLS AND TECHNIQUES AND DATA INTEGRATION OVER THE WEB, 2003, 2590 : 183 - 199
  • [45] XPlainer: Visual explanations of XPath queries
    Consens, Mariano P.
    Liu, John W. S.
    Rizzolo, Flavio
    2007 IEEE 23RD INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2007, : 611 - +
  • [46] Hint and run: Accelerating XPath queries
    Stanoi, L
    Lang, CA
    Padmanabhan, S
    9TH INTERNATIONAL DATABASE ENGINEERING & APPLICATION SYMPOSIUM, PROCEEDINGS, 2005, : 253 - 262
  • [47] DISCOVERING VEILED UNSATISFIABLE XPATH QUERIES
    Groppe, Jinghua
    Linnemann, Volker
    ICEIS 2008: PROCEEDINGS OF THE TENTH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS, VOL DISI: DATABASES AND INFORMATION SYSTEMS INTEGRATION, 2008, : 149 - 158
  • [48] Rewriting XPath Expressions Depending on Path Summary
    Xu, Xiaoshuang
    Feng, Yucai
    Wang, Feng
    Zhou, Yingbiao
    ADVANCED DATA MINING AND APPLICATIONS, PROCEEDINGS, 2009, 5678 : 736 - +
  • [49] XPath Query Relaxation through Rewriting Rules
    Fazzinga, Bettina
    Flesca, Sergio
    Furfaro, Filippo
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2011, 23 (10) : 1583 - 1600
  • [50] Satisfiability-test, rewriting and refinement of users' XPath queries according to XML schema definitions
    Groppe, Jinghua
    Groppe, Sven
    ADVANCES IN DATABASES AND INFORMATION SYSTEMS, PROCEEDINGS, 2006, 4152 : 22 - 38