• Aucun résultat trouvé

A Note on DL-Lite with Boolean Role Inclusions

N/A
N/A
Protected

Academic year: 2022

Partager "A Note on DL-Lite with Boolean Role Inclusions"

Copied!
12
0
0

Texte intégral

(1)

A Note on DL-Lite with Boolean Role Inclusions

Roman Kontchakov1, Vladislav Ryzhikov1, Frank Wolter2, and Michael Zakharyaschev1

1 Birkbeck, University of London, U.K.

2 University of Liverpool, U.K.

Abstract. We discuss the complexity of reasoning and ontology-mediated query answering with the logics from theDL-Lite family extended by various types (Horn, Krom and Boolean) of role inclusions. We compare the expressive power of those logics with 1- and 2-variable fragments of first-order logic. Our most in- teresting findings show that binary disjunctions on roles do not change the com- plexity of satisfiability if disjunction is allowed on concepts, while still causing undecidability of UCQ answering.

1 Introduction

Concepts (unary predicates) and roles (binary predicates) are usually treated quite dif- ferently in description logics (DLs). For example, the basic expressive DLALCallows statements about concepts in the form of arbitrary Boolean formulas but disallows any statements about roles. A notable exception isDL-LiteR [9], also denotedDL-LiteHcore in the classification of [1], where concept and role inclusions take the form of binary Horn (aka core) formulasϑ12orϑ12 v ⊥, where theϑiare either both con- cepts or both roles. On the other hand,DL-LiteR,u [10], akaDL-LiteHhorn [1], allows arbitrary Horn concept inclusionsϑ1u · · · uϑk v ϑk+1but only core role inclusions.

To explore what happens if concepts and roles are treated equally, we introduce a few new members to theDL-Lite family (which could be qualified as distant rela- tives or illegitimate children) and denote the logics in the extended ‘clan’ byDL-Literc, where the parameters r,c ∈ {bool,horn,krom,core}define the allowed structure of role and, respectively, concept inclusions. We present our observations on the com- plexity of checking satisfiability ofDL-Literc knowledge bases and answering (unions of) conjunctive queries mediated by DL-Literc ontologies. It turns out that the result- ing languages provide a new way of classifying some fundamental fragments of first- order logic (FO). Consider firstDL-Liteboolbool, which is easily seen to be contained in the two-variable fragment FO2 of FO. Using the fact thatALC>,id,∩,¬,−

, the exten- sion ofALCI with Boolean operations on roles and the identity role, has exactly the same expressive power as FO2 [16], we show thatDL-Liteboolbool almost captures FO2: it corresponds toALC>,∩,¬,−, the languageALC>,id,∩,¬,−

without the identity role.

DL-Liteboolbool inherits from these languages NEXPTIME-completeness of satisfiability and undecidability of CQ-answering [17, 15]. Note thatDL-Liteboolbool also almost cap- tures the class of linear existential disjunctive rules with two variables [8]. On the other hand, we show that satisfiability ofDL-Literc knowledge bases withr∈ {horn,krom}

(2)

Table 1.Combined complexity of satisfiability checking (all bounds are tight). For the languages DL-Litercin the grey cells, the complexity is the same as forDL-Literras concept inclusions inc can be expressed by means of role inclusions inr.

aa aa

a a

CIs RIs Bool guarded Bool Horn Krom core

Bool NEXPTIME (Th. 3) EXPTIME (Th. 3) NP(Th. 6) NP(Th. 4) NP[1]

Horn P(Th. 6) NP(Th. 4) P[10]

Krom P(Th. 6) NL(Th. 4) NL[1]

core NL[9]

andc∈ {bool,horn,krom,core}can be encoded in propositional logic (or in the one- variable fragment of FO), with the complexity of satisfiability checking ranging from NL to P and NP; see Table 1. Our most interesting findings demonstrate that binary dis- junctions on roles do not change the complexity of satisfiability if disjunction is allowed on concepts, while still causing undecidability of UCQ answering. Thus, satisfiability ofDL-Litekromkromknowledge bases is NL-complete, while answering UCQs mediated by DL-Litekromkromontologies is undecidable.

The logics introduced above leave a huge gap between those having Boolean role inclusions and those that only admit Horn or Krom role inclusions. To ‘complete’ the picture, we addDL-Liteg-boolc , the fragment ofDL-Liteboolc in which Boolean role inclu- sions areguarded. It turns out thatDL-Liteg-boolc approximates the two-variable guarded fragment GF2 of FO, from which it inherits EXPTIME-completeness of satisfiability and 2EXPTIME-completeness of UCQ-answering.

