• Aucun résultat trouvé

A Tableaux-based Method for Computing Least Common Subsumers for Expressive Description Logics

N/A
N/A
Protected

Academic year: 2022

Partager "A Tableaux-based Method for Computing Least Common Subsumers for Expressive Description Logics"

Copied!
13
0
0

Texte intégral

(1)

A Tableaux-based Method for Computing Least Common Subsumers for Expressive Description Logics

?

Francesco M. Donini2, Simona Colucci1, Tommaso Di Noia1, and Eugenio Di Sciascio1

1 SisInfLab–Politecnico di Bari, Bari, Italy

2 Universit`a della Tuscia, Viterbo, Italy

1 Motivation

Least Common Subsumers (LCSs) in Description Logics (DLs) have been introduced by Cohen and Hirsh [2] to denote the most specific concept descriptions subsuming all of the elements of a given collection of concepts.

Since its introduction, LCS has been usefully exploited in several application fields where the search for commonalities in a collection is needed, despite the complexity of its computation even for inexpressive DLs. In fact, Baader et al.[3] investigated LCS computation inEL,FLE andALE, showing how the complexity of the related problem arises to exponential size even for the small DLEL, and can neither be reduced by introducing TBoxes to shorten possible repetitions [4]. So far, the most expressive investigated DL isALEN, for which a double exponential time algorithm has been proposed [5].

Our contribution introduces a novel general tableau-based calculus for computing LCS with reference to a DL more expressive thanALEN, namelyALEHINR+. The approach uses substitutions on concept terms containing concept variables.

Several application fields may take advantage from the enrichment of representa- tion expressiveness related to LCS computational problem. For example, Lutzet al.[6]

recently underlined the need to have LCS available also for the more expressive lan- guages currently used in ontology design, one of the best known applications of LCS [7–9]. LCS has been also used in semantic-based information retrieval, for the definition of measures for concept similarity [10, 11].

Hacidet al.[12] studied the use of LCS for defining and computing the best cover- ing. Such a computation approach has been applied to semantic Web services discovery and composition [13] and, more recently, to the composition of learning resources [14].

LCS was also employed for schema extraction from semistructured data [15].

A further application field is in inductive learning algorithms, to find a least general concept consistent with a set of positive example, used as basis for learning [16]. Fi- nally, Colucciet al.[17] used the LCS to evaluate the Core Competence of a company, in the context of DL-based Knowledge Management, modeled through an ontology in ELHN, and introduced variants of LCS needed in that context.

?This paper is a reduced version of the one[1] accepted for publication at the Twenty-first In- ternational Joint Conference on Artificial Intelligence (IJCAI-09)

(2)

The variety of approaches recalled so far witnesses the importance of LCS compu- tation in knowledge representation and reasoning literature, justifies the need for LCS in expressive DLs, and motivates our contribution.

The rest of the paper is organized as follows: in the next section we introduce the DL used in the paper . We then present a novel generalized definition of LCS in Section 3. Based on such definition and on the tableux rules for ALEHINR+ presented in Section 4, we propose a tableaux-based method for LCS computation in Section 5.

Conclusions and future research directions close the paper.

2 The Language ALEHIN

R+

To show the generality of our calculus, we choose the DL ALEHINR+, which is SHIN without constructs that introduce concept disjunction, namely,tand¬. In lan- guages including disjunction, the simplest LCS would be justC1tC2—or equivalently,

¬(¬C1u ¬C2)with full negation—making the LCS problem trivial.

LetNrbe a set of role names. A general roleRcan be either a role nameP Nr, or its inverseP. We admit a set ofrole axioms, formed by: (1) arole hierarchyH, which is a set of role inclusions of the form R1 v R2, and (2) a set of transitivity axioms for roles, denoted bytrans(R). We denote byvthe transitive closure ofH ∪ {Rv S |S v R ∈ H}. A roleS issimpleif it is not transitive, and for noRsuch that RvS,Ris transitive.

In the following syntax for concepts, letA be any concept name in a set Nc of concept names, letRbe a general role, andSbe a simple role.

At−→ > | ⊥ |A| ¬A|(>n S)|(6n S) (1) C−→At|C1uC2| ∃R.C1| ∀R.C1 (2) We call Atanatomic concept, whileC simplyconcept. We consider(6R0)as an abbreviation of∀R.⊥. We extend the inverse role constructor to general roles by letting R = P ifR = P, andR = P if R = P. Moreover, we denote by ∼C the negation normal formof¬C(see [18, Ch.2] for a definition).

We denote byCvDsubsumption between two conceptsCandD, and byC@D we meanstrictsubsumption. Moreover, we make use of the following property.

Proposition 1. For every four conceptsC1,C2,D1, andD2: ifC1 vD1andC2 v D2, thenC1uC2vD1uD2.

As for concept axioms, we do not consider General Concept Inclusions (GCI) in this paper, since Baaderet al.[19] showed that even for the simple DLALELCS may not exist, when GCIs interpreted with descriptive semantics are used. We could admit simpleconcept inclusions—e.g., acyclic definitions of concept names—but since they do not add expressivity to the language, for sake of simplicity we do not consider them.

Regarding Qualified Number Restrictions (Q), observe that(60P.(∼C1u ∼C2))

∀P.(C1tC2). Hence, qualified at-most number restrictions would implicitly introduce tin concepts—although inside quantifications—so we want to exclude them. Since in DLs the at-most restriction comes always paired with the at-least restriction, we exclude them both, only for uniformity.

(3)

3 A logical definition of the LCS

In this section we denote byDLa generic Description Logic.

Definition 1 (LCS as a set).LetC1, C2∈ DLbe two concepts. ByLCS(C1, C2)we mean a set of equivalent concepts inDL, such that for everyL∈LCS(C1, C2), (a)L is a common subsumer ofC1andC2—in formulas,C1 v L, C2 vL—and (b) there does not existD∈ DLsuch thatC1vD, C2vDandD@L.

In order to write a second-order formula defining LCS, we need an alphabet Nx = {X0, X1, X2, . . .}of concept variables, which we can quantify over.

Theorem 1. L∈LCS(C1, C2)iffC1vL, C2vL, and the formula below is false:

∃X.{X ∈ DL, C1vX, C2vX, X@L} (3) where commas in (3) denote conjunction. The proof is straightforward, since (3) is just a formal rewriting of (b)in Def.1. Observe that (3) does not belong to the Monadic Second-Order fragment proved decidable by Rabin [20], since the formulaX ∈ DL, if explicitly defined, would force to write a least fixpoint to logically defineDL. We prefer instead to keep X ∈ DL as a constraint on the possible assignments for X, which restricts the possible substitutions forXto be defined later on. Intuitively, we are usinggeneral semantics[21] for interpretingX.

To introduce a more computation-oriented version of (3), we define thedecoration of a concept. Intuitively, given a conceptL, we put a new concept variable in con- junction with the filler of every universal and existential role quantification inL, plus one concept variable in the outermost level ofL. Since we would like to have all vari- ables consecutively numbered, starting at 0, we define the decoration in Algorithm 1 by means of a recursive procedure, plus a global counterithat keeps track of the last index used in whatever recursive call. Although maybe not mathematically elegant, we believe that Algorithm 1 presents this idea in the most precise and intuitive way.

Definition 2. LetCbe a concept inDL, andNxbe an alphabet of concept variables.

We denote byCXthedecorationofC, defined by Algorithm 1.

Algorithm 1: Decoration of a conceptC inputconceptC∈ ALEHINR+; vari := 0;

returnCX .

=X0udec(C);

functiondec(C) caseCis of the form

atomic:returnC

C1uC2:returndec(C1)udec(C2)

∃R.C1: i := i+1;return∃R.(Xiudec(C1))

∀R.C1: i := i+1;return∀R.(Xiudec(C1)) end function

(4)

For example, ifCis the conceptAu ∃P.(>2Q)u ∀P.∀Q.B, thenCX =AuX0u

∃P.(X1u(>2Q))u ∀P.(X2u ∀Q.(X3uB)). Note thatCXis a (particular)concept term [22],i.e., a concept formed according to the rules in (1) and (2), with the addi- tion to (1) of the ruleAt −→ X, for everyX inNx. Our decorations are particular concept terms, in that every variable occurs only once in the term, and—by inspecting Algorithm 1—one can verify that variables are one-one with quantifications, plus the outermost variable. Observe that we donot count number restrictions as quantifiers, although their logical definition would contain a quantifier.

Definition 3 (Substitutions).Asubstitutionσis a set of pairs{Xi1 7→Di1, . . . , Xik 7→

Dik}, where indexesi1, . . . , ikare all different, and for everyj= 1, . . . , keachXij is a concept variable and eachDij is a concept term. A substitution isgroundif noDij

contains any variables,i.e.,Dij ∈ DLfor everyj= 1, . . . , k.

For a decorated conceptCX, we inductively defineσ(CX)asσ(Xi) =Di,σ(¬Xi) =

∼Di,σ(C) =CifCis atomic,σ(C1uC2) =σ(C1)uσ(C2),σ(∃R.C) =∃R.σ(C), σ(∀R.C) =∀R.σ(C).

Thecardinalityof a substitution is its cardinality as a set.

Let σ>,n denote the substitution {Xi 7→ >}i=0,...,n; since variables in decorations

appear always in some conjunction, then for every concept C ∈ DL containing n quantifications,σ>,n(CX)≡C.

We also needrenamingof variables, as bijective functions on the indices of vari- ables. We denote a renaming byρ. A variable renaming can also be applied to a sub- stitution,ρ(σ), meaning that the index of each variable changes according toρ;e.g., ifσ = {X0 7→ A, X1 7→ B}, andρis the renaming{0 7→ 1,1 7→ 2}, thenρ(σ) = {X17→A, X27→B}.

We can now reformulate Thm.1 (forDL=ALEHINR+) in a way that leads to a direct computational method.

Theorem 2. LetC1, C2, L∈ ALEHINR+. ThenL∈LCS(C1, C2)iffC1vL, C2v L, and the formula below is false:

∃σ{σis ground, C1vσ(LX), C2vσ(LX), L6vσ(LX)} (4) Proof. Since Thm.1 has the same premises of Thm.2, the latter amounts to an equiva- lence between formulas (3) and (4), which we prove below. Let0, . . . , nbe the indexes of concept variables inLX.

(3)⇒(4) If (3) holds, then there is a conceptL0 ∈ DLsuch that all three conditions:

C1 v L0, C2 v L0, and L0 @ L hold. Then let σ be the substitution {X0 7→

L0} ∪ {Xi 7→ >}i=1,...,n. ApplyingσtoLX we obtainL0>,n(dec(L)), which is equivalent to L0 sinceσ>,n(dec(L)) L andL0 @ L. Since all conditions for σ(LX)hold, the claim follows.

(4)⇒(3) If (4) holds, then we useσ(LX)as a witness for∃X in (3), proving all four conditions of (3). First condition is met because σ(LX) ∈ DL since σ is ground.

Second and third conditions hold by hypothesis. Regarding fourth condition (proving σ(LX)@L), we prove subsumption separately (to ease readability) in Lemma 1 below, while fourth condition in (4) implies that subsumption holds strictly.

(5)

Lemma 1. For every given conceptC∈ ALEHINR+, and every ground substitution σ, it holdsσ(CX)vC.

Proof. By induction on the structure ofC. Base cases: whenCis atomic (no structure), CX =X0uCcontains just one concept variable. Thenσ(X0uC) =σ(X0)uC= D0uCvCby definition ofu, whateverD0, and hence for everyσ.

Inductive cases: we now show that the claim holds for∃R.C1, given that it holds for C1which is structurally simpler. SupposeC1hasn≥0quantifiers, hence(C1)X has n+ 1variablesX0, . . . , Xn. Observe that by lettingρ={i7→i+ 1}i=0,...,n, it holds (∃R.C1)X =X0u ∃R.ρ((C1)X), where the renaming is necessary because in(C1)X

variables are numbered from 0. Observe that ρis a bijection, hence its inverse ρ−1 is well defined. Then, for every substitutionσovern+ 2variables,σ((∃R.C1)X) = σ(X0)u ∃R.σ(ρ((C1)X)). Letσ0beσwithoutX07→D0, and letσ1=ρ−10). Then σ(ρ((C1)X)) =σ1((C1)X), which is subsumed byC1by inductive hypothesis. Hence

∃R.σ(ρ((C1)X))v ∃R.C1, and the subsumption holds also if (whatever concept)D0

is conjoined on the left-hand side. Since we made no restrictions onσ, for everyσthe claimσ((∃R.C1)X)v ∃R.C1holds. A similar proof can be laid out for∀R.C1.

RegardingC1uC2, the inductive hypothesis is that the claim holds forC1 and C2 separately, which are both structurally simpler. Again, suppose that both C1 and C2 have at mostm, n 0 quantifiers, respectively, and let ρbe now the renaming {i7→ i+m}i≥1. For this renaming,(C1uC2)X (C1)Xuρ((C2)X), whereboth decorations introduce a variableX0(whichρdoes not rename, since it applies toi≥1), and equivalence holds since for every ground substitutionσ,σ(X0uX0) ≡σ(X0).

Then, for everyσonm+n+ 1variables,σ((C1uC2)X)≡σ1((C1)X)2((C2)X), whereσ1is justσrestricted to the firstm+ 1variables, whileσ2is built as follows:

letσ0 beσrestricted to the lastnvariables; letρ0 ={i+m 7→i}i=m+1,...,n. Then, σ2 = {X0 7→ D0} ∪ρ00). By inductive hypothesis, bothσ1((C1)X) v C1 and σ2((C2)X)vC2hold. By Prop.1, the claim is obtained.

Observe that Thm. 2 refers toALEHINR+ only because both Algorithm 1 and Lemma 1 refer toALEHINR+.

4 Tableaux Rules for ALEHIN

R+

We first give an intuition of the way our calculus proceeds. To prove or disprove For- mula (4), we expand three tableaux, one for each of the three conditions:T1forC1v LX,T2 for C2 v LX, andT3 for L 6v LX. The tableaux are first expanded using tableaux rules (T-rules), treating concept variables as concept names. Then, by using substitution rules (S-rules), we try to find a substitutionσ satisfying (4),i.e., closing T1andT2 and leavingT3open. The substitution might make applicable some other T-rule, and so on, till no rule is applicable. If all branches of T1 andT2 close, and at least one branch ofT3is open, we found a substitutionσvalidating (4), otherwise, we prove that no suchσexist, disproving (4). We warn the reader that the calculus we present in this section doesnotcompute an LCS; it just tries to prove Formula (4), by exhibiting a common subsumer ofC1, C2which is “better” thanL. In the next section, we use such a calculus to incrementally compute a finite LCS (if one exists).

(6)

Rules for constructing tableaux inALEHINR+ (Fig. 1) are a subset of the ones forSHIQ, and have been proved [23] sound and complete. We summarize them here for sake of completeness, remarking that we just inherit them from past research. Any inaccuracy is due to our rephrasing. In such rules, blocking ispair-wiseblocking as de- fined by,e.g., Tobies [23, p.125]; our only addition is that concept variables are treated as concept names for what regards blocking.

We recall that an individualyis anS-successorofxinLi, (fori= 1,2,3) if for some roleR, bothR∈ Li(x, y)andR v S. Conversely,yis anS-predecessorofx ifxis anS-successor ofy. An individualyis anR-neighborofxif eithery is anR- successor ofx, orxis anR-successor ofy. The definitions of successor, predecessor, and neighbor allow us to treat roles and inverse roles in a uniform way, both in T-rules (Fig. 1) and in subsequent S-rules (Fig. 2).

All rules are applicable only ifxisnot blocked. For eachi= 1,2,3,Liis a branch inTi. u-rule :ifCuD∈ Li(x),thenadd bothCandDtoLi(x)

t-rule :ifCtD∈ Li(x),thenadd eitherCorDtoLi(x)

∃-rule :if∃R.C ∈ Li(x), andxhas noR-successorywithC ∈ Li(y),thenpick up a new individualy, addRtoL(x, y), and letLi(y) :={C}

∀-rule :if∀R.C∈ Li(x), and there exists an individualysuch thatyis anR-successor ofx, thenaddCtoLi(y).

+-rule :if∀S.C∈ Li(x), withtrans(R)andRvS, there exists an individualysuch that yis anR-successor ofx, and∀R.C6∈ Li(y),thenadd∀R.CtoLi(y)

>-rule :if(>n S)∈ Li(x), andxhas notn S-neighborsy1, . . . , ynwithy`6=yjfor1≤` <

j≤n,thencreatennew successorsy1, . . . , ynofxwithLi(x, y`) ={S}, andy`6=yj, for1≤` < j≤n

