• Keine Ergebnisse gefunden

1.4 Contributions and Outline of the Thesis

2.1.3 Canonical Interpretations for Horn Description Logics

In this section, we focus on the Horn DLs we introduced in Section 2.1.1, EL and DL-LiteHhorn. In a nutshell, Horn DLs do not allow to express disjunction on the right-hand side of CIs (i.e., neither directly in the syntax, nor indirectly through the seman-tics), such that the CIs can be represented as first-order Horn clauses. Reasoning in these DLs is easier than in general since it can be done using deterministic algorithms, which are often based on canonical interpretations. In what follows, we recall the well-known construction of these interpretations for knowledge bases inEL andDL-LiteHhorn together with important properties of them and prove additional such properties.

In a nutshell, the canonical interpretation of a knowledge baseKcaptures exactly the information described by K. Since this is the knowledge to be satisfied in every model ofK, the canonical interpretation can be used for checking the consistency of K and for answering CQs w.r.t. K—by checking whether the canonical interpretation is a model of K and if it satisfies a CQ, respectively. We provide different definitions depending on the logic to facilitate later proofs. For EL, we directly consider the knowledge entailed from K, as it is done in [LTW09; KRH07], for example. Regarding DL-Lite, we explicitly construct the interpretation similar to [Cal+07b; BAC10], by applying the standard chase procedure for obtaining models of knowledge bases [DNR08]. We use this definition in order to be able to refer to the results of [BAC10], which hold for the non-standard setting with negative assertions in ABoxes, which we focus on. Note that [BAC10] extend the original definition of [Cal+07b] regarding DL-LiteH to the logic DL-LiteHhorn, and we further extend it. In particular, our canonical interpretation contains (unnamed) prototypical R-successors with R ∈ NR for all elements required to satisfy ∃R, by the knowledge base. In contrast, [Cal+07b; BAC10] only consider such prototypical successors if the knowledge base (i.e., the corresponding ABox) does not already identify a named individual to be such a successor. Unlike us, [Cal+07b;

BAC10] neither consider arbitrary basic concept assertions, but only concept names.

The prototypical domain elements are of the formu% (u for “unnamed”), where% is a path %:=aR1C1. . . R`C` over symbols occurring in the knowledge base with abeing an individual name, R1, . . . , R` being roles, and C1, . . . , C` being concepts from S(O).