Our motivation to investigate the complexity of the family of languagesDL-Literc withr,c∈ {bool,horn,krom,core}stems from the observation that in the context of answering queries mediated by temporalDL-Lite ontologies [3, 2] in some cases ad- mitting the same type of concept and role inclusions does not affect the data complexity of query answering, while in others the effect is dramatic.

2 DL-Lite with Complex Role Inclusions

Leta0, a1, . . . beindividual names,A0, A1, . . . concept names, and P0, P1, . . . role names. We definerolesSandbasic conceptsBas usual inDL-Lite:

S ::= Pi | Pi, B ::= Ai | ∃S.

Aconceptorrole inclusion(CI or, respectively, RI) takes the form

ϑ1u · · · uϑk v ϑk+1t · · · tϑk+m, k, m≥0, (1) where the ϑi are all basic concepts or, respectively, roles. As usual, we denote the emptyuby>and the emptytby⊥. When it does not matter whether we talk about concepts or roles, we refer to theϑiasterms. ATBoxT and anRBoxRare finite sets of concept and, respectively, role inclusions; their unionO=T ∪ Ris called anontology.

(3)

We classify ontologies according to the form of their concept and role inclusions.

Letr,c∈ {bool,horn,krom,core}. We denote byDL-Litercthe description logic whose ontologies contain concept and role inclusions of the form (1) satisfying the following constraints forcandr, respectively:

(horn) m≤1, (krom) k+m≤2,

(core) m≤1andk+m≤2, (bool) k, m≥0.

Note that all of our logics allow (disjointness) inclusions of the formϑ12v ⊥.

When defining ourDL-Litelogics, we treat concept and role inclusions in a uniform way, which is usually not the case in standard DLs. In particular, theDL-Litelogics [9, 1] only allow core role inclusions of the form S1 v S2 and S1uS2 v ⊥. Also, standardDL-Lite logics often do not admit CIs and RIs with>on the left-hand side, which are mostly harmless and do not affect the complexity of reasoning and query answering. Modulo the latter insignificant difference, the logicDL-Litecorecore is known under the names DL-LiteR [9] and DL-LiteHcore [1], where the subscript core refers to concept inclusions and the superscript Hstands for ‘role hierarchies’,DL-Litecorehorn goes by the namesDL-LiteR,u [10] andDL-LiteHhorn [1],DL-Litecorekrom = DL-LiteHkrom andDL-Litecorebool = DL-LiteHbool[1]. Note also that the logicDL-Litekromc isDL-LiteHc extended with ‘covering’ role inclusions > v S1tS2 and, in particular, the inclu- sions> v P saying thatP is theuniversal role. Finally, in the logicDL-Liteg-boolbool , we disallow role inclusions of the form> v S1t · · · tSn forn ≥ 1 (gstands for

‘guarded’). WhileDL-LiteboolboolandDL-Liteg-boolbool turn out to behave radically different, forDL-LitehornhornandDL-Litecorecorethe restriction to guarded RIs (i.e., excluding universal roles) would have no effect on the problems we consider.

As usual, anABox,A, is a finite set of assertions of the formAi(aj)andPi(aj, ak).

A DL-Literc knowledge base (KB, for short) is a pair K = (O,A), where O is a DL-Literc ontology andAan ABox.Interpretationsare also standard, taking the form I = (∆II), where∆I 6=∅,aIi ∈∆I,AIi ⊆∆I andPiI ⊆∆I×∆I. We callI amodelof a KBKand writeI |=Kif all of the assertions inAand inclusions inO are true inI. If a KB has a model, it is calledconsistentorsatisfiable. The computa- tional (combined) complexity of satisfiability checking forDL-LitercKBs is one of our concerns in this paper.

The other is the (combined and data) complexity of answering conjunctive queries (CQs) and unions of CQs (UCQs) mediated byDL-Literc ontologies. ACQis a first- order (FO) formula of the form q(x) = ∃yϕ(x,y), where ϕ is a conjunction of unary or binary atomsQ(z)withz ⊆ x∪y. AUCQis a disjunction of CQs with the same answer variables x. ADL-Literc ontology-mediated query (OMQ) is a pair Q= (O,q(x)), whereOis aDL-Litercontology andqa (U)CQ.

Given an ABoxA, we denote byind(A)the set of individual names that occur inA.

A tupleainind(A)is acertain answerto an OMQQ= (O,q(x))ifxandaare of the same length andI |= q(a), for every modelI of (O,A); in this case we write O,A |=q(a). If the setxof answer variables is empty (that is,qisBoolean), acertain answertoQoverAis ‘yes’ ifI |=q, for every modelIof(O,A), and ‘no’ otherwise.

(4)