6-rule :if(6n S)∈ Li(x)withn≥1, and there are more thann S-neighbors ofx, and there are twoS-neighboursy, zofx,yis anS-successor ofx, and noty6=zthen(1) addLi(y) toLi(z), (2) for everyR∈ Li(x, y)ifzis a predecessor ofxthen addRtoLi(z, x)else addRtoLi(x, z), (3) letLi(x, y) =∅, and (4) for alluwithu6=y, setu6=z

Fig. 1.Tableaux rules (T-rules) forALEHINR+(rephrased from Tobies [23, p.128])

Differently from Tobies [23], we say that T-rules construct abranchL, while we calltableauthe set of all different branches that can be constructed applying T-rules.

Branches are different because of the nondeterminism present int-rule and6-rule (we ignore differences due to possible renaming of new individuals in>-rule). A branchL isclosed if for some individualx, either (a)⊥ ∈ L(x), or (b) {A,¬A} ⊆ L(x)for someA∈Nc, or (c)(6n R)∈ L(x)and there aren+ 1R-neighborsy1, . . . , yn+1of xsuch thatyi 6=yj ∈ Lfor1 ≤i < j ≤n+ 1. A branch isT-completeif no T-rule is applicable. A tableaux isclosedif all its T-complete branches are closed, it isopenif there exists at least one T-complete branch which is not closed.

