Skip to main content

Datalog and Constraints

  • Chapter
Constraint Databases

Abstract

Recursion is an important feature to express many natural queries. The most studied recursive query language for databases is called Datalog, an abbreviation for “Database logic programs.” In Section 2.8 we gave the basic definitions for Datalog, and we also saw that the language is not closed for important constraint classes such as linear equalities. We have also seen some results on restricting the language, and the resulting expressive power, in Section 4.4.1.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Bibliographic Notes

  1. J. Jaffar and J.-L. Lassez. Constraint logic programming. In Proceedings of the 14th Annual ACM Symposium on Principles of Programming Languages (POPL’87), pages 111–119. ACM Press, 1987.

    Google Scholar 

  2. P. C. Kanellakis, G. M. Kuper, and P. Z. Revesz. Constraint query languages. In Proceedings of the 9th ACM SIGACT-SIGMODSIGART Symposium on Principles of Database Systems (PODS’90), pages 299–313. ACM Press, 1990.

    Google Scholar 

  3. P. C. Kanellakis, G. M. Kuper, and P. Z. Revesz. Constraint query languages. Journal of Computer and System Sciences, 51 (1): 26–52, 1995.

    Article  MathSciNet  Google Scholar 

  4. S. Grumbach and J. Su. Dense-order constraint databases. In Proceedings of the 14th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS’95), pages 66–77. ACM Press, 1995.

    Google Scholar 

  5. P. Z. Revesz. A closed-form evaluation for Datalog queries with integer (gap)-order constraints. Theoretical Computer Science (TCS), 116 (1/2): 117–149, 1993.

    Article  MathSciNet  MATH  Google Scholar 

  6. J. Cox and K. McAloon. Decision procedures for constraint based extensions of Datalog. In Constraint Logic Programming. MIT Press, 1993.

    Google Scholar 

  7. P. Z. Revesz. Safe stratified Datalog with integer order programs. In Proceedings of the 1st International Conference on Principles and Practice of Constraint Programming (CP’95), volume 976 of Lecture Notes in Computer Science, pages 154–169. Springer-Verlag, 1995.

    Google Scholar 

  8. P. Z. Revesz. Safe query languages for constraint databases. ACM Transactions on Databases Systems (TODS), 23 (1): 58–99, 1998.

    Article  Google Scholar 

  9. A. P. Stolboushkin and M. A. Taitslin. Finite queries do not have effective syntax. In Proceedings of the 14th ACM SIGACT-SIGMODSIGART Symposium on Principles of Database Systems (PODS’95), pages 277–285. ACM Press, 1995.

    Google Scholar 

  10. A. P. Stolboushkin and M. A. Taitslin. Safe stratified Datalog with integer order does not have syntax. ACM Transactions on Databases Systems (TODS), 23 (1): 100–109, 1998.

    Article  MathSciNet  Google Scholar 

  11. P. Z. Revesz. Safe stratified Datalog with integer order programs. In Proceedings of the 1st International Conference on Principles and Practice of Constraint Programming (CP’95), volume 976 of Lecture Notes in Computer Science, pages 154–169. Springer-Verlag, 1995.

    Google Scholar 

  12. P. Z. Revesz. Safe query languages for constraint databases. ACM Transactions on Databases Systems (TODS), 23 (1): 58–99, 1998.

    Article  Google Scholar 

  13. P. Z. Revesz. Datalog programs with difference constraints. In Proceedings of the Twelfth International Conference on Applications of Prolog, pages 69–76, 1999.

    Google Scholar 

  14. P. Z. Revesz. Safe Datalog queries with linear constraints. In Proceedings of the 4th International Conference on Principles and Practice of Constraint Programming (CP’98), volume 1520 of Lecture Notes in Computer Science, pages 355–369. Springer-Verlag, 1998.

    Google Scholar 

  15. B. Kuijpers, J. Paredaens, M. Smits, and J. Van den Bussche. Termination properties of spatial Datalog programs. In International Workshop on Logic in Databases (LID’96), volume 1154 of Lecture Notes in Computer Science, pages 101–116. Springer-Verlag, 1996.

    Google Scholar 

  16. B. Kuijpers and M. Smits. On expressing topological connectivity in spatial Datalog. In Proceedings of the 2nd Workshop on Constraint Databases and Applications (CDB’97), volume 1191 of Lecture Notes in Computer Science, pages 116–133. Springer-Verlag, 1997.

    Google Scholar 

  17. F. Geerts and B. Kuijpers. Expressing topological connectivity of spatial databases. In Proceedings of the 7th International Workshop on Database Programming Languages (DBPL’99), Lecture Notes in Computer Science. Springer-Verlag, 1999.

    Google Scholar 

  18. J. Chomicki and T. Imielinski. Finite representation of infinite query answers. ACM Transactions on Databases Systems (TODS), 18 (2): 181–223, 1993.

    Article  Google Scholar 

  19. D. Toman, J. Chomicki, and D. S. Rogers. Datalog with integer periodicity constraints. In Proceedings of the 11th International Symposium on Logic Programming (ILPS’g4), pages 189–203. MIT Press, 1994.

    Google Scholar 

  20. L. Fribourg and H. Olsén. A decompositional approach for computing least fixed-points of Datalog programs with Z-counters. Constraints, 2 (3/4): 305–335, 1997.

    Article  MathSciNet  MATH  Google Scholar 

  21. W. Biittner and H. Simonis. Embedding Boolean expressions into logic programming Journal of Symbolic Computation (JSC), 4 (2): 191–205, 1987.

    Article  Google Scholar 

  22. P. C. Kanellakis, G. M. Kuper, and P. Z. Revesz. Constraint query languages. Journal of Computer and System Sciences, 51 (1): 26–52, 1995.

    Article  MathSciNet  Google Scholar 

  23. J. Jaffar and M. J. Maher. Constraint logic programming: A survey. Journal of Logic Programming, 19 /20: 503–581, 1994.

    Article  MathSciNet  Google Scholar 

  24. P. Z. Revesz. Constraint databases: A survey. In L. Libkin and B. Thalheim, editors, Semantics in Databases, volume 1358 of Lecture Notes in Computer Science. Springer-Verlag, 1998.

    Google Scholar 

Download references

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Revesz, P.Z. (2000). Datalog and Constraints. In: Kuper, G., Libkin, L., Paredaens, J. (eds) Constraint Databases. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-04031-7_7

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-04031-7_7

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-08542-0

  • Online ISBN: 978-3-662-04031-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics