Rewriting queries using views in the presence of arithmetic comparisons

被引:17
|
作者
Afrati, Foto [1 ]
Li, Chen
Mitra, Prasenjit
机构
[1] Natl Tech Univ Athens, GR-15773 Athens, Greece
[2] Univ Calif Irvine, Dept Comp Sci, Irvine, CA 92697 USA
[3] Penn State Univ, Coll Informat Sci & Technol, University Pk, PA 16802 USA
关键词
databases; query rewriting; query languages;
D O I
10.1016/j.tcs.2006.08.020
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We consider the problem of answering queries using views, where queries and views are conjunctive queries with arithmetic comparisons over dense orders. Previous work only considered limited variants of this problem, without giving a complete solution. We first show that obtaining equivalent rewritings for conjunctive queries with arithmetic comparisons is decidable. Then, we consider the problem of finding maximally contained rewritings (MCRs) where the decidability proof does not carry over. We investigate two special cases of this problem where the query uses only semi-interval comparisons. In both cases decidability of finding MCRs depends on the query containment test. First, we address the case where the homomorphism property holds in testing query containment. In this case decidability is easy to prove but developing an efficient algorithm is not trivial. We develop such an algorithm and prove that it is sound and complete. This algorithm applies in many cases where the query uses only left (or right) semi-interval comparisons. Then, we develop a new query containment test for the case where the containing query uses both left and right semi-interval comparisons but with only one left (or right) semi-interval subgoal. Based on this test, we show how to produce an MCR which is a Datalog query with arithmetic comparisons. The containment test that we develop obtains a result of independent interest. It finds another special case where query containment in the presence of arithmetic comparisons can be tested in nondeterministic polynomial time. (c) 2006 Elsevier B.V. All rights reserved.
引用
收藏
页码:88 / 123
页数:36
相关论文
共 50 条
  • [31] Query rewriting using views in the presence of functional and inclusion dependencies
    Gryz, J
    INFORMATION SYSTEMS, 1999, 24 (07) : 597 - 612
  • [32] Containment of acyclic conjunctive queries with negated atoms or arithmetic comparisons
    Sherkhonov, Evgeny
    Marx, Maarten
    INFORMATION PROCESSING LETTERS, 2017, 120 : 30 - 39
  • [33] Finding equivalent rewritings in the presence of arithmetic comparisons
    Afrati, Foto
    Chirkova, Rada
    Gergatsoulis, Manolis
    Pavlaki, Vassia
    ADVANCES IN DATABASE TECHNOLOGY - EDBT 2006, 2006, 3896 : 942 - 960
  • [34] Answering queries using views
    Afrati, Foto
    Chirkova, Rada
    Synthesis Lectures on Data Management, 2018, 9 (02): : 1 - 237
  • [35] On Equivalence of Queries Using Views
    Felea, Victor
    Balta, Marian
    NINTH INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND NUMERIC ALGORITHMS FOR SCIENTIFIC COMPUTING, PROCEEDINGS, 2007, : 165 - 171
  • [36] Rewriting Natural Language Queries Using Patterns
    Soualmia, Lina F.
    Lelong, Romain
    Dahamna, Badisse
    Darmoni, Stefan J.
    MULTIMODAL RETRIEVAL IN THE MEDICAL DOMAIN, MRMD 2015, 2015, 9059 : 40 - 53
  • [37] Using Heterogeneous Mappings for Rewriting SPARQL Queries
    Rodrigues Lopes, Fernanda Ligia
    Sacramento, Eveline Russo
    Loscio, Bernadette Farias
    2012 23RD INTERNATIONAL WORKSHOP ON DATABASE AND EXPERT SYSTEMS APPLICATIONS (DEXA), 2012, : 267 - 271
  • [38] A bucket-based approach to query rewriting using views in the presence of inclusion dependencies
    Bai, Qingyuan
    Hong, Jun
    McTear, Michaet F.
    Wang, Hui
    JOURNAL OF RESEARCH AND PRACTICE IN INFORMATION TECHNOLOGY, 2006, 38 (03): : 251 - 266
  • [39] Bounded Query Rewriting Using Views
    Cao, Yang
    Fan, Wenfei
    Geerts, Floris
    Lu, Ping
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2018, 43 (01):
  • [40] XPath rewriting using multiple views
    Wang, Junhu
    Yu, Jeffrey Xu
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2008, 5181 : 493 - +