We are now able to present our original part of this section, namely,substitution rules (S-rules) dealing with concept variables, in Fig. 2. There is a substitution rule for every syntax rule in (1)–(2), except conjunction. This is because substituting, say,

(7)

X17→X2uX3, and repeatedlyX27→X4uX5, etc., would yieldinfinite branchingin our substitution calculus, which should be carefully dealt with by some restrictions on substitution applications. Instead, we prefer to deal with conjunctions in an incremental fashion, as explained in the next section.

Our tableaux contain concept variables; we denote byσ(T)the application of the substitutionσto every concept in every constraint ofT. Since we operate on asystemof three tableaux, we denote it globally ashT1,T2,T3i. For such a system,σhT1,T2,T3i denotes hσ(T1), σ(T2), σ(T3)i. When both a T-rule and an S-rule is applicable to hT1,T2,T3i,T-rules have always precedence over S-rules.

All rules are applicable only ifL ∈T1T2,Lisopen, and the substitution isnotσ-blocked.

Rules above the separating line have precedence over rules below it.

σ>-rule :if¬X∈ L(x),thenapplyσ={X7→ >}tohT1,T2,T3i

σN-rule :if{¬X, A} ⊆ L(x)for someA∈Nc,thenapplyσ={X7→A}tohT1,T2,T3i σ¬N-rule :if {¬X,¬A} ∈ L(x) for someA Nc, then applyσ = {X 7→ ¬A}, to