TheOMQ answeringproblem forDL-Litercis to check, given an OMQQ= (O,q(x)) with aDL-LitercontologyO, an ABoxAand a tupleainind(A), whetherais a certain answer toQoverA.

3 Relationship to Other Fragments of FO

Every DL-Liteboolbool ontology is easily seen to be equivalent to a sentence in the two- variable fragment of FO, and everyDL-Liteg-boolbool ontology is equivalent to a sentence in the two-variable guarded fragment of FO. The converse directions do not hold. We show, however, that both languages can be equivalently captured by natural description logics with Boolean operators on roles (and no role inclusions). We give a concise description of the expressivity of bothDL-LiteboolboolandDL-Liteg-boolbool ontologies within those more familiar description logics.

Denote by FO2the fragment of first-order logic with unary and binary relation sym- bols, the equality symbol, no function symbols, and the individual variablesxandy only. FO2is well understood [13], in particular, it is known to have the finite model property, and the satisfiability problem for FO2-formulas is NEXPTIME-complete. It is straightforward to show thatDL-Liteboolboolis a fragment of FO2in the sense that every DL-LiteboolboolCI and RI is equivalent to a sentence in FO2. Moreover, the translation is linear, and so the satisfiability problem forDL-LiteboolboolKBs is in NEXPTIME. To an- swer the question how much of FO2is captured byDL-Liteboolbool, we consider another description logic in which roles have a similar status to concepts.

Denote byALCid,>,∩,¬,−the DL whose roles are built according to the rule S, S1, S2 ::= > | id | Pi | S1uS2 | ¬S | S, and whose concepts are built according to the rule

C, C1, C2 ::= > | Ai | ∃S.C | C1uC2 | ¬C,

whereS is anALCid,>,∩,¬,−-role. An ALCid,>,∩,¬,−-CI takes the formC1 v C2, whereC1, C2 areALCid,>,∩,¬,−-concepts. The semantics ofALCid,>,∩,¬,− is as ex- pected, with id interpreted in any interpretationI as the relation{(d, d) | d ∈ ∆I}.

ALCid,>,∩,¬,− was introduced in [16], various fragments had been considered be- fore [15, 11]. It is easy to see that everyALCid,>,∩,¬,−-CI is equivalent to a sentence in FO2, and the translation is linear. The converse inclusion holds as well: every sentence in FO2 is equivalent to anALCid,>,∩,¬,−-CI, but the known translation introduces an exponential blow-up [16]. In fact, despite having exactly the same expressive power, ALCid,>,∩,¬,−

behaves differently from FO2in that satisfiability is still NEXPTIME- complete but becomes, in contrast to FO2, EXPTIME-complete if the signature of unary and binary relation symbols is fixed.

The relationship betweenALCid,>,∩,¬,−

andDL-Liteboolbool can be stated in a pre- cise way:DL-LiteboolboolisALCid,>,∩,¬,−without the relation id. Observe that we clearly cannot express ALCid,>,∩,¬,−-CIs such as A v ∃¬id.A in DL-Liteboolbool. Denote by ALC>,∩,¬,−the languageALCid,>,∩,¬,−without the relation id. We say that an ontol- ogyOis amodel conservative extensionof an ontologyO0 ifO |= O0, the signature

(5)

of O0 is contained in the signature ofO, and every model ofO0 can be expanded to a model ofOby providing interpretations of the fresh symbols ofOand leaving the domain and the interpretation of the symbols inO0unchanged.

Theorem 1. (i) For everyDL-Liteboolbool ontology, one can compute in linear time an equivalentALC>,∩,¬,−ontology.

(ii)For everyALC>,∩,¬,−ontology, one can compute in polynomial time a model conservative extension inDL-Liteboolbool.

Proof. Clearly, every CI inDL-Liteboolboolis also inALC>,∩,¬,−(∃Sabbreviates∃S.>).

Every role inclusionS1u · · · uSk vSk+1t · · · tSk+minDL-Liteboolboolis equivalent to theALC>,∩,¬,−-CI∃(S1u · · · uSku ¬(Sk+1t · · · tSk+m)).> v ⊥.

Conversely, assume anALC>,∩,¬,−ontologyOis given. Using standard normali- sation one can construct in linear time anALC>,∩,¬,−ontology with CIs of the form

Av ∀S.B, ∀S.BvA, A1uA2vB, Av ¬B, ¬AvB,

whereA, B, A1, A2range over concept names and>, which is a model conservative extension ofO. Now we can replace any CIAv ∀S.Bby

S vQtR, ∃QvB, Av ¬∃R,

whereQandRare fresh role names, and any CI∀S.BvAby

¬Av ∃R, RvS, ∃Rv ¬B,

