• Keine Ergebnisse gefunden

All Elephants are Bigger than All Mice Technical Report

N/A
N/A
Protected

Academic year: 2022

Aktie "All Elephants are Bigger than All Mice Technical Report"

Copied!
19
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

All Elephants are Bigger than All Mice

Technical Report

Sebastian Rudolph and Markus Krötzsch and Pascal Hitzler Institut AIFB, Universität Karlsruhe, Germany

{sru,mak,phi}@aifb.uni-karlsruhe.de

Abstract. We introduce the concept product as a new expressive feature to de- scription logics (DLs). While this construct allows us to express an arguably very common and natural type of statement, it can be simulated only by the very ex- pressive DLSROIQfor which no tight worst-case complexity is known. How- ever, we show that concept products can also be added to the DLsSHOIQand SHOI, and to the tractable DLEL++ without increasing the worst-case com- plexities in any of those cases. We therefore argue that concept products provide practically relevant expressivity at little cost, making them a good candidate for future extensions of the DL-based ontology language OWL.

1 Introduction

The development of description logics (DLs) has been driven by the desire to push the expressivity bounds of these knowledge representation formalisms while still main- taining decidability and implementability. This has lead to very expressive DLs such as SH OIN, the logic underlying the Web Ontology Language OWL DL,SH OIQ, and more recentlySROIQ[1] which is the basis for the ongoing standardisation of OWL21 as the next version of the Web Ontology Language. On the other hand, more light-weight DLs for which most common reasoning problems can be implemented in (sub)polynomial time have also been sought, leading, e.g., to the tractable DLEL++

[2].

In this work, we continue these lines of research by introducing a new expressive feature – the concept product – to various well-known DLs, showing that this added expressivity does not increase worst-case complexities in any of these cases. Intuitively, the concept product allows us to define a role that connects every instance in one class with every instance in another class. An example is given in the title: Given the class of all elephants, and the class of all mice, we wish to specify a DL knowledge base that allows us to conclude that any individual elephant is bigger than any individual mouse, or, stated more formally:

∀(x).∀y.Elephant(x)∧Mouse(y)→biggerThan(x,y)

Using common DL syntax, one could also writeElephantI×MouseI⊆biggerThanI, which explains the name “concept product” and will also motivate our DL syntax.

1http://www.w3.org/2007/OWL

(2)

Maybe surprisingly, this semantic relationship cannot be specified in any but the most expressive DLs today. Using quantifiers, one can only state that any elephant is bigger than some mouse, or that elephants are bigger than nothing but mice. Nominals also allow us to state that some particular elephant is bigger than all mice, and with DL- safe rules [3], one might say that all named elephants are bigger than all named mice.

Yet, none of these formalisations captures the true intention of the informal statement.

Now one could hope that this kind of statement would be rarely needed in practical applications, but in fact it represents a very common modelling problem of relating two individuals based on their (inferred) properties. Natural and life sciences provide a wealth of typical examples, for example:

– Alkaline solutions neutralise acid solutions.

– Antihistamines alleviate allergies.

– Oppositely charged bodies attract each other.

Reasoning about such relations qualitatively is important for example in the context of the HALO project2, which sets out to develop reasoning systems for solving com- plex examination questions from physics, biology, and chemistry. Qualitative reasoning about a given scenario is often required before any concrete arithmetic processing steps can be invoked.

Another particularly interesting example is the task of developing a knowledge base capturing our current insights about DL complexities and available reasoning imple- mentations. It should entail statements like

– Any reasoner that can handleSH IQcan deal with every DLP-ontology.

– Any problem within ETcan be polynomially reduced to any ET-complete problem.

– In any description logic containing nominals, inverses and number restrictions, sat- isfiability checking is hard for any complexity below or equal ET.

All of those can easily be cast into concept products. An interesting aspect of reasoning about complexities is that it involves upper and lower bounds, and thus also escapes from most other modelling attempts (e.g. using classes instead of instances to repre- sent concrete DLs). This might be a reason that the DL complexity navigator3is based on JavaScript rather than on any of the more advanced DL knowledge representation technologies.

In this paper, we show that it is in fact not so difficult to extend a broad array of existing description logics with enough additional modelling power to capture all of the above, while still retaining their known upper complexity bounds. We start with the short preliminary Section 2 to recall the definition of the DLSROIQ, and then proceed by introducing the concept product formally in Section 3. Concept products there can indeed be simulated by existing constructs and thus are recognised as syntactic sugar.

This is quite different for the tractable DLEL++investigated in Section 4. Yet, we will see that polynomial reasoning inEL++with concept products is possible, thus further

2http://www.projecthalo.com/

3http://www.cs.man.ac.uk/~ezolin/dl/

(3)

pushing theELenvelope. In the subsequent Section 5, we show that SH OIQwith concept products is still NET-complete, thus obtaining tight complexity bounds for a very expressive DL as well. Finally, we establish a similar result forSH OIand ET-completeness in Section 6, and then provide an outlook on upcoming work in Section 7.

2 Preliminaries: the DL SROI Q

In this section, we recall the definition of the expressive description logicSROIQ[1].

We assume that the reader is familiar with description logics [4].

As usual, the DLs considered in this paper are based on three disjoint sets of indi- vidual namesNI, concept namesNC, and role namesNR containing the universal role U∈NR.

Definition 1. ASROIQRbox forNR is based on a set R of atomic roles defined as R ≔ NR∪ {R | R ∈ NR}, where we set Inv(R) ≔ Rand Inv(R) ≔ R to simplify notation. In the sequel, we will use the symbols R,S , possibly with subscripts, to denote atomic roles.

A generalised role inclusion axiom (RIA) is a statement of the form S1◦. . .◦SnR, and a set of such RIAs is a generalised role hierarchy. A role hierarchy is regular if there is a strict partial orderon R such that

– SR iff Inv(S )R, and – every RIA is of one of the forms:

R◦RR, RR, S1◦. . .◦SnR, R◦S1◦. . .◦SnR, S1◦. . .◦Sn◦R⊑R such that R∈NRis a (non-inverse) role name, and SiR for i=1, . . . ,n.