hT1,T2,T3i

σ>-rule :if¬X ∈ L(x)and there are exactlyn R-neighbors ofx,thenapplyσ ={X 7→

(>m S)}, wheremis between 0 andn, andRvS

σ6-rule :if{¬X,(6n S)} ⊆ L(x),thenapplyσ ={X 7→(6n R)}tohT1,T2,T3i, for some roleRsuch thatRvS

.

σ∀-rule :if{¬X,∀S.C} ⊆ L(x),thenapplyσ={X 7→ ∀R.Y}tohT1,T2,T3i, whereY denotes a concept variable not appearing inhT1,T2,T3i, andRvS

σ∃-rule :if{¬X,∃R.C} ⊆ L(x),thenapplyσ={X 7→ ∃S.Y}tohT1,T2,T3i, whereY denotes a concept variable not appearing inhT1,T2,T3i, andRvS

Fig. 2.Substitution rules (S-rules) forALEHINR+

When the application of a rule tohT1,T2,T3iyieldshT01,T02,T03i, we say that hT01,T02,T03i directly derives fromhT1,T2,T3i. Then derives is just the transitive closure of “directly derives”. In what follows, we assume that T- and S-rules are applied to three tableaux that always start as follows:

T1={L1(a) ={C1,∼(LX)}} (5) T2={L2(a) ={C2,∼(LX)}} (6) T3={L3(a) ={L,∼(LX)}} (7) For such tableaux, the following properties can be isolated.

