Datalog and Description Logics: Expressive Power

Datalog and Description Logics: Expressive Power

From: AAAI Technical Report WS-96-05. Compilation copyright © 1996, AAAI (www.aaai.org). All rights reserved. Datalog and Description Logics: Expressive Power Preliminary report Marco Cadoli Luigi Palopoli Dipartimentodi Informatica e Sistemistica Dipartimentodi Elettronica Informatica e Sistemistica Universit~ di Roma"La Sapienza" Universit~ della Calabria Via Salaria 113, 1-00198Roma, Italy 1-87036Rende (CS), Italy cadoli@dis,uniromal, it palopoli@unical,it Maurizio Lenzerini Dipartimentodi Informatica e Sistemistica Universit~ di Roma"La Sapienza" Via Salaria 113, 1-00198Roma, Italy lenzerlniQdls,uniromal, it Abstract languages is acknowledged in the data base community This paper investigates the possibility of ex- [Kanellakis, 1990]. Intuitively, the expressive power of a query language ploiting formal analysis tools developed in the tells us what "properties" it is possible to extract from a database field for the purpose of studying knowledge base. In the context of databases, expressive the expressive power of description logics aug- power of query languages has been measured in at least mented with rule-based query languages. We three different ways: report a preliminary analysis on the expres- sive power of such hybrid languages. Twospe- 1. With respect to a specific property, such as tran- cific languages coupling a terminological com- sitive closure. For example, it is well-known that ponent with Horn rules are considered. It is there is no fixed query in relational calculus that, shown that: (1) the former language defines for any graph G encoded as a relation edge~2 in the all database collections expressed by skolem- obvious way, determines whether the transitive clo- ized universally quantified second order formu- sure of G contains a specific edge or not. Vice-versa, lae where quantified predicates are monadic, such a query does exist in Datalog. and (2) the latter language defines all database 2. With respect to a set of logical formulae, such collections expressed by skolemized universally as first- or second-order logic. As an example, quantified second order formulae where quanti- relational calculus can express exactly the set of fied predicates are dyadic or monadic. first-order properties over finite structures. "While queries" [Abiteboul and Vianu, 1992] can express exactly the set of second-order properties over finite structures. 1 Introduction 3. With respect to a complexity class, such as P, NP, Recently there was some attention on integration of de- coNP, PSPACE,etc. As an example, Datalog with scription logics of the J4£-family with rule-based lan- stable negation can express all NP properties of fi- guages for querying relational data bases such as Dat- nite structures [Schlipf, 1990], e.g., whether a graph alog ([Donini et al., 1991; Levy and Rousset, 1996b; is 3-colorable or not. 1996aj). One of the major results in this field, known as "Fa- Computational analysis carried out in such papers is gin’s theorem" [Fagin, 1974], provides the basis for uni- limited to complexity: i.e., how muchtime/space it is fying the second and the third modalities. It says that needed to answer to a specific query, the input being the the set of NP properties coincides with the set of prop- relational data base, and/or the ABox,and/or the TBox, erties expressed by existentially quantified second-order and/or the rules? The goal of this paper is to perform formulae. Such a result has been generalized to other some considerations and give some preliminary results complexity classes and sets of logical formulae. on the expressiveness of such hybrid languages. The im- Formal studies of expressive power of description log- portance of formal analysis of expressive power of query ics have been recently pursued. In particular, [Borgida, - 97 - 1996] shows some expressiveness results with respect to blue E "~red the second measure, by showing that description lan- guages built using constructors usually considered in Datalog rules (An): the description logic literature are characterized by sub- sets of first-order logic allowing only three variable sym- bols. [Baader, 1996] gives a methodological contribution, non_3_col ~ edge(X, Y), red(X), red(Y). pointing out that expressiveness must be defined within non_3_col ~-- edge( X, Y), blue( X), blue(Y). a precise formal framework, and proposes the model- non_3_col ~ edge( X, Y), green( X), green(Y theoretic approach for the characterization of expressive power. Interestingly, he shows that the complexity of inference of two equally expressive languages maybe dif- The inclusion axioms in the TBoximpose that the three ferent. colors actually partition the active domain, and indeed The major goals of our research are: 1) to investi- AT U An U A~ ~ non_3_col iff G is not 3-colorable gate the possibility of exploiting the formal analysis tools (where ~ denotes the usual logical consequence oper- ator, i.e., validity in all models). In the terminology of developed in the database field within the context of [Levy and Rousset, 1996b], AT is "acyclic", and An description logics augmented with rules, and 2) to give some preliminary results about the expressive power of is "non-recursive". Moreover A7 belongs to the class A£CA/7~ such hybrid systems. CARIN-MARCof "maximal (decidable) Recur- sive CARIN", which includes the constructors U, [7, (_> The first difficulty that we encounter in such a project n R),3R.C, and negation on primitive concepts. An is the different notion of extensional knowledge that is "role-safe", i.e., each of its rules is such that for every databases and description logics assume. In the first case, an extensional database denotes a single finite atom of the form R(x, y) in the antecedent, where R is structure with a fixed domain of interpretation, whereas a role, then either x or y appear in an ordinary atom of the antecedent. In fact, the TBoxis a set of inclusion this is obviously not true for an ABoxexpressed in a de- axioms [Buchheit et al., 1993], and concept constructors scription logic with existential and/or disjunctions. This used in the TBoxare just boolean. Actually, this is an aspect disallows direct exploitation of formal tools such as Fagin’s theorem. Such a problem is also evident if we A£:-log program [Donini et al., 1991]. translate a relational database D into a first-order for- The above example just proves that the data complex- mula ¢(D): in fact Reiter [Reiter, 1984] showed that, ity (i.e., complexity considering the extensional compo- order to preserve the intended meaning of D, ¢(D) must nent as the input and the intensional component(query) be completed with sentences such as the domain-closure ATU An not part of the input) of,A~-log is coNP-hard, axiom, the unique-name axiom and the closed-world as- but it does not imply that either .A£:-log or CARINis sumption, which constrain the set of allowed interpreta- able to express all queries in coNP. Such a distinction tions. is important since the expressive power of a language In the present work we assume that the ABoxis empty. is not necessarily the same as its complexity (it is al- The intensional part is made out of a TBoxand a set of ways less than or equal to1. Several languages with this Horn rules. As usual, we assume that predicates ap- property are known, cf. [Abiteboul and Vianu, 1992; pearing either in the heads of rules or in the relational Eiter et al., 1994]. As an example, a language which part (also called ordinary predicates) do not occur in does not capture NP -even if it has an underlying NP- the TBox. Therefore, in the following we shall refer to complete problem- has been shown by Stewart in [Stew- hybrid knowledge bases A consisting of three compo- art, 1991]. nents: the TBox, denoted AT, a finite set of Horn rules, We remark that imposing an empty ABox does not im- denoted Anand, finally, a finite set of facts (i.e., a re- ply that there is a fixed domain of interpretation. Nev- lational database), denoted Ae. Ae is the extensional ertheless, in the above example, this is harmless, since component of A, whereas An U AT forms the inten- non-3-colorability is a property which is preserved for sional component of A. The intensional component of a superstructures (i.e., if a graph G is not 3-colorable then knowledgebase defines a query that is evaluated over its any supergraph of G is not 3-colorable as well). extensional component. Very often, the TBoxes are assumed to contain pred- It is easy to see that Datalog, when augmented with icates (concepts, roles) with fixed arity. In the present inclusion axioms typical of description logics, is able to paper we restrict our attention to such languages. As capture some coNP-complete queries. As an example, to a consequence, we use some results on the expressive check 3-colorability of a graph G = (V, A> encoded as power of fragments of universal second-order logic with set of facts Ae = {edge(a, b)l(a , b) E A}, we can write fixed arity [Fagin, 1975]. This is in the spirit of the sec- 2-components query: ond modality to measure expressiveness, since those frag- TBox (AT): ments do not naturally correspond to complexity classes, T redUgreenUblue but form a hierarchy within coNP [Fagin, 1990], which E is orthogonal to the complexity of definable collections: red E -~green indeed even the smallest class in the hierarchy (coNP1) green E_ -~blue contains coNPcomplete collections. - 98 - 2 The expressive power of CARIN 3-colorable graphs). Nevertheless there are polynomial knowledge bases collections of databases (e.g., the collection of dyadic re- lations with even number of tuples) that are not in NP1 In [Levy and Rousset, 1996b] it is proved that the data [Fagin, 1990].

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us