=Paper=
{{Paper
|id=Vol-2037/paper6
|storemode=property
|title=A Decidable Very Expressive n-ary Description Logic for Database Applications (Extended Abstract)
|pdfUrl=https://ceur-ws.org/Vol-2037/paper_6.pdf
|volume=Vol-2037
|authors=Alessandro Artale,Enrico Franconi,Rafael Peñaloza,Francesco Sportelli,Valeria Fionda,Giuseppe Pirrò,Andrea Calì,Davide Martinenghi,Riccardo Torlone,Roberto Corizzo,Gianvito Pio,Michelangelo Ceci, Donato Malerba,Serena Ammirati,Donatella Firmani,Marco Maiorino,Paolo Merialdo,Elena Nieddu,Andrea Rossi,Michele Ianni,Elio Masciari,Roberto Boselli,Mirko Cesarini,Fabio Mercorio,Mario Mezzanzanica,Flora Amato,Vincenzo Moscato,Antonio Picariello,Giancarlo Sperlì,Montserrat Estañol,Mirjana Mazuran,Xavier Oriol,Letizia Tanca,Ernest Teniente,Francesca Spezzano,Andrea Calì,Giuseppe De Santis,Tommaso Di Noia,Nicola Mincuzzi,Pietro Hiram Guzzi,Pierangelo Veltri,Swarup Roy,Jugal Kalita,Simone Porreca,Francesco Leotta,Massimo Mecella,Tiziana Catarci,Laura Di Rocco,Roberto Marzocchi,Tiziano Cosso,Barbara Catania,Giovanna Guerrini,Ilaria Bartolini,Marco Patella,Loredana Caruccio,Vincenzo Deufemia,Giuseppe Polese,Bernardo Cuteri,Francesco Ricca,Gianluca Cima,Giuseppe De Giacomo,Maurizio Lenzerini,Antonella Poggi,Alex Badan,Luca Benvegnù,Matteo Biasetton,Giovanni Bonato,Alessandro Brighente,Stefano Marchesin,Alberto Minetto,Leonardo Pellegrina,Alberto Purpura,Riccardo Simionato,Matteo Tessarotto,Andrea Tonon,Nicola Ferro,Francesco Buccafurri,Gianluca Lax,Serena Nicolazzo,Antonino Nocera,Marco Manna,Francesco Ricca,Giorgio Terracina,Carlotta Domeniconi,Francesco Gullo,Andrea Tagarelli,Francesco De Fino,Barbara Catania,Giovanna Guerrini,Roberto Interdonato,Chiara Pulice,Andrea Tagarelli,Giovanni Amendola,Nicola Leone,Marco Manna,Tania Cerquitelli,Evelina Di Corso,Francesco Ventura,Silvia Chiusano,Antonio Circiello,Andrea Cappelli,Sonia Bergamaschi,Marco Varone,Sergio Greco,Cristian Molinaro,Irina Trubitsyna,Devis Bianchini,Valeria De Antonellis,Michele Melchiori,Marco Cameranesi,Claudia Diamantini,Laura Genga,Domenico Potena,Enzo Veltri,Donatello Santoro,Giansalvatore Mecca,Paolo Papotti,Jian He,Gouliang Li,Nan Tang,Giuseppe Tradigo,Rocco Picarelli,Luciano Caroprese,Paolo Cappadone,Ester Zumpano,Andrea Tagarelli,Angelo Furfaro,Carlo Tansi,Pierangelo Veltri,Pietro Hiram Guzzi,Massimiliano de Leoni,Andrea Marrella,Alfredo Cuzzocrea,Osvaldo Gervasi,Mirko Mariotti,Flavio Vella,Alessandro Costantini,Gloria Bordogna,Alfredo Cuzzocrea,Luca Frigerio,Giuseppe Psaila,Danilo Amendola,Nunziato Cassavia,Sergio Flesca,Michele Ianni,Elio Masciari,Giuseppe Papuzzo,Chiara Pulice,Pietro Cinaglia,Pierangelo Veltri,Mario Cannataro,Antonella Longo,Marco Zappatore,Mario Bochicchio,Lucia Vaira,Alfredo Cuzzocrea
|dblpUrl=https://dblp.org/rec/conf/sebd/ArtaleFPS17
}}
==A Decidable Very Expressive n-ary Description Logic for Database Applications (Extended Abstract)==
A Decidable Very Expressive n-ary Description Logic for Database Applications (extended abstract) Alessandro Artale, Enrico Franconi, Rafael Peñaloza, Francesco Sportelli KRDB Research Centre, Free University of Bozen-Bolzano, Italy {artale,franconi,penaloza,sportelli}@inf.unibz.it Abstract. We introduce DLR`, an extension of the n-ary propositionally closed description logic DLR to deal with attribute-labelled tuples (generalising the po- sitional notation), projections of relations, and global and local objectification of relations, able to express inclusion, functional, key, and external uniqueness de- pendencies. The logic is equipped with both TBox and ABox axioms forming a DLR` knowledge base (KB). We show how a simple syntactic restriction on the appearance of projections sharing common attributes in the KB makes reason- ing in the language decidable with the same computational complexity as DLR. The obtained DLR˘ n-ary description logic is able to encode more thoroughly conceptual data models such as EER, UML, and ORM. 1 Introduction We introduce the new description logic (DL) DLR` extending the n-ary DL DLR [Cal- vanese et al., 2008], in order to capture more database oriented constraints. While DLR is an expressive logic, it lacks a number of expressive means that can be added without increasing the complexity of reasoning—when used in a carefully controlled way. The added expressivity is motivated by the increasingly use of DLs as an abstract conceptual layer over relational databases, both to reason over such conceptual models during the database design phase, and to answer ontology-mediated queries over databases. A DLR TBox can express axioms involving (i) propositional combinations of con- cepts and (compatible) n-ary relations, (ii) concepts as unary projections of n-ary re- lations, and (iii) relations with a component selected to be of a certain type. For ex- ample, if Pilot and RacingCar are concepts and DrivesCar, DrivesMotobike, DrivesVehicle are binary relations, we can write the following axioms: Pilot Ď Dr1sσ2:RacingCar DrivesCar DrivesCar \ DrivesMotobike Ď DrivesVehicle . DLR` extends DLR in the following way. – While DLR instances of n-ary relations are n-tuples of objects—whose compo- nents are identified by their position in the tuple—instances of relations in DLR` are attribute-labelled tuples, i.e., tuples where each component is identified by an attribute and not by its position in the tuple (see, e.g., [Kanellakis, 1990]). For ex- ample, the relation Employee may have the signature: Employeepfirstname, lastname, dept, deptAddrq , and an instance of Employee could be the tuple: xfirstname : John, lastname : Doe, dept : Purchase, deptAddr : Londony . – Attributes can be renamed, also with the goal to recover the positional perspectives on relations: firstname, lastname, dept, deptAddr Õ 1, 2, 3, 4 . – Relation projections allow to form new relations by projecting a given relation on some of its attributes. For example, if Person is a relation with signature Person pname, surnameq, it could be related to Employee as follows: Drfirstname, lastnamesEmployee Ď Person firstname, lastname Õ name, surname . – The objectification of a relation (also known as reification) is a concept whose instances are unique identifiers of the tuples instantiating the relation. Those iden- tifiers could be unique only within an objectified relation (local objectification), or they could be uniquely identifying tuples independently on the relation they are instance of (global objectification). For example, the concept EmployeeC could be the global objectification of the relation Employee, assuming that there is a global one-to-one correspondence between pairs of values of the attributes firstname, lastname and EmployeeC Å instances: EmployeeC ” Drfirstname, lastnamesEmployee . As an example of local objectification, let us consider the two (ternary) relations OwnsCar pname, surname, carq and DrivesCar pname, surname, carq, and as- sume that anybody driving a car also owns it; that is, DrivesCar Ď OwnsCar. The locally objectified events ofÄ driving a car and owning a car, defined Äby the ax- ioms CarDrivingEvent ” DrivesCar and CarOwningEvent ” OwnsCar, model the fact that a driving event by a person of a car is not necessarily the own- ing event by the same person and the same car. Indeed, they should be disjoint: CarDrivingEvent [ CarOwningEvent Ď K should hold. It turns out that DLR` is an expressive description logic able to assert relevant constraints in the context of relational databases. In Section 3 we consider inclusion dependencies, functional and key dependencies, external uniqueness and identifica- tion axioms. For example, DLR` can express the fact that the attributes firstname, lastname play the role of a multi-attribute key for the relation Employee: Drfirstname, lastnamesEmployeeĎDď1 rfirstname, lastnamesEmployee , and that the attribute deptAddr functionally depends on the attribute dept within the relation Employee: DrdeptsEmployee Ď Dď1 rdepts pDrdept, deptAddrsEmployeeq . While DLR` turns out to be undecidable, in this paper we show how a simple syntactic condition on the appearance of projections sharing common attributes in the knowledge base makes the language decidable. The result of this restriction is a new language called DLR˘. We prove that DLR˘, while preserving most of the DLR` expressivity, has a reasoning problem whose complexity does not increase w.r.t. the computational complexity of the basic DLR language. We also present in Section 5 the implementation of an API for the reasoning services in DLR˘ . 2 The Description Logic DLR` A DLR` signature is a tuple L “ pC, R, O, U, τ q where C, R, O and U are finite, mu- tually disjoint sets of concept names, relation names, individual names, and attributes, respectively, and τ is a relation signature function, associating a set of attributes to each relation name τ pRN q “ tU1 , . . . , Un u Ď U with n ě 2. The syntax of concepts C, relations R, formulas ϕ, and attribute renaming axioms ϑ is given in Figure 1, where CN P C, RN P R, U P U, o P O, q is a positive integer and 2 ď k ă ARITYpRq. The arity of a relation R is the number of the attributes in its signature; i.e., ARITYpRq “ |τ pRq|, where we extend the signature function τ to arbitrary relations J | K | CN | C | C1 [ C2 | C1 \ C2 | Dijq rUi sR | Å Ä C Ñ R | RN ijq R Ñ RN | R1 zR2 | R1 [ R2 | R1 \ R2 | σUi :C R | D rU1 , . . . , Uk sR ϕ Ñ C1 Ď C2 | R1 Ď R2 | CN poq | RN pU1 :o1 , . . . , Un :on q | o1 “ o2 | o1 ‰ o2 ϑ Ñ U1 Õ U2 Fig. 1. Syntax of DLR` . τ pR1 zR2 q “ τ pR1 q if τ pR1 q “ τ pR2 q τ pR1 [ R2 q “ τ pR1 q if τ pR1 q “ τ pR2 q τ pR1 \ R2 q “ τ pR1 q if τ pR1 q “ τ pR2 q τ pσUi :C Rq “ τ pRq if Ui P τ pRq τ pDijq rU1 , . . . , Uk sRq “ tU1 , . . . , Uk u if tU1 , . . . , Uk u Ă τ pRq τ pRq “ H otherwise Fig. 2. The signature of DLR` relations. Å as specified in Figure 2. Notice that, Ä while global objectification ( R) can be applied to arbitrary relations, local ones ( RN ) can be applied just to relation names. We use the shortcut DrU1 , . . . , Uk sR for Dě1 rU1 , . . . , Uk sR for k ě 1. A DLR` TBox T is a finite set of concept inclusion axioms of the form C1 Ď C2 and relation inclusion axioms of the form R1 Ď R2 . We use X1 ” X2 as a shortcut for X1 Ď X2 and X2 Ď X1 . A DLR` ABox A is a finite set of concept instance axioms of the form CN poq, relation instance axioms of the form RN pU1 :o1 , . . . , Un :on q, and same/distinct individual axioms of the form o1 “o2 and o1 ‰o2 , with oi PO. Restricting ABox axioms to concept and relation names only does not affect the expressivity of DLR` due to the availability of TBox axioms. A set of renaming axioms forms a renaming schema, inducing an equivalence re- lation pÕ, Uq over the attributes U, providing a partition of U into equivalence classes each one representing alternative ways to name attributes. We write rU s< to denote the equivalence class of the attribute U w.r.t. the equivalence relation pÕ, Uq. We allow only well founded renaming schemas, i.e., there is no equivalence class containing two attributes from the same relation signature. We use the shortcut U1 . . . Un Õ U11 . . . Un1 to group many renaming axioms with the meaning that Ui Õ Ui1 for all i “ 1, . . . , n. The renaming schema reconciles the named attribute and the positional perspectives on relations. They are crucial when expressing both inclusion axioms and set operators ([, \, z) between relations, which make sense only over union compatible relations. Two relations R1 , R2 are union compatible if their signatures are equal up to the at- tribute renaming induced by the renaming schema <; that is, τ pR1 q “ tU1 , . . . , Un u and τ pR2 q “ tV1 , . . . , Vn u have the same arity n and rUi s< “ rVi s< for each 1 ď i ď n. Notice that through the renaming schema relations can use just local attribute names that can then be renamed when composing relations. Also note that it is obviously pos- sible for the same attribute to appear in the signature of different relations. A DLR` knowledge base (KB) KB “ pT, A,