Lemma 2. LethT1,T2,T3istart as above. Then, (1) every concept variable occurs al- ways with a negation in front in every constraint of every tableaux; (2) every T-complete branchLiof everyTicontains at most one concept variableXsuch that¬X ∈ Li(x), for some individualx.

Proof.Property (1) can be proved by induction on T- and S-rule applications. Base: in the initial tableaux (5)–(7), concept variables appear only in(LX), and since variables

(8)

occur positively in LX, negation normal form puts a “¬” in front of every variable.

Induction: suppose the claim holds forhT1,T2,T3i. By inspection, T-rules never in- troduce nor delete negations in concepts, so the claim holds also after a T-rule has been applied. S-rules which introduce new concept variables (σ∀andσ∃) apply a substitu- tionX7→D(whereDis either∀R.Y or∃S.Y) to an existing negated variable¬X(by induction hypothesis). By Def.3,¬Xis substituted with∼D, so also newly introduced concept variables satisfy the claim.

We now turn to prove (2). At start, concept variables appear only in ∼(LX), and S-rules never increase the number of concept variables: all S-rules reduce by 1 the number of concept variables, but for σ∀ and σ∃ that introduce a new variable Y, but removeX. So, we can base our induction on the numbernof variables of LX. If L contains no quantifications (i.e., L is a conjunction of atomic concepts), then

(LX) = (X0uL) = ¬X0t ∼L, so the claim holds for one variable X = X0 andx=a. Suppose the claim holds for concepts withnvariables. IfLcontainsn+ 1 variables, then it must contain at least one quantification, andLX can be decomposed as X0uL1, whereL1 is a concept termthat contains at least one quantification, so another variable, and at mostnvariables in total. Hence,(LX) = ¬X0t ∼(L1), so from(LX)∈ Li(a)T-rules can obtain two branches, say,L0iandL00i, the former with

¬X0∈ L0i(a), and the latter with(L1)∈ L00i(a). ForL0ithe claim holds directly, while forL00i it holds by inductive hypothesis since it containsnvariables.

The above lemma justifies the absence of S-rules acting for constraints of the form X ∈ Li(x), since starting from hT1,T2,T3ias in (5)–(7), such constraints never appear.

A branch isS-completeif no S-rule is applicable. We call a branchcompletewhen it is both T-complete and S-complete.

Theorem 3 (Soundness and completeness).

LetC1, C2, Las in Thm.2, and lethT1,T2,T3ibe defined as in (5)–(7). Then For- mula (4) is true if and only if there is a way of applying S-rules, obtaining a global substitutionσ, such that bothσ(T1) andσ(T2) close, andσ(T3) is open.

Proof. (Only if.) Validity of Formula (4) requires a ground substitutionσ0. Nowσ0 may not be used to prove directly the claim, since it may containuin some substitution Xi 7→ Di, and uis not reconstructed by S-rules. So letσbe a substitution obtained fromσ0 by choosing only one conjunct in the outermostuof eachDi, and if such a conjunct contains anu(also inside quantifications), recursively choosing one conjunct, till one obtains aD0iwithoutus; the choice is made by inspecting how T-rules build the branches of the (variable-free) tableauσ0(T3). Observe thatσ0(∼(LX)) =σ0(¬X0)t σ0(∼(L1))for a suitable concept termL1, and suppose thatσ0contains the substitution X07→E1uE2. Therefore,t-rule applied toσ0(∼(LX))∈ L3(a)yields three branches,

¬E1 ∈ L03(a),¬E2∈ L003(a), andσ0(∼(L1))∈ L0003(a). Sinceσ0 validates (4), at least one amongL03,L003,L0003 can be turned by T-rules into a T-complete, open branch. If such a branch isL03, chooseX0 7→E1forσ, if it isL003chooseE2, while if the open branch stems from L0003 then choose whatever E1, E2, indifferently. Clearly if Ei is chosen andEistill contains conjunctions, the choice is recursively repeated. Soundness of T- rules ensures that the choice of au-free substitutionσcan always be made in such a