whereRis a fresh role name. It remains to observe that we can replace the Boolean roleS by a role name andDL-Liteboolboolrole inclusions to obtain a model conservative extension.

Thetwo-variable guarded fragment of FO, denoted GF2, is the fragment of FO2 defined as follows:

– every atomic formula in FO2is in GF2; – GF2is closed under∧and¬;

– ifv ∈ {x, y, xy},ψis in GF2, andGis in atomic formula in FO2containing all free variables inψ, then∃v(G∧ψ)is in GF2.

It is not difficult to see that GF2corresponds to the fragmentALCid,>,∩,¬,−

guarded of the DL

ALCid,>,∩,¬,− in which every role expression is either>or contains a guard: a top- level conjunct that is either id, a role name, or the inverse of a role name. The fragment DL-Liteg-boolbool clearly lies withinALC∩,¬,−guarded, the fragment ofALCid,>,∩,¬,−

guarded without the roles id and>. In fact, similarly to the proof of Theorem 1, one can show the following:

Theorem 2. (i)For everyDL-Liteg-boolbool ontology, one can compute in linear time an equivalentALC∩,¬,−guarded ontology.(ii)For everyALC∩,¬,−guardedontology, one can compute in polynomial time a model conservative extension inDL-Liteg-boolbool .

(6)

4 Complexity of Satisfiability

It is known [9, 1] that satisfiability checking is NP-complete for DL-Litecorebool KBs, P- complete forDL-LitecorehornKBs, and NL-complete forDL-LitecorekromandDL-LitecorecoreKBs.

Theorem 3. Satisfiability checking is NEXPTIME-complete forDL-LiteboolboolKBs and EXPTIME-complete forDL-Liteg-boolbool KBs.

Proof. ForDL-Liteboolbool, NEXPTIME-completeness follows from Theorem 1 and [15, Theorem 14]. ForDL-Liteg-boolbool , the EXPTIME upper bound follows from the fact that satisfiability ofDL-Liteg-boolbool KBs is reducible to satisfiability of guarded FO-formulas with at most binary predicates, which is known to be in EXPTIME[12]. The matching lower bound can be established using the encoding ofAv ∀S.Bgiven in the proof of Theorem 1 and the proof of [4, Theorem 3.27].

Now we consider ontologies with Krom and Horn role inclusions. For an ontol- ogy O, letrole±(O) = {P, P | Pis a role name inO}. We also set(P) = P. Suppose J = (∆JJ) is an interpretation. Denote by tJ(x) the concept type of x∈∆J inJ, which comprises allBwithx∈BJ and all¬Bwithx /∈BJ, for basic conceptsBof the formA, for concept names inO, and∃S, forS ∈role±(O). Simi- larly, we denote byrJ(x, y)therole typeof(x, y)∈∆J×∆J inJ, which comprises allSwith(x, y)∈SJ and all¬Swith(x, y)∈/SJ, forS∈role±(O).

Lemma 1. For every satisfiableDL-Litekrombool KB K = (O,A), there exists a model I = (∆II)ofKsuch that

– ∆I=ind(A)∪ {wSi |S∈role±(O)and0≤i <3},

– ifa∈(∃S)I, then(a, w0S)∈SI, for anya∈ind(A)and anyS∈role±(O), – ifwRi ∈(∃S)I, then(wiR, wi⊕1S )∈SI, for anyR, S∈role±(O)and0≤i <3, where⊕denotes addition modulo 3. In particular,DL-Litekrombool enjoys the linear model property:|∆I|=|ind(A)|+ 3|role±(O)|.

Proof. SupposeDL-Litekrombool KBK = (O,A)is satisfied inJ = (∆JJ). We con- struct the required modelIas follows. For a role literalL(that is, a role or its negation), we denote bycl(L)the set of all role literalsL0such thatO |=LvL0.

For each roleSinOwithSJ 6=∅, we pickwS ∈∆J with∃S∈tJ(wS); forS withSJ =∅, we pick an arbitrarywS. Without loss of generality, we can assume that all the selectedwS are pairwise distinct. The set comprising three copieswS0, wS1, wS2 of all thosewStogether withind(A)is denoted by∆I(this technique with three copies is similar to the one used in the proof of [7, Proposition 8.1.4] establishing the finite model property of FO2). Define a functionf by takingf(a) =a, for alla∈ ind(A), andf(wiS) =wS, for allSandi. We then settI(w) =tJ(f(w)), for allw∈∆J.

We now show how to definerI(w, w0)forw, w0 ∈∆I. The following three cases need consideration.

(7)

