skip to main content
research-article

On Monotonic Determinacy and Rewritability for Recursive Queries and Views

Published:17 March 2023Publication History
Skip Abstract Section

Abstract

A query Q is monotonically determined over a set of views V if Q can be expressed as a monotonic function of the view image. In the case of relational algebra views and queries, monotonic determinacy coincides with rewritability as a union of conjunctive queries, and it is decidable in important special cases, such as for conjunctive query views and queries. We investigate the situation for views and queries in the recursive query language Datalog. We give both positive and negative results about the ability to decide monotonic determinacy, and also about the co-incidence of monotonic determinacy with Datalog rewritability.

REFERENCES

  1. Abiteboul Serbe, Hull Richard, and Vianu Victor. 1995. Foundations of Databases. Addison-Wesley.Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Afrati Foto and Chirkova Rada. 2019. Answering Queries Using Views. Morgan & Claypool.Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Afrati Foto N.. 2011. Determinacy and query rewriting for conjunctive queries and views. Theoretical Computer Science 412, 11 (2011), 10051021.Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Atserias Albert, Bulatov Andrei A., and Dalmau Víctor. 2007. On the power of k-consistency. In Proceedings of the International Colloquium on Automata, Languages, and Programming (ICALP’07).Google ScholarGoogle ScholarCross RefCross Ref
  5. Atserias Albert, Kolaitis Phokion, and Vardi Moshe Y.. 2004. Constraint propagation as a proof system. In Proceedings of the International Conference on Principles and Practice of Constraint Programming (CP’04).Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Atserias Albert and Weyer Mark. 2009. Decidable relationships between consistency notions for constraint satisfaction problems. In Proceedings of the International Workshop on Computer Science Logic (CSL’09).Google ScholarGoogle ScholarCross RefCross Ref
  7. Bárány Vince, Cate Balder Ten, and Segoufin Luc. 2015. Guarded negation. Journal of the ACM 62, 3 (2015), Article 22, 26 pages.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Benedikt Michael, Bourhis Pierre, Cate Balder Ten, Puppis Gabrieled, and Boom Michael Vanden. 2021. Inference from visible information and background knowledge. ACM Transactions on Computational Logic 22, 2 (2021), Article 13, 69 pages.Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Benedikt Michael, Bourhis Pierre, Gottlob Georg, and Senellart Pierre. 2019. Monadic datalog, tree validity, and limited access containment. ACM Transactions on Computational Logic 21, 1 (2019), Article 6, 45 pages.Google ScholarGoogle Scholar
  10. Benedikt Michael, Bourhis Pierre, and Boom Michael Vanden. 2019. Definability and interpolation within decidable fixpoint logics. Logical Methods in Computer Science 15, 3 (2019), Article 29, 53 pages.Google ScholarGoogle Scholar
  11. Benedikt Michael, Cate Balder Ten, Leblay Julien, and Tsamoura Efi. 2016. Generating Plans from Proofs: The Interpolation-based Approach to Query Reformulation. Morgan & Claypool.Google ScholarGoogle ScholarCross RefCross Ref
  12. Calvanese Diego, Giacomo Giuseppe De, Lenzerini Maurizio, and Vardi Moshe Y.. 2002. Lossless regular views. In Proceedings of the 21st ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS’02). 247–258.Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Calvanese Diego, Giacomo Giuseppe De, Lenzerini Maurizio, and Vardi Moshe Y.. 2003. Reasoning on regular path queries. ACM SIGMOD Record 32, 4 (2003), 8392.Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Calvanese Diego, Giacomo Giuseppe De, Lenzerini Maurizio, and Vardi Moshe Y.. 2007. View-based query processing: On the relationship between rewriting, answering and losslessness. Theoretical Computer Science 371, 3 (2007), 169182.Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Chaudhuri Surajit and Vardi Moshe Y.. 1994. On the complexity of equivalence between recursive and nonrecursive datalog programs. In Proceedings of the 13th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS’94).Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Chaudhuri Surajit and Vardi Moshe Y.. 1997. On the equivalence of recursive and nonrecursive Datalog programs. Journal of Computer and System Sciences 54, 1 (1997), 6178.Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Cosmadakis Stavros, Gaifman Haim, Kanellakis Paris, and Vardi Moshe. 1988. Decidable optimization problems for database logic programs. In Proceedings of the 20th Annual ACM Symposium on Theory of Computing (STOC’88). 477–490.Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Courcelle Bruno. 1990. The monadic second order theory of graphs. I. Recognisable sets of finite graphs. Information and Computation 85, 1 (1990), 1275.Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Duschka Oliver M., Genesereth Michael R., and Levy Alon Y.. 2000. Recursive query plans for data integration. Journal of Logic and Programming 43, 1 (2000), 4973.Google ScholarGoogle ScholarCross RefCross Ref
  20. Francis Nadime, Segoufin Luc, and Sirangelo Cristina. 2015. Datalog rewritings of regular path queries using views. Logical Methods in Computer Science 11, 4 (2015), 1–25.Google ScholarGoogle ScholarCross RefCross Ref
  21. Gabbay D. and Shehtman V.. 1998. Products of modal logics, part 1. Logic Journal of the IGPL 6, 1 (1998), 73146.Google ScholarGoogle ScholarCross RefCross Ref
  22. Gluch Grzegorz, Marcinkowski Jerzy, and Ostropolski-Nalewaja Piotr. 2018. Can one escape red chains?: Regular path queries determinacy is undecidable. In Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS’18). 492–501.Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Gogacz Tomasz and Marcinkowski Jerzy. 2015. The hunt for a red spider: Conjunctive query determinacy is undecidable. In Proceedings of the 30th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS’15).Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Gogacz Tomasz and Marcinkowski Jerzy. 2016. Red spider meets a rainworm: Conjunctive query finite determinacy is undecidable. In Proceedings of the 35th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS’16). 121–134.Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Grädel Erich, Hirsch Colin, and Otto Martin. 2002. Back and forth between guarded and modal logics. ACM Transactions on Computational Logic 3, 3 (2002), 418463.Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. Kolaitis Phokion and Vardi Moshe Y.. 1995. On the expressive power of Datalog: Tools and a case study. Journal of Computer and System Sciences 51, 1 (1995), 110134.Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. Kurucz A., Wolter F., Zakharyaschev M., and Gabbay D. M.. 2003. Many-Dimensional Modal Logics: Theory and Applications. Studies in Logic and the Foundations of Mathematics, Vol. 148. Elsevier.Google ScholarGoogle Scholar
  28. Levy Alon Y., Mendelzon Alberto O., Sagiv Yehoshua, and Srivastava Divesh. 1995. Answering queries using views. In Proceedings of the 14th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS’95).Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. Lutz Carsten, Marti Johannes, and Sabellek Leif. 2018. Query expressibility and verification in ontology-based data access. In Proceedings of the 16th International Conference on Principles of Knowledge Representation and Reasoning (KR’18).Google ScholarGoogle Scholar
  30. Nash Alan, Segoufin Luc, and Vianu Victor. 2010. Views and queries: Determinacy and rewriting. ACM Transactions on Database Systems 35, 3 (2010), Article 21, 41 pages.Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. Perez Jorge. 2011. Schema Mapping Management in Data Exchange Systems. Ph.D. dissertation. University of Chile.Google ScholarGoogle Scholar
  32. Shmueli Oded. 1993. Equivalence of Datalog queries is undecidable. Journal of Logic Programming 15, 3 (1993), 231241.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. On Monotonic Determinacy and Rewritability for Recursive Queries and Views

    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

    Full Access

    • Published in

      cover image ACM Transactions on Computational Logic
      ACM Transactions on Computational Logic  Volume 24, Issue 2
      April 2023
      470 pages
      ISSN:1529-3785
      EISSN:1557-945X
      DOI:10.1145/3579820
      • Editor:
      • Anuj Dawar
      Issue’s Table of Contents

      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: 17 March 2023
      • Online AM: 5 January 2023
      • Accepted: 2 November 2022
      • Revised: 10 September 2021
      • Received: 3 September 2020
      Published in tocl Volume 24, Issue 2

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Author Tags

      Qualifiers

      • research-article
    • Article Metrics

      • Downloads (Last 12 months)80
      • Downloads (Last 6 weeks)3

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Full Text

    View this article in Full Text.

    View Full Text

    HTML Format

    View this article in HTML Format .

    View HTML Format