(9)

way that, finally, T-rules can obtain fromσ(T3)a T-complete, open branch. Observe also thatσ0(T1),σ0(T2)must close by completeness of T-rules, that is, every branch stemming from them must close. Now branches fromσ(T1)andσ(T2)are a subset of the branches fromσ0(T1),σ0(T2), hence all of them must close too. It remains to show thatσcan be reconstructed by repeated application of S-rules, and which can be proved by induction on the quantifications of eachDiinXi7→Di∈σ.

(If.)If S-rules (intertwined with T-rules) can construct a ground substitutionσsuch that bothσ(T1) andσ(T2) close, andσ(T3) is open, then by soundness of T-rules,σ is a witness validating Formula (4).

The above theorem does not exclude that, when Formula (4) is false, the calcu- lus runs forever. In fact, the reader could verify that in the exampletrans(P),C1 =

∃P u ∀P.∃P.(AuC),C2=∃Pu ∀P.∃P.(BuC), andL=∃Pu ∀P.∃P.CT- and S-rules together run indefinitely. Intuitively, the calculus can go astray when already L ∈LCS(C1, C2), and transitive roles produce new individuals and concepts that, in turn, trigger the application of an S-rule, which may add new concepts to old individu- als, and such concepts can propagate to new individuals, destroying pairwise blocking.

Therefore, although S-rules require some other constraints to be already present in the branch, they also need ablocking condition, to prevent their infinite application.

A substitution X 7→ ∃R.Y is S-blocked for ¬X ∈ Li(x) in hT1,T2,T3i if hT1,T2,T3iderives from somehT01,T02,T03i, in which there is some individualx0 such that:

(i) ¬X0∈ L0i(x0), (ii) Li(x) =L0i(x0),

(iii) for everyR-successoryofxinLi, there exists anR-successory0 ofx0inL0isuch thatLi(y) =L0i(y0),

(iv) for every S, the number of differentS-neighbors of xin Li is the same as the number of differentS-neighbors ofx0inL0i, and

(v) theσ∃-rule has been applied tohT01,T02,T03i, with the substitutionX0 7→ ∃R.Y0. The S-blocking of a substitutionX 7→ ∀R.Y is defined analogously. Observe that we compare Li(x)(the concepts attached toxinhT1,T2,T3i) withL0i(x0), that is, the concepts attached tox0in theoldstatehT01,T02,T03i. Also, note that Lemma 2 allows us to define blocking only for constraints of the form¬X∈ Li(x).

Ruleσ∃ is S-blocked for¬X ∈ Li(x)inhT1,T2,T3iif either it is simply not applicable, or every possible substitution forX allowed byσ∃is S-blocked, and anal- ogously for Ruleσ∀. Note that if{¬X,∃R.C} ⊆ L(x), then for each roleSsuch that RvS, Ruleσ∃allows the substitutionX 7→ ∃S.Y, so S-blocking prevents all these substitutions. Finally, we say that abranch is S-blockedif it is not closed and contains a constraint ¬X ∈ Li(x)for which both Rule σ∃ and Rule σ∀ are S-blocked, and hT1,T2,T3iis S-blocked if eitherT1orT2contain an S-blocked branch.

Now we modify the completeness of a branch by saying that a branch is S-complete if no S-rule is applicable, taking also S-blocking into account. Clearly, when we stop the calculus because of S-blocking, we have to prove that no substitution was ever to be found.

(10)

Theorem 4. IfhT1,T2,T3iis S-blocked, nohT01,T02,T03isuch thatT01andT02 are closed, andT03is open, can be derived from it.

Proof. (Sketch) We intuitively view our calculus as a game between Player T, whose moves are T-rules, and player S, whose moves are S-rules. Faithfully to our precedences, T moves whenever she can, S moves only if T cannot move, and S should use a move above the line in Fig. 2 whenever he can. S wins if he can reach a statehT1,T2,T3i in which bothT1andT2are closed, andT3is open, while T wins in every other case (including infinite runs). Intuitively, S tries to build some finite proof of (4), while T re- sponds by constructing a (possibly infinite) model that would serve as a counterexample for that proof. In this setting, the claim is proved if T has a winning strategy whenever hT1,T2,T3iis S-blocked.

In fact, suppose that in such a case S tries anyway a substitutionX 7→ D for

¬X ∈ Li(x). Then, T can respond in the same way she did inhT01,T02,T03i when S playedX0 7→ D0 for¬X0 ∈ L0i(x0). Conditions (ii)–(iv) ensure that after S plays X 7→DinhT1,T2,T3i, T can play onxthe same rules she played onx0after S played X0 7→D0inhT01,T02,T03i. S will not succeed in closingLi, otherwise by precedence of Rulesσ>,σN,σ¬N,σ>,σ6, over Rulesσ∀andσ∃, S would have closedL0i in hT01,T02,T03ibefore derivinghT1,T2,T3i.

