Abstract
In this paper, we present an extension of the scheme HH(\(\mathcal{C}\)) (Hereditary Harrop formulas with Constraints) with a suitable formulation of negation in order to obtain a constraint deductive database query language. In addition to constraints, our proposal includes logical connectives (implication and quantifiers) for defining databases and queries, which altogether are unavailable in current database query languages.
We define a proof theoretic semantic framework based on a sequent calculus, that allows to represent the meaning of a database query by means of a derived constraint answer in the sense of CLP. We also introduce an appropriate notion of stratification, which provides a starting point for suitable operational semantics dealing with recursion and negation. We formalize a fixed point semantics for stratifiable databases, whose fixpoint operator is applied stratum by stratum. This semantics is proved to be sound and complete with respect to derivability in the sequent calculus, and it provides the required support for actual implementations, as the prototype we have developed already and introduce in this paper.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison-Wesley, Reading (1995)
Apt, K., Bol, R.: Logic Programming and Negation: A Survey. Journal of Logic Programming 19&20, 9–71 (1994)
Benedikt, M., Libkin, L.: Safe constraint queries. In: PODS 1998: Proceedings of the Seventeenth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, pp. 99–108. ACM Press, New York (1998)
Bonatti, S.B.P.A., Gelfond, M.: Towards an integration of answer set and constraint solving. In: Gabbrielli, M., Gupta, G. (eds.) ICLP 2005. LNCS, vol. 3668, pp. 52–66. Springer, Heidelberg (2005)
Bonner, A.J., McCarty, L.T., Vadaparty, K.: Expressing Database Queries with Intuitionistic Logic. In: Lusk, E.L., Overbeek, R.A. (eds.) Proceedings of the North American Conference on Logic Programming, pp. 831–850 (1989)
Ferraris, P., Lifschitz, V.: Mathematical foundations of answer set programming. In: Artëmov, S.N., Barringer, H., d’Avila Garcez, A.S., Lamb, L.C., Woods, J. (eds.) We Will Show Them (1), pp. 615–664. College Publications (2005)
García-Díaz, M., Nieva, S.: Providing Declarative Semantics for HH Extended Constraint Logic Programs. In: Proceedings of the 6th ACM SIGPLAN Int. Conf. on PPDP, pp. 55–66 (2004)
Hofstedt, P., Pepper, P.: Integration of declarative and constraint programming. Theory Pract. Log. Program. 7(1-2), 93–121 (2007)
Jaffar, J., Lassez, J.-L.: Constraint Logic Programming. In: 14th ACM Symp. on Principles of Programming Languages (POPL 1987), Munich, Germany, January 1987, pp. 111–119. ACM Press, New York (1987)
Leach, J., Nieva, S., Rodríguez-Artalejo, M.: Constraint Logic Programming with Hereditary Harrop Formulas. TPLP 1(4), 409–445 (2001)
Lipton, J., Nieva, S.: Higher-order logic programming languages with constraints: A semantics. In: Della Rocca, S.R. (ed.) TLCA 2007. LNCS, vol. 4583, pp. 272–289. Springer, Heidelberg (2007)
Mellarkod, V.S.: Integrating ASP and CLP Systems: Computing Answer Sets from Partially Ground Programs. PhD thesis, Texas Tech University (2007)
Miller, D., Nadathur, G., Pfenning, F., Scedrov, A.: Uniform Proofs as a Foundation for Logic Programming. Annals of Pure and Applied Logic 51, 125–157 (1991)
Nieva, S., Sáenz-Pérez, F., Sánchez, J.: Towards a constraint deductive database language based on hereditary harrop formulas. In: Lucio, P., Orejas, F. (eds.) Sextas Jornadas de Programación y Lenguajes, PROLE, pp. 171–182 (2006)
Pustejovsky, J., Revesz, P.Z. (eds.): Proc. 13th International Symposium on Temporal Representation and Reasoning. IEEE Computer Society Press, Los Alamitos (2006)
Revesz, P.Z.: Datalog and Constraints. In: Kuper, G., Libkin, L., Paredaens, J. (eds.) Constraint Databases, ch. 7, pp. 151–174. Springer, Heidelberg (2000)
Revesz, P.Z.: Introduction to Constraint Databases. Springer, Heidelberg (2002)
Scholl, P.R.M., Voisard, A.: Spatial databases with application to GIS. Morgan Kaufmann Publishers Inc., San Francisco (2002)
Tarski, A.: A lattice-theoretical fixpoint theorem and its applications. Pacific Journal of Mathematics 5, 285–309 (1955)
Zaniolo, C., Ceri, S., Faloutsos, C., Snodgrass, R.T., Subrahmanian, V.S., Zicari, R.: Advanced Database Systems. Morgan Kaufmann Publishers Inc., San Francisco (1997)
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 2008 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Nieva, S., Sánchez-Hernández, J., Sáenz-Pérez, F. (2008). Formalizing a Constraint Deductive Database Language Based on Hereditary Harrop Formulas with Negation. In: Garrigue, J., Hermenegildo, M.V. (eds) Functional and Logic Programming. FLOPS 2008. Lecture Notes in Computer Science, vol 4989. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-78969-7_21
Download citation
DOI: https://doi.org/10.1007/978-3-540-78969-7_21
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-78968-0
Online ISBN: 978-3-540-78969-7
eBook Packages: Computer ScienceComputer Science (R0)