– Ifw = a,w0 = w0S and∃S ∈ tJ(w), then we definerI(w, w0)by first tak- ingcl(S). Suppose now that> vSjtS0j, for1≤j≤n, are all disjunctions inO such thatSj,Sj0 and their negations are not incl(S). AsJ is a model ofO, for each j, eitherSj orSj0 must be inrJ(f(w), f(w0)). Suppose for definiteness that it is Sj. Then we addcl(Sj)torI(w, w0). Using the main property of Krom formulas (if a contradiction is derivable, then it is derivable from two literals), we can show that the resultingrI(w, w0)is consistent withOand respectstI(w)andtI(w0)in the sense thatR∈rI(w, w0)implies∃R∈tI(w)and∃R∈tI(w0).

– Ifw=wiR,w0 =wSi⊕1and∃S∈tJ(w), then we definerI(w, w0)as above.

– For any otherw,w0not covered above (in particular, ifw=a,w0=wSi and either i >0or∃S /∈tJ(a)), we setrI(w, w0) =rJ(f(w), f(w0)).

It is readily checked that the constructed concept typestI(w)and role typesrI(w, w0), forw, w0∈∆I, define a model ofK.

The existence of a model specified in Lemma 1 can be encoded by an essentially propositionalformula ϕK with atomic propositions of the formB(x), for x ∈ ∆I and basic conceptsBfromO, saying thatBholds onxinI, andP(x, x0), for a role namePinO, saying thatPholds on(x, x0)inI. The formulaϕKis a conjunction of the following sentences, for allx, x0∈∆I:

B1(x)∧ · · · ∧Bk(x)→Bk+1 (x)∨ · · · ∨Bk+m (x),

for each CIB1u · · · uBk vBk+1t · · · tBk+minO;

S1(x, x0)∧ · · · ∧Sk(x, x0)→Sk+1 (x, x0)∨ · · · ∨Sk+m (x, x0),

for each RIS1u · · · uSk vSk+1t · · · tSk+minO, A(a), for eachA(a)∈ A, and P(a, b), for eachP(a, b)∈ A, (∃S)(a)→S(a, wS0) and (∃S)(wiR)→S(x, wSi⊕1), for eachSandi, S(x, x0)→(∃S)(x), for eachS.

where (Pi)(x, x0) = Pi(x0, x). Note that, if K is a DL-Litekromkrom KB, then ϕK is a Krom formula, which can be constructed by a logspace transducer. It can now be straightforwardly shown that:

Lemma 2. ADL-Litekrombool KBKis satisfiable iffϕKis satisfiable.

As a consequence, and using the fact thatDL-Litekromhorn can expressDL-Litekrombool (as Krom RIs can simulate Krom CIs, and the latter can express the complements of con- cepts), we obtain the following complexity results:

Theorem 4. Satisfiability checking is NP-complete forDL-Litekrombool and DL-Litekromhorn KBs, andNL-complete forDL-LitekromkromKBs.

Next, we considerDL-Litehornbool andDL-Litehornhorn KBs. Note that universal roles de- fined by RIs such as> vScan be trivially omitted from KBs, so in what follows we assume that our KBs do not contain universal roles. The next lemma is proved by a more or less standard unravelling construction. We need an unravelled infinite forest-shaped model rather than a finite one similar to that in Lemma 1 in order to obtain Theorem 12 on the data complexity of OMQ answering withDL-Litehornhorn.

(8)

Lemma 3. LetK = (O,A) be a satisfiableDL-Litehornbool KB. Then there is a model I = (∆II)such that

– ∆I⊆ind(A)∪ {aw|a∈ind(A), wis a word overwS, forS∈role±(O)}, – tI(w1wS) =tI(w2wS), for anyw1wSandw2wS in∆I,

– ifw1andw2are not both inind(A), then(w1,w2)∈RIiff there is∃S∈tI(w1) such thatR∈rS,Sis minimal with this property w.r.t.v, andw2=w1wS, where rS ={R| O |=SvR}.

If K is a DL-Litehornhorn KB, then B ∈ tI(wwS)iff O |= ∃S v B, for any basic conceptB.

Proof. First, we can show that ifK is satisfied in a modelI0, then it is satisfied in a modelJ with minimal role types where, for allw, w0 ∈∆J with{w, w0} 6⊆ind(A), we have

rJ(w, w0) =rS, for some roleS.

Indeed, suppose (w, w0)violates this property andw0 ∈/ ind(A). LetrI0(w, w0) = {S1, . . . , Sk}. Then we replacew0bykcopiesw10, . . . , w0kwith the same concept types asw0, and connectwto eachw0iby the roles inrSionly. In the resulting interpretation, the pairs(w, wi0)are as required, but thew0imay not satisfy CIs in Odue to missing witnesses for existential concepts∃R. To fix each of thesewi0, we createk−1copieswij