Theorem 5 (Termination).Let T-rules and S-rules be applied according to blocking conditions, giving always precedence to T-rules. Then there is no infinite sequence of applications of T- and S-rules starting fromhT1,T2,T3ias in (5)–(7).

Proof. (Sketch) Termination of T-rules alone was proved by Tobies [23, Lemma 6.35].

Termination of T- and S-rules together stems from S-blocking, which eventually occurs since S-rules add concepts that are in the syntactic closure ofC1, C2, LandH. In fact, observe that,e.g.,σ∃substitutesX with∃S.Y only if∃R.C ∈ Li(x), and∃R.Cdoes not come from another substitution in the same branch, because of Lemma 2.

In conclusion, checking whetherL LCS(C1, C2) is a decidable problem for C1, C2, L∈ ALEHINR+.

5 Computing the LCS

The previous section set up a calculus for the LCSdecisionproblem. We now set an iterative algorithm that computes the LCS by repeatedly solving Formula (4) for in- creasingly betterLs.

Algorithm 2: Computing an LCS ofC1, C2

inputconceptsC1, C2

varconceptL:=>, conceptL1

repeat(*)

T1:={C1∈ L1(a),(LX)∈ L1(a)};

T2:={C2∈ L2(a),(LX)∈ L2(a)};

T3:={L∈ L3(a),(LX)∈ L3(a)};

applyT-rules and S-rules tohT1,T2,T3i

(11)

ifa substitutionσs.t. (T1,T2close andT3is open) is found thenL1 :=σ(LX);L:=L1

elseL1:=nil;

until(L1=nil) returnL;

Termination of the above algorithm implies the existence of a finite LCS for every pair of concepts inALEHINR+. This problem is out of the scope of this paper, hence we give a weaker termination proof.

Theorem 6. Let C1, C2 ∈ ALEHINR+. IfLCS(C1, C2)contains a finite concept expression, then Algorithm 2 terminates withL∈LCS(C1, C2).

Proof. If there exists a finite conceptLˆ ∈LCS(C1, C2), it must have a finite number of non-redundant conjuncts. In each iteration (*), in order forT3to be open,L1=σ(LX) must have at least one non-redundant conjunct more thanL. Hence after|L|ˆ iterations, theuntilcondition is reached.

We remark that for DLs for which a finite LCS always exists, the above theorem implies that Algorithm 2 always terminates. For instance, inALENthere always exist a finiteLCS(C1, C2), whose size is exponential in the sizes ofC1, C2[5]. Hence for C1, C2∈ ALEN, Algorithm 2 iterates (*) a number of times exponential in|C1|+|C2|.

Also, we remark that if iterations (*) are stopped before theuntilcondition is true, an invariant of (*) is that the current value of L is a common subsumer of C1, C2

(although not the least one). In this sense, Algorithm 2 can be turned into ananytime approximationalgorithm for LCS.

6 Conclusion and Perspective

Although Least Common Subsumer is one of the most interesting and usefully exploited non-standard inference service for Description Logics, its computation for expressive DLs is still an open challenge.

In this paper we formulated the problem of evaluating LCS in terms of second-order formulas where variables represent general DL concepts. Based on this formulation we also proposed a novel general tableau-based calculus to compute a solution to a LCS problem and presented the whole calculus for an expressive DL, namelyALEHINR+. Having a calculus based on well-founded analytic tableaux surely presents many advantages both from a practical point of view and from a theoretical one. First, our approach may ease implementing the computation of LCS in state-of-the-art tableaux- based reasoners (Pellet, FaCT++, RacerPro), also exploiting well known optimization techniques for tableaux in DLs [18, Ch.9]. Secondly, the analysis of soundness and com- pleteness for a tableau-based algorithm is less tricky than the one based on structural algorithms—as the ones proposed so far for LCS. Finally, but even more importantly, for DLs in which a finite LCS may not always exist [19], a terminating algorithm for computing LCS cannot exist, while a sound and complete calculus can be devised along the lines we showed—analogously to sound and complete calculi for full First-Order Logic.

In perspective, our formulation and computation of LCS paves the way to further results for computing other useful non-standard reasoning services in DLs.

(12)

Acknowledgments

We thank Franz Baader for useful discussions on LCS and pointers to his relevant liter- ature. We acknowledge partial support of Apulia region Strategic Projects PS 092 and PS 121.

References

1. Donini, F.M., Colucci, S., Di Noia, T., Di Sciascio, E.: A tableaux-based method for com- puting least common subsumers for expressive description logics. In: Proc. of IJCAI 2009, AAAI (2009) to appear.

2. Cohen, W., Borgida, A., Hirsh, H.: Computing least common subsumers in description log- ics. In Rosenbloom, P., Szolovits, P., eds.: Proc. of AAAI’92, Menlo Park, California, AAAI Press (1992) 754–761