The set of simple roles for some role hierarchy is defined inductively as follows:

– If a role R occurs only on the right-hand-side of RIAs of the form SR such that S is simple, then R is also simple.

– The inverse of a simple role is simple.

A role assertion is a statement of the formRef(R) (reflexivity),Asy(S ) (asymmetry), or Dis(S,S) (role disjointness), where S and S are simple. ASROIQ Rbox is the union of a set of role assertions together and a role hierarchy. A SROIQ Rbox is regular if its role hierarchy is regular.

Definition 2. Given aSROIQRboxR, the set of concept expressions C is defined as follows:

NCC,⊤ ∈C,⊥ ∈C,

– if C,DC, RR, SR a simple role, a∈NI, and n a non-negative integer, then

¬C, C⊓D, CD,{a},∀R.C,∃R.C,∃S.Self,≤n S.C, and≥n S.C are also concept expressions.

(4)

Table 1. Semantics of concept constructors inSROIQfor an interpretationIwith domain∆I.

Name Syntax Semantics

inverse role R {hx,yi ∈I×∆I| hy,xi ∈RI} universal role UI×∆I

top ⊤ ∆I

bottom ⊥ ∅

negation ¬C ∆I\CI conjunction CD CIDI disjunction CD CIDI nominals {a} {aI}

univ. restriction ∀R.C {x∈∆I| hx,yi ∈RIimplies yCI}

exist. restriction ∃R.C {x∈∆I|for some y∈∆I,hx,yi ∈RIand yCI} Selfconcept ∃S.Self{x∈∆I| hx,xi ∈SI}