ofwforj6=i(again, thewijbelong to the same concepts asw) and connect eachwij

towi0 by all roles inrSj. It can be seen that, in the resulting interpretation, the pairs (wij, w0i)satisfy the required property, but now thewijmay not satisfy CIs inO(again, due to some∃R). To fix these new elements, we create copies ofw0, and so on.

Second, for each role nameP such that PJ 6⊆ind(A)×ind(A), we can fix two

‘witnesses’ by arbitrarily choosingwP andwP such that{wP, wP} 6⊆ind(A)and rJ(wP, wP) =rP. Now we can unravelJ into the required forest-shaped modelI ofKby using only witnesses of the formwP andwP.

Using Lemma 3, we now define translations ofDL-LiteKBs with Horn RIs into uni- versal sentences in FO1(FO-sentences with one variable), Horn-FO1and Krom-FO1, the satisfiability problems for which are known to be NP-, P- and NL-complete [7].

Theorem 5. (i)DL-Litehornboolsatisfiability is poly-time-reducible to FO1-satisfiability.

(ii)DL-Litehornhornsatisfiability is poly-time-reducible to Horn-FO1-satisfiability.

(iii)DL-Litehornkromsatisfiability is poly-time-reducible to Krom-FO1-satisfiability.

Proof. (i)LetK= (O,A)be aDL-Litehornbool KB. We assume without loss of generality that together with RIs of the form S1 u · · · uSk v Sk+1 the TBox also contains S1u · · · uSk v Sk+1 , and similarly forS1u · · · uSk v ⊥. For each conceptA, fix a unary predicateAand, for each role nameP, fix a binary predicateP, two unary predicatesEPandEP, and two constantswPandwP. Intuitively, the two constants are representatives of the range and domain of the role, respectively (if it is non-empty);

the unary predicates of the formA,EP andEPencode the unary types; the binary predicateP encodes the binary types of pairs of ABox elements. For a conceptC, let C(x)be

A(x) if C=A, EP(x) if C=∃P, EP(x) if C=∃P.

(9)

A CIC1u · · · uCk vCk+1t · · · tCk+mis then naturally translated into

∀x C1(x)∧ · · · ∧Ck(x)→Ck+1 (x)∨ · · · ∨Ck+m (x) .

We also include the following sentences, for all rolesS:

∀x (∃S)(x)→(∃S)(wS) .

Since we assume that the binary types for(w1, w2)with{w1, w2} 6⊆ind(A)are min- imal, that is, generated by a single role, RIs are translated into the the following sen- tences:

∀x (∃S)(x)→(∃R)(x)

, for all rolesSandRwithO |=SvR;

∀x (∃S)(x)→ ⊥

, for all rolesSwithO |=Sv ⊥.

Assertions of the formA(ai)are translated intoA(ai)and of the formP(ai, aj)into P(ai, aj). We also add

P(ai, aj)→(∃P)(ai)∧(∃P)(aj)

for all pairsai, aj ∈ind(A)and all role namesP, and

S1(ai, aj)∧ · · · ∧Sk(ai, aj)→Sk+1(ai, aj), (2) for all pairs ai, aj ∈ ind(A) and RIsS1u · · · uSk v Sk+1 and similarly for RIs S1 u · · · uSk v ⊥, with ⊥in the conclusion, where P(ai, aj)is a shortcut for P(aj, ai). It can easily be seen thatKis satisfiable iff the translation is consistent.

(ii)We observe that the translation above is in Horn-FO1ifKis inDL-Litehornhorn. (iii)The translation in(i)forDL-Litehornkromis not in Krom-FO1. However, since the translation works in polynomial time, we can modify it so that instead of (2) it produces allS(ai, aj)such thatR,A |=S(ai, aj)or⊥ifR,A |=⊥, whereRis the RBox ofO.

As a consequence, we obtain the following complexity results:

Theorem 6. Satisfiability checking isNP-complete forDL-LitehornboolKBs, andP-comp- lete forDL-LitehornhornandDL-LitehornkromKBs.

5 The Complexity of (U)CQ-Answering

In this section, we give a brief survey of results on the combined and data complexity of answering OMQs withDL-Literc ontologies and (U)CQs, which can mostly be ob- tained in a rather straightforward way from existing results. We start with undecidability results, which show that the languageDL-Liteboolboolbehaves again similarly to the two- variable fragment of FO and that even inDL-LitekromkromUCQ answering is undecidable.

The following can be shown using [17, Theorem 1] and the encoding of∀R.Cgiven in the proof of Theorem 1:

Theorem 7. Answering OMQs withDL-Liteboolboolontologies and CQs is undecidable for combined complexity.

