Abstract
In a Datalog database, updates to intensionally defined relations give rise to problems similar to those related to view updates: it is often difficult to implement them in an unambiguous way by means of updates to base relations. In this paper we show how such ambiguities can be solved at operation time by requiring exactly the missing information. We first formalize a declarative, model-theoretic semantics of updates, with potential, minimal, and deterministic results; then, we present an operational, proof-theoretic approach, based on SLD-resolution, that turns out to be equivalent to the declarative one; finally, algorithms to correctly perform the updates, based on the procedural semantics, are given. When, while performing an update, different solutions can be followed, the needed information to solve the ambiguity is required.
Work supported by Ministero della Pubblica Istruzione, within the project: “Metodi formali e strumenti per basi di dati evolute” and by CNR, “PF Sistemi Informatici e Calcolo Parallelo, Sottoprogetto 5, LRC LOGIDATA+”.
This is a preview of subscription content, log in via an institution.
Preview
Unable to display preview. Download preview PDF.
References
P. Atzeni and R. Torlone. Efficient updates to independent schemes in the weak instance model. In ACM SIGMOD International Conf. on Management of Data, pages 84–93, 1990.
P. Atzeni and R. Torlone. Updating databases in the weak instance model. In Eight ACM SIGACT SIGMOD SIGART Symp. on Principles of Database Systems, pages 101–109, 1989.
P. Atzeni and R. Torlone. Updating Datalog Databases. To appear in the Proceedings of East West Workshop on Database Technology, Springer-Verlag, 1991.
F. Bancilhon and N. Spyratos. Update semantics of relational views. ACM Trans. on Database Syst., 6(4):557–575, 1981.
S. Ceri, G. Gottlob, and L. Tanca. Logic Programming and Data Bases. Springer-Verlag, 1989.
S.S. Cosmadakis and C.H. Papadimitriou. Updates of relational views. Journal of the ACM, 31(4):742–760, October 1984.
U. Dayal and P.A. Bernstein. On the correct translation of update relations on relational views. ACM Trans. on Database Syst., 8(3):381–416, September 1982.
H. Decker. Drawing Updates from Derivations. In ICDT'90 (Third International Conference on Data Base Theory), Paris, Lecture Notes in Computer Science 470, pages 437–451, Springer-Verlag, 1990.
R. Fagin, G.M. Kuper, J.D. Ullman, and M.Y. Vardi. Updating logical databases. In P.C. Kanellakis and F.P. Preparata, editors, Advances in Computing Research, Vol.3, pages 1–18, JAI Press, 1986.
G. Gottlob, P. Paolini, and R. Zicari. Properties and update semantics of consistent views. ACM Trans. on Database Syst., 13(4):486–524, December 1988.
A.C. Kakas and P. Mancarella. Database updates through abduction. In Sixteenth International Conference on Very Large Data Bases, Brisbane, pages 650–661, 1990.
A.M. Keller. Algorithms for translating view updates to database updates for views involving selections, projections, and joins. In Fourth ACM SIGACT SIGMOD Symp. on Principles of Database Systems, pages 154–163, 1985.
J.W. Lloyd. Foundations of Logic Programming. Springer-Verlag, second edition, 1987.
S. Manchanda and D.S. Warren. A logic-based language for database updates. In J. Minker, editor, Foundations of Deductive Databases and Logic Programming, pages 363–394, Morgan Kauffman, Los Altos, 1987.
S.A. Naqvi and R. Krishnamurthy. Database updates in logic programming. In Seventh ACM SIGACT SIGMOD SIGART Symp. on Principles of Database Systems, pages 251–262, 1988.
F. Rossi and S.A. Naqvi. Contributions to the view update problem. In 6th International Conference on Logic Programming, pages 398–415, 1989.
A. Tomasic. View update translation via deduction and annotation. In ICDT'88 (Second International Conference on Data Base Theory), Bruges, Lecture Notes in Computer Science 326, pages 338–352, Springer-Verlag, 1988.
J.D. Ullman. Principles of Database and Knowledge Base Systems. Volume 1, Computer Science Press, Potomac, Maryland, 1988.
M.W. Wilkins. A model-theoretic approach to updating logical databases. In Fifth ACM SIGACT SIGMOD Symp. on Principles of Database Systems, pages 224–234, 1986.
M. Winslett. A framework for the comparison of update semantics. In Seventh ACM SIGACT SIGMOD SIGART Symp. on Principles of Database Systems, pages 315–324, 1988.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1991 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Atzeni, P., Torlone, R. (1991). Solving ambiguities in updating deductive databases. In: Thalheim, B., Demetrovics, J., Gerhardt, H.D. (eds) MFDBS 91. MFDBS 1991. Lecture Notes in Computer Science, vol 495. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-54009-1_8
Download citation
DOI: https://doi.org/10.1007/3-540-54009-1_8
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-54009-0
Online ISBN: 978-3-540-47348-0
eBook Packages: Springer Book Archive