Database updates in logic programming
Shamim A. Naqvi, Ravi Krishnamurthy · Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems · 1988
The need for control in logic programs is now being recognized. This is particularly evident when one focuses on allowing updates in logic programs. In this paper we propose a language DatalogA which is an extension of Datalog with updates to base relations. We define some procedural constructs to allow update programs to be written in an easy manner. The (W,p) scheme of Dynamic Logic fits nicely into the semantics of DatalogA programs in which W is taken to be the set of all possible states of the program and p is the accessibility relation between states. We give declarative semantics and equivalent constructed model semantics for DatalogA programs. We show that in the absence of updates our semantics reduce to the classical semantics of Datalog. Finally, we show some examples of non-stratified programs expressed in DatalogA.
Cited by 69 works. doi:10.1145/308386.308451 Open-access PDF
Authors
References
- Foundations of Logic Programming
- Implementation of logical query languages for databases
- Contributions to the Theory of Logic Programming
- Towards a Theory of Declarative Knowledge
- First-Order Dynamic Logic
- Magic sets and other strange ways to implement logic programs (extended abstract)
- LDL: A Logic-Based Data Language
- Sets and negation in a logic data base language (LDL1)
- Handbook of Philosophical Logic
- Logic programming with sets