Deductive Database Systems and integrity constraint checking

Today, relational database systems have been extended in several ways. One way to extend the relational database model is by adding rules. These rules can make a lot of information implicit. In other words, a lot of intensional facts Sle stored in the database through rules. Consequently, when one updates such a database, a lot of implicit updates may appear by the presence of rules. When also integrity constraints on data in the database ale allowed, the checking of these constraints becomes a problem because an update can cause some implicit updates which in turn may violate some of the constraints. The search for inconsistencies is a timeconsuming task which must therefore be done primarily at compile time. This paper presents a new method for checking integrity constraints in databases extended with rules. A special kind of database is used, namely a deductive database, which is a logical database that handles deductive rules. The goal of this paper is to find the causes of efficiency defects in existing methods. A classification of redundant evaluations in existing methods is given. On th~ basis of this analysis an improvement ofthe method based on inconsistency rules, which I have developed at an earlier stage (see [26]), is proposed. Compared to existing methods it follows a completely different approach. Inconsistency rules are meta~rules which describe for all possible updates the integrity constraint check that has to be done. Further, the check is mimimal from the redundancy types point of view. Several types of redundancy in integrity checking methods are described in this paper. These redundancies have to be avoided to provide that we only have to access a relevant part of the database that is affected by the update. The improved version of the method based on inconsistency rules is compared to other existing methods, i. e., methods based on induced update6 and methods based on potential update •. keywords: logic programming, deductive databa.e" integrity con.trainb, con6i,tency.

[1]  Robert A. Kowalski,et al.  A Theorem-Proving Approach to Database Integrity , 1988, Foundations of Deductive Databases and Logic Programming..

[2]  Hendrik Decker,et al.  A Uniform Approach to Constraint Satisfaction and Constraint Satisfiability in Deductive Databases , 1988, EDBT.

[3]  John W. Lloyd,et al.  A Basis for Deductive Database Systems II , 1986, J. Log. Program..

[4]  J. W. Lloyd,et al.  Foundations of logic programming; (2nd extended ed.) , 1987 .

[5]  Liz Sonenberg,et al.  Integrity Constraint Checking in Stratified Databases , 1987, J. Log. Program..

[6]  Robert A. Kowalski,et al.  Integrity Checking in Deductive Databases , 1987, VLDB.

[7]  Paola Inverardi,et al.  Improving Integrity Constraint Checking in Deductive Databases , 1988, ICDT.

[8]  M. Howard Williams,et al.  A Path Finding Method for Constraint Checking in Deductive Databases , 1989, Data Knowl. Eng..

[9]  Tok Wang Ling Integrity Constraint Checking in Deductive Databases Using the Prolog Not-Predicate , 1987, Data Knowl. Eng..

[10]  Hendrik Decker,et al.  Improving Integrity Checking by Compiling Derivation Paths , 1993, Australian Database Conference.

[11]  S. K. Das,et al.  Integrity checking methods in deductive databases: a comparative evaluation , 1990 .

[12]  Amihai Motro Using Integrity Constraints to Provide Intensional Answers to Relational Queries , 1989, VLDB.

[13]  John W. Lloyd,et al.  A Basis for Deductive Database Systems , 1985, J. Log. Program..

[14]  Antoni Olivé Integrity Constraints Checking In Deductive Databases , 1991, VLDB.

[15]  J. Lloyd Foundations of Logic Programming , 1984, Symbolic Computation.

[16]  Volker Küchenhoff On the Efficient Computation of the Difference Between Concecutive Database States , 1991, DOOD.

[17]  John Grant,et al.  Logic-based approach to semantic query optimization , 1990, TODS.

[18]  Sin Yeung Lee,et al.  Improving Integrity Constraint Checking for Stratified Deductive Databases , 1994, DEXA.

[19]  Hendrik Decker,et al.  Comparing and synthesizing integrity checking methods for deductive databases , 1994, Proceedings of 1994 IEEE 10th International Conference on Data Engineering.

[20]  Maurizio Martelli,et al.  Integrity Constraints for Logic Databases , 1985, J. Log. Program..

[21]  Ron Selj A New Method for Integrity Constraint Checking in Deductive Databases , 1994 .

[22]  Hendrik Decker,et al.  Drawing Updates From Derivations , 1990, ICDT.

[23]  Jean-Marie Nicolas,et al.  Integrity Checking in Deductive Data Bases , 1977, Logic and Data Bases.

[24]  Jpc Jack Verhoosel A formal deterministic scheduling model for hard real-time executings in DEDOS , 1993 .

[25]  Hendrik Decker,et al.  Integrity Enforcement on Deductive Databases , 1986, Expert Database Conf..