(10)

The next result follows from [17, Theorem 3]:

Theorem 8. Answering OMQs withDL-Litekromkromontologies and UCQs is undecidable for combined complexity.

It remains open whether answering OMQs withDL-Litekromkromontologies and CQs is undecidable. The languageDL-Liteg-boolbool can be regarded as a fragment of the guarded fragment, GF, of FO. Query evaluation for GF was first investigated in [5], where it was proved that (U)CQ evaluation in GF is in 2EXPTIMEfor combined complexity. It follows directly from the results in [8] that a matching lower bound holds already for DL-Litecorebool. Thus, we obtain the following:

Theorem 9. Answering OMQs withDL-Liteg-boolbool ontologies and(U)CQs can be done in 2EXPTIMEfor combined complexity. It is 2EXPTIME-hard forDL-Litecoreboolontolo- gies.

We now sketch the results on data complexity. A coNP-upper bound for (U)CQ eval- uation in GF for data complexity is proved in [5]. Thus, UCQ answering is in CONP forDL-Liteg-boolbool . A fine-grained analysis of the data complexity at the TBox and even OMQ level can be obtained from [6, 14]. While the structure of the space of possi- ble complexity of answering OMQs over GF ontologies and UCQs is wide open (it corresponds to the complexity of MMSNP2 [6]) and an active area of research in the constraint satisfaction community, it has recently been proved in the extended version of [14] that there is a P/CONP dichotomy for OMQs over thetwo-variablefragment GF2 of GF and UCQs (i.e., every such OMQ is either in P or CONP-complete). As DL-Liteg-boolbool is clearly contained in GF2, we obtain the following:

Theorem 10. Answering any OMQ with aDL-Liteg-boolbool ontology and a UCQ is either inPorCONP-complete for data complexity.

We conjecture that important properties such as datalog rewritability and first-order rewritability of such OMQs are decidable as well, but this remains open. In many appli- cations of ontology-mediated query answering, only the TBox is known in advance, but not the relevant queries. In this case, investigating the complexity at the level of OMQs is not appropriate, but instead one is interested in an upper bound for the complexity of query evaluation forallOMQs based on the given TBox. AsDL-Liteg-boolbool lies within the fragment uGF2(1,=)of GF introduced in [14], we obtain the following analysis from that paper:

Theorem 11. For every ontologyOinDL-Liteg-boolbool , either every OMQ usingOand a UCQ is datalog-rewritable or there exists such an OMQ for which query answering is

CONP-hard. Moreover, datalog-rewritability is decidable inNEXPTIME.

We note that a dichotomy between datalog-rewritable andCONP is quite rare. There are, for example,ALCTBoxes for which not all OMQs are datalog rewritable but still in P [14]. Finally, the following (probably folklore) theorem is proved using Lemma 3:

Theorem 12. Every OMQ with aDL-Litehornhornontology and a UCQ is FO-rewritable, and so answering it is inAC0for data complexity.

(11)

Acknowledgements

The work was supported by the EPSRC UK grants EP/S032282/1 and EP/S032207/1.

References

1. Artale, A., Calvanese, D., Kontchakov, R., Zakharyaschev, M.: The DL-Lite family and re- lations. Journal of Artificial Intelligence Research (JAIR) 36, 1–69 (2009)

2. Artale, A., Kontchakov, R., Kovtunova, A., Ryzhikov, V., Wolter, F., Zakharyaschev, M.:

First-order rewritability of temporal ontology-mediated queries. In: Yang, Q., Wooldridge, M. (eds.) Proceedings of the Twenty-Fourth International Joint Conference on Artificial In- telligence, IJCAI 2015, Buenos Aires, Argentina, July 25-31, 2015. pp. 2706–2712. AAAI Press (2015),http://ijcai.org/Abstract/15/383

3. Artale, A., Kontchakov, R., Wolter, F., Zakharyaschev, M.: Temporal description logic for ontology-based data access. In: Rossi, F. (ed.) IJCAI 2013, Proceedings of the 23rd Inter- national Joint Conference on Artificial Intelligence, Beijing, China, August 3-9, 2013. pp.

711–717. IJCAI/AAAI (2013),http://www.aaai.org/ocs/index.php/IJCAI/

IJCAI13/paper/view/6824

4. Baader, F., Calvanese, D., McGuinness, D., Nardi, D., Patel-Schneider, P. (eds.): The De- scription Logic Handbook: Theory, Implementation and Applications. Cambridge University Press (2003)

5. B´ar´any, V., Gottlob, G., Otto, M.: Querying the guarded fragment. Logical Methods in Com- puter Science 10(2) (2014),https://doi.org/10.2168/LMCS-10(2:3)2014 6. Bienvenu, M., ten Cate, B., Lutz, C., Wolter, F.: Ontology-based data access: A study through

