skip to main content
10.1145/1938551.1938580acmotherconferencesArticle/Chapter ViewAbstractPublication PagesedbtConference Proceedingsconference-collections
research-article

Conjunctive queries determinacy and rewriting

Published:21 March 2011Publication History

ABSTRACT

The problem of whether a query Q can be answered using a set of views V studies the possibility of computing Q when only the answers to the given set of views are available. In information-theoretic terms, we say that V determines Q iff for any two databases D1, D2, V(D1) = V(D2) implies Q(D1) = Q(D2). In the case that V determines Q, we also study the existence of equivalent rewritings of Q in terms of V in a specific rewriting language. Having a view language ν and a query language Q we say that ν-to-Q determinacy is decidable if there is an algorithm which, given a view V ε ν and a query Q ε Q, outputs whether V determines Q.

We focus on the case where the views and the query are defined by subclasses of conjunctive queries and investigate in which cases V determines Q and the existence of equivalent rewritings of Q in terms of V. We define the class of CQcgraph queries as binary CQ queries whose body, if viewed as an undirected graph, is connected. Next, we establish necessary conditions for determinacy in the CQcgraph-to-CQcgraph case. We also show that CQchain-to-CQcgraph determinacy is decidable, extending the previous decidability result for CQchain-to-CQchain, where CQchain denotes the class of binary CQ queries whose body is a simple path between the two free variables. Finally, we provide an algorithm which, starting with a set of CQcgraph views V and an integer κ, generates a set of CQcgraph queries that are determined by V and have their size bounded by κ.

References

  1. S. Abiteboul and O. M. Duschka. Complexity of answering queries using materialized views. In PODS, pages 254--263. ACM Press, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. F. N. Afrati. Rewriting conjunctive queries determined by views. In L. Kucera and A. Kucera, editors, MFCS, volume 4708 of Lecture Notes in Computer Science, pages 78--89. Springer, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. F. N. Afrati, C. Li, and V. Pavlaki. Data exchange in the presence of arithmetic comparisons. In A. Kemper, P. Valduriez, N. Mouaddib, J. Teubner, M. Bouzeghoub, V. Markl, L. Amsaleg, and I. Manolescu, editors, EDBT, volume 261 of ACM International Conference Proceeding Series, pages 487--498. ACM, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. F. N. Afrati, C. Li, and J. D. Ullman. Generating efficient plans for queries using views. In SIGMOD Conference, pages 319--330, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. R. Bayardo, W. Bohrer, R. S. Brice, A. Cichocki, J. Fowler, A. Helal, V. Kashyap, T. Ksiezyk, G. MMartin, M. H. Nodine, M. Rashid, M. Rusinkiewicz, R. Shea, C. Unnikrishnan, A. Unruh, and D. Woelk. Infosleuth: Semantic integration of information in open and dynamic environments (experience paper). In J. Peckham, editor, SIGMOD Conference, pages 195--206. ACM Press, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. C. C. Chang and H. J. Keisler. Model Theory. North-Holland, 1977.Google ScholarGoogle Scholar
  7. C. Chekuri and A. Rajaraman. Conjunctive query containment revisited. Theor. Comput. Sci., 239(2):211--229, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. S. Dar, M. J. Franklin, B. T. Jónsson, D. Srivastava, and M. Tan. Semantic data caching and replacement. In T. M. Vijayaraman, A. P. Buchmann, C. Mohan, and N. L. Sarda, editors, VLDB, pages 330--341. Morgan Kaufmann, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. O. M. Duschka and M. R. Genesereth. Answering recursive queries using views. In PODS, pages 109--116. ACM Press, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. D. Florescu, A. Y. Levy, I. Manolescu, and D. Suciu. Query optimization in the presence of limited access patterns. In A. Delis, C. Faloutsos, and S. Ghandeharizadeh, editors, SIGMOD Conference, pages 311--322. ACM Press, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. L. M. Haas, D. Kossmann, E. L. Wimmers, and J. Yang. Optimizing queries across diverse data sources. In M. Jarke, M. J. Carey, K. R. Dittrich, F. H. Lochovsky, P. Loucopoulos, and M. A. Jeusfeld, editors, VLDB, pages 276--285. Morgan Kaufmann, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. A. Y. Levy, A. O. Mendelzon, Y. Sagiv, and D. Srivastava. Answering queries using views. In Proceedings of the Fourteenth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, May 22--25, 1995, San Jose, California, pages 95--104. ACM Press, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. M. Marx. Queries determined by views: pack your views. In L. Libkin, editor, PODS, pages 23--30. ACM, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. A. Nash, L. Segoufin, and V. Vianu. Determinacy and rewriting of conjunctive queries using views: A progress report. In ICDT, pages 59--73, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. A. Rajaraman, Y. Sagiv, and J. D. Ullman. Answering queries using templates with binding patterns. In PODS, pages 105--112, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. K. Stoffel and T. Studer. Provable data privacy. In K. V. Andersen, J. K. Debenham, and R. Wagner, editors, DEXA, volume 3588 of Lecture Notes in Computer Science, pages 324--332. Springer, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. J. D. Ullman. Information integration using logical views. Theor. Comput. Sci., 239(2):189--210, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Conjunctive queries determinacy and rewriting

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      ICDT '11: Proceedings of the 14th International Conference on Database Theory
      March 2011
      285 pages
      ISBN:9781450305297
      DOI:10.1145/1938551
      • Program Chair:
      • Tova Milo

      Copyright © 2011 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 21 March 2011

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader