Logic and Databases Past, Present, and Future

Total Page:16

File Type:pdf, Size:1020Kb

Logic and Databases Past, Present, and Future AI Magazine Volume 18 Number 3 (1997) (© AAAI) Articles Logic and Databases Past, Present, and Future Jack Minker ■ At a workshop held in Toulouse, France, in 1977, a number of other individuals also had the idea Gallaire, Minker, and Nicolas stated that logic and of using logic as a mechanism to handle data- databases was a field in its own right. This was the bases and deduction, and they were invited to first time that this designation was made. The participate in the workshop. The book Logic impetus for it started approximately 20 years ago and Data Bases (1978), edited by Gallaire and in 1976 when I visited Gallaire and Nicolas in Minker, was highly influential in the develop- Toulouse, France. In this article, I provide an ment of the field, as were the two volumes of assessment about what has been achieved in the 20 years since the field started as a distinct disci- Advances in Database Theory (Gallaire, Minker, pline. I review developments in the field, assess and Nocholas 1984a, 1981) that were the result contributions, consider the status of implementa- of two subsequent workshops held in Tou- tions of deductive databases, and discuss future louse. Another influential development was work needed in deductive databases. the article by Gallaire, Minker, and Nicolas (1984b), which surveyed work in the field to he use of logic and deduction in databas- that point. es, as noted in Minker (1988b), started in The use of logic in databases was received by Tthe late 1960s. Prominent among devel- the database community with a great deal of opments was work by Levien and Maron (1965) skepticism: Was deductive databases (DDBs) a and Kuhns (1967), and by Green and Raphael field? Did DDBs contribute to database theory (1968a), who were the first to realize the impor- or practice (Harel 1980)? The accomplishments tance of the Robinson (1965) resolution princi- I cite in this article are testaments to the fact ple for databases. For early uses of logic in data- that logic has contributed significantly both to bases, see Minker (1988b), and for detailed the theory and the practice of databases. It is descriptions of many accomplishments made clear that logic has everything to do with the in the 1960s, see Minker and Sable (1970). theory of databases, and many of those who A major influence on the use of logic in data- were then critical of the field have changed bases was the development of the field of logic their position. In the remainder of this article, programming: Kowalski (1974) promulgated I describe what I believe to be the major intel- the concept of logic as a programming lan- lectual developments in the field, the status of guage, and Colmerauer and his students devel- commercial implementations, and future oped the first Prolog interpreter (Colmerauer et trends. As we see, the field of logic and data- al. 1973). I refer to logic programs that are bases has been prolific. function free as deductive databases (DDBs), or as datalog. I do so because databases are finite Intellectual Contributions of structures. Most of the results discussed can be extended to include logic programming. Deductive Databases The impetus for the use of logic in databases In 1970, Codd (1970) formalized databases in came about through meetings in 1976 in terms of the relational calculus and the rela- Toulouse, France, when I visited Herve Gallaire tional algebra. He provided a logic language and Jean-Marie Nicolas while on sabbatical. and the relational calculus and described how The idea of a workshop on logic and databases to compute answers to questions in the rela- was also conceived at this time. It is clear that tional algebra and the relational calculus. Both Copyright © 1997, American Association for Artificial Intelligence. All rights reserved. 0738-4602-1997 / $2.00 FALL 1997 21 Articles the relational calculus and the relational alge- between logic-based systems and knowledge- bra provide declarative formalisms to specify based systems; (10) a formalization of how to queries. This was a significant advance over handle incomplete information in knowledge network and hierarchic systems (Ullman 1989, bases; and (11) a correspondence that relates 1988), which only provided procedural lan- alternative formalisms of nonmonotonic rea- guages for databases. The relational algebra and soning to databases and knowledge bases. the relational calculus permitted individuals I address the area of implementations of who were not computer specialists to write DDBs in Implementation Status of Deductive declarative queries and have the computer Databases, where commercial developments answer the queries. The development of syn- have not progressed as rapidly as intellectual tactic optimization techniques (Ullman 1989, developments. I then discuss some trends and 1988) permitted relational database systems to future directions in Emerging Areas and Trends. retrieve answers to queries efficiently and com- Formalizing pete with network and hierarchic implementa- Formalizing Database Theory tions. Relational systems have been enhanced Reiter (1984) was the first to formalize databas- databases to include views. A view, as used in relational es in terms of logic and noted that underlying through logic databases, is essentially a nonrecursive proce- relational databases were a number of assump- dure. There are numerous commercial imple- tions that were not made explicit. One has played a mentations of relational database systems for assumption deals with negation, that facts not significant large database manipulation and for personal known to be true in a relational database are computers. Relational databases are a forerun- assumed to be false. This assumption is the role in our ner of logic in databases. well-known closed-world assumption (CWA), understanding Although relational databases used the lan- expounded earlier by Reiter (1978). The of what guage of logic in the relational calculus, it was unique-name assumption states that any item in not formalized in terms of logic. The formal- a database has a unique name and that indi- constitutes ization of relational databases in terms of logic viduals with different names are different. The a database, and the extensions that have been developed domain-closure assumption states that there are are the focus of this article. Indeed, formaliz- no other individuals than those in the data- what is ing databases through logic has played a signif- base. Reiter then formalized relational databas- meant by icant role in our understanding of what consti- es as a set of ground assertions over a language tutes a database, what is meant by a query, L together with a set of axioms. The language a query, what is meant by an answer to a query, and L does not contain function symbols. These what is how databases can be generalized for knowl- assertions and axioms are as follows: … edge bases. It has also provided tools and Assertions: R(a1, , an), where R is an n-ary meant by an … answers to problems that would have been relational symbol in L, and a1 , an are constant answer to extremely difficult without the use of logic. symbols in L. … a query, In the remainder of the article, I focus on Unique-name axiom: If a1, , ap are all the some of the more significant aspects con- constant symbols of L, then and how tributed by logic in databases: (1) a formaliza- ≠ … ≠ ≠ … (a1 a2), , (a1 ap), (a2 a3), , tion of what constitutes a database, a query, ≠ databases (ap–1 ap) . and an answer to a query; (2) a realization that Domain-closure axiom: If a , …, a are all can be logic programming extends relational data- 1 p the constant symbols of L, then generalized bases; (3) a clear understanding of the seman- ; … for knowledge tics of large classes of databases that include X((X = a1) ~ ~ (X = ap)) . alternative forms of negation as well as dis- Completion Axioms: For each relational bases. junction; (4) an understanding of relationships 1 … 1 … m … m symbol R, if R(a1, an), , R(a 1, , a n) denote between model theory, fixpoint theory, and all facts under R, the completion axiom for R proof procedures; (5) an understanding of the is properties that alternative semantics can have … … → ;X1 ; Xn (R(X1, , Xn) and their complexity; (6) an understanding of 1 … 1 … (X1 = a1 ` ` Xn = an) ~ ~ (X1 = what is meant by integrity constraints and m … m = a ` ` Xn = a )) . how they can be used to perform updates, 1 n semantic query optimization (SQO), coopera- Equality Axioms: tive answering, and database merging; (7) a ;X(X = X) formalization and solutions to the update and ;X ;Y ((X = Y) → (Y = X)) view-update problems; (8) an understanding of ;X ;Y ;Z ((X = Y) ` (Y = Z) → (X = Z)) … … bounded recursion and recursion and how ;X1 ;Xn (P(X1, , Xn) ` … they can be implemented in a practical man- (X1 = Y1) ` ` (Xn = Yn) → … ner; (9) an understanding of the relationship P(Y1, Yn )) . 22 AI MAGAZINE Articles Example 1 illustrates the translation of a small database to logic. It is clear that handling such databases through conventional tech- Consider the family database to consist of the Father rela- niques will lead to a faster implementation. tion with schema Father(father, child) and the Mother rela- However, it serves to formalize previously tion with schema Mother(mother, child). Let the database be unformalized databases. The completion axiom was proposed by Clark FATHER father child (1978) as the basis for his negation-as-failure rule: It states that the only tuples that a relation j m can have are those that are specified in the rela- j s tional table. This statement is implicit in every relational database. The completion axiom MOTHER mother child makes this explicit. Another contribution of logic programs and databases is that the formal- r m ization of relational databases in terms of logic r s permits the definition of a query and an answer to a query to be defined precisely.
Recommended publications
  • November 7, 2019 Mr. Abdulhamit
    Mailing Address Carol Valoris, Executive Director Public Affairs and Administrative Office PO Box 3708 Silver Spring, MD 20918 Phone (202) 812-8074 [email protected] Headquarters November 7, 2019 655 Evelyn Avenue East Meadow, NY 11554 www.concernedscientists.org Mr. Abdulhamit Gul CO-CHAIRS HONORARY BOARD MEMBERS (cont.) Minister of Justice Joel L. Lebowitz Rutgers University David Gross* Adalet Bakanlığı Paul H. Plotz, M.D. University of California Washington, DC James Langer Walter Reich Inst. of Theor. Physics, Sta 06659 Ankara, Turkey George Washington U. Barbara Lax Eugene Chudnovsky MIT Fax: +90 312 419 33 70 Lehman College Peter D. Lax Alexander Greer New York University Email: [email protected] Brooklyn College John Polanyi* University of Toronto VICE-CHAIRS Stuart Rice University of Chicago ASTRONOMY Sir Richard J Roberts* Dear Minister Gul: Arno Penzias* New England Biolabs New Enterprise Assoc. Myriam Sarachik City College of New York BIOLOGY Harold Scheraga Max Gottesman Cornell University The Committee of Concerned Scientists is an Institute of Cancer Maxine Singer Research Carnegie Inst. of independent organization of scientists, physicians, Washington CHEMISTRY Alfred I. Tauber engineers and scholars devoted to the protection Zafra Lerman Boston University MIMSAD, Inc. Steven Weinberg* and advancement of human rights and scientific U. of Texas, Austin COMPUTER SCIENCE Myrna Weissman freedom for our colleagues all over the world. Jack Minker Columbia University University of Maryland * Nobel Laureate ENGINEERING Philip Sarachik We write to express our concern for 17 successful NYU Polytechnic School of EXECUTIVE Engineering DIRECTOR scholars from Meliksah University, who were Carol Valoris MATHEMATICS Simon Levin Dorothy Hirsch (deceased) arrested in August 2016 on the charges of being a Princeton University Executive Director Emerita Sophie Cook member of an armed terrorist organization, MEDICAL SCIENCES Executive Director Emerita J.
    [Show full text]
  • GRAPH DATABASE THEORY Comparing Graph and Relational Data Models
    GRAPH DATABASE THEORY Comparing Graph and Relational Data Models Sridhar Ramachandran LambdaZen © 2015 Contents Introduction .................................................................................................................................................. 3 Relational Data Model .............................................................................................................................. 3 Graph databases ....................................................................................................................................... 3 Graph Schemas ............................................................................................................................................. 4 Selecting vertex labels .............................................................................................................................. 4 Examples of label selection ....................................................................................................................... 4 Drawing a graph schema ........................................................................................................................... 6 Summary ................................................................................................................................................... 7 Converting ER models to graph schemas...................................................................................................... 9 ER models and diagrams ..........................................................................................................................
    [Show full text]
  • Jack Minker July 4, 1927–April 9, 2021
    OBITUARY JACK MINKER JULY 4, 1927–APRIL 9, 2021 JACK MINKER July 4, 1927 – April 9, 2021 Jack lived in Bethesda, Maryland. He was the beloved husband of Johanna Weinstein, former husband of the late Rita G. Minker, devoted father of Michael Minker (husband of Katharine (nee Cowgill) Minker) and the late Sally Minker (late wife of Jason Carucci), cherished grandfather of Roger Carucci, Beverly Minker and Katie Minker, great grandfather of Charlotte, Naomi and Olivia Minker, step-father of Lawrence, Charles, Steven and Kenneth Weinstein, and loving uncle, great uncle, step- grandfather and friend to many others. Graveside services will be held at 2:00 p.m. on Tuesday, April 13, 2021, at King David Memorial Gardens, Falls Church, VA. The family suggests that contributions be made in his name to the Committee of Concerned Scientists, The American Cancer Society or the charity of your choice. Jack was born in Brooklyn to Harry and Rose Minker. He received a Bachelor of Arts degree from Brooklyn College in 1949, a Master of Arts degree from the University of Wisconsin in 1950, and a PhD from the University of Pennsylvania in 1959. After a career in industry, Jack joined the University of Maryland in 1967, becoming Professor of Computer Science in 1971 and the first chair of the department in 1974. He became Professor Emeritus in 1998. Jack was one of the founders of the area of deductive databases and disjunctive logic programming. He made important contributions to semantic query optimization and to cooperative and informative answers for deductive databases. He has also developed a theoretical basis for disjunctive databases and disjunctive logic programs, developing the Generalized Closed World Assumption (GCWA).
    [Show full text]
  • Data Definition Language (Ddl)
    DATA DEFINITION LANGUAGE (DDL) CREATE CREATE SCHEMA AUTHORISATION Authentication: process the DBMS uses to verify that only registered users access the database - If using an enterprise RDBMS, you must be authenticated by the RDBMS - To be authenticated, you must log on to the RDBMS using an ID and password created by the database administrator - Every user ID is associated with a database schema Schema: a logical group of database objects that are related to each other - A schema belongs to a single user or application - A single database can hold multiple schemas that belong to different users or applications - Enforce a level of security by allowing each user to only see the tables that belong to them Syntax: CREATE SCHEMA AUTHORIZATION {creator}; - Command must be issued by the user who owns the schema o Eg. If you log on as JONES, you can only use CREATE SCHEMA AUTHORIZATION JONES; CREATE TABLE Syntax: CREATE TABLE table_name ( column1 data type [constraint], column2 data type [constraint], PRIMARY KEY(column1, column2), FOREIGN KEY(column2) REFERENCES table_name2; ); CREATE TABLE AS You can create a new table based on selected columns and rows of an existing table. The new table will copy the attribute names, data characteristics and rows of the original table. Example of creating a new table from components of another table: CREATE TABLE project AS SELECT emp_proj_code AS proj_code emp_proj_name AS proj_name emp_proj_desc AS proj_description emp_proj_date AS proj_start_date emp_proj_man AS proj_manager FROM employee; 3 CONSTRAINTS There are 2 types of constraints: - Column constraint – created with the column definition o Applies to a single column o Syntactically clearer and more meaningful o Can be expressed as a table constraint - Table constraint – created when you use the CONTRAINT keyword o Can apply to multiple columns in a table o Can be given a meaningful name and therefore modified by referencing its name o Cannot be expressed as a column constraint NOT NULL This constraint can only be a column constraint and cannot be named.
    [Show full text]
  • A Dictionary of DBMS Terms
    A Dictionary of DBMS Terms Access Plan Access plans are generated by the optimization component to implement queries submitted by users. ACID Properties ACID properties are transaction properties supported by DBMSs. ACID is an acronym for atomic, consistent, isolated, and durable. Address A location in memory where data are stored and can be retrieved. Aggregation Aggregation is the process of compiling information on an object, thereby abstracting a higher-level object. Aggregate Function A function that produces a single result based on the contents of an entire set of table rows. Alias Alias refers to the process of renaming a record. It is alternative name used for an attribute. 700 A Dictionary of DBMS Terms Anomaly The inconsistency that may result when a user attempts to update a table that contains redundant data. ANSI American National Standards Institute, one of the groups responsible for SQL standards. Application Program Interface (API) A set of functions in a particular programming language is used by a client that interfaces to a software system. ARIES ARIES is a recovery algorithm used by the recovery manager which is invoked after a crash. Armstrong’s Axioms Set of inference rules based on set of axioms that permit the algebraic mani- pulation of dependencies. Armstrong’s axioms enable the discovery of minimal cover of a set of functional dependencies. Associative Entity Type A weak entity type that depends on two or more entity types for its primary key. Attribute The differing data items within a relation. An attribute is a named column of a relation. Authorization The operation that verifies the permissions and access rights granted to a user.
    [Show full text]
  • Shadow Theory: Data Model Design for Data Integration
    Shadow Theory: Data Model Design for Data Integration Jason T. Liu* (Draft. Date:9/12/2012) ABSTRACT In information ecosystems, semantic heterogeneity is known as General Terms Algorithms, Design, Human Factors, Theory. the root issue for the difficulties of data integration, and the Relational Model is not designed for addressing such challenges, i.e. to re-use data that is modeled from other sources in the local Keywords data model design. Although researchers have proposed many Data integration, information ecosystems, shadows, meanings, different approaches, and software vendors have designed tools to mental entity, semantic heterogeneity, tags, help the data integration task, it remains an art relying on human labors. Due to lacks of a comprehensive theory to guide the overall modeling process, the quality of the integrated data heavily depends on the data integrators’ experiences. 1. Introduction Based on observations of practical issues for enterprise customer Data integration is essential for most enterprise systems that rely data integration, we believe that the needed solution is a new data on data from multiple sources. Lenzerini defined data integration model. This new data model needs to manage the difficulties of as to combine data residing at different sources in order to provide semantic heterogeneity: different data collected from different users with a unified view of these data [1]. Specifically, the goal perspectives about the same subject matter can naturally be of Enterprise Information Integration (EII) is to provide a uniform inconsistencies or even in conflicts. In other words, existing data access to multiple data sources without having to load the data models are designed to support single version of the truth, and into a central place [2].
    [Show full text]
  • Datalog on Infinite Structures
    Datalog on Infinite Structures DISSERTATION zur Erlangung des akademischen Grades doctor rerum naturalium (Dr. rer. nat.) im Fach Informatik eingereicht an der Mathematisch-Naturwissenschaftlichen Fakultät II Humboldt-Universität zu Berlin von Herr Dipl.-Math. Goetz Schwandtner geboren am 10.09.1976 in Mainz Präsident der Humboldt-Universität zu Berlin: Prof. Dr. Christoph Markschies Dekan der Mathematisch-Naturwissenschaftlichen Fakultät II: Prof. Dr. Wolfgang Coy Gutachter: 1. Prof. Dr. Martin Grohe 2. Prof. Dr. Nicole Schweikardt 3. Prof. Dr. Thomas Schwentick Tag der mündlichen Prüfung: 24. Oktober 2008 Abstract Datalog is the relational variant of logic programming and has become a standard query language in database theory. The (program) complexity of datalog in its main context so far, on finite databases, is well known to be in EXPTIME. We research the complexity of datalog on infinite databases, motivated by possible applications of datalog to infinite structures (e.g. linear orders) in temporal and spatial reasoning on one hand and the upcoming interest in infinite structures in problems related to datalog, like constraint satisfaction problems: Unlike datalog on finite databases, on infinite structures the computations may take infinitely long, leading to the undecidability of datalog on some infinite struc- tures. But even in the decidable cases datalog on infinite structures may have ar- bitrarily high complexity, and because of this result, we research some structures with the lowest complexity of datalog on infinite structures: Datalog on linear orders (also dense or discrete, with and without constants, even colored) and tree orders has EXPTIME-complete complexity. To achieve the upper bound on these structures, we introduce a tool set specialized for datalog on orders: Order types, distance types and type disjoint programs.
    [Show full text]
  • A Theory of Regular Queries
    A Theory of Regular Queries Moshe Y. Vardi Rice University [email protected] ABSTRACT [22], he proposed using first-order logic as a declarative database A major theme in relational database theory is navigat- query language [23]. This led to the development of both ing the tradeoff between expressiveness and tractability for SEQUEL [16] and QUEL [54], as practical relational query query languages, where the query-containment problem is languages realizing Codd's idea, ultimately giving in 1986 considered a benchmark of tractability. The query class rise to the SQL standard [27], which has continued to evolve UCQ, consisting off unions of conjunctive queries, is a frag- over the past 30 years. ment of first-order logic that has a decidable query contain- Starting in the late 1970s, Codd's definition of first-order ment problem, but its expressiveness is limited. Extend- logic as \expressively complete" came under serious criti- ing UCQ with recursion yields Datalog, an expressive query cism [4], and various proposals emerged on how to extend language that has been studied extensively and has recently its expressive power [4, 6, 17], whose essence was to extend become popular in application areas such as declarative net- first-order logic with recursion, which was added to SQL in working. Unfortunately, Datalog has an undecidable query 1999 by way of common table expressions [29]. On the re- containment problem. Identifying a fragment of Datalog search side, the most popular relational language embodying that is expressive enough for applications but has a decid- recursion is Datalog [15], describe in more details below.
    [Show full text]
  • Database Theory
    DATABASE THEORY Lecture 1: Introduction / Relational data model Markus Krotzsch¨ TU Dresden, 4 April 2016 Course information • 14 lectures: Thursday, DS4 (13:00–14:30) • 13 excercise classes: Monday, DS3 (11:10–12:40) { taught by Francesco Kriegel • Oral examination (details based on applicable examination regulations) • Course homepage (dates, slides, excercise sheets): https://ddll.inf.tu-dresden.de/web/Database_ Theory_%28SS2016%29/en Markus Krötzsch, 4 April 2016 Database Theory slide 2 of 42 Aims of the course Obtain an understanding of key topics in database theory with a special focus on query formalisms: • Relational data model • Basic and advanced query languages • Expressive power of query languages • Complexity of query answering + some algorithmic approaches • Modelling with constraints Connect databases with other advanced topics in logic/KR/formal methods Markus Krötzsch, 4 April 2016 Database Theory slide 3 of 42 Literature, prerequisites, related courses • Serge Abiteboul, Richard Hull, Victor Vianu: Foundations of Databases. Addison-Wesley. 1994. – Available at http://webdam.inria.fr/Alice/ – Slight deviations in the lecture – Further literature will be given for advanced topics • Prerequisites: basics of first-order logic, Turing machines, worst-case complexity • Related courses at TUD: – Advanced Logic – Foundations of Semantic Web Technologies – Introduction to Logic Programming – Introduction to Constraint Programming – Datenbanken (Grundlagen) – Intelligent Information Systems Markus Krötzsch, 4 April 2016 Database
    [Show full text]
  • SLATE 2021, July 1–2, 2021, Vila Do Conde/Póvoa De Varzim, Portugal
    10th Symposium on Languages, Applications and Technologies SLATE 2021, July 1–2, 2021, Vila do Conde/Póvoa de Varzim, Portugal Edited by Ricardo Queirós Mário Pinto Alberto Simões Filipe Portela Maria João Pereira OA S I c s – Vo l . 94 – SLATE 2021 www.dagstuhl.de/oasics Editors Ricardo Queirós Escola Superior de Media Artes e Design, Politécnico do Porto, Portugal [email protected] Mário Pinto Escola Superior de Media Artes e Design, Politécnico do Porto, Portugal [email protected] Alberto Simões Instituto Politécnico do Cávado e do Ave, Portugal [email protected] Filipe Portela Universidade do Minho, Portugal [email protected] Maria João Pereira Instituto Politécnico de Bragança, Portugal [email protected] ACM Classifcation 2012 Theory of computation → Formal languages and automata theory; Information systems → Data manage- ment systems; Information systems → World Wide Web; Computing methodologies → Natural language processing ISBN 978-3-95977-202-0 Published online and open access by Schloss Dagstuhl – Leibniz-Zentrum für Informatik GmbH, Dagstuhl Publishing, Saarbrücken/Wadern, Germany. Online available at https://www.dagstuhl.de/dagpub/978-3-95977-202-0. Publication date August, 2021 Bibliographic information published by the Deutsche Nationalbibliothek The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalbibliografe; detailed bibliographic data are available in the Internet at https://portal.dnb.de. License This work is licensed under a Creative Commons Attribution 4.0 International license (CC-BY 4.0): https://creativecommons.org/licenses/by/4.0/legalcode. In brief, this license authorizes each and everybody to share (to copy, distribute and transmit) the work under the following conditions, without impairing or restricting the authors’ moral rights: Attribution: The work must be attributed to its authors.
    [Show full text]
  • Database Theory
    DATABASE THEORY Lecture 11: Introduction to Datalog Markus Krotzsch¨ Knowledge-Based Systems TU Dresden, 12th June 2018 Announcement All lectures and the exercise on 19 June 2018 will be in room APB 1004 Markus Krötzsch, 12th June 2018 Database Theory slide 2 of 34 Introduction to Datalog Markus Krötzsch, 12th June 2018 Database Theory slide 3 of 34 Introduction to Datalog Datalog introduces recursion into database queries • Use deterministic rules to derive new information from given facts • Inspired by logic programming (Prolog) • However, no function symbols and no negation • Studied in AI (knowledge representation) and in databases (query language) Example 11.1: Transitive closure C of a binary relation r C(x, y) r(x, y) C(x, z) C(x, y) ^ r(y, z) Intuition: • some facts of the form r(x, y) are given as input, and the rules derive new conclusions C(x, y) • variables range over all possible values (implicit universal quantifier) Markus Krötzsch, 12th June 2018 Database Theory slide 4 of 34 Syntax of Datalog Recall: A term is a constant or a variable. An atom is a formula of the form R(t1, ::: , tn) with R a predicate symbol (or relation) of arity n, and t1, ::: , tn terms. Definition 11.2: A Datalog rule is an expression of the form: H B1 ^ ::: ^ Bm where H and B1, ::: , Bm are atoms. H is called the head or conclusion; B1 ^ ::: ^ Bm is called the body or premise. A rule with empty body (m = 0) is called a fact. A ground rule is one without variables (i.e., all terms are constants).
    [Show full text]
  • Database Theory in Practice: Learning from Cooperative Group Projects*
    DATABASE THEORY IN PRACTICE: LEARNING FROM COOPERATIVE GROUP PROJECTS* Suzanne W. Dietrich Susan D. Urban Department of Computer Science and Engineering Arizona State University BOX 875406 Tempe, AZ 85287-5406 U.S.A. [email protected] [email protected] ABSTRACT only because of the foundation it provides for research, but lhis paper describes the use of cooperative group learning also because it is a prerequisite for effective use of database concepts in support of an undergraduate database mrtnage- management systems [1]. Database practice is important ment course that emphasizes the theoretical and practical for preparing students to address the needs of real-world aspects of database application development. ‘Ihe course applications. There is. therefore, a wealth of both theoretical project is divided into three main phases, involving require- and practical material that must be covered within a typical ments analysis and conceptual design, relational database undergraduate course on database management systems. mapping and prototyping, and database system implemen- Another concern with respect to database education is the tation using Microsoft Access. The project deliverables overall approach to teaching database concepts, such as the are designed so that students not only develop a database use of cooperative learning [4] in the college classroom. In implementation, but also evaluate their design in terms of cooperative learning, in contrast to individual or competitive functional dependencies, normal forms, the lossless join learning, students work in small groups, helping each other property, and the dependency preservation property, thus learn the assigned material. Cooperative learning has advan- establishing the need for sound database design principles.
    [Show full text]