We assume that the knowledge base does not already contain symbols of the form of these elements. |%|:=`denotes thelengthof a path as%. Observe that such a path also specifies the interpretation of the symbols contained in it in that it describes the

exis-tence of domain elements a, uaR1C1, . . . , uaR1C1...R`C`, which are related via R1, . . . , R`, respectively; and each element uaR1C1...RmCm form`satisfiesCm. Furthermore,u%is only contained in the domain of the canonical interpretation if relations as described by

%have to be present in every model of the knowledge base. Note thatDL-Liteontologies can only enforce unnamed elements of the form uaR1>...R

`> to exist, because they do not allow for qualified existential restriction on the right-hand side of CIs. We therefore usually write uaR1...R` in that context, to simplify notation.

Definition 2.10 (Canonical Interpretation in EL) Let K = hO,Ai be an EL knowledge base. We first define the set

IuK :=

[

j=0

ju where

0u:={uaRC |a∈NI(K), C ∈S(O), K |=∃R.C(a)},

j+1u :={u%R

1C1R2C2 | ∃u%R

1C1 ∈∆ju,O |=C1 v ∃R2.C2}.

The canonical interpretation IK forK is defined as follows, for alla∈NI(A),A∈NC, and R∈NR:

IK :=NI(A)∪∆IuK, aIK :=a,

AIK :={a∈NI(A)| K |=A(a)} ∪ {u%RC ∈∆IuK | O |=CvA}, RIK :={(a, b)|R(a, b)∈ A} ∪ {(a, uaRC)∈NI(A)×∆IuK} ∪

{(u%, u%RC)∈∆IuK ×∆IuK}.

Thefinite canonical interpretationIKf is defined correspondingly, but based on elements of the form uC for all C ∈ S(O) instead of on different elements of the form u%C. Analogously, these elements are collected in the set ∆IuKf. ♦ For simplicity, we assume in the definition regarding DL-Lite that, if the RI S vR is contained in an ontology O, then we also have ∃S v ∃R ∈ O and ∃S v ∃R ∈ O;

and that Ocontains all trivial axioms of the form BvB forB ∈B(O).

Definition 2.11 (Canonical Interpretation in DL-LiteHhorn)Let K=hO,Ai be a DL-LiteHhorn knowledge base. First, for all A∈NC and P ∈NR, we define:

A0:={a|A(a)∈ A},

P0:={(a, b)|P(a, b)∈ A} ∪

{(a, uaP)| ∃P(a)∈ A} ∪ {(uaP, a)| ∃P(a)∈ A}.

Then, iterate over all i ≥ 0: for all X ∈ NC∪NR define Xi+1 := Xi; apply one of the following rules for all A ∈NC, R, S ∈NR, andB, B1, B2 ∈B(O); and increment i;

(d, e) ∈(P)i forP ∈NR denotes the fact that (e, d)∈Pi, and d∈(∃R)i denotes the existence of an element esuch that (d, e)∈Ri:

2.1 Description Logics

• IfB1uB2vA∈ O,A∈NC,and eB1iB2i, then addetoAi+1.

• IfB v ∃R∈ O and eBi:

ife∈NI(A), then add (e, ueR) to Ri+1; ife=u%, then add (e, u%R) to Ri+1.

• If∃RvA∈ O, (d, e)∈Ri, then add dtoAi+1.

• IfS vR∈ O and (d, e)∈Si, then add (d, e) toRi+1. The set ∆IuK collects the above introduced unnamed individuals.

The canonical interpretation IK for K is then defined as follows, for all a ∈ NI(A), A∈NC, and P ∈NR:

IK :=NI(A)∪∆IuK, aIK :=a, AIK :=

[

i=0

Ai, PIK :=

[

i=0

Pi.

Note that the above assumptions about additional axioms in the ontology ensure that, whenever there is a named elementa∈(∃R)i for somei≥0, thenahas anR-successor of the form uaR in the canonical interpretation, and similar for the unnamed elements.

In the remainder of this section, we recall and prove results about how the canonical interpretation may simplify reasoning. To this end, we assume K = hO,Ai to be a consistent knowledge base in EL or DL-Lite, depending on the context. In the latter case,A may particularly include negated assertions.

RegardingEL, we refer to the results from [LTW09], where the canonical interpreta-tion is however defined slightly differently, based on the finite one. More precisely, the possible paths over the domain elements of the latter that start at the named individ-uals represent the domain elements of the former interpretation. It is easy to see that this approach yields an interpretation corresponding to the one from Definition 2.10.

Regarding DL-Lite, note that the two above mentioned differences, w.r.t. basic con-cept assertions and the additional successor individuals we consider, do not have special effects on reasoning. This is why we below refer to the results of [BAC10] without providing detailed proofs.

An important property of the canonical interpretation IK, which can be checked easily, is that it is a model ofK. IfK was inconsistent, then this would obviously not be the case. The converse of this statement is however harder to show—for DL-Lite; EL KBs cannot be inconsistent. The proof proposed by [Cal+07b; BAC10] is three-fold:

• First, it is shown thatIK is a model of allpositive inclusions inO, which are CIs whose right-hand side is not⊥; all other CIs are called negative inclusions.

• For checking satisfiability ofDL-LiteHhornKBs, negative inclusions are critical: if a negative inclusion in the ontology is violated by assertions of the ABox, then the knowledge base is inconsistent and hence unsatisfiable. In particular, an interac-tion of positive and negative inclusions may lead to such an inconsistency. This is why a special closureof the negative inclusions contained in Ois regarded, which represents all negative inclusions implied by the ontology.

The second step then consists of showing that K is consistent iff the assertions of the ABox do not contradict this closure.

• Third and last, it is shown that the latter is the case iff IK is a model of K.

These observations show that neither basic concept assertions nor “unnecessary” pro-totypical successors have special effects on the outcomes of the proof in [BAC10]. We hence can similarly state the result.

Lemma 2.12 ([BAC10, Lem. 3, Thm. 4],[LTW09, Prop. 1])IK|=KandIKf |=K.

A result equally important for our work is about queries.

Lemma 2.13 ([BAC10, Thm. 9],[LTW09, Prop. 4]) For every Boolean UCQ ϕ, we have K |=ϕiff IK|=ϕ.

In the following Lemmas 2.14 and 2.15, we describe the concepts satisfied by the domain elements of the canonical model and the subset of prototypical elements, re-spectively. Note that the following Lemma 2.14 is restricted to DL-Lite.

Lemma 2.14 Regarding Definition 2.11, all e ∈ ∆IK, and all B ∈ B(O), we have eBIK iff O |=dB vB, where B is defined as follows, based on the minimal number i for which there is a symbol X such that eXi:

B:={A∈NC(O)|eAi} ∪ {∃R|R∈NR(O), (e, d)∈Ri}.

Proof. (⇐) For all C ∈ B, we know that eCIK, by the definitions of B and IK. Hence, Lemma 2.12 yields the claim.

(⇒) Letj be the minimal index for whicheBj, which means that ji. We show the claim by induction on j. If j =i, then B ∈ B, and hence O |=dB vB trivially holds.

Regardingj > i, we assume that the claim holds for allC ∈B(O) for whicheCj−1. We consider the rule in Definition 2.11 that causes eto be contained inBj.

• If it is because of a CId

B0 vB ∈ O, then we haveeCj−1for allC ∈ B0. Hence, the induction hypothesis together with the semantics yields O |= dB v dB0. Because of the considered CI, this leads to O |=d

B vB.

For the other kinds of CIs, the proof works correspondingly.

• If it is because of the last rule, some SvR∈ O, and (e, d)∈Sj−1 ((d, e)∈Sj−1), thenB must be of the form B =∃R(−). Further, (e, d)∈Sj−1 ((d, e)∈Sj−1) im-pliese∈(∃S(−))j−1, for which the induction hypotheses yieldsO |=d

B v ∃S(−). By our assumption (see the part above Definition 2.11), we have ∃S v ∃R ∈ O (∃Sv ∃R∈ O) and thus get O |=d

B v ∃R(−).

The next lemma describes the concepts the new domain elements in ∆IuK satisfy in a straightforward way and hence shows that an element of the form u%RC ∈ ∆IuK can indeed serve as a prototypical R-successor. Regarding DL-Lite, the lemma directly follows from Definition 2.11 and Lemma 2.14. For EL, it is easy to prove by induction on the structure of concepts.