disjunctive datalog, CSP, and MMSNP. ACM Transactions on Database Systems 39(4), 33:1–44 (2014)

7. B¨orger, E., Gr¨adel, E., Gurevich, Y.: The Classical Decision Problem. Perspectives in Math- ematical Logic, Springer (1997)

8. Bourhis, P., Manna, M., Morak, M., Pieris, A.: Guarded-based disjunctive tuple-generating dependencies. ACM Trans. Database Syst. 41(4), 27:1–27:45 (2016), https://doi.

org/10.1145/2976736

9. Calvanese, D., De Giacomo, G., Lembo, D., Lenzerini, M., Rosati, R.: Tractable reasoning and efficient query answering in description logics: theDL-Litefamily. Journal of Automated Reasoning 39(3), 385–429 (2007)

10. Calvanese, D., De Giacomo, G., Lembo, D., Lenzerini, M., Rosati, R.: Data complexity of query answering in description logics. In: Doherty, P., Mylopoulos, J., Welty, C.A. (eds.) Proceedings, Tenth International Conference on Principles of Knowledge Representation and Reasoning, Lake District of the United Kingdom, June 2-5, 2006. pp. 260–270. AAAI Press (2006),http://www.aaai.org/Library/KR/2006/kr06-028.php

11. Gargov, G., Passy, S.: A note on boolean modal logic. In: Petkov, P. (ed.) Mathematical Logic. Springer, Boston, MA (1990)

12. Gr¨adel, E.: On the restraining power of guards. J. Symb. Log. 64(4), 1719–1742 (1999), https://doi.org/10.2307/2586808

13. Gr¨adel, E., Kolaitis, P.G., Vardi, M.Y.: On the decision problem for two-variable first-order logic. Bulletin of Symbolic Logic 3(1), 53–69 (1997),http://www.math.ucla.edu/

\%7Easl/bsl/0301/0301-003.ps

14. Hernich, A., Lutz, C., Papacchini, F., Wolter, F.: Dichotomies in ontology-mediated querying with the guarded fragment. In: Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2017, Chicago, IL, USA, May 14-19, 2017. pp. 185–199 (2017),https://doi.org/10.1145/3034786.3056108

(12)

15. Lutz, C., Sattler, U.: The complexity of reasoning with boolean modal logics. In: Wolter, F., Wansing, H., de Rijke, M., Zakharyaschev, M. (eds.) Advances in Modal Logic 3, papers from the third conference on “Advances in Modal logic,” held in Leipzig, Germany, 4-7 October 2000. pp. 329–348. World Scientific (2000)

16. Lutz, C., Sattler, U., Wolter, F.: Modal logic and the two-variable fragment. In: Fribourg, L.

(ed.) Computer Science Logic, 15th International Workshop, CSL 2001. 10th Annual Con- ference of the EACSL, Paris, France, September 10-13, 2001, Proceedings. Lecture Notes in Computer Science, vol. 2142, pp. 247–261. Springer (2001),https://doi.org/10.

1007/3-540-44802-0\_18

17. Rosati, R.: The limits of querying ontologies. In: Database Theory - ICDT 2007, 11th In- ternational Conference, Barcelona, Spain, January 10-12, 2007, Proceedings. pp. 164–178 (2007),https://doi.org/10.1007/11965893_12

Références

Documents relatifs

The DL-Lite family consists of various DLs that are tailored towards conceptual modeling and allow to realize query answering using classical database techniques.. We only

This gives rise to the notion of aggregate certain answers, which can be explained as follows: a number is an aggregate certain answer to a counting query over a knowledge base if

This section introduces the concept of constraint graphs, which leads to procedures to compute the operations over lightweight ontologies.. We say that the complement of a

We also introduce a new family of languages, DL-Lite HN A α , α ∈ {core, krom, horn, bool}, extending DL-Lite with attributes (A).. The notion of attributes, borrowed from

We consider stan- dard decision problems associated to logic-based abduction: (i) existence of an expla- nation, (ii) recognition of a given ABox as being an explanation, and

Also, we present polynomial time algorithms for the evolution of the instance level knowledge bases expressed in DL-Lite A,id , which the most expressive Description Logics of

These considerations lead us to TDLs based on DL-Lite N bool and DL-Lite N core and interpreted over the flow of time ( Z , &lt;), in which (1) the future and past temporal

We show that for DL−Lite H core , DL−Lite H krom and DL−Lite N horn TBoxes MinAs are efficiently enumerable with polynomial delay, but for DL−Lite bool they cannot be enumerated