3. Baader, F., K¨usters, R., Molitor, R.: Computing least common subsumers in description logics with existential restrictions. In: Proc. of IJCAI’99, Morgan Kaufmann (1999) 96–101 4. Baader, F., Turhan, A.Y.: On the problem of computing small representations of least com-

mon subsumers. In: Proc. of KI 2002, Aachen, Germany, Springer (2002)

5. K¨usters, R., Molitor, R.: Structural Subsumption and Least Common Subsumers in a De- scription Logic with Existential and Number Restrictions. Studia Logica81(2005) 227–259 6. Lutz, C., Baader, F., Franconi, E., Lembo, D., M¨oller, R., Rosati, R., Sattler, U., Suntisri- varaporn, B., Tessaris, S.: Reasoning support for ontology design. In Grau, B.C., Hitzler, P., Shankey, C., Wallace, E., eds.: Proc. of OWLED 2006. (2006)

7. Baader, F., K¨usters, R.: Computing the least common subsumer and the most specific concept in the presence of cyclicALN-concept descriptions. In: Proc. of KI’98, Bremen, Germany, Springer (1998) 129–140

8. Kopena, J.B., Regli, W.C.: Design repositories on the semantic web with description-logic enabled services. In: Proc. of VLDB 2003. (2003)

9. Ovchinnikova, E., Wandmacher, T., Kuehnberger, K.U.: Solving terminological inconsis- tency problems in ontology design. Interoperability in Business Information Systems 2 (2007) 65–80

10. M¨oller, R., Haarslev, V., Neumann, B.: Semantics-based information retrieval. In: Proc. of IT&KNOWS-98, Vienna, Budapest (1998)

11. Janowicz, K., Wilkes, M., Lutz, M.: Similarity-based information retrieval and its role within spatial data infrastructures. In: Proc. of GIScience ’08, Springer (2008) 151–167

12. Hacid, M.S., Leger, A., Rey, C.: Computing concept covers: A preliminary report. In: Proc.

of DL 2002. (2002)

13. Benatallah, B., Hacid, M.S., Leger, A., Rey, C., Toumani, F.: On automating web services discovery. VLDB Journal14(1) (March 2005) 84–96

14. Karam, N., Linckels, S., Meinel, C.: Semantic composition of lecture subparts for a person- alized e-learning. In: Proc. of ESWC 2007, Springer (2007) 716–728

15. Hacid, M.S., Soualmia, F., Toumani, F.: Schema Extraction for Semistructured Data. In:

Proc. of DL 2000. (August 2000) 133–142

16. Cohen, W.W., Hirsh, H.: Learning the CLASSIC description logics: Theoretical and ex- perimental results. In Doyle, J., Sandewall, E., Torasso, P., eds.: Proc. of KR’94. (1994) 121–133

17. Colucci, S., Di Sciascio, E., Donini, F.M., Tinelli, E.: Finding informative commonalities in concept collections. In: Proc. of CIKM 2008, ACM Press (2008) 807–816

(13)

18. Baader, F., Calvanese, D., Mc Guinness, D., Nardi, D., Patel-Schneider, P., eds.: The De- scription Logic Handbook. Cambridge University Press (2003)

19. Baader, F., Sertkaya, B., Turhan, A.Y.: Computing the least common subsumer w.r.t. a back- ground terminology. J. of Appl. Log.5(3) (2007) 392–420

20. Rabin, M.O.: Decidability of second-order theories and automata on infinite trees. Trans. of the Am. Math. Soc.141(1969) 1–35

21. Henkin, L.: Completeness in the theory of types. J. Symb. Log.15(2) (1950) 81–91 22. Baader, F., Narendran, P.: Unification of concept terms in description logics. J. of Symbolic

Computation31(2001) 277–305

23. Tobies, S.: Complexity Results and Practical Algorithms for Logics in Knowledge Repre- sentation. PhD thesis, RWTH Aachen (2001)

Références

Documents relatifs

The highly redundant ELH-concept descriptions obtained from the k-lcs algo- rithm, need to be simplified, in order to make the resulting concept description readable.. The general

In spite of this ambiguity, it should be expected that a change log contains concept names that were directly changed, and this is what we aim to find out in our next experiment;

In this paper, we have provided a formal characterization of Concept Learning in DLs according to a declarative modeling language which abstracts from the specific algorithms used

Thus, this backtracing is qualified to identify all involved non-deterministic branching points for the dependency directed backtracking and also to identify small unsatisfiable sets

The returned lcs-concept description should only contain concept names that appear in the initial TBox, thus we need to “de- normalize” the concept descriptions obtained from

More precisely, there is currently no known algorithm for (very) expressive fuzzy DLs, like fuzzy SI , that allow for transitive and inverse roles, and at the same time allow for

As noted by Marquis [11] for First-order Abduction, if disjunction and full negation are allowed in solutions to an Abduction problem, the most general hypothesis is always.. ¬C t

There is indication that model-based most specific concepts can also be applied for knowledge base completion in other in- expressive description logics.. We show that model-msc