qualified number≤n S.C {x∈∆I|#{y∈∆I| hx,yi ∈SIand yCI} ≤n}

restriction ≥n S.C {x∈∆I|#{y∈∆I| hx,yi ∈SIand yCI} ≥n}

Throughout this paper, the symbols C, D will be used to denote concept expressions. A SROIQTbox is a set of general concept inclusion axioms (GCIs) of the form CD.

An individual assertion can have any of the following forms: C(a), R(a,b),¬R(a,b), a0b, with a,b∈NIindividual names, CC a concept expression, and R,SR roles with S simple. ASROIQAbox is a set of individual assertions.

ASROIQknowledge base KB is the union of a regular RboxR, and an AboxA and TboxT forR.

We further recall the semantics ofSROIQknowledge bases.

Definition 3. An interpretationIconsists of a setIcalled domain (the elements of it being called individuals) together with a function·Imapping

– individual names to elements ofI, – concept names to subsets ofI, and – role names to subsets ofI×∆I.

The function·Iis inductively extended to role and concept expressions as shown in Table 1. An interpretationIsatisfies an axiomϕif we find thatI |=ϕ:

I |=SR if SIRI,

I |= S1◦. . .◦SnR if SI1 ◦. . .◦SInRI(◦being overloaded to denote the standard composition of binary relations here),

I |=Ref(R) if RIis a reflexive relation,

I |=Asy(R) if RIis antisymmetric and irreflexive, I |=Dis(R,S ) if RIand SIare disjoint,

I |=CD if CIDI.

An interpretationIsatisfies a knowledge base KB (we then also say thatIis a model of KB and writeI |=KB) if it satisfies all axioms of KB. A knowledge base KB is satisfiable if it has a model. Two knowledge bases are equivalent if they have exactly the same models, and they are equisatisfiable if either both are unsatisfiable or both are satisfiable.

(5)

Further details onSROIQcan be found in [1]. We have omitted here several syntac- tic constructs that can be expressed indirectly, especially role assertions for transitivity, reflexivity of simple roles, and symmetry.

3 Simulating Concept Products in SROI Q

We now formally introduce the DL concept product as a new constructor in description logic knowledge bases. The DLSROIQextended with this constructor will be denoted SROIQ×. It will turn out that concept products appear as syntactic sugar inSROIQ× since they can be represented by combining nominals, inverse roles, and complex role inclusion axioms. On the other hand, the universal role is recognised as a special case of concept product, though, as we will discuss below, our simulation method imposes some additional restrictions on simplicity of roles.

Definition 4. A concept product inclusion is a statement of the form C×DR where C,DC areSROIQconcepts, and R is an atomicSROIQrole.

ASROIQ× Rbox is the union of aSROIQ Rbox with a set of concept product inclusions based on roles and concepts for that Rbox. Simplicity of roles is defined as inSROIQwhere concept product axioms are considered as additional kinds of RIAs.

Especially, any role R occuring in such a statement is not simple inSROIQ×.

ASROIQ×knowledge base KB is the union of aSROIQ×RboxR, and aSROIQ AboxAandSROIQTboxT (forR).

The model theoretic semantics ofSROIQis extended toSROIQ×by setting I |=C×DR iffCI×DIRI

for any interpretationI.

In the remainder of this section, we discuss some basic formal properties of the con- cept product. We immediately observe that×generalises the universal role, which can now be defined by the axiom⊤ × ⊤ ⊑U. However, our extension of the notion of sim- plicity of roles would then cause U to become non-simple, which is not needed. In fact, we conjecture that one can generally consider the concept product to have no impact on simplicity of roles, but our below approach of simulating concept products inSROIQ requires us to impose that restriction. We leave it to future work to conceive a modified tableau procedure forSROIQ×that directly takes the cross product into account – our subsequent results forSH OIQ×show that this extended version of simplicity does not impose any problems there.

We now find that×itself can be expressed by existing constructs ofSROIQ:

Lemma 5. Consider aSROIQ×knowledge base KB with some concept product axiom C×DR, and let KBbe the knowledge base obtained from KB as follows:

– delete the Rbox axiom C×DR,

– add a new RIA R1R2R, where R1, R2are fresh role names,

– introduce fresh nominal{a}, and add the Tbox axioms C ⊑ ∃R1.{a} and D

∃R2.{a}.

(6)

Then KB and KBare equisatisfiable.

Proof. First note that the introduced axioms are indeed admissible forSROIQ, and that regularity of the Rbox is not endangered.

Now we show that for any modelI = (∆II) of KB we can construct a model J=(∆JJ) of KBas follows:

J :=∆I,

– for all i∈NI\ {a}, let iJ :=iI

– let aJafor an arbitrary but fixedδa∈∆J – for all A∈NC, let AJ :=AI

– for all T ∈NR\ {R1,R2}, let RJ :=RI – let RJ1 =CI× {δo}

– let RJ2 =DI× {δo}

Then by construction, the new KB-axioms C ⊑ ∃R1.{a}and D ⊑ ∃R2.{a}are sat- isfied inJ. Next note that for all concept expressions E not containing R1, R2 or a, we have EI=EJwhich follows by an easy structural induction from the fact that the interpretation of the previously present roles, atomic concepts and individuals which coincides inIandJ.

Thereby we obtain that all Tbox axioms from KB∩KBare valid inJ. Moreover, the construction ofJand the validity of C×DR inItogether assure RJ1R2JAJ× ⊆RJtherefore also the newly introduced RIA R1R2R is satisfied inJ.

Finally, we observe that any modelIof KBis a model of KB: from C⊑ ∃R1.{a}

and D ⊑ ∃R2.{a}follows CI× {aI} ⊆ RI1 as well as DI× {aI} ⊆ RI2 the latter being equivalent to{aI} ×DIR2−I. Hence, we can conclude CI×DIRI1R2I. Now due to the RIA R1R2R being satisfied inIas well we know that RI1R2IRI, and can conclude CI×DIRI. Hence also the cross product inclusion C×DR is satisfied inI. All other axioms of KB are present in KBas well and therefore satisfied

anyway.

Clearly, the elimination step from the above lemma can be applied recursively to eliminate all concept products. A simple induction thus yields the following result:

Proposition 6. EverySROIQ×knowledge base can be reduced to an equisatisfiable SROIQknowledge base in polynomial time. In particular, satisfiability ofSROIQ× knowledge bases is decidable.

Decidability ofSROIQwas shown in [1]. Since SROIQis already NET- hard, this also suffices to conclude that the (currently unknown) worst-case complexities ofSROIQ×andSROIQcoincide.

4 Polynomial Reasoning with Concept Products in EL

++

In this section, we investigate the use of concepts products in the DLEL++ [2], for which many typical inference problems can be solved in polynomial time.EL++cannot

(7)

Table 2. Normal form transformation forEL++×. A, B, C, ˆA, ˆC, and D are concept expressions, where ˆA and ˆC are neither concept names nor nominals, and D is a fresh concept name. Ri, S , and T are role names, where T is fresh. Commutativity of⊓is assumed to simplify the rule set.

P1: R1◦. . .◦Rn−1RnS 7→ {R1◦. . .◦Rn−1T,TRnS} Aˆ×BR 7→ {Aˆ⊑D,D×BR}

A×Bˆ ⊑ R 7→ {Bˆ⊑D,A×DR}

BAˆ ⊑ C 7→ {Aˆ⊑D,DBC}

∃R.Aˆ ⊑ B 7→ {Aˆ⊑D,∃R.D⊑B}

⊥ ⊑ C 7→ ∅

P2: ABC 7→ {A⊑B,AC}

Aˆ ⊑ Cˆ 7→ {Aˆ⊑D,DC}ˆ A ⊑ ∃R.Cˆ 7→ {A⊑ ∃R.D,DC}ˆ A ⊑ ⊤ 7→ ∅

simulate concept products as it does support nominals and RIAs, but no inverse roles.

While it is known that the addition of inverses makes satisfiability checking ET- complete [5], we show that sound and complete reasoning with the concept product is still tractable. We simplify our presentation by omitting concrete domains fromEL++

– they are not affected by our extension and can be treated as shown in [2].

Definition 7. AnEL++×knowledge base KB is aSROIQ×knowledge base that con- tains only constructors⊤,⊥,⊓,∃R for some (non-inverse) role name R∈NR, and{a}

for some individual name a∈NI, possibly with a non-regular role box.

A polynomial algorithm for checking class subsumptions inEL++has been given in [2], and it was shown that other standard inference problems can easily be reduced to that problem. We now present a modified subsumption checking algorithm forEL++× – also using some modified notation – and show its correctness for this extended DL.

Without loss of generality, we assume that all Abox axioms inEL++×are expressed by equivalent Tbox axioms using nominals. We can further restrict our attention to EL++×knowledge bases in a certain normal form:

Definition 8. AnEL++×knowledge base KB is in normal form if it contains only ax- ioms of one of the following forms:

AC ABC RT A×BT

∃R.A ⊑ B A ⊑ ∃R.B RST

where A,B∈NC∪ {{a} |a∈NI} ∪ {⊤}, C∈NC∪ {{a} |a∈NI} ∪ {⊥}, and R,S,T ∈NR. Proposition 9. AnyEL++×knowledge base can be transformed into an equisatisfiable EL++×knowledge base in normal form. The transformation can be done in linear time.

Proof. The transformation is accomplished by the rules of Table 2, where each rule describes the replacement of some axiom by one or more alternative axioms. In a first step, the rules (P1) are applied exhaustively, and afterwards the rules (P2) are applied exhaustively to the knowledge base. We omit the easy proof as the result is very similar

to the normal form transformation given in [2].

(8)

Table 3. Completion rules for reasoning inEL++×. Symbols C, D, possibly with subscripts or primes, denote elements ofB, whereas E might be any element ofB ∪ {∃R.C|C∈ B}.

(R1) If DEKB and CD∈ SthenS≔S ∪ {C⊑E}.

(R2) If C1C2D∈KB and{C⊑C1,CC2} ⊆ SthenS≔S ∪ {C⊑D}.

(R3) If∃R.C⊑D∈KB and{C1⊑ ∃R.C2,C2C} ⊆ SthenS≔S ∪ {C1D}.

(R4) If{C⊑ ∃R.D,D⊑ ⊥} ⊆ SthenS≔S ∪ {C⊑ ⊥}.

(R5) If{C⊑ {a},D⊑ {a},DE} ⊆ Sand C{D thenS≔S ∪ {C⊑E}.

(R6) If RSKB and C⊑ ∃R.D∈ SthenS≔S ∪ {C⊑ ∃S.D}.

(R7) If RST ∈KB and{C1⊑ ∃R.C2,C2⊑ ∃S.C3} ⊆ SthenS≔S ∪ {C1⊑ ∃T.C3}.

(R8) If C×DRKB, DD∈ S, and C{DthenS≔S ∪ {C⊑ ∃R.D}.

It is easy to see that the above transformation to normal form does not change the relative subsumption hierarchy between classes in the original knowledge base. Hence, subsumption testing can equivalently be performed on the normalised knowledge base.

We now provide an algorithm that checks whether a subsumption AB between concept names is entailed by some normalisedEL++× knowledge base KB. As dis- cussed in [2], this is sufficient to solve arbitrary subsumption problems, and to de- cide knowledge base consistency and instance classification. The algorithm proceeds by computing a setSof inclusion axioms that are entailed by KB, and it turns out we only need to consider very simple axioms of the forms CD and C ⊑ ∃R.D, where C,D are elements of the setB≔NC∪ {{a} |a∈NI} ∪ {⊤,⊥}.

The setSis initialised by setting S ≔ {C ⊑ C | C ∈ B} ∪ {C ⊑ ⊤ | C ∈ B}.

The algorithm then proceeds by applying the rules in Table 3 until no possible rule application further modifies the setS. The rules refer to a binary relation{⊆ B × B that is defined based on the current content ofS. Namely, C {D holds whenever there are C1, . . . ,Ck∈ Bsuch that

– C1 is equal to one of the following: C,⊤,{a}(for some individual a ∈ NI), or A (where the subsumption AB is to be checked),

– Ci⊑ ∃R.Ci+1∈ Sfor some R∈NR(i=1, . . . ,k−1), and – Ck=D.

Intuitively, C { D states that D cannot be interpreted as the empty set if we assume that C contains some element. The option C1 =A reflects the fact that we can base our conclusions on the assumption that A is not equivalent to⊥either – if it is, the queried subsumption holds immediately, so we do not need to check this case.4

After terminating with the saturated setS, the algorithm confirms the subsumption AB iffone of the following conditions hold:

AB∈ S or A⊑ ⊥ ∈ S or {a} ⊑ ⊥ ∈ S(for some a∈NI) or ⊤ ⊑ ⊥ ∈ S.

We will show below that this algorithm is indeed correct, and that it runs in polyno- mial time.

4This case is actually missing in [2], and it indeed needs to be added to obtain a complete algorithm.

(9)

Lemma 10. The above algorithm for checking concept subsumption inEL++×termi- nates in polynomial time.

Proof. The setBclearly is linear in the size of the knowledge base, and there are only

|B| × |B| ×(1+|NR|) many possible elements inS. At least one such element is computed in each step, so that the algorithm terminates after polynomially many steps.

In addition, applicability of each rule can be decided in polynomial time. In partic- ular, the relation{can be computed in polynomially many steps.

Lemma 11. LetSbe the saturated set obtained by the subsumption checking algorithm for a normalisedEL++×knowledge base KB and some queried subsumption AB. If KB|=AB then one of the following holds:

AB∈ S or A⊑ ⊥ ∈ S or {a} ⊑ ⊥ ∈ S(for some a∈NI) or ⊤ ⊑ ⊥ ∈ S.

Proof. We show the contrapositive: if none of the given conditions hold, then there is a modelIfor KB within which the subsumption AB does not hold. The proof proceeds by constructing this model.

The domain∆IofIis chosen to contain only one characteristic individual for all classes of KB that are necessarily non-empty, factorised to take inferred equalities into account. To this end, we first define a set of concept expressionsB≔{C ∈ B |A{ C}. A binary relation∼onBthat will serve us to represent inferred equalities is defined as follows:

CD iff C=D or {C⊑ {a},D⊑ {a}} ⊆ Sfor some a∈NI.

We will see below that∼is an equivalence relation onB. Reflexivity and symmetry are obvious. For transitivity, we first show that elements related by∼are subject to the same assertions inS. Thus consider C,C∈ Bsuch that CC. We claim that, for all concept expressions E, we find that CE∈ Simplies CE∈ S(Claim∗). Assume C,Cand{C ⊑ {a},C⊑ {a}} ⊆ S– the other case is trivial. But by our definition of B, we find that C {C, and hence rule (R5) is applicable and establishes the required result.

This also yields transitivity of∼, since{C1 ⊑ {a},C2 ⊑ {a}} ⊆ Sand C2C3 implies C3 ⊑ {a} ∈ Sand thus C1C3. We use [C] to denote the equivalence class of C∈ Bw.r.t.∼.

These observations allow us to make the following definition ofI:

I≔{[C]|C∈ B},

– CI≔{[D]∈∆I|DC∈ S}for all C∈NC, – aI≔[{a}] for all a∈NI,

– RI≔{h[C],[D]i ∈I×∆I|C⊑ ∃R.D∈ S}for all R∈NR.

Note thatNI was assumed to be fixed and finite, and that{a} ∈ Bfor all a∈NI such that [{a}] is well-defined. Roles and concepts not involved inBorSare automatically interpreted as the empty set by the above definition. The definitions of CI and RIare well-defined due to (∗) above.

We can now observe the following desired correspondence betweenIandS: For any C,D∈ B, we find that [C]DIiffCD∈ S(Claim†). We distinguish various cases based on the structure of D:

(10)

– D = ⊥. We can conclude [C] < ⊥I and C ⊑ ⊥ < S by noting that, for any E ∈ Bwe have that E ⊑ ⊥ < S. To see that, suppose the contrary. By A { E there is a chain C1, . . . ,Ck∈ Bas in the definition of{such that Ck =E. Using Ck−1 ⊑ ∃R.E ∈ Sand rule (R4), we conclude that Ck−1 ⊑ ⊥ ∈ S. Applying this reasoning inductively, we obtain C1⊑ ⊥ ∈ S. But as C1is of the form A,{a}, or⊤, this contradicts our initial assumptions.

– D=⊤. By the initialisation ofS, C ⊑ ⊤ ∈ Sand also [C]∈ ⊤I. – D∈NC. This case follows directly from the definition ofI.

– D={a}for some a∈NI. If [C]∈ {a}Ithen [C]=[{a}], and hence C∼ {a}. Since {a} ⊑ {a} ∈ S, we obtain C ⊑ {a} ∈ Sfrom (∗).

Conversely, if C ⊑ {a} ∈ S, then C ∼ {a}and hence{[C]} = {[{a}]} = {a}Ias required.

It is easy to see thatI 6|= AB: since A ∈ B, we find that [A]AI due to AA ∈ Sby the initialisation of the algorithm. But since AB < S, we have that [A]<BIbased on (†).

Finally, it only remains to show thatIis indeed a model of KB. We argue that each axiom of KB is satisfied byIby considering the possible normal forms:

– DE with E∈ B ∪ {∃R.E|E∈ B}. If [C]∈DI, then CD∈ Sby (†) and thus rule (R1) can be applied to yield CE. If E ∈ B, the claim follows from (†). For E =∃R.E, we conclude that C {Eand thus E ∈ B. By definition of RI, we findh[C],[E]i ∈RI, and since EE∈ Swe can invoke (†) to obtain [E]∈E′I as required.

– C1C2D. This case is treated similar to the above case, using rule (R2) and treating only the (simpler) case where D∈ B.

∃R.D ⊑ E. If [C] ∈ ∃R.DI thenh[C],[D]i ∈ RI for some [D] ∈ DI. By the definition of RIand (∗), there is some D′′[D] such that C ⊑ ∃R.D′′∈ S. Since D′′∈ Band [D′′]=[D]∈DI, we can conclude D′′D∈ Sfrom (†). Thus rule (R3) implies that CE, and we obtain [C]EIby invoking (†).

– RS . Ifh[C],[D]i ∈RIthen there is C⊑ ∃R.D∈ Swith [D]=[D]. Rule (R6) thus entailed C ⊑ ∃S.D ∈ S, which yieldsh[C],[D]i ∈ SIagain by definition of SI.

– RST . This case is treated similar to the previous case, using rule (R7) instead of rule (R6).

– C×DR. If [C]∈CIand [D]∈DI, we conclude{CC,DD} ⊆ Sfrom (†). Since D∈ B, we have A{Dwhich clearly implies C{Dby definition of {. Hence rule (R8) was applied to yield C⊑ ∃R.D∈ Sand by rule (R1) we also obtain C⊑ ∃R.D∈ S. Nowh[C],[D]i ∈RIfollows directly from the definition of RI.

Lemma 12. LetSbe the saturated set obtained by the subsumption checking algorithm for a normalisedEL++×knowledge base KB and some queried subsumption AB.

Then, for each modelIof KB, one of the following holds:

– AI=∅, or

(11)

I |=S

Especially, if AB∈ S, A⊑ ⊥ ∈ S,{a} ⊑ ⊥ ∈ S(for some a∈ NI), or⊤ ⊑ ⊥ ∈ S, then KB|=AB.

Proof. First note that the second part of the statement indeed is a consequence of the first: all modelsIwith AI = ∅certainly satisfy AB, and all other models need to satisfy the detected axioms inS, which either shows the claim (if A ⊑B ∈ Sor A

⊥ ∈ S) or demonstrates that such models cannot exist (if{a} ⊑ ⊥ ∈ Sor⊤ ⊑ ⊥ ∈ S).

To show the first part of the claimed statement, consider any modelIof KB such that AI,∅. A simple induction on the processing steps of the algorithm shows that all elements ofSare satisfied byI. The base case is obvious, since all formulae C⊑C and C ⊑ ⊤are satisfied by any interpretation. for the induction step, assume thatSin the current stage of computation is such thatI |=S. We show that any rule of the algorithm only adds formulae toSthat are also satisfied byI:

– For rules (R1)–(R4), (R6), (R7) this is very easy to see. Indeed, any interpretation that satisfies the requirements of the respective rule applications clearly must also satisfy the resulting conclusions.

– For rules (R5) and (R8), we first show that C { D entails that CI , ∅ implies DI,∅. Indeed, if C{D then there is an according chain C1, . . . ,Ckwith Ck=D such that, for any i=1, . . . ,k−1,I |=Ci ⊑ ∃R.Ci+1for some R∈ NR. Hence, if C1I,∅then also DI,∅. The claim thus follows from the definition of{, together with our assumption that AI,∅.

Based on that observation, it is again easy to see that (R8) does yield sound results.

For (R5), note that the preconditions do indeed imply that C≡ {a}or C ≡ ⊥, and that the conclusion is satisfied in both cases.

This finishes the proof.

Combining the results of Proposition 9, Lemma 10, Lemma 11, and Lemma 12, we obtain the main result of this section, where the lower bound (hardness) follows from the known hardness ofEL++[2].

Theorem 13. The problem of checking concept subsumptions inEL++×is P-complete.

Finally, one might ask how concept products affect other reasoning tasks, such as conjunctive query answering inEL++×. As we have extended the originalEL++algo- rithm in a rather natural way, one would assume that related reasoning procedures for EL++ could similarly be extended. Indeed, we expect that the automata-based algo- rithm for conjunctive query answering that was presented in [6] can readily be modified to coverEL++×, so that the same complexity results for conjunctive querying could be obtained.

5 The Concept Product in SH OI Q

Below, we investigate the use of concept products inSH OIQ, the description logic un- derlying OWL DL. SinceSH OIQdoes not support generalised role inclusion axioms,

(12)

concept products can not be simulated by means of other axioms. Yet, we will see be- low that the addition of concept products does not increase the worst-case complexity of SH OIQwhich is still NETeven for binary encoding of numbers. Moreover, the proof shows that roles occurring in concept product inclusions can still be considered simple without impairing this result.

Definition 14. ASH OIQ× knowledge base KB is aSROIQ×knowledge base such that

– all Rbox axioms of KB are of the form SR, RRR, or C×DR for R∈NR a role name, SR an atomic role, and C,DC concept expressions,

– KB does not contain the universal role U or expressions of the form∃R.Self. Based on a fixed knowledge base KB, we defineas the smallest binary relation on R such that:

– RR for every atomic role R,

– RS and Inv(R)Inv(S ) for every Rbox axiom RS , and – RT whenever RS and ST .

Given an atomic role R, we writeTrans(R)KB as an abbreviation for: R◦RR∈KB or Inv(R)Inv(R)Inv(R)KB.

ASH OIQ×knowledge base can be further normalised. Firstly, whenever we find that R S and S R, the roles R and S are obviously interpreted identically in any model of KB. Hence in this case, one could syntactically substitute one of them by the other, which allows us to assume that all knowledge bases considered below have an acyclic Rbox (i.e., ⊑ is a partial order). Moreover, we assume that for all concept product inclusions A×BR, both A and B are atomic concepts. Obviously, this restriction does not affect expressivity, as complex concepts in such axioms can be moved into the Tbox.

Secondly, given a knowledge base KB, we obtain its negation normal formNNF(KB) by converting every Tbox concept into its negation normal form in the usual way:

NNF(¬⊤) ≔ ⊥ NNF(¬⊥) ≔ ⊤

NNF(C)C if C∈ {A,¬A,{a},¬{a},⊤,⊥}

NNF(¬¬C) ≔ NNF(C)

NNF(CD) ≔ NNF(C)⊓NNF(D) NNF(¬(C⊓D)) ≔ NNF(¬C)⊔NNF(¬D) NNF(CD) ≔ NNF(C)⊔NNF(D) NNF(¬(C⊔D)) ≔ NNF(¬C)⊓NNF(¬D) NNF(∀R.C) ≔ ∀R.NNF(C)

NNF(¬∀R.C) ≔ ∃R.NNF(¬C) NNF(∃R.C) ≔ ∃R.NNF(C) NNF(¬∃R.C) ≔ ∀R.NNF(¬C) NNF(≤n R.C) ≔ ≤n R.NNF(C) NNF(¬ ≤n R.C) ≔ ≥(n+1) R.NNF(C) NNF(≥n R.C) ≔ ≥n R.NNF(C) NNF(¬ ≥n R.C) ≔ ≤(n−1) R.NNF(C)

(13)

It is well-known that KB andNNF(KB) are semantically equivalent.

Slightly generalising according results from [3], we show that anySH OIQ×knowl- edge base can be transformed into an equisatisfiable knowledge base not containing transitivity statements.

Definition 15. Given aSH OIQ×knowledge base KB, letclos(KB) denote the smallest set of concept expressions where

NNF(¬C⊔D)∈clos(KB) for any Tbox axiom CD,

– D∈clos(KB) for every subexpression D of some concept C∈clos(KB), NNF(¬C)∈clos(KB) for any≤n R.C∈clos(KB),

∀S.C ∈clos(KB) wheneverTrans(S )KB and S R for a role R with∀R.C ∈ clos(KB).

Moreover, letΩ(KB) denote the knowledge base obtained from KB by – removing all transitivity axioms RRR and

– adding the axiom∀R.C ⊑ ∀S.(∀S.C) for every∀R.C ∈clos(KB) withTrans(S )KB and SR.

Proposition 16. KB andΩ(KB) are equisatisfiable.

Proof. Obviously we have that KB|=Ω(KB), hence every model of KB is a model of Ω(KB) as well.

For the other direction, letI=(∆II) be a model ofΩ(KB). Then we define a new interpretationJ=(∆JJ) as follows:

J :=∆I

– aJ :=aIfor every a∈NI – AJ :=AIfor every A∈NC

– RJ is set to the transitive closure of RIifTrans(R)KB, otherwise RJ :=RI∪ S

SR,S,RSJ

We now prove thatJis a model of KB by considering all axioms starting with the Rbox: Firstly, every transitivity axiom of KB is obviously fulfilled by definition ofJ.

Secondly, every role inclusion R1R2axiom is fulfilled: in case R2 is not transitive, this follows directly from the definition, otherwise we can conclude it from the fact that the transitive closure is a monotone operation w.r.t. set inclusion. Thirdly, we find that every cross product axiom A×BR is satisfied withinJ, as the construction ensures AJ =AIand BJ =BIas well as RIRJ.

We proceed by examining the concept expressions C ∈ clos(KB) and show via structural induction that CICJ. As base case, for every concept of the form{a},

¬{a}, A, or¬A for a∈NI resp. A∈NCthis claim follows directly from the definition of J. Note also that nominal concepts are correctly mapped to singleton sets. We proceed with the induction steps for all possible forms of a complex concept C (mark that all C∈clos(KB) are in negation normal form):

– Clearly, if DI1DJ1 and DI2DJ2 by induction hypothesis, we can directly con- clude (D1D2)I(D1D2)J as well as (D1D2)I(D1D2)J.

(14)

– Likewise, as we have RIRJ for all roles R and again DIDJ due to the induction hypothesis, we can conclude (∃R.D)I⊆(∃R.D)Jas well as (≥n R.D)I⊆ (≥n R.D)J.

– Now, consider a C=∀R.D and assumeδ∈(∀R.D)I. If there is noδwith (δ, δ)∈ RJ, thenδ∈ (∀R.D)Jis trivially true. Now assume there are suchδ. For each of them, we can distinguish two cases:

• (δ, δ)∈RJ, implyingδDIand, via the induction hypothesis,δDJ,

• (δ, δ)< RJ. Yet, by construction ofJ, this means that there is a role S with SR andTrans(S )∈KB and a sequenceδ=δ0, . . . , δnwith (δk, δk+1)∈ SIfor all 0 ≤k<n. By definition ofΩ, the knowledge baseΩ(KB) contains the axiom∀R.D ⊑ ∀S.(∀S.D), hence we have δ ∈ ∀S.(∀S.D) wherefrom a simple inductive argument ensuresδkDIfor allδkincludingδn. So we can conclude that for all suchδwe haveδDI. Via the induction hypoth- esis followsδ∈DJ and hence we can concludeδ∈(∀R.D)J.

– Finally, consider C=≤n R.D and assumeδ∈(≤n R.D)I. From the fact that R must be simple follows RJ =RI. Moreover, since both D andNNF(¬D) are contained inclos(KB) the induction hypothesis gives DJ = DI. Those two facts together directly implyδ∈(≤n R.D)I.

Now considering an arbitrary KB Tbox axiom CD, we find (NNF(¬C)⊔D)I=

Ias Iis a model of KB. Moreover – by the correspondence just shown – we have (NNF(¬C)⊔D)I ⊆(NNF(¬C)⊔D)Iand hence also (NNF(¬C)⊔D)J =∆J making CD an axiom satisfied inJ. This finishes the proof. ⊓⊔ Thus, we can reduce satisfiability checking inSH OIQ×to satisfiability checking inALCH OIQ×– the fragment ofSH OIQ× without transitivity axioms. Following the approach taken in [7], we can decide the latter problem by a reduction toC2, the two-variable fragment of first-order logic with counting quantifiers for which this prob- lem has been shown to be NET-complete, even for binary coding of numbers [8].

Intuitively,C2admits all formulae of function-free first-order logic that contain at most two variable symbols, and which may additionally use the counting quantifiers∃≤n,∃≥n, and∃=nfor any number n >0. Such quantifiers impose the obvious semantic restric- tions on the number of individuals satisfying the quantified formula. Moreover, binary equality≈can easily be defined from those constructs. For formal details, see [8].

We transformALCH OIQ×knowledge bases into C2 by means of the recursive functions in Table 4. The transformation is a modification of the standard DL to FOL transformation given e.g. in [3], where further explanations can be found. Omitting the standard proof thatπ(KB) is indeed equisatisfiable to KB (cf. [3]), we obtain the following result:

Theorem 17. The problem of checking knowledge base satisfiability forSH OIQ×is NET-complete, even for binary encoding of numbers.

Proof. Hardness follows from the according hardness result for SH OIQ [7]. The NET upper bound is obtained by applying the above polynomial reductions to transform aSH OIQ×knowledge base KB into an equisatisfiableALCH OIQ×knowl- edge baseπ(Ω(KB)), the satisfiability of which can be checked in NET(even for

binary encoding of numbers) according to [8].

(15)

Table 4. Transformation fromALCHOIQ×toC2. X is a meta-variable for representing various term symbols in the final translation. The transformationsπyare assumed to be analogous to the given transformations forπx.

π(C⊑D) ≔ ∀x.πy(¬C⊔D,x) π(R⊑S ) ≔ ∀x.∀y.(¬R(x,y)S (x,y)) π(C×DR) ≔ ∀x.∀y.(¬C(x)∨ ¬D(y)∨R(x,y))

π(KB) ≔ V

ϕ∈KBπ(ϕ) πx(⊤,X) ≔ ⊤ πx(⊥,X) ≔ ⊥

πx(A,X)A(X) for any concept name ANC πx({a},X)aX for any individual name aNI πx(¬C,X) ≔ ¬πx(C,X)

πx(CD,X) ≔ πx(C,X)∧πx(D,X) πx(CD,X) ≔ πx(C,X)∨πx(D,X)

πx(∀R.C,X) ≔ ∀x.(R(X,x)→πy(C,x)) πx(∃R.C,X) ≔ ∃x.(R(X,x)∧πy(C,x)) πx(≥n R.C,X) ≔ ∃≥nx.(R(X,x)∧πy(C,x)) πx(≤n R.C,X) ≔ ∃≤nx.(R(X,x)→πy(C,x))

6 The Concept Product in SH OI

Following the common nomenclature, letSH OI×denote the description logic obtained fromSH OIQ×by disallowing all kinds of number restrictions. It is well-known that deciding satisfiability ofSH OIknowledge bases is ET-complete [9], and we will show that this worst case complexity is not increased when adding concept products.

As was shown by Property 16, transitivity axioms can be eliminated fromSH OIQ× knowledge bases without affecting satisfiability. Obviously, if applied to a SH OI× knowledge base, the result of this transformation would be in ALCH OI×. In this section, we provide a way of further reducing anALCH OI×knowledge base to an equisatisfiableALCH OIknowledge base in polynomial time.

In addition to the standard negation normal form, we now require another normal- isation step that simplifies the structure of KB by flattening it to a knowledge base FLAT(KB). This is achieved by transforming KB into negation normal form and ex- haustively applying the following transformation rules:

– Select an outermost occurrence of Q R.D in KB, such that Q ∈ {∃,∀}and D is a non-atomic concept.

– Substitute this occurrence with Q R.F where F is a fresh concept name (i.e. one not occurring in the knowledge base).

– Add¬F⊔D to the knowledge base.

Obviously, this procedure terminates yielding a flat knowledge baseFLAT(KB) all Tbox axioms of which are Boolean expressions over formulae of the form⊤,⊥, A,¬A, or Q R.A with A an atomic concept name. Obviously, the flattening can be carried out in polynomial time.

Proposition 18. AnyALCH OI×knowledge base KB is equisatisfiable toFLAT(KB).

(16)

Proof. We first prove inductively that every model of FLAT(KB) is a model of KB.

Let KBbe an intermediate knowledge base and let KB′′be the result of applying one single substitution step to KBas described in the above procedure. We now show that any modelIof KB′′is a model of KB. Let Q R.D be the term substituted in KB. Note that after every substitution step, the knowledge base is still in negation normal form.

Thus, we see that Q R.D occurs outside the scope of any negation or quantifier in an KB-axiom E, the same is the case for Q R.F in the respective KB′′-axiom E′′obtained after the substitution. Hence, if we show that ( Q R.F)I ⊆ ( Q R.D)I, we can conclude that E′′IE′I. FromIbeing a model of KB′′and therefore E′′I=∆I, we would then easily derive that E′I=∆Iand hence find thatI |=KB, as all other axioms from KB are trivially satisfied due to their presence in KB′′.

It remains to show ( Q R.F)I⊆( Q R.D)I. We distinguish two cases:

Q =∃

Consider aδ ∈(∃R.F)I. Then exists an individualδ ∈ ∆Iwithhδ, δi ∈ RIand δFI. As a consequence of the KB′′axiom¬F⊔D (being equivalent to the GCI FD), we find thatδDIas well, leading straightforwardly to the conclusion δ∈(∃R.D)I. Hence we have (∃R.F)I⊆(∃R.D)I.

Q =∀

Consider aδ∈(∀R.F)I. This implies for every individualδ∈∆Iwithhδ, δi ∈RI thatδFI. Again, the KB′′ axiom¬F⊔D entailsδDIfor every such δ, leading toδ∈(∀R.D)I. Hence, we have (∀R.F)I⊆(∀R.D)I.

Every modelIof KB can be transformed into a modelJofFLAT(KB) by following the flattening process described above: Let KB′′result from KBby substituting Q R.D by Q R.F and adding the respective axiom. Furthermore, letIbe a model of KB. Now we construct the interpretationI′′as follows: FI′′ ≔( Q R.D)Iand for all other concept and role names N we set NI′′NI. ThenI′′is a model of KB′′. Lemma 19. Consider a flattened ALCH OI× knowledge base KB. Let C×DR with C,D ∈ NC be some concept product axiom contained in KB and let KB be the knowledge base obtained from KB as follows:

– delete the Rbox axiom C×DR,

– add C ⊑ ∃S1.{o}and D⊑ ∃S2.{o}where S1,S2 are fresh roles and o is a fresh individual name

– for every role T with RT (including R itself)

substitute any occurrence of∃T.A by∃T.A⊔ ∃S1.∃S2.A

substitute any occurrence of∀T.A by∀T.A⊓ ∀S1.∀S2.A Then, KB and KBare equisatisfiable.

Proof. To show equisatisfiability, we prove, that any modelIof KB can be converted into a modelJof KBand vice versa.

First, letI=(∆II) be a model of KB. We define the interpretationJ=(∆JJ) by choosing an arbitrary but fixedδo∈∆Iand setting

J :=∆I,

(17)

– for all i∈NI\ {o}, let iJ :=iI – let oJo

– for all B∈NC, let BJ :=BI

– for all T ∈NR\ {S1,S2}, let TJ:=TI – let SJ1 =CI× {δo}

– let SJ2 =DI× {δo}

We now show thatJis indeed a model of KB. Clearly, the new axioms C⊑ ∃S1.{o}

and D ⊑ ∃S2.{o}are obviously fulfilled. Now note that the construction ofJ and the KB-Axiom C×DR assure SJ1S2JRJ. Therefore, we have (∃S1.∃S2.A)J ⊆ (∃R.A)Jimplying (∃R.A⊔∃S1.∃S2.A)J =(∃R.A)J∪(∃S1.∃S2.A)J =(∃R.A)J, hence the KB-axiom containing∃R.A⊔ ∃S1.∃S2.A is satisfied inJdue to theI-validity of the corresponding KB-axiom containing just∃R.A instead.

Furthermore, we have (∀R.A)J⊆(∀S1.∀S2.A)Jimplying (∀R.A⊓ ∀S1.∀S2.A)J= (∀R.A)J∩(∀S1.∀S2.A)J =(∀R.A)J, so the same argumentation applies.

Second, assumeJ =(∆JJ) is a model of KB. Then let the interpretationI= (∆II) be defined by:

I:=∆J,

– for all i∈NI, let iI:=iJ – for all B∈NC, let BI:=BJ

– for every T∈NR, if RT , let TI:=TJ(SJ1S2J), otherwise TI:=TJ It remains to show thatIis a model of KB. Obviously, all role inclusion statements from KB (coinciding with those from KB) are valid inIensured by the construction.

Moreover, note that the axiom C ⊑ ∃S1.{o}enforces CJ × {oJ} ⊆ SJ1, likewise C

∃S1.{o}ensures{oJ} ×DJS2J. This allows to conclude CI×DI =CJ×DJSJ1S2J. Now we see that by construction, the KB-axiom C×DR is satisfied inI.

As to the Tbox axioms, we inductively show for every concept expression E occur- ring in KB and the respective (possibly substituted) KB-concept expression E, that we have E′J = EI. Clearly, this entails for every KB-Tbox axiom Fthat the respective F is satisfied inIdue to∆I = ∆J = F′J = FI. For the base case, note that due to the construction ofI, all atomic concepts and nominals as well as their negations have the same extensions inJ andI. For the induction step, we find for all roles T with R 6⊑ T that (∃T.A)J = (∃T.A)Iand (∀T.A)J =(∀T.A)Idue to AJ = AIas well as TJ =TI. In the case RT , we would have TI=TJ(SJ1S2J) which then yields us (∃T.A⊔ ∃S1.∃S2.A)J =(∃T.A)Ias well as (∀T.A⊓ ∀S1.∀S2.A)J =(∀T.A)I. Fi- nally, invoking the induction hypothesis for concepts C1,C2, the claim trivially carries

over to C1C2and C1C2.

Like forSROIQ×, the elimination step from the above lemma can be applied it- eratively to eliminate all concept products. Note that having a flat knowledge base is essential to ensure that the reduction can be done in polynomial time and space. So, a simple induction yields the following result:

Proposition 20. EveryALCH OI×knowledge base can be reduced to an equisatisfi- ableALCH OIknowledge base in polynomial time.

Referenzen

ÄHNLICHE DOKUMENTE

Use also the facts that R with the usual topology is second countable and that every family of pairwise disjoint nonempty open sets must be countable.)7. Let (X, τ ) be the

some aspects of the decision processes respon- sible for the observed movements can be alluded Dead Reckoning to by examining the extent to which penguins For really fine

register. It will increment the incoming pointers in the pointer RAM and the count in the proper location in the counter RAM. The proper queue in.. The

Fachbereich Mathematik und

Fachbereich Mathematik und

What

der Universit at M unchen Set

The game Geography is played by two players on a directed graph G = (V, E) with a distin- guished starting position u. The first player starts at