This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

An ASP approach for reasoning in
a concept-aware multipreferential lightweight DL

Laura Giordano    Daniele Theseider Dupré
DISIT
   Università del Piemonte Orientale    Italy

laura.giordano@uniupo.it, dtd@uniupo.it
(2003)
Abstract

In this paper we develop a concept aware multi-preferential semantics for dealing with typicality in description logics, where preferences are associated with concepts, starting from a collection of ranked TBoxes containing defeasible concept inclusions. Preferences are combined to define a preferential interpretation in which defeasible inclusions can be evaluated. The construction of the concept-aware multipreference semantics is related to Brewka’s framework for qualitative preferences. We exploit Answer Set Programming (in particular, asprin) to achieve defeasible reasoning under the multipreference approach for the lightweight description logic +{\mathcal{EL}}^{+}_{\bot}.

The paper is under consideration for acceptance in TPLP.

doi:
S1471068401001193
keywords:
Nonmonotonic Reasoning, Description Logics, Preferences, ASP

1 Introduction

The need to reason about exceptions in ontologies has led to the development of many non-monotonic extensions of Description Logics (DLs), incorporating features from NMR formalisms in the literature [Straccia (1993), Baader and Hollunder (1995), Donini et al. (2002), Giordano et al. (2007), Britz et al. (2008), Bonatti et al. (2009), Casini and Straccia (2010), Motik and Rosati (2010)], and notably including extensions of rule-based languages [Eiter et al. (2008), Eiter et al. (2011), Knorr et al. (2012), Gottlob et al. (2014), Giordano and Theseider Dupré (2016), Bozzato et al. (2018)], as well as new constructions and semantics [Casini and Straccia (2013), Bonatti et al. (2015), Bonatti (2019)]. Preferential approaches [Kraus et al. (1990), Lehmann and Magidor (1992)] have been extended to description logics, to deal with inheritance with exceptions in ontologies, allowing for non-strict forms of inclusions, called typicality or defeasible inclusions, with different preferential semantics [Giordano et al. (2007), Britz et al. (2008)] and closure constructions [Casini and Straccia (2010), Casini et al. (2013), Giordano et al. (2013), Pensel and Turhan (2018)].

In this paper, we propose a “concept-aware multipreference semantics” for reasoning about exceptions in ontologies taking into account preferences with respect to different concepts and integrating them into a preferential semantics which allows a standard interpretation of defeasible inclusions. The intuitive idea is that the relative typicality of two domain individuals usually depends on the aspects we are considering for comparison: Bob may be a more typical as sport lover than Jim, but Jim may be a more typical swimmer than Bob. This leads to consider a multipreference semantics in which there is a preference relation C\leq_{C} among individuals for each aspect (concept) CC. In the previous case, we would have bobSportLoverjimbob\leq_{SportLover}jim and jimSwimmerbobjim\leq_{Swimmer}bob. Considering different preference relations associated with concepts, and then combining them into a global preference, provides a simple solution to the blocking inheritance problem, which affects rational closure, while still allowing to deal with specificity and irrelevance.

Our approach is strongly related with Gerard Brewka’s proposal of preferred subtheories [Brewka (1989)], later generalized within the framework of Basic Preference Descriptions for ranked knowledge bases [Brewka (2004)]. We extend to DLs the idea of having ranked or stratified knowledge bases (ranked TBoxes here) and to define preorders (preferences) on worlds (here, preferences among domain elements in a DL interpretation). Furthermore, we associate ranked TBoxes with concepts. The ranked TBox for concept CC describes the prototypical properties of CC-elements. For instance, the ranked TBox for concept Horse describes the typical properties of horses, of running fast, having a long mane, being tall, having a tail and a saddle. These properties are defeasible and horses should not necessarily satisfy all of them.

The ranked TBox for ChC_{h} determines a preference relation Ch\leq_{C_{h}} on the domain, defining the relative typicality of domain elements with respect to aspect ChC_{h}. We then combine such preferences into a global preference relation << to define a concept-wise multipreference semantics, in which all conditional queries can be evaluated as usual in preferential semantics. For instance, we may want to check whether typical Italian employees have a boss, given the preference relation 𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒\leq_{\mathit{Employee}}, but no preference relation for concept 𝐼𝑡𝑎𝑙𝑖𝑎𝑛\mathit{Italian}; or to check whether employed students are normally young or have a boss, given the preference relations 𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒\leq_{\mathit{Employee}} and 𝑆𝑡𝑢𝑑𝑒𝑛𝑡\leq_{\mathit{Student}}, resp., for employees and for students.

We introduce a notion of multipreference entailment and prove that it satisfies the KLM properties of preferential consequence relations. This notion of entailment deals properly with irrelevance and specificity, is not subject to the “blockage of property inheritance” problem, which affects rational closure [Pearl (1990)], i.e., if a subclass is exceptional with respect to a superclass for a given property, it does not inherit from that superclass any other property.

To prove the feasibility of our approach, we develop a proof method for reasoning under the proposed multipreference semantics for the description logic +{\mathcal{EL}}^{+}_{\bot} [Kazakov et al. (2014)], the fragment of OWL2 EL supported by ELK. We reformulate multipreference entailment as a problem of computing preferred answer sets and, as a natural choice, we develop an encoding of the multipreferential extension of +{\mathcal{EL}}^{+}_{\bot} in asprin [Brewka et al. (2015)], exploiting a fragment of Krötzsch’s Datalog materialization calculus \shortciteKrotzschJelia2010.

As a consequence of the soundness and completeness of this reformulation of multipreference entailment, we prove that concept-wise multipreference entailment is Π2p\Pi^{p}_{2}-complete for +{\mathcal{EL}}^{+}_{\bot} ranked knowledge bases.

2 Preliminaries: The description logics +{\mathcal{EL}}^{+}_{\bot}

We consider the description logic +{\mathcal{EL}}^{+}_{\bot} [Kazakov et al. (2014)] of the {\cal EL} family [Baader et al. (2005)]. Let NC{N_{C}} be a set of concept names, NR{N_{R}} a set of role names and NI{N_{I}} a set of individual names. The set of +{\mathcal{EL}}^{+}_{\bot} concepts can be defined as follows: C:=ACCr.CC\ \ :=A\mid\top\mid\bot\mid C\sqcap C\mid\exists r.C, where aNIa\in N_{I}, ANCA\in N_{C} and rNRr\in N_{R}. Observe that union, complement and universal restriction are not +{\mathcal{EL}}^{+}_{\bot} constructs. A knowledge base (KB) KK is a pair (𝒯,𝒜)({\cal T},{\cal A}), where 𝒯{\cal T} is a TBox and 𝒜{\cal A} is an ABox. The TBox 𝒯{\cal T} is a set of concept inclusions (or subsumptions) of the form CDC\sqsubseteq D, where C,DC,D are concepts, and of role inclusions of the form r1rnrr_{1}\circ\ldots\circ r_{n}\sqsubseteq r, where r1,,rn,rNRr_{1},\ldots,r_{n},r\in N_{R}. The ABox 𝒜{\cal A} is a set of assertions of the form C(a)C(a) and r(a,b)r(a,b) where CC is a concept, rNRr\in N_{R}, and a,bNIa,b\in N_{I}.

An interpretation for +{\mathcal{EL}}^{+}_{\bot} is a pair I=Δ,II=\langle\Delta,\cdot^{I}\rangle where: Δ\Delta is a non-empty domain—a set whose elements are denoted by x,y,z,x,y,z,\dots—and I\cdot^{I} is an extension function that maps each concept name CNCC\in N_{C} to a set CIΔC^{I}\subseteq\Delta, each role name rNRr\in N_{R} to a binary relation rIΔ×Δr^{I}\subseteq\Delta\times\Delta, and each individual name aNIa\in N_{I} to an element aIΔa^{I}\in\Delta. It is extended to complex concepts as follows: I=Δ\top^{I}=\Delta, I=\bot^{I}=\emptyset, (CD)I=CIDI(C\sqcap D)^{I}=C^{I}\cap D^{I} and (r.C)I={xΔy.(x,y)rIandyCI}.(\exists r.C)^{I}=\{x\in\Delta\mid\exists y.(x,y)\in r^{I}\ \mbox{and}\ y\in C^{I}\}. The notions of satisfiability of a KB in an interpretation and of entailment are defined as usual:

Definition 1 (Satisfiability and entailment)

Given an +{\mathcal{EL}}^{+}_{\bot} interpretation I=Δ,II=\langle\Delta,\cdot^{I}\rangle:

- II satisfies an inclusion CDC\sqsubseteq D if CIDIC^{I}\subseteq D^{I};

- II satisfies a role inclusions r1rnrr_{1}\circ\ldots\circ r_{n}\sqsubseteq r if r1IrnIrIr_{1}^{I}\circ\ldots\circ r_{n}^{I}\subseteq r^{I};

- II satisfies an assertion C(a)C(a) if aICIa^{I}\in C^{I} and an assertion r(a,b)r(a,b) if (aI,bI)rI(a^{I},b^{I})\in r^{I}.

Given a KB K=(𝒯,𝒜)K=({\cal T},{\cal A}), an interpretation II satisfies 𝒯{\cal T} (resp. 𝒜{\cal A}) if II satisfies all inclusions in 𝒯{\cal T} (resp. all assertions in 𝒜{\cal A}); II is a model of KK if II satisfies 𝒯{\cal T} and 𝒜{\cal A}.

A subsumption F=CDF=C\sqsubseteq D (resp., an assertion C(a)C(a), R(a,b)R(a,b)), is entailed by KK, written KFK\models F, if for all models I=I=Δ,I\langle\Delta,\cdot^{I}\rangle of KK, II satisfies FF.

3 Multiple preferences from ranked TBoxes

To define a multipreferential semantics for +{\mathcal{EL}}^{+}_{\bot} we extend the language with a typicality operator 𝐓{\bf T}, as done for \mathcal{EL}^{\bot} [Giordano et al. (2011)]. In the language extended with the typicality operator, an additional concept 𝐓(C){\bf T}(C) is allowed (where CC is an +{\mathcal{EL}}^{+}_{\bot} concept), whose instances are intended to be the prototypical instances of concept CC. Here, we assume that 𝐓(C){\bf T}(C) can only occur on the left hand side of concept inclusion, to allow typicality inclusions of the form 𝐓(C)D{\bf T}(C)\sqsubseteq D, meaning that “typical C’s are D’s” or “normally C’s are D’s”. Such inclusions are defeasible, i.e., admit exceptions, while standard inclusions are called strict, and must be satisfied by all domain elements.

Let 𝒞{\cal C} be a (finite) set of distinguished concepts {C1,,Ck}\{C_{1},\ldots,C_{k}\}, where C1,,CkC_{1},\ldots,C_{k} are possibly complex +{\mathcal{EL}}^{+}_{\bot} concepts. Inspired to Brewka’s framework of basic preference descriptions [Brewka (2004)], we introduce a ranked TBox 𝒯Ci{\cal T}_{C_{i}} for each concept Ci𝒞C_{i}\in{\cal C}, describing the typical properties 𝐓(Ci)D{\bf T}(C_{i})\sqsubseteq D of CiC_{i}-elements. Ranks (non-negative integers) are assigned to such inclusions; the ones with higher rank are considered more important than the ones with lower rank.

A ranked +{\mathcal{EL}}^{+}_{\bot} knowledge base KK over 𝒞{\cal C} is a tuple 𝒯strict,𝒯C1,,𝒯Ck,𝒜\langle{\cal T}_{strict},{\cal T}_{C_{1}},\ldots,{\cal T}_{C_{k}},{\cal A}\rangle, where 𝒯strict{\cal T}_{strict} is a set of standard concept and role inclusions, 𝒜{\cal A} is an ABox and, for each Cj𝒞C_{j}\in{\cal C}, 𝒯Cj{\cal T}_{C_{j}} is a ranked TBox of defeasible inclusions, {(dij,rij)}\{(d^{j}_{i},r^{j}_{i})\}, where each dijd^{j}_{i} is a typicality inclusion of the form 𝐓(Cj)Dij{\bf T}(C_{j})\sqsubseteq D^{j}_{i}, having rank rijr^{j}_{i}, a non-negative integer.

Example 1

Consider the ranked KB K=𝒯𝑠𝑡𝑟𝑖𝑐𝑡,𝒯𝐻𝑜𝑟𝑠𝑒,𝒜\mathit{K=\langle{\cal T}_{strict},{\cal T}_{Horse},{\cal A}\rangle} (with empty 𝒜{\cal A}), where 𝒯strict{\cal T}_{strict} contains 𝐻𝑜𝑟𝑠𝑒𝑀𝑎𝑚𝑚𝑎𝑙\mathit{Horse\sqsubseteq Mammal}, 𝑀𝑎𝑚𝑚𝑎𝑙𝐴𝑛𝑖𝑚𝑎𝑙\mathit{Mammal\sqsubseteq Animal}, and 𝒯Horse={(d1,0),(d2,0),(d3,1),(d4,2)}{\cal T}_{Horse}=\{(d_{1},0),(d_{2},0),(d_{3},1),(d_{4},2)\} where the defeasible inclusions d1,,d4d_{1},\ldots,d_{4} are as follows:

(d1)(d_{1}) 𝐓(𝐻𝑜𝑟𝑠𝑒)ℎ𝑎𝑠_𝑒𝑞𝑢𝑖𝑝𝑚𝑒𝑛𝑡.𝑆𝑎𝑑𝑑𝑙𝑒\mathit{{\bf T}(Horse)\sqsubseteq\exists has\_equipment.Saddle}          (d2)(d_{2}) 𝐓(𝐻𝑜𝑟𝑠𝑒)𝐻𝑎𝑠_𝑀𝑎𝑛𝑒.𝐿𝑜𝑛𝑔\mathit{{\bf T}(Horse)\sqsubseteq\exists Has\_Mane.Long}

(d3)(d_{3}) 𝐓(𝐻𝑜𝑟𝑠𝑒)𝑅𝑢𝑛𝐹𝑎𝑠𝑡\mathit{{\bf T}(Horse)\sqsubseteq RunFast}                                (d4)(d_{4}) 𝐓(𝐻𝑜𝑟𝑠𝑒)𝐻𝑎𝑠_𝑇𝑎𝑖𝑙.\mathit{{\bf T}(Horse)\sqsubseteq\exists Has\_Tail.\top}

The ranked Tbox 𝒯Horse{\cal T}_{Horse} can be used to define an ordering among domain elements comparing their typicality as horses. For instance, given two horses Spirit and Buddy, if Spirit has long mane, no saddle, has a tail and runs fast, it is intended to be more typical than Buddy, a horse running fast, with saddle and long mane, but without tail, as having a tail (rank 2) is a more important property for horses wrt having a saddle (rank 0).

In order to define an ordering for each Ci𝒞C_{i}\in{\cal C}, where xCiyx\leq_{C_{i}}y means that xx is at least as typical as yy wrt CiC_{i} (in the example, 𝑆𝑝𝑖𝑟𝑖𝑡𝐻𝑜𝑟𝑠𝑒𝐵𝑢𝑑𝑑𝑦\mathit{Spirit\leq_{Horse}Buddy} and, actually, 𝑆𝑝𝑖𝑟𝑖𝑡<𝐻𝑜𝑟𝑠𝑒𝐵𝑢𝑑𝑑𝑦\mathit{Spirit<_{Horse}Buddy}), among the preference strategies considered by Brewka, we adopt strategy #\#, which considers the number of formulas satisfied by a domain element for each rank.

Given a ranked knowledge base K=𝒯strict,𝒯C1,,𝒯Ck,𝒜K=\langle{\cal T}_{strict},{\cal T}_{C_{1}},\ldots,{\cal T}_{C_{k}},{\cal A}\rangle, where 𝒯Cj={(dij,rij)}{\cal T}_{C_{j}}=\{(d^{j}_{i},r^{j}_{i})\} for all j=1,,kj=1,\ldots,k, let us consider an +{\mathcal{EL}}^{+}_{\bot} interpretation I=Δ,II=\langle\Delta,\cdot^{I}\rangle satisfying all the strict inclusions in 𝒯strict{\cal T}_{strict} and assertions in 𝒜{\cal A}. For each jj, to define a preference ordering Cj\leq_{C_{j}} on Δ\Delta, we first need to determine when a domain element xΔx\in\Delta satisfies/violates a typicality inclusion for CjC_{j}. We say that xΔx\in\Delta satisfies 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D in II, if xCjIx\not\in C_{j}^{I} or xDIx\in D^{I}, while xx violates 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D in II, if xCjIx\in C_{j}^{I} and xDIx\not\in D^{I}. Note that any element which is not an instance of CjC_{j} trivially satisfies all conditionals 𝐓(Cj)Dij{\bf T}(C_{j})\sqsubseteq D^{j}_{i}. For a domain element xΔx\in\Delta, let 𝒯Cjl(x){\cal T}_{C_{j}}^{l}(x) be the set of typicality inclusions in 𝒯Cj{\cal T}_{C_{j}} with rank ll which are satisfied by xx: 𝒯Cjl(x)={d(d,l)𝒯Cj and x satisfies d in I}{\cal T}_{C_{j}}^{l}(x)=\{d\mid(d,l)\in{\cal T}_{C_{j}}\mbox{ and }x\mbox{ satisfies }d\mbox{ in }I\}.

Definition 2 ( Cj\leq_{C_{j}})

Given a ranked knowledge base KK as above and an +{\mathcal{EL}}^{+}_{\bot} interpretation I=Δ,II=\langle\Delta,\cdot^{I}\rangle, the preference relation Cj\leq_{C_{j}} associated with 𝒯Cj={(Dij,rij)}{\cal T}_{C_{j}}=\{(D^{j}_{i},r^{j}_{i})\} in II is defined as follows:

x1\displaystyle x_{1} Cjx2 iff either |𝒯Cjl(x1)|=|𝒯Cjl(x2)| for all l,\displaystyle\leq_{C_{j}}x_{2}\mbox{ \ \ iff \ \ }\mbox{either }|{\cal T}_{C_{j}}^{l}(x_{1})|=|{\cal T}_{C_{j}}^{l}(x_{2})|\mbox{ for all $l$, }
     or l\exists l such that |𝒯Cjl(x1)|>|𝒯Cjl(x2)||{\cal T}_{C_{j}}^{l}(x_{1})|>|{\cal T}_{C_{j}}^{l}(x_{2})| and, h>l\forall h>l, |𝒯Cjh(x1)|=|𝒯Cjh(x2)||{\cal T}_{C_{j}}^{h}(x_{1})|=|{\cal T}_{C_{j}}^{h}(x_{2})|

A strict preference relation <Cj<_{C_{j}} and an equivalence relation Cj\sim_{C_{j}} can be defined as usual letting: x1<Cjx2x_{1}<_{C_{j}}x_{2} iff (x1Cjx2x_{1}\leq_{C_{j}}x_{2} and not x2Cjx1x_{2}\leq_{C_{j}}x_{1}), and xCjyx\sim_{C_{j}}y iff (xCjyx\leq_{C_{j}}y and yCjx)y\leq_{C_{j}}x).

Informally, Cj\leq_{C_{j}} gives higher preference to domain individuals violating less typicality inclusions with higher rank. Definition 2 exploits Brewka’s #\# strategy in DL context. In particular, all x,yCjIx,y\not\in C_{j}^{I}, xCjyx\sim_{C_{j}}y, i.e., all elements not belonging to CjIC_{j}^{I} are assigned the same rank, the least one, as they trivially satisfy all the typical properties of CjC_{j}’s. As, for a ranked knowledge base, the #\# strategy defines a total preorder [Brewka (2004)] and, for each 𝒯Cj{\cal T}_{C_{j}}, we have applied this strategy to the materializations CjDC_{j}\sqsubseteq D of the typicality inclusions 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D in the ranked TBox 𝒯Cj{\cal T}_{C_{j}}, the relation Cj\leq_{C_{j}} is a total preorder on the domain Δ\Delta. Then, the strict preference relation <Cj<_{C_{j}} is a strict modular partial order, i.e., an irreflexive, transitive and modular relation (where modularity means that: for all x,y,zΔx,y,z\in\Delta, if x<Cjyx<_{C_{j}}y then x<Cjzx<_{C_{j}}z or z<Cjyz<_{C_{j}}y); Cj\sim_{C_{j}} is an equivalence relation.

As +{\mathcal{EL}}^{+}_{\bot} has the finite model property [Baader et al. (2005)], we can restrict our consideration to interpretations II with a finite domain. In principle, we would like to consider, for each concept Cj𝒞C_{j}\in{\cal C}, all possible domain elements compatible with the inclusions in 𝒯strict{\cal T}_{strict}, and compare them according to Ci\leq_{C_{i}} relation. This leads us to restrict the consideration to models of 𝒯strict{\cal T}_{strict} that we call canonical, in analogy with the canonical models of rational closure [Giordano et al. (2013)]. For each concept CC occurring in KK, let us consider a new concept name C¯\overline{C}, (representing the negation of CC) such that CC¯C\sqcap\overline{C}\sqsubseteq\bot. Let 𝒮K\mathcal{S}_{K} be the set of all such CC and C¯\overline{C}, and let 𝒯Constr{\cal T}_{Constr} the set of all subsumptions CC¯C\sqcap\overline{C}\sqsubseteq\bot. A set {D1,,Dm}\{D_{1},\ldots,D_{m}\} of concepts in 𝒮K\mathcal{S}_{K} is consistent with KK if 𝒯Strict𝒯Constr⊧̸+D1Dm{\cal T}_{Strict}\cup{\cal T}_{Constr}\not\models_{{\mathcal{EL}}^{+}_{\bot}}D_{1}\sqcap\dots\sqcap D_{m}\sqsubseteq\bot.

Definition 3

Given a ranked knowledge base K=𝒯strict,𝒯C1,,𝒯Ck,𝒜K=\langle{\cal T}_{strict},{\cal T}_{C_{1}},\ldots,{\cal T}_{C_{k}},{\cal A}\rangle an +{\mathcal{EL}}^{+}_{\bot} interpretation I=Δ,II=\langle\Delta,\cdot^{I}\rangle is canonical for KK if II satisfies 𝒯strict{\cal T}_{strict} and, for any set of concepts {D1,,Dm}𝒮K\{D_{1},\ldots,D_{m}\}\subseteq\mathcal{S}_{K} consistent with KK, there exists a domain element xΔx\in\Delta such that, for all i=1,,mi=1,\ldots,m, xCIx\in C^{I}, if Di=CD_{i}=C, and xCIx\not\in C^{I}, if Di=C¯D_{i}=\overline{C}.

The idea is that, in a canonical model for KK, any conjunction of concepts occurring in KK, or their complements, when consistent with KK, must have an instance in the domain. Existence of canonical interpretations is guaranteed for knowledge bases which are consistent under the preferential (or ranked) semantics for typicality. +{\mathcal{EL}}^{+}_{\bot} with typicality is indeed a fragment of the description logic 𝒮𝒬\mathcal{SHIQ} with typicality, for which existence of canonical models of consistent knowledge bases was proved [Giordano et al. (2018)].

In agreement with the preferential interpretations of typicality logics, we further require that, if there is some ChC_{h}-element in a model, then there is at least one ChC_{h}-element satisfying all typicality inclusions for ChC_{h} (i.e., a prototypical ChC_{h}-element).

Definition 4

An +{\mathcal{EL}}^{+}_{\bot} interpretation I=Δ,II=\langle\Delta,\cdot^{I}\rangle is 𝐓{\bf T}-compliant for KK if, I satisfies 𝒯Strict{\cal T}_{Strict} and, for all Ch𝒞C_{h}\in{\cal C} such that ChIC_{h}^{I}\neq\emptyset, there is some xChIx\in C_{h}^{I} such that xx satisfies all defeasible inclusions in 𝒯Ch{\cal T}_{C_{h}}.

In a canonical and 𝐓{\bf T}-compliant interpretation for KK, for each Cj𝒞C_{j}\in{\cal C}, the relation Cj\leq_{C_{j}} on the domain Δ\Delta provides a preferential interpretation for the typicality concept 𝐓(Cj){\bf T}(C_{j}) as min<Cj(CjI)min_{<_{C_{j}}}(C_{j}^{I}), in which all typical CjC_{j} satisfy all typicality inclusions in 𝒯Ch{\cal T}_{C_{h}}.

Existence of a 𝐓{\bf T}-compliant canonical interpretation is not guaranteed for an arbitrary knowledge base. For instance, a knowledge base whose typicality inclusions conflict with strict ones (e.g, 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D and CjDC_{j}\sqcap D\sqsubseteq\bot) has no 𝐓{\bf T}-compliant interpretation. However, existence of 𝐓{\bf T}-compliant interpretations is guaranteed for knowledge bases which are consistent under the preferential (or ranked) semantics for typicality (see Appendix A, Proposition A.8), and consistency can be tested in polynomial time in Datalog [Giordano and Theseider Dupré (2018)].

For a ranked knowledge base K=𝒯strict,𝒯C1,,𝒯Ck,𝒜K=\langle{\cal T}_{strict},{\cal T}_{C_{1}},\ldots,{\cal T}_{C_{k}},{\cal A}\rangle, and a given +{\mathcal{EL}}^{+}_{\bot} interpretation I=Δ,II=\langle\Delta,\cdot^{I}\rangle, the strict modular partial order relations <C1,,<Ck<_{C_{1}},\ldots,<_{C_{k}} over Δ\Delta, defined according to Definition 2 above, determine the relative typicality of domain elements w.r.t. each concept CjC_{j}. Clearly, the different preference relations <Cj<_{C_{j}} do not need to agree, as seen in the introduction.

4 Combining multiple preferences into a global preference

We are interested in defining a notion of typical CC-element, and defining an interpretation of 𝐓(C){\bf T}(C), which works for all concepts CC, not only for the distinguished concepts in 𝒞{\cal C}. This can be used to evaluate subsumptions of the form 𝐓(C)D{\bf T}(C)\sqsubseteq D when CC does not belong to 𝒞{\cal C}. We address this problem by introducing a notion of multipreference concept-wise interpretation, which generalizes the notion of preferential interpretation [Kraus et al. (1990)] by allowing multiple preference relations and, then, combining them in a single (global) preference. Let us consider the following example:

Example 2

Let KK be the ranked KB 𝒯strict,𝒯Employee,𝒯Student,𝒯PhDStudent,𝒜\langle{\cal T}_{strict},{\cal T}_{Employee},{\cal T}_{Student},{\cal T}_{PhDStudent},{\cal A}\rangle (with empty 𝒜={\cal A}=\emptyset), containting the strict inclusions:

𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒𝐴𝑑𝑢𝑙𝑡\mathit{Employee\sqsubseteq Adult}                 𝐴𝑑𝑢𝑙𝑡ℎ𝑎𝑠_𝑆𝑆𝑁.\mathit{Adult\sqsubseteq\exists has\_SSN.\top}             𝑃ℎ𝑑𝑆𝑡𝑢𝑑𝑒𝑛𝑡𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{PhdStudent\sqsubseteq Student}

𝑌𝑜𝑢𝑛𝑔𝑁𝑜𝑡𝑌𝑜𝑢𝑛𝑔\mathit{Young\sqcap NotYoung\sqsubseteq\bot}         ℎ𝑎𝑠𝑆𝑐ℎ𝑜𝑙𝑎𝑟𝑠ℎ𝑖𝑝.𝐻𝑎𝑠_𝑛𝑜_𝑆𝑐ℎ𝑜𝑙𝑎𝑟𝑠ℎ𝑖𝑝\mathit{\exists hasScholarship.\top\sqcap Has\_no\_Scholarship\sqsubseteq\bot}

The ranked TBox 𝒯Employee={(d1,0),(d2,0)}{\cal T}_{Employee}=\{(d_{1},0),(d_{2},0)\} contains the defeasible inclusions:

(d1)(d_{1}) 𝐓(𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒)𝑁𝑜𝑡𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Employee)\sqsubseteq NotYoung}                 (d2)(d_{2}) 𝐓(𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒)ℎ𝑎𝑠_𝑏𝑜𝑠𝑠.𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒\mathit{{\bf T}(Employee)\sqsubseteq\exists has\_boss.Employee}

the ranked TBox 𝒯Student={(d3,0),(d4,1),(d5,1)}{\cal T}_{Student}=\{(d_{3},0),(d_{4},1),(d_{5},1)\} contains the defeasible inclusions:

(d3)(d_{3}) 𝐓(𝑆𝑡𝑢𝑑𝑒𝑛𝑡)ℎ𝑎𝑠_𝑐𝑙𝑎𝑠𝑠𝑒𝑠.\mathit{{\bf T}(Student)\sqsubseteq\exists has\_classes.\top}            (d4)(d_{4}) 𝐓(𝑆𝑡𝑢𝑑𝑒𝑛𝑡)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Student)\sqsubseteq Young}

(d5)(d_{5}) 𝐓(𝑆𝑡𝑢𝑑𝑒𝑛𝑡)𝐻𝑎𝑠_𝑛𝑜_𝑆𝑐ℎ𝑜𝑙𝑎𝑟𝑠ℎ𝑖𝑝\mathit{{\bf T}(Student)\sqsubseteq Has\_no\_Scholarship}

and the ranked TBox 𝒯PhDStudent={(d6,0),(d7,1)}{\cal T}_{PhDStudent}=\{(d_{6},0),(d_{7},1)\} contains the inclusions:

(d6)(d_{6}) 𝐓(𝑃ℎ𝐷𝑆𝑡𝑢𝑑𝑒𝑛𝑡)ℎ𝑎𝑠𝑆𝑐ℎ𝑜𝑙𝑎𝑟𝑠ℎ𝑖𝑝.𝐴𝑚𝑜𝑢𝑛𝑡\mathit{{\bf T}(PhDStudent)\sqsubseteq\exists hasScholarship.Amount}          (d7)(d_{7}) 𝐓(𝑃ℎ𝐷𝑆𝑡𝑢𝑑𝑒𝑛𝑡)𝐵𝑟𝑖𝑔ℎ𝑡\mathit{{\bf T}(PhDStudent)\sqsubseteq Bright}

We might be interested to check whether typical Italian students are young or whether typical employed students are young. This would require the typicality inclusions 𝐓(𝑆𝑡𝑢𝑑𝑒𝑛𝑡𝐼𝑡𝑎𝑙𝑖𝑎𝑛)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Student\sqcap Italian)\sqsubseteq Young} and 𝐓(𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒𝑆𝑡𝑢𝑑𝑒𝑛𝑡)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Employee\sqcap Student)\sqsubseteq Young} to be evaluated. Nothing should prevent Italian students from being young (irrelevance). Also, we expect not to conclude that typical employed students are young nor that they are not, as typical students and typical employees have conflicting properties concerning age. However, we would like to conclude that typical employed students have a boss, have classes and have no scholarship, as they should inherit the properties of typical students and of typical employees which are not overridden (i.e., there is no blocking of inheritance). As PhD students are students, they should inherit all the typical properties of Students, except having no scholarship, which is overridden by (d6d_{6}).

To evaluate conditionals 𝐓(C)D{\bf T}(C)\sqsubseteq D for any concept CC we introduce a concept-wise multipreference interpretation, that combines the preference relations <C1,,<Ck<_{C_{1}},\ldots,<_{C_{k}} into a single (global) preference relation << and interpreting 𝐓(C)\mathit{{\bf T}(C)} as (𝐓(C))I=\mathit{({\bf T}(C))^{I}}= min<(CI)min_{<}(C^{I}). The relation << should be defined starting from the preference relations <C1,,<Ck<_{C_{1}},\ldots,<_{C_{k}} also considering specificity.

Let us consider the simplest notion of specificity among concepts, based on the subsumption hierarchy (one of the notions considered for 𝒟N{\cal DL}^{N} [Bonatti et al. (2015)]).

Definition 5 (Specificity)

Given a ranked +{\mathcal{EL}}^{+}_{\bot} knowledge base K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯C1,,{\cal T}_{C_{1}},\ldots, 𝒯Ck,𝒜{\cal T}_{C_{k}},{\cal A}\rangle over the set of concepts 𝒞{\cal C}, and given two concepts Ch,Cj𝒞C_{h},C_{j}\in{\cal C}, ChC_{h} is more specific than CjC_{j} (written ChCjC_{h}\succ C_{j}) if 𝒯strict+ChCj{\cal T}_{strict}\models_{{\mathcal{EL}}^{+}_{\bot}}C_{h}\sqsubseteq C_{j} and 𝒯strict⊧̸+CjCh{\cal T}_{strict}\not\models_{{\mathcal{EL}}^{+}_{\bot}}C_{j}\sqsubseteq C_{h}.

Relation \succ is irreflexive and transitive [Bonatti et al. (2015)]. Alternative notions of specificity can be used, based, for instance, on the rational closure ranking.

We are ready to define a notion of multipreference interpretation. Let a relation <Ci<_{C_{i}} be well-founded when there is no infinitely-descending chain of domain elements x1<Cix0,x2<Cix1,x3<Cix2,x_{1}<_{C_{i}}x_{0},\;x_{2}<_{C_{i}}x_{1},\;x_{3}<_{C_{i}}x_{2},\ldots.

Definition 6 (concept-wise multipreference interpretation)

A (finite) concept-wise multipreference interpretation (or cwm-interpretation) is a tuple =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle such that: (a) Δ\Delta is a non-empty domain;

  • (b)

    for each i=1,,ki=1,\ldots,k, <Ci<_{C_{i}} is an irreflexive, transitive, well-founded and modular relation over Δ\Delta;

  • (c)

    the (global) preference relation << is defined from <C1,,<Ck<_{C_{1}},\ldots,<_{C_{k}} as follows:

    x<y iff (i)\displaystyle x<y\mbox{ iff \ \ }(i) x<Ciy, for some Ci𝒞, and\displaystyle\ x<_{C_{i}}y,\mbox{ for some }C_{i}\in{\cal C},\mbox{ and }
    (ii)\displaystyle(ii)  for all Cj𝒞,xCjy or Ch(ChCj and x<Chy)\displaystyle\ \mbox{ for all }C_{j}\in{\cal C},\;x\leq_{C_{j}}y\mbox{ or }\exists C_{h}(C_{h}\succ C_{j}\mbox{ and }x<_{C_{h}}y)
  • (d)

    I\cdot^{I} is an interpretation function, as defined in +{\mathcal{EL}}^{+}_{\bot} interpretations (see Section 2), with the addition that, for typicality concepts, we let: (𝐓(C))I=min<(CI)({\bf T}(C))^{I}=min_{<}(C^{I}), where Min<(S)={u:uSMin_{<}(S)=\{u:u\in S and zS\nexists z\in S s.t. z<u}z<u\}.

Notice that the relation << is defined from <C1,,<Ck<_{C_{1}},\ldots,<_{C_{k}} based on a modified Pareto condition: x<yx<y holds if there is at least a Ci𝒞C_{i}\in{\cal C} such that x<Ciyx<_{C_{i}}y and, for all Cj𝒞C_{j}\in{\cal C}, either xCjyx\leq_{C_{j}}y holds or, in case it does not, there is some ChC_{h} more specific than CjC_{j} such that x<Chyx<_{C_{h}}y (preference <Ch<_{C_{h}} in this case overrides <Cj<_{C_{j}}). For instance, in Example 2, for two domain elements x,yx,y, both instances of 𝑃ℎ𝐷𝑆𝑡𝑢𝑑𝑒𝑛𝑡,𝑆𝑡𝑢𝑑𝑒𝑛𝑡,\mathit{PhDStudent,Student,} ℎ𝑎𝑠_𝐶𝑙𝑎𝑠𝑠𝑒𝑠.,𝑌𝑜𝑢𝑛𝑔\mathit{\exists has\_Classes.\top,Young}, and such that xx is instance of ℎ𝑎𝑠_𝑛𝑜_𝑆𝑐ℎ𝑜𝑙𝑎𝑟𝑠ℎ𝑖𝑝\mathit{has\_no\_Scholarship}, while y\mathit{y} is not, we have that x<𝑆𝑡𝑢𝑑𝑒𝑛𝑡y\mathit{x<_{Student}y} and y<𝑃ℎ𝐷𝑆𝑡𝑢𝑑𝑒𝑛𝑡x\mathit{y<_{PhDStudent}x}. As 𝑃ℎ𝐷𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{PhDStudent} is more specific than 𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{Student}, globally we get y<x\mathit{y<x}. We can prove the following result.

Proposition 1

Given a cwm-interpretation =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle, relation << is an irreflexive, transitive and well-founded relation.

Proof 4.1.

Well-foundedness of << is immediate from the restriction to finite models.

To prove irreflexivity and transitivity of <<, we exploit the fact that each <Ci<_{C_{i}} is assumed to be an irreflexive, transitive, well-founded and modular relation on Δ\Delta (see Definition 6). Irreflexivity of << follows easily from the irreflexivity of the <Ch<_{C_{h}}’s as, for x<xx<x to hold, x<Chxx<_{C_{h}}x should hold for some ChC_{h}, which is not possible as <Ch<_{C_{h}} is irreflexive.

To prove transitivity of <<, we prove transitivity of \leq defined as follows:

xy iff  for all Cj𝒞(i)\displaystyle x\leq y\mbox{ iff }\mbox{ for all }C_{j}\in{\cal C}\ \ (i) xCjy, or\displaystyle\ x\leq_{C_{j}}y,\mbox{ or }
(ii)\displaystyle(ii) exists Ch𝒞,(ChCj and x<Chy)\displaystyle\mbox{ exists }C_{h}\in{\cal C},\;(C_{h}\succ C_{j}\mbox{ and }x<_{C_{h}}y)

It is easy to see that the global preference relation << introduced in point (c) of Definition 6 can be equivalently defined as: x<y iff (xyx<y\mbox{ iff \ }(x\leq y and not yxy\leq x). Transitivity of << follows from transitivity of \leq.

To prove transitivity of \leq, let us assume that xyx\leq y and yzy\leq z hold. We prove that xzx\leq z holds by proving that: for all Cj𝒞C_{j}\in{\cal C}, xCjzx\leq_{C_{j}}z holds (call this case (i)Cjx,z(i)^{x,z}_{C_{j}}) or there is a ChC_{h} such that ChCjC_{h}\succ C_{j} and x<Ckzx<_{C_{k}}z (call this case (ii)Cjx,z(ii)^{x,z}_{C_{j}})).

As xyx\leq y holds, for all Cj𝒞C_{j}\in{\cal C}, xCjyx\leq_{C_{j}}y (case (i)1(i)_{1}) or there is a ChC_{h} such that ChCjC_{h}\succ C_{j} and x<Ckyx<_{C_{k}}y (case (ii)1(ii)_{1}). Similarly, as yzy\leq z holds, for all Cj𝒞C_{j}\in{\cal C}, yCjzy\leq_{C_{j}}z (case (i)2(i)_{2}) or there is a CrC_{r} such that CrCjC_{r}\succ C_{j} and x<Cryx<_{C_{r}}y (case (ii)2(ii)_{2}). Let us consider the different possible combination of cases in which xyx\leq y and yzy\leq z hold, for each CjC_{j}:

Case (i)1(i)_{1}-(i)2(i)_{2}: In this case, xCjyx\leq_{C_{j}}y and yCjzy\leq_{C_{j}}z hold. By transitivity of Cj\leq_{C_{j}}, xCjzx\leq_{C_{j}}z (i.e., condition (i)Cjx,z(i)^{x,z}_{C_{j}} is satisfied).

Case (ii)1(ii)_{1}-(i)2(i)_{2}: In this case, yCjzy\leq_{C_{j}}z , and there is a ChC_{h} such that ChCjC_{h}\succ C_{j} and x<Chyx<_{C_{h}}y. Let ChC_{h} be maximally specific among all concepts C𝒞C\in{\cal C} such that CCjC\succ C_{j} and x<Cyx<_{C}y.

If yChzy\leq_{C_{h}}z is the case, from x<Chyx<_{C_{h}}y, we get x<Chzx<_{C_{h}}z, so that: there is a ChC_{h} such that ChCjC_{h}\succ C_{j} and x<Chzx<_{C_{h}}z, i.e., condition (ii)Cjx,z(ii)^{x,z}_{C_{j}} is satisfied. Otherwise, if z<Chyz<_{C_{h}}y, as yzy\leq z, there must be a CrC_{r} such that CrChC_{r}\succ C_{h} and y<Crzy<_{C_{r}}z. If xCryx\leq_{C_{r}}y, we can conclude that x<Crzx<_{C_{r}}z. From CrChCjC_{r}\succ C_{h}\succ C_{j}, by transitivity, CrCjC_{r}\succ C_{j}, i.e. condition (ii)Cjx,z(ii)^{x,z}_{C_{j}} is satisfied. If xCryx\leq_{C_{r}}y does not hold, i.e. y<Crxy<_{C_{r}}x, as xyx\leq y, there must be a Cw𝒞C_{w}\in{\cal C} such that CwCrC_{w}\succ C_{r} and x<Cwyx<_{C_{w}}y. However, this is not possible, as it would be CwCrChCjC_{w}\succ C_{r}\succ C_{h}\succ C_{j} and we have chosen ChC_{h} to be maximally specific among the concepts C𝒞C\in{\cal C} such that CCjC\succ C_{j} and x<Cyx<_{C}y, a contradiction.

The cases (i)1(i)_{1}-(ii)2(ii)_{2} and (ii)1(ii)_{1}-(ii)2(ii)_{2} can be proved in a similar way.

In a cwm-interpretation we have assumed each <Cj<_{C_{j}} to be any irreflexive, transitive, modular and well-founded relation. In a cwm-model of KK, the preference relations <Cj<_{C_{j}}’s will be defined from the ranked TBoxes 𝒯Cj{\cal T}_{C_{j}}’s according to Definition 2.

Definition 4.2 (cwm-model of KK).

Let K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯C1,,{\cal T}_{C_{1}},\ldots, 𝒯Ck,𝒜{\cal T}_{C_{k}},{\cal A}\rangle be a ranked +{\mathcal{EL}}^{+}_{\bot} knowledge base over 𝒞{\cal C} and I=Δ,II=\langle\Delta,\cdot^{I}\rangle an +{\mathcal{EL}}^{+}_{\bot} interpretation for KK. A concept-wise multipreference model (or cwm-model) of KK is a cwm-interpretation =Δ,<C1,,<Ck,<,I{{\mathcal{M}}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle such that: for all j=1,,kj=1,\ldots,k, <Cj<_{C_{j}} is defined from 𝒯Cj{\cal T}_{C_{j}} and I\cdot^{I}, according to Definition 2; {\mathcal{M}} satisfies all strict inclusions inclusions in 𝒯strict{\cal T}_{strict} and all assertions in 𝒜{\cal A}.

As the preferences <Cj<_{C_{j}}’s, defined according to Definition 2, are irreflexive, transitive, well-founded and modular relations over Δ\Delta, a cwm-model {\mathcal{M}} is indeed a cwm-interpretation. By definition {\mathcal{M}} satisfies all strict inclusions and assertions in KK, but is not required to satisfy all typicality inclusions 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D in KK, unlike in preferential typicality logics [Giordano et al. (2007)].

Consider, in fact, a situation in which typical birds are fliers and typical fliers are birds (𝐓(B)F{\bf T}(B)\sqsubseteq F and 𝐓(F)B{\bf T}(F)\sqsubseteq B). In a cwm-model two domain elements xx and yy, which are both birds and fliers, might be incomparable wrt <<, as xx is more typical than yy as a bird, while yy is more typical than xx as a flier, even if one of them is minimal wrt <Bird<_{Bird} and the other is not. In this case, they will be both minimal wrt <<. In preferential logics, we would conclude that 𝐓(B)𝐓(F){\bf T}(B)\equiv{\bf T}(F), which is not the case under the cwm-semantics. This implies that the notion of cwm-entailment (defined below) is not stronger than preferential entailment. It is also not weaker as, for instance, in Example 2, cwm-entailment allows to conclude that typical employed students have a boss, have classes and no scholarship (although defaults (d1)(d_{1}) and (d4)(d_{4}) are conflicting), while neither preferential entailment nor the rational closure would allow such conclusions; cwm-entailment does not suffer from inheritance blocking, and is then incomparable with preferential entailment and with entailment under rational closure, being neither weaker nor stronger.

The notion of cwm-entailment exploits canonical and 𝐓{\bf T}-compliant cwm-models of KK. A cwm-model =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle is canonical (𝐓{\bf T}-compliant) for KK if the +{\mathcal{EL}}^{+}_{\bot} interpretation Δ,I\langle\Delta,\cdot^{I}\rangle is canonical (𝐓{\bf T}-compliant) for KK.

Definition 4.3 (cwm-entailment).

An inclusion 𝐓(C)Cj{\bf T}(C)\sqsubseteq C_{j} is cwm-entailed from KK (written Kcwm𝐓(C)CjK\models_{cw^{m}}{\bf T}(C)\sqsubseteq C_{j}) if 𝐓(C)Cj{\bf T}(C)\sqsubseteq C_{j} is satisfied in all canonical and 𝐓{\bf T}-compliant cwm-models {\mathcal{M}} of KK.

It can be proved that cwm-entailment satisfies the KLM postulates of a preferential consequence relation (see Appendix A, Proposition A.10).

5 Reasoning under the cw-multipreference semantics

In this section we consider the problem of checking cwm-entailment of a typicality subsumption 𝐓(C)D{\bf T}(C)\sqsubseteq D as a problem of determining preferred answer sets. Based on this formulation, that we prove to be sound and complete, we show that the problem is in Π2p\Pi^{p}_{2}. We exploit asprin [Brewka et al. (2015)] to compute preferred answer sets. The proofs for this section can be found in Appendix C.

In principle, for checking 𝐓(C)D{\bf T}(C)\sqsubseteq D we would need to consider all possible typical CC-elements in all possible canonical and 𝐓{\bf T}-compliant cwm-model of KK, and verify whether they are all instances of DD. However, we will prove that it is sufficient to consider, among all the (finite) cwm-models of KK, the polynomial +{\mathcal{EL}}^{+}_{\bot} models that we can construct using the +{\mathcal{EL}}^{+}_{\bot} fragment of the materialization calculus for 𝒮𝒪(,×)\mathcal{SROEL}(\sqcap,\times) [Krötzsch (2010)], by considering all alternative interpretations for a distinguished element auxCaux_{C}, representing a prototypical CC-element. In preferred models, which minimize the violation of typicality inclusions by auxCaux_{C}, it indeed represents a typical CC-element. An interesting result is that neither we need to consider all the possible interpretations for constants in the model nor to minimize violation of typicalities for them. Essentially, when evaluating the properties of typical employed students we are not concerned with the typicality (or atypicality) of other constants in the model (e.g., with typical cars, with typical birds, and with typical named individuals). Unlike a previous semantics by Giordano and Theseider Dupré \shortciteTPLP2016, which generalizes rational closure by allowing typicality concepts on the rhs of inclusions, we are not required to consider all possible alternative interpretations and ranks of individuals in the model. We will see, however, that we do not loose solutions (models) in this way.

In the following we first describe how answer sets of a base program, corresponding to cwm-models of KK, are generated. Then we describe how preferred models can be selected, where 𝑎𝑢𝑥C\mathit{aux_{C}} represent a typical CC-element.

We will assume that assertions (C(a)C(a) and r(a,b)r(a,b)) are represented using nominals as inclusions (resp., {a}A\{a\}\sqsubseteq A and {a}R.{b}\{a\}\sqsubseteq\exists R.\{b\}), where a nominal {a}\{a\} is a concept containing a single element and ({a})I={aI}(\{a\})^{I}=\{a^{I}\}. We also assume that the knowledge base KK is in normal form [Baader et al. (2005)], where a typicality inclusion 𝐓(B)C{\bf T}(B)\sqsubseteq C is in normal form when B,CNCB,C\in N_{C} [Giordano and Theseider Dupré (2016)]. Extending the results in [Krötzsch (2010)], it can be proved that, given a KB, a semantically equivalent KB in normal form (over an extended signature) can be computed in linear time. We refer to a previous paper [Giordano and Theseider Dupré (2018)] for the details on normalization.

The base program Π(K,C,D)\Pi(K,C,D) for the (normalized) knowledge base KK and typicality subsumption 𝐓(C)D{\bf T}(C)\sqsubseteq D is composed of three parts, Π(K,C,D)=ΠKΠIRΠC,D\Pi(K,C,D)=\Pi_{K}\cup\Pi_{IR}\cup\Pi_{C,D}.

ΠK\Pi_{K} is the representation of KK in Datalog [Krötzsch (2010)], where, to keep a DL-like notation, we do not follow the convention where variable names start with uppercase; in particular, AA, CC, DD and RR, are intended as ASP constants corresponding to the same class/role names in KK. In this representation, 𝑛𝑜𝑚(a)\mathit{nom(a)}, 𝑐𝑙𝑠(A)\mathit{cls(A)}, 𝑟𝑜𝑙(R)\mathit{rol(R)} are used for aNI\mathit{a\in N_{I}} , ANC\mathit{A\in N_{C}}, RNR\mathit{R\in N_{R}}, and, for example, 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(a,C)\mathit{subClass(a,C)}, 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(A,C)\mathit{subClass(A,C)} are used for C(a)C(a), ACA\sqsubseteq C. Additionally, 𝑠𝑢𝑏𝑇𝑦𝑝(C,D,N)\mathit{subTyp(C,D,N)} is used for T(C)D\mathit{T(C)\sqsubseteq D} having rank NN, and the following definitions for distinguished concepts, typical properties, and valid ranks, will be used in defining preferences:

𝑑𝑐𝑙𝑠(C)𝑠𝑢𝑏𝑇𝑦𝑝(C,D,N)\mathit{dcls(C)\leftarrow subTyp(C,D,N)}
𝑡𝑝𝑟𝑜𝑝(C,D)𝑠𝑢𝑏𝑇𝑦𝑝(C,D,N)\mathit{tprop(C,D)\leftarrow subTyp(C,D,N)}
𝑣𝑎𝑙𝑖𝑑𝑟𝑎𝑛𝑘(C,N)𝑠𝑢𝑏𝑇𝑦𝑝(C,D,N)\mathit{validrank(C,N)\leftarrow subTyp(C,D,N)}

For each distinguished concept CiC_{i}, 𝑎𝑢𝑥𝑡𝑐(𝑎𝑢𝑥_𝐶𝑖,𝐶𝑖)\mathit{auxtc(aux\_Ci,Ci)} is included, where 𝑎𝑢𝑥_𝐶𝑖\mathit{aux\_Ci} is an auxiliary individual name. Other auxiliary constants (one for each inclusion AR.BA\sqsubseteq\exists R.B) are needed [Krötzsch (2010)] to deal with existential rules.

ΠIR\Pi_{IR} contains the subset of the inference rules (1-29) for instance checking [Krötzsch (2010)] that is relevant for +{\mathcal{EL}}^{+}_{\bot} (reported in Appendix B), for example 𝑖𝑛𝑠𝑡(x,z)\mathit{inst(x,z)\leftarrow} 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(y,z),𝑖𝑛𝑠𝑡(x,y)\mathit{subClass(y,z),inst(x,y)}; for \bot, an additional rule is used: 𝑏𝑜𝑡(z),𝑖𝑛𝑠𝑡(x,z)\mathit{\leftarrow bot(z),inst(x,z)}. Additionally, ΠIR\Pi_{IR} contains the version of the same rules for subclass checking (where 𝑖𝑛𝑠𝑡_𝑠𝑐(A,B,A)\mathit{inst\_sc(A,B,A)} represents ABA\sqsubseteq B [Krötzsch (2010)]), and then the following rule encodes specificity ChCjC_{h}\succ C_{j}:

𝑚𝑜𝑟𝑒𝑠𝑝𝑒𝑐(𝐶ℎ,𝐶𝑗)𝑑𝑐𝑙𝑠(𝐶ℎ),𝑑𝑐𝑙𝑠(𝐶𝑗),𝑖𝑛𝑠𝑡_𝑠𝑐(𝐶ℎ,𝐶𝑗,𝐶ℎ),𝑛𝑜𝑡𝑖𝑛𝑠𝑡_𝑠𝑐(𝐶𝑗,𝐶ℎ,𝐶𝑗)\mathit{morespec(Ch,Cj)\leftarrow dcls(Ch),dcls(Cj),inst\_sc(Ch,Cj,Ch),not~{}inst\_sc(Cj,Ch,Cj)}

ΠIR\Pi_{IR} also contains the following rules:

(a) {𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,D)}𝑑𝑐𝑙𝑠(𝐶𝑖),𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,𝐶𝑖),𝑡𝑝𝑟𝑜𝑝(𝐶𝑖,D)\mathit{\{inst(aux_{C},D)\}\ \leftarrow dcls(Ci),inst(aux_{C},Ci),tprop(Ci,D)}
(b) 𝑖𝑛𝑠𝑡(Y,𝐶𝑖)𝑎𝑢𝑥𝑡𝑐(Y,𝐶𝑖),𝑖𝑛𝑠𝑡(X,𝐶𝑖)\mathit{inst(Y,Ci)\leftarrow auxtc(Y,Ci),inst(X,Ci)}
(c) 𝑡𝑦𝑝(Y,𝐶𝑖)𝑎𝑢𝑥𝑡𝑐(Y,𝐶𝑖),𝑖𝑛𝑠𝑡(Y,𝐶𝑖)\mathit{typ(Y,Ci)\leftarrow auxtc(Y,Ci),inst(Y,Ci)}
(d) 𝑖𝑛𝑠𝑡(Y,D)𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,D,N),𝑡𝑦𝑝(Y,𝐶𝑖)\mathit{inst(Y,D)\leftarrow subTyp(Ci,D,N),typ(Y,Ci)}

Rule (a) generates alternative answer sets (corresponding to different interpretations) where 𝑎𝑢𝑥C\mathit{aux_{C}} may have the typical properties of the concepts it belongs. The constant aux_Ciaux\_Ci, such that auxtc(aux_Ci,Ci)auxtc(aux\_Ci,Ci) holds, represents a typical CiCi (a minimal element wrt. Ci\leq_{C_{i}}) only in case it is an instance of CiC_{i} (i.e., 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥_𝐶𝑖,𝐶𝑖)\mathit{inst(aux\_Ci,Ci)} holds). Rule (b) establishes that, if there is an instance xx of concept CiC_{i} in the interpretation, then aux_Ciaux\_Ci must be an instance of CiC_{i} (it models 𝐓{\bf T}-compliance) and, by rule (c), aux_Ciaux\_Ci is a typical instance of CiC_{i}, i.e., it is minimal wrt. Ci\leq_{C_{i}} among CiC_{i}-elements in the interpretation at hand. By rule (d), a typical instance of CiC_{i} has all typical properties of CiC_{i}. The rules (b)-(d) only allow to derive conclusions involving aux_Ciaux\_Ci constants.

ΠC,D\Pi_{C,D} contains (if necessary) normalized axioms defining C,DC,D in 𝐓(C)D{\bf T}(C)\sqsubseteq D in terms of other concepts (e.g., replacing 𝐓(𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒𝑆𝑡𝑢𝑑𝑒𝑛𝑡)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Employee\sqcap Student)\sqsubseteq Young} with 𝐓(A)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(A)\sqsubseteq Young} and A𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒\mathit{A\sqsubseteq Employee}, A𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{A\sqsubseteq Student} and 𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒𝑆𝑡𝑢𝑑𝑒𝑛𝑡A\mathit{Employee\sqcap Student\sqsubseteq A}) plus the facts 𝑎𝑢𝑥𝑡𝑐(𝑎𝑢𝑥C,C)\mathit{auxtc(aux_{C},C)}, 𝑛𝑜𝑚(𝑎𝑢𝑥C)\mathit{nom(aux_{C})}, 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,C).\mathit{inst(aux_{C},C).}

Proposition 5.4.

Given a normalized ranked knowledge base K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯C1,,{\cal T}_{C_{1}},\ldots, 𝒯Ck,𝒜{\cal T}_{C_{k}},{\cal A}\rangle over the set of concepts 𝒞{\cal C}, and a (normalized) subsumption CDC\sqsubseteq D:

  • (1)

    if there is an answer set SS of the ASP program Π(K,C,D)\Pi(K,C,D), such that inst(auxC,D)Sinst(aux_{C},D)\not\in S, then there is a 𝐓{\bf T}-compliant cwm-model =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle for KK that falsifies the subsumption CDC\sqsubseteq D.

  • (2)

    if there is a 𝐓{\bf T}-compliant cwm-model =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle of KK that falsifies the subsumption CDC\sqsubseteq D, then there is an answer set SS of Π(K,C,D)\Pi(K,C,D), such that 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,D)S\mathit{inst(aux_{C},D)\not\in S}.

We exploit the idea of identifying the minimal CC-elements in a canonical cwm-model of KK, as the auxCaux_{C} elements of the preferred answer sets of Π(K,C,D)\Pi(K,C,D).

Definition 5.5.

Let SS and SS^{\prime} be answer sets of Π(K,C,D)\Pi(K,C,D). SS^{\prime} is preferred to SS if auxCaux_{C} in SS^{\prime} (denoted as auxCSaux_{C}^{S^{\prime}}) is globally preferred to auxCaux_{C} in SS (denoted as auxCSaux_{C}^{S}), that is, auxCS<auxCSaux_{C}^{S^{\prime}}<aux_{C}^{S}, defined according to Definition 6, point (c), provided that relations auxCSCjauxCSaux_{C}^{S^{\prime}}\leq_{C_{j}}aux_{C}^{S} are defined according to Definition 2, by letting:

𝒯Cil(𝑎𝑢𝑥CS)={B𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,Ci)S\mathit{{\cal T}^{l}_{C_{i}}(aux_{C}^{S})}=\{\mathit{B\mid\;inst(aux_{C},C_{i})\not\in S} or 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)}\in S, for 𝐓(Ci)BK{\bf T}(C_{i})\sqsubseteq B\in K},

i.e., 𝒯Cil(𝑎𝑢𝑥CS)\mathit{{\cal T}^{l}_{C_{i}}(aux_{C}^{S})} contains the BB’s such that CiBC_{i}\sqsubseteq B is satisfied in SS for some typicality inclusion 𝐓(Ci)B{\bf T}(C_{i})\sqsubseteq B in KK; and similarly for SS^{\prime}. The strict relation auxCS<CjauxCSaux_{C}^{S^{\prime}}<_{C_{j}}aux_{C}^{S} is defined accordingly.

Essentially, we compare SS and SS^{\prime} identifying the concepts of which auxCaux_{C} is an instance in SS and in SS^{\prime} and evaluating which defaults are satisfied for auxCaux_{C} in SS and in SS^{\prime}, using the same criteria used for comparing domain elements in Section 3.

The selection of preferred answer sets, the ones where auxCaux_{C} is in min<(CI)min_{<}(C^{I}), and then in (𝐓(C))I({\bf T}(C))^{I}, can be done in asprin with the following preference specification:

#𝑝𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒(p,𝑚𝑢𝑙𝑡𝑖𝑝𝑟𝑒𝑓){𝑑𝑐𝑙𝑠(𝐶𝑖):𝑑𝑐𝑙𝑠(𝐶𝑖);𝑚𝑜𝑟𝑒𝑠𝑝𝑒𝑐(𝐶𝑖,𝐶𝑗):𝑑𝑐𝑙𝑠(𝐶𝑖),𝑑𝑐𝑙𝑠(𝐶𝑗);\mathit{\#preference(p,multipref)\{dcls(Ci):dcls(Ci);morespec(Ci,Cj):dcls(Ci),dcls(Cj);}
                  𝑖𝑛𝑠𝑡(𝑎𝑢𝑥𝐶,E):𝑡𝑝𝑟𝑜𝑝(𝐶𝑖,E),𝑑𝑐𝑙𝑠(𝐶𝑖);𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R):𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R);\mathit{inst(auxC,E):tprop(Ci,E),dcls(Ci);subTyp(Ci,E,R):subTyp(Ci,E,R);}
                  𝑣𝑎𝑙𝑖𝑑𝑟𝑎𝑛𝑘(𝐶𝑖,R):𝑣𝑎𝑙𝑖𝑑𝑟𝑎𝑛𝑘(𝐶𝑖,R)}\mathit{validrank(Ci,R):validrank(Ci,R)\}}
#𝑜𝑝𝑡𝑖𝑚𝑖𝑧𝑒(p)\mathit{\#optimize(p)}

requiring optimization wrt pp which is a preference of type 𝑚𝑢𝑙𝑡𝑖𝑝𝑟𝑒𝑓\mathit{multipref}, a preference type defined by the preference program below (exploiting the fact that asprin, among other things, generates from the specification a fact 𝑝𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒(p,𝑚𝑢𝑙𝑡𝑖𝑝𝑟𝑒𝑓)\mathit{preference(p,multipref)}).

In asprin preference programs, defining whether an answer set SS is preferred to SS^{\prime} according to a preference PP amounts to defining a predicate better(P)better(P) for the case where PP is of the type being defined; the predicates holdsholds and holdsholds^{\prime} are used to check whether the atoms in the preference specification hold in SS and SS^{\prime}, respectively. In the following, 𝑏𝑒𝑡𝑡𝑒𝑟(p),𝑏𝑒𝑡𝑡𝑒𝑟𝑒𝑞𝑤𝑟𝑡(𝐶𝑖),𝑏𝑒𝑡𝑡𝑒𝑟𝑤𝑟𝑡(𝐶𝑖)\mathit{better(p),bettereqwrt(Ci),betterwrt(Ci)}, correspond to <<, Ci\leq_{C_{i}}, <Ci<_{C_{i}}, respectively, for auxCSaux_{C}^{S} and auxCSaux_{C}^{S^{\prime}}, comparing what holdsholds for auxCaux_{C} to what holdsholds^{\prime} for it; 𝑚𝑜𝑟𝑒𝑝𝑟𝑜𝑝\mathit{moreprop} and 𝑠𝑎𝑚𝑒𝑛𝑢𝑚𝑝𝑟𝑜𝑝\mathit{samenumprop} verify whether more (or the same number of ) typicality inclusions of rank RR are satisfied by auxCaux_{C} in SS wrt SS^{\prime}:

#𝑝𝑟𝑜𝑔𝑟𝑎𝑚𝑝𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒(𝑚𝑢𝑙𝑡𝑖𝑝𝑟𝑒𝑓)\mathit{\#program~{}preference(multipref)}
𝑏𝑒𝑡𝑡𝑒𝑟(P)𝑝𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒(P,𝑚𝑢𝑙𝑡𝑖𝑝𝑟𝑒𝑓),ℎ𝑜𝑙𝑑𝑠(𝑑𝑐𝑙𝑠(𝐶𝑖)),\mathit{better(P)\leftarrow preference(P,multipref),holds(dcls(Ci)),}
                  𝑏𝑒𝑡𝑡𝑒𝑟𝑤𝑟𝑡(𝐶𝑖),𝑛𝑜𝑎𝑡𝑡𝑎𝑐𝑘(𝐶𝑗):ℎ𝑜𝑙𝑑𝑠(𝑑𝑐𝑙𝑠(𝐶𝑗))\mathit{betterwrt(Ci),noattack(Cj):holds(dcls(Cj))}
𝑛𝑜𝑎𝑡𝑡𝑎𝑐𝑘(𝐶𝑗)ℎ𝑜𝑙𝑑𝑠(𝑑𝑐𝑙𝑠(𝐶𝑗)),𝑏𝑒𝑡𝑡𝑒𝑟𝑒𝑞𝑤𝑟𝑡(𝐶𝑗)\mathit{noattack(Cj)\leftarrow holds(dcls(Cj)),bettereqwrt(Cj)}
𝑛𝑜𝑎𝑡𝑡𝑎𝑐𝑘(𝐶𝑗)ℎ𝑜𝑙𝑑𝑠(𝑑𝑐𝑙𝑠(𝐶𝑗)),ℎ𝑜𝑙𝑑𝑠(𝑑𝑐𝑙𝑠(𝐶ℎ)),ℎ𝑜𝑙𝑑𝑠(𝑚𝑜𝑟𝑒𝑠𝑝𝑒𝑐(𝐶ℎ,𝐶𝑗)),𝑏𝑒𝑡𝑡𝑒𝑟𝑤𝑟𝑡(𝐶ℎ)\mathit{noattack(Cj)\leftarrow holds(dcls(Cj)),holds(dcls(Ch)),holds(morespec(Ch,Cj)),betterwrt(Ch)}
𝑏𝑒𝑡𝑡𝑒𝑟𝑒𝑞𝑤𝑟𝑡(𝐶𝑖)𝑏𝑒𝑡𝑡𝑒𝑟𝑤𝑟𝑡(𝐶𝑖)\mathit{bettereqwrt(Ci)\leftarrow betterwrt(Ci)}
𝑏𝑒𝑡𝑡𝑒𝑟𝑒𝑞𝑤𝑟𝑡(𝐶𝑖)ℎ𝑜𝑙𝑑𝑠(𝑑𝑐𝑙𝑠(𝐶𝑖)),𝑠𝑎𝑚𝑒𝑛𝑢𝑚𝑝𝑟𝑜𝑝(𝐶𝑖,R):ℎ𝑜𝑙𝑑𝑠(𝑣𝑎𝑙𝑖𝑑𝑟𝑎𝑛𝑘(𝐶𝑖,R))\mathit{bettereqwrt(Ci)\leftarrow holds(dcls(Ci)),samenumprop(Ci,R):holds(validrank(Ci,R))}
𝑏𝑒𝑡𝑡𝑒𝑟𝑤𝑟𝑡(𝐶𝑖)ℎ𝑜𝑙𝑑𝑠(𝑑𝑐𝑙𝑠(𝐶𝑖)),𝑚𝑜𝑟𝑒𝑝𝑟𝑜𝑝(𝐶𝑖,R),\mathit{betterwrt(Ci)\leftarrow holds(dcls(Ci)),moreprop(Ci,R),}
                  𝑠𝑎𝑚𝑒𝑛𝑢𝑚𝑝𝑟𝑜𝑝(𝐶𝑖,R1):ℎ𝑜𝑙𝑑𝑠(𝑣𝑎𝑙𝑖𝑑𝑟𝑎𝑛𝑘(𝐶𝑖,R1)),R1>R\mathit{samenumprop(Ci,R1):holds(validrank(Ci,R1)),R1>R}
𝑚𝑜𝑟𝑒𝑝𝑟𝑜𝑝(𝐶𝑖,R)ℎ𝑜𝑙𝑑𝑠(𝑣𝑎𝑙𝑖𝑑𝑟𝑎𝑛𝑘(𝐶𝑖,R)),\mathit{moreprop(Ci,R)\leftarrow holds(validrank(Ci,R)),}
                  #𝑠𝑢𝑚{1,E:𝑠𝑎𝑡(𝑎𝑢𝑥𝐶,𝐶𝑖,E),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R));\mathit{\#sum\{-1,E:sat(auxC,Ci,E),holds(subTyp(Ci,E,R));}
                            1,E:sat1(𝑎𝑢𝑥𝐶,𝐶𝑖,E),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R))}1\mathit{1,E:sat1(auxC,Ci,E),holds(subTyp(Ci,E,R))\}-1}
𝑠𝑎𝑡(𝑎𝑢𝑥𝐶,𝐶𝑖,E)ℎ𝑜𝑙𝑑𝑠(X),X=𝑖𝑛𝑠𝑡(𝑎𝑢𝑥𝐶,E),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R))\mathit{sat(auxC,Ci,E)\leftarrow holds(X),X=inst(auxC,E),holds(subTyp(Ci,E,R))}
𝑠𝑎𝑡(𝑎𝑢𝑥𝐶,𝐶𝑖,E)𝑛𝑜𝑡ℎ𝑜𝑙𝑑𝑠(X),X=𝑖𝑛𝑠𝑡(𝑎𝑢𝑥𝐶,𝐶𝑖),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R))\mathit{sat(auxC,Ci,E)\leftarrow not~{}holds(X),X=inst(auxC,Ci),holds(subTyp(Ci,E,R))}
sat1(𝑎𝑢𝑥𝐶,𝐶𝑖,E)ℎ𝑜𝑙𝑑𝑠(X),X=𝑖𝑛𝑠𝑡(𝑎𝑢𝑥𝐶,E),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R))\mathit{sat1(auxC,Ci,E)\leftarrow holds^{\prime}(X),X=inst(auxC,E),holds(subTyp(Ci,E,R))}
sat1(𝑎𝑢𝑥𝐶,𝐶𝑖,E)𝑛𝑜𝑡ℎ𝑜𝑙𝑑𝑠(X),X=𝑖𝑛𝑠𝑡(𝑎𝑢𝑥𝐶,𝐶𝑖),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R))\mathit{sat1(auxC,Ci,E)\leftarrow not~{}holds^{\prime}(X),X=inst(auxC,Ci),holds(subTyp(Ci,E,R))}
𝑠𝑎𝑚𝑒𝑛𝑢𝑚𝑝𝑟𝑜𝑝(𝐶𝑖,R)ℎ𝑜𝑙𝑑𝑠(𝑣𝑎𝑙𝑖𝑑𝑟𝑎𝑛𝑘(𝐶𝑖,R)),\mathit{samenumprop(Ci,R)\leftarrow holds(validrank(Ci,R)),}
                  0#𝑠𝑢𝑚{1,E:𝑠𝑎𝑡(𝑎𝑢𝑥𝐶,𝐶𝑖,E),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R));\mathit{0\#sum\{-1,E:sat(auxC,Ci,E),holds(subTyp(Ci,E,R));}
                                1,E:sat1(𝑎𝑢𝑥𝐶,𝐶𝑖,E),ℎ𝑜𝑙𝑑𝑠(𝑠𝑢𝑏𝑇𝑦𝑝(𝐶𝑖,E,R))}0\mathit{1,E:sat1(auxC,Ci,E),holds(subTyp(Ci,E,R))\}0}

Let us call 𝑃𝑟𝑒𝑓\mathit{Pref} the preference specification and the preference program defined above; checking whether 𝐓(C)D{\bf T}(C)\sqsubseteq D is cwm-entailed amounts to checking whether inst(auxC,D)inst(aux_{C},D) is in all preferred answer sets of Π(K,C,D)\Pi(K,C,D) according to 𝑃𝑟𝑒𝑓\mathit{Pref}.

Proposition 5.6.

Given a normalized ranked knowledge base K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯C1,,{\cal T}_{C_{1}},\ldots, 𝒯Ck,𝒜{\cal T}_{C_{k}},{\cal A}\rangle over the set of concepts 𝒞{\cal C}, and a subsumption 𝐓(C)D{\bf T}(C)\sqsubseteq D, we can prove the following:

  • (1)

    if there is a canonical and 𝐓{\bf T}-compliant cwm-model =(Δ,<C1,,<Ck,<,I){\mathcal{M}}=(\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}) of KK that falsifies 𝐓(C)D{\bf T}(C)\sqsubseteq D, then there is a preferred answer set SS of Π(K,C,D)\Pi(K,C,D) according to 𝑃𝑟𝑒𝑓\mathit{Pref}, such that inst(auxC,D)Sinst(aux_{C},D)\not\in S.

  • (2)

    if there is a preferred answer set SS of Π(K,C,D)\Pi(K,C,D) according to 𝑃𝑟𝑒𝑓\mathit{Pref}, such that inst(auxC,D)Sinst(aux_{C},D)\not\in S, then there is a canonical and 𝐓{\bf T}-compliant cwm-model =(Δ,<C1,,<Ck,<,I){\mathcal{M}}=(\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}) of KK that falsifies 𝐓(C)D{\bf T}(C)\sqsubseteq D.

Propositions 5.4 and 5.6 tell us that, for computing cwm-entailment, it is sufficient to consider the polynomial 𝐓{\bf T}-compliant cwm-models of KK corresponding to answer sets SS of Π(K,\Pi(K, C,D)C,D)111Note that, for verifying cwm-entailment of 𝐓(C)D{\bf T}(C)\sqsubseteq D, all answer sets of Π(K,\Pi(K, C,D)C,D) have to be considered and checking whether Π(K,C,D){inst(auxC,D)}\Pi(K,C,D)\cup\{-inst(aux_{C},D)\} has no preferred answer sets would not be correct.. A Π2p\Pi^{p}_{2} upper bound on the complexity of cwm-entailment can be proved based on the the above formulation of cwm-entailment as a problem of computing preferred answer sets. The Π2p\Pi^{p}_{2}-hardness can be proved by providing a reduction of the minimal entailment problem of positive disjunctive logic programs, which was proved to be a Π2P\Pi^{P}_{2}-hard problem by Eiter and Gottlob \shortciteEiter95.

Proposition 5.7.

Deciding cwm-entailment is a Π2p\Pi^{p}_{2}-complete problem.

5.1 Some experimental results

For Example 2, we actually get that typical employed students have a boss, but not that they are young: there are, in fact, two preferred answer sets, with 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,𝑌𝑜𝑢𝑛𝑔)\mathit{inst(aux_{C},Young)} and 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,𝑁𝑜𝑡𝑌𝑜𝑢𝑛𝑔)\mathit{inst(aux_{C},NotYoung)} respectively; they are generated in 0.40 seconds.

A first scalability test is based on a slightly larger version of the same example, with 5 distinguished classes and 50 typicality inclusions. Adding to it more typicality inclusions, up to 8 times (400 inclusions), the runtime grows up to 0.99 s (see Table 1, test 1a, average running times for asprin 1.1.1 under Linux on an Intel Xeon E5-2640 @ 2.00GHz). Adding up to 8 copies of the KB (i.e., adding 𝐓(𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒)𝑁𝑜𝑡𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Employee^{\prime})\sqsubseteq NotYoung^{\prime}} and similar), with up to 40 distinguished classes and 400 typicality inclusions, the runtime grows up to 3.93 (Table 1, test 1b).

In another experiment, we have distinguished classes C1C5C_{1}\ldots C_{5} with C3C2C1C_{3}\sqsubseteq C_{2}\sqsubseteq C_{1}, C5C4C1C_{5}\sqsubseteq C_{4}\sqsubseteq C_{1}. For all ii, the CiC_{i}’s are typically PiP_{i}’s, QiQ_{i}’s, RiR_{i}’s, where for iji\neq j, PiPjP_{i}\sqcap P_{j}\sqsubseteq\bot. A typical C3C5C_{3}\sqcap C_{5} then inherits all the QiQ_{i}’s and RiR_{i}’s properties, while it can either be a P3P_{3} or a P5P_{5}. Also in this case adding up to 8 copies of the KB (with then up to 40 distinguished classes and 120 typicality inclusions) leads to a moderate increase of the running time which ranges from 1.03 to 1.76 seconds (Table 1, test 2).

Dealing with longer chains of subclasses seems more challenging. For a modification of the base case of the previous example with 10 distinguished classes C10C8C6C4C2C1C_{10}\sqsubseteq C_{8}\sqsubseteq C_{6}\sqsubseteq C_{4}\sqsubseteq C_{2}\sqsubseteq C_{1}, C9C7C5C3C1C_{9}\sqsubseteq C_{7}\sqsubseteq C_{5}\sqsubseteq C_{3}\sqsubseteq C_{1}, and 50 typicality axioms, checking the properties of typical C9C10C_{9}\sqcap C_{10} already takes 5.4 seconds.

1x 2x 4x 8x
test 1a 0.35 0.45 0.63 0.99
test 1b 0.35 0.50 0.95 3.93
test 2 1.03 1.15 1.27 1.76
Table 1: Some scalability results

6 Conclusions and related work

In this paper we have developed an ASP approach for defeasible inference in a concept-wise multipreference extension of \mathcal{EL}^{\bot}. Our semantics is related to the multipreference semantics for 𝒜𝒞\mathcal{ALC} developed by Gliozzi \shortciteGliozziAIIA2016, which is based on the idea of refining the rational closure construction considering the preference relations <Ai<_{A_{i}} associated with different aspects, but we follow a different route concerning both the definition of the preference relations associated with concepts, and the way of combining them in a single preference relation. In particular, Gliozzi’s multipreference semantics aims at defining a refinement of rational closure semantics, which is not our aim here; compared with rational closure, our semantics is neither weaker (as it does not suffer from the “the blocking of property inheritance” problem) nor stronger (see Section 4).

The idea of having different preference relations, associated with different typicality operators, has been studied by Gil \shortcitefernandez-gil to define a multipreference formulation of the description logic 𝒜𝒞+𝐓min{\mathcal{ALC}}+{\bf T}_{min}, a typicality DL with a minimal model preferential semantics. In this proposal we associate preferences with concepts, and we combine such preferences into a single global one. For a preferential extension of \mathcal{EL}^{\bot} based on the same minimal model semantics as 𝒜𝒞+𝐓min{\mathcal{ALC}}+{\bf T}_{min}, it has been proved [Giordano et al. (2011)] that minimal entailment is already ExpTime-hard for \mathcal{EL}^{\bot} KBs, while a Π2p\Pi^{p}_{2} upper bound holds for minimal entailment in the Left Local fragment of 𝐓𝑚𝑖𝑛{\mathcal{EL}^{\bot}{\bf T}_{\mathit{min}}}, as for circumscriptive KBs [Bonatti et al. (2011)]. A related problem of commonsense concept combination has also been addressed in a probabilistic extension of 𝒜𝒞+𝐓R\mathcal{ALC}+{\bf T}_{\textsf{\tiny R}} [Lieto and Pozzato (2018)].

Among the formalisms combining DLs with logic programming rules [Eiter et al. (2008), Eiter et al. (2011), Motik and Rosati (2010), Knorr et al. (2012), Gottlob et al. (2014)] DL-programs [Eiter et al. (2008), Eiter et al. (2011)] support a loose coupling of DL ontologies and rule-based reasoning under the answer set semantics and the well-founded semantics; rules may contain DL-atoms in their bodies, corresponding to queries to a DL ontology, which can be modified according to a list of updates. The non-monotonic description logic 𝒟N{\cal DL}^{N} [Bonatti et al. (2015)] supports normality concepts based on a notion of overriding, enjoying good computational properties, and preserves the tractability for low complexity DLs, including ++{\mathcal{EL}^{\bot}}^{++} and DLDL-litelite [Bonatti et al. (2015)]. Bozzato et al. \shortciteBozzato14,Bozzato2018 present extensions of the CKR (Contextualized Knowledge Repositories) framework in which defeasible axioms are allowed in the global context and exceptions can be handled by overriding and have to be justified in terms of semantic consequence. A translation of extended CKRs (with knowledge bases in 𝒮𝒪𝒬{\cal SROIQ}-RL) into Datalog programs under the answer set semantics is developed. Related approaches are also the work by Beierle et al. \shortciteBeierleAMAI2018, characterizing skeptical c-inference as a constraint satisfaction problem, and the work by Deane et al. \shortciteRusso2015 presenting an inconsistency tolerant semantics for 𝒜𝒞{\cal ALC} using preference weights and exploiting ASP optimization for computing preferred interpretations. Reasoning under the rational closure for low complexity DLs has been investigated for 𝒮𝒪(,×)\mathcal{SROEL}(\sqcap,\times) [Giordano and Theseider Dupré (2018)], using a Datalog plus stratified negation polynomial construction and for 𝒪{\cal ELO}_{\bot} [Casini et al. (2019)], developing a polynomial time subsumption algorithm for the nominal safe fragment [Kazakov et al. (2014)]. A problem that we have not considered in this paper is the treatment of defeasible information for existential concepts; it has been addressed by Pensel and Turhan \shortcitePensel18, who developed a stronger version of rational and relevant entailment in \mathcal{EL}^{\bot}, exploiting a materialisation-based algorithm for \mathcal{EL}^{\bot} and a canonical model construction.

It is known that Brewka’s #\# strategy \shortciteBrewka04 exploits the lexicographical order also used by Lehmann to define the models of the lexicographic closure of a conditional knowledge base [Lehmann (1995)], starting from the rational closure ranking. This suggests that, while we have used this strategy for ranked TBox 𝒯Cj{\cal T}_{C_{j}} containing only typicality inclusions of the form 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D, coarsely grained ranked TBoxes could be allowed, in which 𝒯Cj{\cal T}_{C_{j}} contains all typicality inclusions 𝐓(E)D{\bf T}(E)\sqsubseteq D for any subclass EE of CjC_{j}. We expect that this might improve performances, by reducing the number of Cj\leq_{C_{j}} relations to be considered. We leave for future work investigating whether our ASP approach with preferences can be used for computing the lexicographic closure for +{\mathcal{EL}}^{+}_{\bot}, and whether alternative notions of specificity can be adopted.

The modular separation of the typicality inclusions in different TBoxes and their separate use for defining preferences Ci\leq_{C_{i}} suggests that some of the optimizations used by ELK reasoning algorithms [Kazakov et al. (2014)] might be extended to our setting.

Acknowledgement: We thank the anonymous referees for their helpful comments and suggestions. This research is partially supported by INDAM-GNCS Project 2019.

References

  • Baader et al. (2005) Baader, F., Brandt, S., and Lutz, C. 2005. Pushing the \mathcal{EL} envelope. In Proceedings of the 19th International Joint Conference on Artificial Intelligence (IJCAI 2005), L. Kaelbling and A. Saffiotti, Eds. Professional Book Center, Edinburgh, Scotland, UK, 364–369.
  • Baader and Hollunder (1995) Baader, F. and Hollunder, B. 1995. Embedding defaults into terminological knowledge representation formalisms. J. Autom. Reasoning 14, 1, 149–180.
  • Beierle et al. (2018) Beierle, C., Eichhorn, C., Kern-Isberner, G., and Kutsch, S. 2018. Properties of skeptical c-inference for conditional knowledge bases and its realization as a constraint satisfaction problem. Ann. Math. Artif. Intell. 83, 3-4, 247–275.
  • Bonatti (2019) Bonatti, P. A. 2019. Rational closure for all description logics. Artif. Intell. 274, 197–223.
  • Bonatti et al. (2015) Bonatti, P. A., Faella, M., Petrova, I., and Sauro, L. 2015. A new semantics for overriding in description logics. Artif. Intell. 222, 1–48.
  • Bonatti et al. (2011) Bonatti, P. A., Faella, M., and Sauro, L. 2011. Defeasible inclusions in low-complexity dls. J. Artif. Intell. Res. (JAIR) 42, 719–764.
  • Bonatti et al. (2009) Bonatti, P. A., Lutz, C., and Wolter, F. 2009. The Complexity of Circumscription in DLs. Journal of Artificial Intelligence Research (JAIR) 35, 717–773.
  • Bonatti et al. (2015) Bonatti, P. A., Petrova, I. M., and Sauro, L. 2015. Optimizing the computation of overriding. In Proc. ISWC 2015. 356–372.
  • Bozzato et al. (2014) Bozzato, L., Eiter, T., and Serafini, L. 2014. Contextualized knowledge repositories with justifiable exceptions. In DL 2014. CEUR Workshop Proceedings, vol. 1193. 112–123.
  • Bozzato et al. (2018) Bozzato, L., Eiter, T., and Serafini, L. 2018. Enhancing context knowledge repositories with justifiable exceptions. Artif. Intell. 257, 72–126.
  • Brewka (1989) Brewka, G. 1989. Preferred subtheories: An extended logical framework for default reasoning. In Proceedings of the 11th International Joint Conference on Artificial Intelligence. Detroit, MI, USA, August 1989. 1043–1048.
  • Brewka (2004) Brewka, G. 2004. A rank based description language for qualitative preferences. In Proceedings of the 16th Eureopean Conference on Artificial Intelligence, ECAI’2004, Valencia, Spain, August 22-27, 2004. 303–307.
  • Brewka et al. (2015) Brewka, G., Delgrande, J. P., Romero, J., and Schaub, T. 2015. asprin: Customizing answer set preferences without a headache. In Proc. AAAI 2015. 1467–1474.
  • Britz et al. (2008) Britz, K., Heidema, J., and Meyer, T. 2008. Semantic preferential subsumption. In Principles of Knowledge Representation and Reasoning: Proceedings of the 11th International Conference (KR 2008), G. Brewka and J. Lang, Eds. AAAI Press, Sidney, Australia, 476–484.
  • Casini et al. (2013) Casini, G., Meyer, T., Varzinczak, I. J., , and Moodley, K. 2013. Nonmonotonic Reasoning in Description Logics: Rational Closure for the ABox. In 26th International Workshop on Description Logics (DL 2013). CEUR Workshop Proceedings, vol. 1014. 600–615.
  • Casini and Straccia (2010) Casini, G. and Straccia, U. 2010. Rational Closure for Defeasible Description Logics. In Proc. 12th European Conf. on Logics in Artificial Intelligence (JELIA 2010), T. Janhunen and I. Niemelä, Eds. LNCS, vol. 6341. Springer, Helsinki, Finland, 77–90.
  • Casini and Straccia (2013) Casini, G. and Straccia, U. 2013. Defeasible inheritance-based description logics. Journal of Artificial Intelligence Research (JAIR) 48, 415–473.
  • Casini et al. (2019) Casini, G., Straccia, U., and Meyer, T. 2019. A polynomial time subsumption algorithm for nominal safe elo\perp under rational closure. Inf. Sci. 501, 588–620.
  • Deane et al. (2015) Deane, G., Broda, K., and Russo, A. 2015. Reasoning in the presence of inconsistency through preferential ALC. In 20th International Conferences on Logic for Programming, Artificial Intelligence and Reasoning , LPAR 2015, Suva, Fiji, November 24-28, 2015. 67–80.
  • Donini et al. (2002) Donini, F. M., Nardi, D., and Rosati, R. 2002. Description logics of minimal knowledge and negation as failure. ACM Transactions on Computational Logic (ToCL) 3, 2, 177–225.
  • Eiter and Gottlob (1995) Eiter, T. and Gottlob, G. 1995. On the computational cost of disjunctive logic programming: Propositional case. Annals of Mathematics and Artificial Intelligence 15, 3-4, 289–323.
  • Eiter et al. (2011) Eiter, T., Ianni, G., Lukasiewicz, T., and Schindlauer, R. 2011. Well-founded semantics for description logic programs in the semantic web. ACM Trans. Comput. Log. 12, 2, 11.
  • Eiter et al. (2008) Eiter, T., Ianni, G., Lukasiewicz, T., Schindlauer, R., and Tompits, H. 2008. Combining answer set programming with description logics for the semantic web. Artif. Intell. 172, 12-13, 1495–1539.
  • Gil (2014) Gil, O. F. 2014. On the Non-Monotonic Description Logic ALC+Tmin{}_{\mbox{min}}. CoRR abs/1404.6566.
  • Giordano et al. (2018) Giordano, L., Gliozzi, V., and Olivetti, N. 2018. Towards a rational closure for expressive description logics: the case of SHIQ{SHIQ}. Fundam. Inform. 159, 1-2, 95–122.
  • Giordano et al. (2013) Giordano, L., Gliozzi, V., Olivetti, N., and Pozzato, G. 2013. Minimal Model Semantics and Rational Closure in Description Logics . In 26th International Workshop on Description Logics (DL 2013). Vol. 1014. 168 – 180.
  • Giordano et al. (2007) Giordano, L., Gliozzi, V., Olivetti, N., and Pozzato, G. L. 2007. Preferential Description Logics. In Proc. LPAR 2007 (14th Conf. on Logic for Programming, Artificial Intelligence, and Reasoning), N. Dershowitz and A. Voronkov, Eds. LNAI, vol. 4790. Springer-Verlag, 257–272.
  • Giordano et al. (2011) Giordano, L., Gliozzi, V., Olivetti, N., and Pozzato, G. L. 2011. Reasoning about typicality in low complexity DLs: the logics 𝐓𝑚𝑖𝑛{\mathcal{EL}^{\bot}{\bf T}_{\mathit{min}}} and DL-Litec𝐓𝑚𝑖𝑛{\mbox{\em DL-Lite}_{\mathit{c}}{\bf T}_{\mathit{min}}}. In Proc. 22nd Int. Joint Conf. on Artificial Intelligence (IJCAI 2011). Morgan Kaufmann, Barcelona, 894–899.
  • Giordano and Theseider Dupré (2016) Giordano, L. and Theseider Dupré, D. 2016. ASP for minimal entailment in a rational extension of SROEL. TPLP 16, 5-6, 738–754.
  • Giordano and Theseider Dupré (2018) Giordano, L. and Theseider Dupré, D. 2018. Defeasible Reasoning in SROEL from Rational Entailment to Rational Closure. Fundam. Inform. 161, 1-2, 135–161.
  • Gliozzi (2016) Gliozzi, V. 2016. Reasoning about multiple aspects in rational closure for DLs. In Proc. AI*IA 2016, Genova, Italy, Nov 29 - Dec 1, 2016. LNCS, vol. 10037. 392–405.
  • Gottlob et al. (2014) Gottlob, G., Hernich, A., Kupke, C., and Lukasiewicz, T. 2014. Stable model semantics for guarded existential rules and description logics. In Proc. 14th Int. Conf. on Principles of Knowledge Representation and Reasoning, KR 2014, Vienna, Austria, July 20-24.
  • Kazakov et al. (2014) Kazakov, Y., Krötzsch, M., and Simancik, F. 2014. The incredible ELK. J. Autom. Reasoning 53, 1, 1–61.
  • Knorr et al. (2012) Knorr, M., Hitzler, P., and Maier, F. 2012. Reconciling OWL and non-monotonic rules for the semantic web. In ECAI 2012. 474–479.
  • Kraus et al. (1990) Kraus, S., Lehmann, D., and Magidor, M. 1990. Nonmonotonic reasoning, preferential models and cumulative logics. Artificial Intelligence 44, 1-2, 167–207.
  • Krötzsch (2010) Krötzsch, M. 2010. Efficient inferencing for OWL EL. In Proc. JELIA 2010. 234–246.
  • Lehmann and Magidor (1992) Lehmann, D. and Magidor, M. 1992. What does a conditional knowledge base entail? Artificial Intelligence 55, 1, 1–60.
  • Lehmann (1995) Lehmann, D. J. 1995. Another perspective on default reasoning. Ann. Math. Artif. Intell. 15, 1, 61–82.
  • Lieto and Pozzato (2018) Lieto, A. and Pozzato, G. 2018. A description logic of typicality for conceptual combination. In Proc. ISMIS 2018, Cyprus, October 29-31, 2018. LNCS, vol. 11177. Springer, 189–199.
  • Motik and Rosati (2010) Motik, B. and Rosati, R. 2010. Reconciling Description Logics and rules. J. ACM 57, 5.
  • Pearl (1990) Pearl, J. 1990. System Z: A Natural Ordering of Defaults with Tractable Applications to Nonmonotonic Reasoning. In TARK (3rd Conference on Theoretical Aspects of Reasoning about Knowledge), R. Parikh, Ed. Morgan Kaufmann, Pacific Grove, CA, USA, 121–135.
  • Pensel and Turhan (2018) Pensel, M. and Turhan, A. 2018. Reasoning in the defeasible description logic EL{EL}_{\bot}- computing standard inferences under rational and relevant semantics. J. Approx. Reasoning 103, 28–70.
  • Straccia (1993) Straccia, U. 1993. Default inheritance reasoning in hybrid KL-ONE-Style Logics. In Proc. 13th Int. Joint Conf. on Artificial Intelligence (IJCAI 1993). Chambéry, France, 676–681.

Appendix A Proofs for Sections 3 and 4

Proposition A.8.

Let KK be a ranked knowledge base over 𝒞{\cal C}. If KK has a preferential model, then there is an +{\mathcal{EL}}^{+}_{\bot} interpretation 𝐓{\bf T}-compliant for KK.

Proof A.9 ( Proof(sketch)).

Let K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯C1,,{\cal T}_{C_{1}},\ldots, 𝒯Ck,𝒜{\cal T}_{C_{k}},{\cal A}\rangle be a ranked +{\mathcal{EL}}^{+}_{\bot} knowledge base over 𝒞{\cal C}. Following Giordano et al. \shortcitelpar2007 a preferential model for an +{\mathcal{EL}}^{+}_{\bot} knowledge base KK can be defined as a triple 𝒩=Δ,<,I{\mathcal{N}}=\langle\Delta,<,\cdot^{I}\rangle such that: Δ,I\langle\Delta,\cdot^{I}\rangle is an +{\mathcal{EL}}^{+}_{\bot} interpretation satisfying all inclusions in 𝒯strict{\cal T}_{strict} and all assertions in 𝒜{\cal A}; << is is an irreflexive, transitive, well-founded binary relation on Δ\Delta; and, for all typicality inclusions 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D in KK, min<(CjI)DImin_{<}(C_{j}^{I})\subseteq D^{I} holds. If KK has a preferential model Δ,<,I\langle\Delta,<,\cdot^{I}\rangle, it has also an +{\mathcal{EL}}^{+}_{\bot} model which is compliant with KK. In fact, I=Δ,II=\langle\Delta,\cdot^{I}\rangle is an +{\mathcal{EL}}^{+}_{\bot} model of KK and, if CjIC_{j}^{I}\neq\emptyset, by well-foundedness, min<(CjI)min_{<}(C_{j}^{I})\neq\emptyset Hence, there is some xmin<(CjI)x\in min_{<}(C_{j}^{I}). Clearly, xCjIx\in C_{j}^{I}. As all typicality inclusions are satisfied in the preferential model 𝒩\mathcal{N}, for all 𝐓(Cj)D{\bf T}(C_{j})\sqsubseteq D in 𝒯Cj{\cal T}_{C_{j}}, min<(CjI)DImin_{<}(C_{j}^{I})\subseteq D^{I} holds and, hence, xDIx\in D^{I}. Thus, when CjIC_{j}^{I}\neq\emptyset, xCjIx\in C_{j}^{I} and xx satisfies all defeasible inclusions in 𝒯Cj{\cal T}_{C_{j}}. As this holds for all Cj𝒞C_{j}\in{\cal C}, the +{\mathcal{EL}}^{+}_{\bot} interpretation Δ,I\langle\Delta,\cdot^{I}\rangle is 𝐓{\bf T}-compliant for KK.

Proposition A.10.

cwm-entailment satisfies all KLM postulates of preferential consequence relations.

Proof A.11.

We prove that any cwm-model =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle of KK satisfies the properties of a preferential consequence relation. We consider the following obvious reformulation of the properties, considering that 𝐓(C)D{\bf T}(C)\sqsubseteq D stands for the conditional CDC{\mathrel{{\scriptstyle\mid\!\sim}}}D in KLM preferential logics [Kraus et al. (1990), Lehmann and Magidor (1992)]:

(REFL)  𝐓(C)C{\bf T}(C)\sqsubseteq C

(LLE)  If ABA\equiv B and 𝐓(A)C{\bf T}(A)\sqsubseteq C, then 𝐓(B)C{\bf T}(B)\sqsubseteq C

(RW)   If CDC\sqsubseteq D and 𝐓(A)C{\bf T}(A)\sqsubseteq C, then 𝐓(A)D{\bf T}(A)\sqsubseteq D

(AND)  If 𝐓(A)C{\bf T}(A)\sqsubseteq C and 𝐓(A)D{\bf T}(A)\sqsubseteq D, then 𝐓(A)CD{\bf T}(A)\sqsubseteq C\sqcap D

(OR)  If 𝐓(A)C{\bf T}(A)\sqsubseteq C and 𝐓(B)C{\bf T}(B)\sqsubseteq C, then 𝐓(AB)C{\bf T}(A\sqcup B)\sqsubseteq C

(CM)   If 𝐓(A)D{\bf T}(A)\sqsubseteq D and 𝐓(A)C{\bf T}(A)\sqsubseteq C, then 𝐓(AD)C{\bf T}(A\sqcap D)\sqsubseteq C

We exploit the fact that the structure Δ,I\langle\Delta,\cdot^{I}\rangle is an +{\mathcal{EL}}^{+}_{\bot} interpretation:

  • (REFL)  𝐓(C)C{\bf T}(C)\sqsubseteq C

    We have to prove that {\mathcal{M}} satisfies (REFL)  𝐓(C)C{\bf T}(C)\sqsubseteq C , i.e., min<(CI)CImin_{<}(C^{I})\subseteq C^{I}, which holds by definition of min<min_{<}.

  • (LLE)  If ABA\equiv B and 𝐓(A)C{\bf T}(A)\sqsubseteq C, then 𝐓(B)C{\bf T}(B)\sqsubseteq C.

    Here, ABA\equiv B means that AA and BB are equivalent in the underlying logic +{\mathcal{EL}}^{+}_{\bot}, i.e., for all +{\mathcal{EL}}^{+}_{\bot} interpretations J=ΔJ,JJ=\langle\Delta^{J},\cdot^{J}\rangle, AJ=BJA^{J}=B^{J}. If 𝐓(A)C{\bf T}(A)\sqsubseteq C is satisfied in {\mathcal{M}}, then min<(AI)CImin_{<}(A^{I})\subseteq C^{I}. As Δ,I\langle\Delta,\cdot^{I}\rangle is a +{\mathcal{EL}}^{+}_{\bot} interpretation, AI=BIA^{I}=B^{I}, and min<(BI)=min<(AI)CImin_{<}(B^{I})=min_{<}(A^{I})\subseteq C^{I}. Thus, 𝐓(B)C{\bf T}(B)\sqsubseteq C is satisfied in {\mathcal{M}}.

  • (RW)   If CDC\sqsubseteq D and 𝐓(A)C{\bf T}(A)\sqsubseteq C, then 𝐓(A)D{\bf T}(A)\sqsubseteq D.

    Let us assume that 𝐓(A)C{\bf T}(A)\sqsubseteq C is satisfied in {\mathcal{M}} and that CDC\sqsubseteq D is satisfied in all +{\mathcal{EL}}^{+}_{\bot} interpretations. Then: min<(AI)CImin_{<}(A^{I})\subseteq C^{I} and CIDIC^{I}\subseteq D^{I}. Hence, min<(AI)DImin_{<}(A^{I})\subseteq D^{I}. Therefore, 𝐓(A)D{\bf T}(A)\sqsubseteq D is satisfied in {\mathcal{M}}.

  • (AND)  If 𝐓(A)C{\bf T}(A)\sqsubseteq C and 𝐓(A)D{\bf T}(A)\sqsubseteq D, then 𝐓(A)CD{\bf T}(A)\sqsubseteq C\sqcap D.

    Let us assume that 𝐓(A)C{\bf T}(A)\sqsubseteq C and 𝐓(A)D{\bf T}(A)\sqsubseteq D are satisfied in {\mathcal{M}}, that is min<(AI)CImin_{<}(A^{I})\subseteq C^{I} and min<(AI)DImin_{<}(A^{I})\subseteq D^{I}. For all xmin<(AI)x\in min_{<}(A^{I}), xCIx\in C^{I} and xDIx\in D^{I} and, hence, x(CD)Ix\in(C\sqcap D)^{I}. Therefore, 𝐓(A)CD{\bf T}(A)\sqsubseteq C\sqcap D is satisfied in {\mathcal{M}}.

  • (OR)  If 𝐓(A)C{\bf T}(A)\sqsubseteq C and 𝐓(B)C{\bf T}(B)\sqsubseteq C, then 𝐓(AB)C{\bf T}(A\sqcup B)\sqsubseteq C

    If 𝐓(A)C{\bf T}(A)\sqsubseteq C and 𝐓(B)C{\bf T}(B)\sqsubseteq C are satisfied in {\mathcal{M}}, then min<(AI)CImin_{<}(A^{I})\subseteq C^{I} and min<(BI)CImin_{<}(B^{I})\subseteq C^{I}. Hence, if xmin<((AB)I)x\in min_{<}((A\sqcup B)^{I}), xmin<(AI)x\in min_{<}(A^{I}) or xmin<((BI)x\in min_{<}((B^{I}). In both cases xCIx\in C^{I} holds. Hence, 𝐓(AB)C{\bf T}(A\sqcup B)\sqsubseteq C is satisfied in {\mathcal{M}}.

  • (CM)   If 𝐓(A)D{\bf T}(A)\sqsubseteq D and 𝐓(A)C{\bf T}(A)\sqsubseteq C, then 𝐓(AD)C{\bf T}(A\sqcap D)\sqsubseteq C

    If 𝐓(A)D{\bf T}(A)\sqsubseteq D and 𝐓(A)C{\bf T}(A)\sqsubseteq C then min<(AI)DImin_{<}(A^{I})\subseteq D^{I} and min<(AI)CImin_{<}(A^{I})\subseteq C^{I}. From min<(AI)DImin_{<}(A^{I})\subseteq D^{I}, we can conclude that min<((AD)I)=min<(AI)min_{<}((A\sqcap D)^{I})=min_{<}(A^{I}). Hence, min<((AD)I)CImin_{<}((A\sqcap D)^{I})\subseteq C^{I}, and 𝐓(AD)C{\bf T}(A\sqcap D)\sqsubseteq C is satisfied in {\mathcal{M}}.

As the set of typicality inclusions satisfied by {\mathcal{M}}, TypTyp^{\mathcal{M}}, satisfies all KLM postulates above, TypTyp^{\mathcal{M}} is a a preferential consequence relation. Then each cwm-model {\mathcal{M}} of KK determines a preferential consequence relation TypTyp^{\mathcal{M}}. The typicality inclusions 𝐓(C)D{\bf T}(C)\sqsubseteq D cwm-entailed by KK are, by definition, satisfied in all canonical 𝐓{\bf T}-compliant cwm-model {\mathcal{M}} of KK. They belong to TypTyp^{\mathcal{M}}, for all canonical 𝐓{\bf T}-compliant cwm-model {\mathcal{M}} of KK. Hence, the set of all typicality inclusions cwm-entailed by KK is the the intersection of all TypTyp^{\mathcal{M}}, for {\mathcal{M}} a canonical 𝐓{\bf T}-compliant cwm-model of KK.

Kraus, Lehmann and Magidor \shortciteKrausLehmannMagidor:90,whatdoes have proved that the intersection of a set of preferential consequence relations is as well a preferential consequence relation. It follows that the set of the typicality inclusions cwm-entailed by KK is a preferential consequence relation and, therefore, it satisfies all KLM postulates of a preferential consequence relation.

Appendix B Materialization Calculus

We report the fragment of the materialization calculus [Krötzsch (2010)] which is used in Section 5. The representation of a knowledge base (input translation) is as follows, where, to keep a DL-like notation, we do not follow the ASP convention where variable names start with uppercase; in particular, AA, BB CC, and RR, SS, TT, are intended as ASP constants corresponding to the same class/role names in KK:

aNI\mathit{a\in N_{I}} 𝑛𝑜𝑚(a)\mapsto\mathit{nom(a)}
CNC\mathit{C\in N_{C}} 𝑐𝑙𝑠(C)\mapsto\mathit{cls(C)}
RNR\mathit{R\in N_{R}} 𝑟𝑜𝑙(R)\mapsto\mathit{rol(R)}
C(a)\mathit{C(a)} 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(a,C)\mapsto\mathit{subClass(a,C)}
R(a,b)\mathit{R(a,b)} 𝑠𝑢𝑝𝐸𝑥(a,R,b,b)\mapsto\mathit{supEx(a,R,b,b)}
C\mathit{\top\sqsubseteq C} 𝑡𝑜𝑝(C)\mapsto\mathit{top(C)}
A\mathit{A\sqsubseteq\bot} 𝑏𝑜𝑡(A)\mapsto\mathit{bot(A)}
{a}C\mathit{\{a\}\sqsubseteq C} 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(a,C)\mapsto\mathit{subClass(a,C)}
AC\mathit{A\sqsubseteq C} 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(A,C)\mapsto\mathit{subClass(A,C)}
ABC\mathit{A\sqcap B\sqsubseteq C} 𝑠𝑢𝑏𝐶𝑜𝑛𝑗(A,B,C)\mapsto\mathit{subConj(A,B,C)}
R.AC\mathit{\exists R.A\sqsubseteq C} 𝑠𝑢𝑏𝐸𝑥(R,A,C)\mapsto\mathit{subEx(R,A,C)}
AR.B\mathit{A\sqsubseteq\exists R.B} 𝑠𝑢𝑝𝐸𝑥(A,R,B,𝑎𝑢𝑥i)\mapsto\mathit{supEx(A,R,B,aux_{i})}
RT\mathit{R\sqsubseteq T} 𝑠𝑢𝑏𝑅𝑜𝑙𝑒(R,T)\mapsto\mathit{subRole(R,T)}
RST\mathit{R\circ S\sqsubseteq T} 𝑠𝑢𝑏𝑅𝐶ℎ𝑎𝑖𝑛(R,S,T)\mapsto\mathit{subRChain(R,S,T)}

In the translation of AR.B\mathit{A\sqsubseteq\exists R.B}, 𝑎𝑢𝑥i\mathit{aux_{i}} is a new constant, and a different constant is needed for each axiom of this form.

The inference rules included in ΠK\Pi_{K} in Section 5 are the following222Here, u,v,x,y,z,wu,v,x,y,z,w, possibly with suffixes, are ASP variables.:

(1)𝑖𝑛𝑠𝑡(x,x)𝑛𝑜𝑚(x)(1)~{}\mathit{inst(x,x)\leftarrow nom(x)}
(3)𝑖𝑛𝑠𝑡(x,z)𝑡𝑜𝑝(z),𝑖𝑛𝑠𝑡(x,z)(3)~{}\mathit{inst(x,z)\leftarrow top(z),inst(x,z^{\prime})}
(4)𝑖𝑛𝑠𝑡(x,y)𝑏𝑜𝑡(z),𝑖𝑛𝑠𝑡(u,z),𝑖𝑛𝑠𝑡(x,z),𝑐𝑙𝑠(y)(4)~{}\mathit{inst(x,y)\leftarrow bot(z),inst(u,z),inst(x,z^{\prime}),cls(y)}
(5)𝑖𝑛𝑠𝑡(x,z)𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(y,z),𝑖𝑛𝑠𝑡(x,y)(5)~{}\mathit{inst(x,z)\leftarrow subClass(y,z),inst(x,y)}
(6)𝑖𝑛𝑠𝑡(x,z)𝑠𝑢𝑏𝐶𝑜𝑛𝑗(y1,y2,z),𝑖𝑛𝑠𝑡(x,y1),𝑖𝑛𝑠𝑡(x,y2)(6)~{}\mathit{inst(x,z)\leftarrow subConj(y1,y2,z),inst(x,y1),inst(x,y2)}
(7)𝑖𝑛𝑠𝑡(x,z)𝑠𝑢𝑏𝐸𝑥(v,y,z),𝑡𝑟𝑖𝑝𝑙𝑒(x,v,x),𝑖𝑛𝑠𝑡(x,y)(7)~{}\mathit{inst(x,z)\leftarrow subEx(v,y,z),triple(x,v,x^{\prime}),inst(x^{\prime},y)}
(9)𝑡𝑟𝑖𝑝𝑙𝑒(x,v,x)𝑠𝑢𝑝𝐸𝑥(y,v,z,x),𝑖𝑛𝑠𝑡(x,y)(9)~{}\mathit{triple(x,v,x^{\prime})\leftarrow supEx(y,v,z,x^{\prime}),inst(x,y)}
(10)𝑖𝑛𝑠𝑡(x,z)𝑠𝑢𝑝𝐸𝑥(y,v,z,x),𝑖𝑛𝑠𝑡(x,y)(10)~{}\mathit{inst(x^{\prime},z)\leftarrow supEx(y,v,z,x^{\prime}),inst(x,y)}
(13)𝑡𝑟𝑖𝑝𝑙𝑒(x,w,x)𝑠𝑢𝑏𝑅𝑜𝑙𝑒(v,w),𝑡𝑟𝑖𝑝𝑙𝑒(x,v,x)(13)~{}\mathit{triple(x,w,x^{\prime})\leftarrow subRole(v,w),triple(x,v,x^{\prime})}
(15)𝑡𝑟𝑖𝑝𝑙𝑒(x,w,x′′)𝑠𝑢𝑏𝑅𝐶ℎ𝑎𝑖𝑛(u,v,w),𝑡𝑟𝑖𝑝𝑙𝑒(x,u,x),𝑡𝑟𝑖𝑝𝑙𝑒(x,v,x′′)(15)~{}\mathit{triple(x,w,x^{\prime\prime})\leftarrow subRChain(u,v,w),triple(x,u,x^{\prime}),triple(x^{\prime},v,x^{\prime\prime})}
(27)𝑖𝑛𝑠𝑡(y,z)𝑖𝑛𝑠𝑡(x,y),𝑛𝑜𝑚(y),𝑖𝑛𝑠𝑡(x,z)(27)~{}\mathit{inst(y,z)\leftarrow inst(x,y),nom(y),inst(x,z)}
(28)𝑖𝑛𝑠𝑡(x,z)𝑖𝑛𝑠𝑡(x,y),𝑛𝑜𝑚(y),𝑖𝑛𝑠𝑡(y,z)(28)~{}\mathit{inst(x,z)\leftarrow inst(x,y),nom(y),inst(y,z)}
(29)𝑡𝑟𝑖𝑝𝑙𝑒(z,u,y)𝑖𝑛𝑠𝑡(x,y),𝑛𝑜𝑚(y),𝑡𝑟𝑖𝑝𝑙𝑒(z,u,x)(29)~{}\mathit{triple(z,u,y)\leftarrow inst(x,y),nom(y),triple(z,u,x)}

We include the additional rule:
(4b)𝑏𝑜𝑡(z),𝑖𝑛𝑠𝑡(u,z)(4b)~{}\mathit{\bot\leftarrow bot(z),inst(u,z)}

Appendix C Proofs for Section 5

C.1 Proof of Proposition 5.4

Proposition 5.4 Given a normalized ranked knowledge base K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯C1,,{\cal T}_{C_{1}},\ldots, 𝒯Ck,𝒜{\cal T}_{C_{k}},{\cal A}\rangle over the set of concepts 𝒞{\cal C}, and a (normalized) subsumption CDC\sqsubseteq D, we can prove the following:

  • (1)

    if there is an answer set SS of the ASP program Π(K,C,D)\Pi(K,C,D), such that inst(auxC,D)Sinst(aux_{C},D)\not\in S, then there is a 𝐓{\bf T}-compliant cwm-model =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle for KK that falsifies the subsumption CDC\sqsubseteq D.

  • (2)

    if there is a 𝐓{\bf T}-compliant cwm-model =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle of KK that falsifies the subsumption CDC\sqsubseteq D, then there is an answer set SS of Π(K,C,D)\Pi(K,C,D), such that 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,D)S\mathit{inst(aux_{C},D)\not\in S}.

For part (1), in the following, given the answer set SS of the program Π(K,C,D)\Pi(K,C,D) such that inst(auxc,C)Sinst(aux_{c},C)\not\in S, we construct a cwm-model {\mathcal{M}} falsifying CDC\sqsubseteq D. In particular, we construct the domain of {\mathcal{M}} from the set ConstConst including all the named constants cNIc\in N_{I} as well as all the auxiliary constants occurring in the ASP program Π(K,C,D)\Pi(K,C,D) defining an equivalence relation over constants and using equivalence classes to define domain elements. The construction is similar to the proof of completeness by Krötzsch \shortcitejeliaReport. For readability, we write auxAR.C{aux^{{A\sqsubseteq\exists R.C}}} and auxCiaux_{C_{i}}, respectively, for the constants associated with inclusions AR.CA\sqsubseteq\exists R.C and with the typicality concepts 𝐓(Ci){\bf T}(C_{i}), for a concept Ci𝒞C_{i}\in{\cal C}. Observe that the answer set SS contains no information about the definition of the preference relations <Cj<_{C_{j}}’s and << on domain elements that can be used to build the model {\mathcal{M}}. In fact, these relations are not encoded in the ASP program. They are only used in asprin for defining the preference among models.

First, let us define a relation \approx between the constants in ConstConst:

Definition 7

Let \approx be the reflexive, symmetric and transitive closure of the relation {(c,d)inst(c,d)S\{(c,d)\mid inst(c,d)\in S, for cConstc\in Const and dNI}d\in N_{I}\}.

It can be proved that:

Lemma C.12.

Given a constant cc such that cac\approx a for aNIa\in N_{I}, if inst(c,A)inst(c,A) (𝑡𝑟𝑖𝑝𝑙𝑒(c,R,d),𝑡𝑟𝑖𝑝𝑙𝑒(d,R,c)\mathit{triple(c,R,d),triple(d,R,c)}) is in SS, then inst(a,A)inst(a,A) (𝑡𝑟𝑖𝑝𝑙𝑒(a,R,d),𝑡𝑟𝑖𝑝𝑙𝑒(d,R,a)\mathit{triple(a,R,d),triple(d,R,a)}) is in SS.

The proof is similar to the proof of Lemma 2 by Krötzsch \shortcitejeliaReport. Vice-versa it holds that:

Lemma C.13.

Given a constant cc such that cac\approx a for aNIa\in N_{I}, if inst(a,A)inst(a,A) (triple(a,R,d)triple(a,R,d)) is in SS, then inst(c,A)inst(c,A) (triple(c,R,d)triple(c,R,d)) is in SS.

Now, let [c]={ddc}[c]=\{d\mid d\approx c\} denote the equivalence class of cc; we define the domain Δ\Delta of the interpretation {\mathcal{M}} as follows: Δ={[c]cNI}{wAR.C\Delta=\{[c]\mid c\in N_{I}\}\cup\{w^{{A\sqsubseteq\exists R.C}}\mid 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥AR.C,e)S\mathit{inst({aux^{{A\sqsubseteq\exists R.C}}},e)\in S} for some ee and there is no dNId\in N_{I} such that auxAR.Cd}{aux^{{A\sqsubseteq\exists R.C}}}\approx d\} {zCi\cup\{z_{C_{i}}\mid 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Ci,e)S\mathit{inst(aux_{C_{i}},e)\in S} for some ee and there is no dNId\in N_{I} such that auxCid}aux_{C_{i}}\approx d\} {zC\cup\{z_{C}\mid there is no dNId\in N_{I} such that auxCd}aux_{C}\approx d\}333We need a single copy of auxiliary constants as, unlike the original calculus [jeliaReport], we do not handle 𝑆𝑒𝑙𝑓\mathit{Self} statements..

For each element eΔe\in\Delta, we define a projection ι(e){\iota}(e) to ConstConst as follows:

- ι([c])=c{\iota}([c])=c;

- ι(wAR.C)=auxAR.C{\iota}(w^{{A\sqsubseteq\exists R.C}})={aux^{{A\sqsubseteq\exists R.C}}};

- ι(zCi)=auxCi{\iota}(z_{C_{i}})=aux_{C_{i}};

- ι(zC)=auxC{\iota}(z_{C})=aux_{C}.

The interpretation of individual constants, concepts and roles over Δ\Delta is defined as follows:

- for all cNIc\in N_{I},  cI=[c]c^{I}=[c];

- for all dΔd\in\Delta, ANCA\in N_{C},   dAId\in A^{I} iff 𝑖𝑛𝑠𝑡(ι(d),A)S\mathit{inst}({\iota}(d),A)\in S;

- for all d,eΔd,e\in\Delta,  (d,e)RI(d,e)\in R^{I} iff (𝑡𝑟𝑖𝑝𝑙𝑒(ι(d),R,ι(e))S\mathit{triple}({\iota}(d),R,{\iota}(e))\in S).

This defines an +{\mathcal{EL}}^{+}_{\bot} interpretation.

The the relations Cj\leq_{C_{j}} on Δ\Delta are defined according to Definition 2, which gives a total preorders. Then, the preference relation << on elements in Δ\Delta is defined according to Definition 6, point (c). Observe that d1CJd2d_{1}\leq_{C_{J}}d_{2} only depends on which typicality inclusions in 𝒯Cj{\cal T}_{C_{j}} are satisfied by d1d_{1} and d2d_{2} and this only depends on the interpretation of concept names and individual names defined above. Similarly for <<.

For all concepts CjC_{j} such that CjIC_{j}^{I}\neq\emptyset, there is an element dCjId\in C_{j}^{I} and, by construction, 𝑖𝑛𝑠𝑡(ι(d),Cj)S\mathit{inst}({\iota}(d),C_{j})\in S. By rules (b) and (c), 𝑖𝑛𝑠𝑡(auxCj,Cj)S\mathit{inst}(aux_{C_{j}},C_{j})\in S and 𝑡𝑦𝑝(auxCj,Cj)S\mathit{typ}(aux_{C_{j}},C_{j})\in S. By rule (d), auxCjaux_{C_{j}} must satisfy all the typicality inclusions for CjC_{j}. Hence, when CjIC_{j}^{I}\neq\emptyset, zCiz_{C_{i}} satisfies in {\mathcal{M}} all the typicality inclusions for CjC_{j}, a condition that is needed for {\mathcal{M}} to be 𝐓{\bf T}-compliant for KK (together with the condition that {\mathcal{M}} satisfies all strict inclusions, see below). Furthermore, all elements dmin<Ci(CiI)d\in min_{<_{C_{i}}}(C_{i}^{I}) must satisfy as well all typicality inclusions for CjC_{j} as, like zCiz_{C_{i}}, dd must be instance of all concepts DD such that 𝐓(Cj)D𝒯𝒞𝒿{\bf T}(C_{j})\sqsubseteq D\in{\cal T_{C_{j}}} (otherwise zCi<Cidz_{C_{i}}<_{C_{i}}d would hold). As a consequence, for all dmin<Ci(CiI)d\in min_{<_{C_{i}}}(C_{i}^{I}), dCidd\sim_{C_{i}}d^{\prime}.

It is easy to verify that {\mathcal{M}} is a 𝐓{\bf T}-compliant cwm-model of KK. By construction, the <Cj<_{C_{j}}’s are defined according to Definition 2 and << is defined according to Definition 6, and satisfy all the properties of preference relations in a cwm-interpretation. We have to prove that {\mathcal{M}} satisfies all strict inclusions inclusions in 𝒯strict{\cal T}_{strict} and assertions in 𝒜{\cal A}. As assertions A(c)A(c) (R(a,b)R(a,b)) are represented by concept inclusions {c}A\{c\}\sqsubseteq A (resp. {c}A\{c\}\sqsubseteq A), it suffices to prove that all the strict inclusions in KK are satisfied in {\mathcal{M}}. This can be done by cases, as in Lemma 2 by Krötzsch \shortcitejeliaReport, considering all (normalized) axioms which may occur in KK (which are a subset of those admitted in a 𝒮𝒪(,×)\mathcal{SROEL}(\sqcap,\times) knowledge base).

Hence, {\mathcal{M}} is a 𝐓{\bf T}-compliant cwm-model of KK. We prove that {\mathcal{M}} falsifies CDC\sqsubseteq D, that is, CIDIC^{I}\not\subseteq D^{I}. Program Π(K,C,D)\Pi(K,C,D) contains inst(auxC,C)inst(aux_{C},C) and, hence, inst(auxC,C)Sinst(aux_{C},C)\in S. From the hypothesis, inst(auxC,D)Sinst(aux_{C},D)\not\in S. Hence, if zCΔz_{C}\in\Delta, by construction, zCCIz_{C}\in C^{I} and zCDIz_{C}\not\in D^{I}. Otherwise, if zCΔz_{C}\not\in\Delta, auxCdaux_{C}\approx d, for some dNId\in N_{I}. In such a case, by Lemmas C.12 and C.13 above, inst(d,C)Sinst(d,C)\in S and inst(d,D)Sinst(d,D)\not\in S. By construction of {\mathcal{M}}, [d]CI[d]\in C^{I} and [d]DI[d]\not\in D^{I}. Hence, CDC\sqsubseteq D is falsified in {\mathcal{M}}.

For part (2), assume that there is a 𝐓{\bf T}-compliant cwm-model =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle of KK that falsifies the subsumption CDC\sqsubseteq D. Then there is an element xΔx\in\Delta such that xCIx\in C^{I} and xDx\not\in D. We construct a 𝐓{\bf T}-compliant answer set SS of the ASP program of Π(K,C,D)\Pi(K,C,D), such that inst(auxC,C)Sinst(aux_{C},C)\in S and inst(auxC,D)Sinst(aux_{C},D)\not\in S (notice that inst(auxC,C)inst(aux_{C},C) is already a fact in Π(K,C,D)\Pi(K,C,D)).

Let us consider which typical properties are satisfied by xx in {\mathcal{M}}, and build the following set of facts:

F0={𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)xBIF_{0}=\{\mathit{inst(aux_{C},B)}\mid\;x\in B^{I} for some 𝐓(Cj)B{\bf T}(C_{j})\sqsubseteq B is in K}K\}

and a corresponding set of DL assertions:

𝒜0={B(𝑎𝑢𝑥C))xBI{\cal A}_{0}=\{\mathit{B(aux_{C}))}\mid\;x\in B^{I} for some 𝐓(Cj)B{\bf T}(C_{j})\sqsubseteq B is in K}K\}

assuming auxCaux_{C} is a new individual name added in NIN_{I}.

Notice that F0F_{0} corresponds to a possible choice of properties for auxCaux_{C} according to rule (a). Let us consider the Datalog program Π(Kstrict,C,D)\Pi^{\prime}(K_{strict},C,D) representing the encoding of the strict part of the knowledge base KK, obtained by removing rules (a-d) from KIRK_{IR} and typicality inclusions from the input translation of KK, while adding facts in F0F_{0}. Π(K,C,D)=(Π(KStrict,C,D){(a-d)})F0\Pi^{\prime}(K,C,D)=(\Pi(K_{Strict},C,D)-\{\mbox{(a-d)}\})\cup F_{0}.

We can prove that Π(K,C,D)\Pi^{\prime}(K,C,D) is consistent, i.e. Π(K,C,D)\Pi^{\prime}(K,C,D) does not derives 𝑖𝑛𝑠𝑡(d,E)\mathit{inst(d,E)} for any EE such that EE\sqsubseteq\bot is in KK. By contradiction, if Π(K,C,D)\Pi^{\prime}(K,C,D) is inconsistent, it derives (in Datalog) 𝑖𝑛𝑠𝑡(d,E)\mathit{inst(d,E)} for some EE such that EE\sqsubseteq\bot is in KK. By Lemma 1 of Krötzsch \shortcitejeliaReport, we would get: Kstrict𝒜0κ(d)EK_{strict}\cup{\cal A}_{0}\models\kappa(d)\sqsubseteq E in +{\mathcal{EL}}^{+}_{\bot}, where κ(d)\kappa(d) is a concept expression associated with the Datalog constant dd (for instance, for dNId\in N_{I}, κ(d)={d}\kappa(d)=\{d\}). This would imply that Kstrict𝒜0K_{strict}\cup{\cal A}_{0} is inconsistent. However, as {\mathcal{M}} satisfies 𝒯strict{\cal T}_{strict}, a model =Δ,<C1,,<Ck,<,I{\mathcal{M}}^{\prime}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I^{\prime}}\rangle for 𝒯strict𝒜0{\cal T}_{strict}\cup{\cal A}_{0} can be constructed from {\mathcal{M}} by interpreting the new individual name anxCanx_{C} occurring in 𝒜0{\cal A}_{0} as auxCI=xaux_{C}^{I^{\prime}}=x (while, for the rest, {\mathcal{M}}^{\prime} is defined exactly as {\mathcal{M}}). This contradicts the assumption that Π(K,C,D)\Pi^{\prime}(K,C,D) is inconsistent.

If, for some constant aa, 𝑖𝑛𝑠𝑡(a,Cj)\mathit{inst(a,C_{j})} is derivable from Π(K,C,D)\Pi^{\prime}(K,C,D), by Lemma 1 of Krötzsch \shortcitejeliaReport, any model of Kstrict𝒜0K_{strict}\cup{\cal A}_{0} satisfies κ(a)Cj\kappa(a)\sqsubseteq C_{j} (with κ(a)\kappa(a) non-empty). Hence, in all +{\mathcal{EL}}^{+}_{\bot} models of 𝒯strict𝒜0{\cal T}_{strict}\cup{\cal A}_{0} the interpretation of concept CjC_{j} cannot be empty. As we aim at building an answer set SS that captures 𝐓{\bf T}-compliance, we consider a new set of facts F1F_{1} containing, for each constant auxCiaux_{C_{i}} (representing a typical CjC_{j}-element, i.e., a minimal CjC_{j}-element wrt. <Cj<_{C_{j}}), the fact 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)\mathit{inst(aux_{C_{j}},C_{j})}, as well as the facts 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,B)\mathit{inst(aux_{C_{j}},B)} to represent the typical properties BB of <Cj<_{C_{j}}-minimal CjC_{j}-elements. Let us consider the following set of facts:

F1={𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)Cj𝒞,F_{1}=\{\mathit{inst(aux_{C_{j}},C_{j})}\mid\;C_{j}\in{\cal C},\; such that Π(K,C,D)𝑖𝑛𝑠𝑡(a,Cj)\Pi^{\prime}(K,C,D)\vdash\mathit{inst(a,C_{j})}, for some constant a}a\}\;\cup
          {𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,B)Cj𝒞,\{\mathit{inst(aux_{C_{j}},B)}\mid\;C_{j}\in{\cal C},\; such that Π(K,C,D)𝑖𝑛𝑠𝑡(a,Cj)\Pi^{\prime}(K,C,D)\vdash\mathit{inst(a,C_{j})} and 𝐓(Cj)BK}{\bf T}(C_{j})\sqsubseteq B\in K\}.

and a corresponding set of DL assertions:

𝒜1={Cj(𝑎𝑢𝑥Cj)Cj𝒞,{\cal A}_{1}=\{\mathit{C_{j}(aux_{C_{j}})}\mid\;C_{j}\in{\cal C},\; and 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)F1}\mathit{inst(aux_{C_{j}},C_{j})}\in F_{1}\}\;\cup
          {B(𝑎𝑢𝑥Cj)Cj𝒞,\{\mathit{B(aux_{C_{j}})}\mid\;C_{j}\in{\cal C},\; and 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)F1\mathit{inst(aux_{C_{j}},C_{j})}\in F_{1} and 𝐓(Cj)BK}{\bf T}(C_{j})\sqsubseteq B\in K\}.

where we let auxCjaux_{C_{j}} to be a new individual name in NIN_{I}. Again, we can prove that the extended Datalog program Π(K,C,D)F1\Pi^{\prime}(K,C,D)\cup F_{1} is consistent. If not, using a similar argument as before, we would conclude that the knowledge base Kstrict𝒜0𝒜1K_{strict}\cup{\cal A}_{0}\cup{\cal A}_{1} is inconsistent, which is not true. In fact, as observed above, if 𝑖𝑛𝑠𝑡(a,Cj)\mathit{inst(a,C_{j})} is derivable from Π(K,C,D)\Pi^{\prime}(K,C,D), in all +{\mathcal{EL}}^{+}_{\bot} models of 𝒯strict𝒜0{\cal T}_{strict}\cup{\cal A}_{0} the interpretation of concept CjC_{j} cannot be empty. In particular, {\mathcal{M}}^{\prime} is a model of Kstrict𝒜0K_{strict}\cup{\cal A}_{0} and {\mathcal{M}}^{\prime}, like {\mathcal{M}}, is 𝐓{\bf T}-compliant for KK. Thus, for each CjC_{j} such that 𝑖𝑛𝑠𝑡(a,Cj)\mathit{inst(a,C_{j})} is derivable from Π(K,C,D)\Pi^{\prime}(K,C,D), CjIC_{j}^{I^{\prime}}\neq\emptyset and, by 𝐓{\bf T}-compliance, there must be some yjΔy_{j}\in\Delta such that yjCjIy_{j}\in C_{j}^{I^{\prime}} and yjy_{j} satisfies all defeasible inclusions in 𝒯Cj{\cal T}_{C_{j}}. We can therefore build a model ′′{\mathcal{M}}^{\prime\prime} of Kstrict𝒜0𝒜1K_{strict}\cup{\cal A}_{0}\cup{\cal A}_{1} using the domain element yjy_{j} as the interpretation of the individual name auxCjaux_{C_{j}} (letting auxCjI′′=yjaux_{C_{j}}^{I^{\prime\prime}}=y_{j}). For the rest, ′′{\mathcal{M}}^{\prime\prime} is defined as {\mathcal{M}}^{\prime}.

We can further add to Π(K,C,D)F1\Pi^{\prime}(K,C,D)\cup F_{1} the set of facts:

F2={𝑡𝑦𝑝(𝑎𝑢𝑥Cj,Cj)Cj𝒞,F_{2}=\{\mathit{typ(aux_{C_{j}},C_{j})}\mid\;C_{j}\in{\cal C},\; such that Π(K,C,D)𝑖𝑛𝑠𝑡(a,Cj)\Pi^{\prime}(K,C,D)\vdash\mathit{inst(a,C_{j})} for some a}a\},

where 𝑡𝑦𝑝(𝑎𝑢𝑥Cj,Cj)\mathit{typ(aux_{C_{j}},C_{j})} makes it explicit that auxCiaux_{C_{i}} is a typical instance of CjC_{j} (wrt. <Cj<_{C_{j}}). As the predicate 𝑡𝑦𝑝\mathit{typ} does not occur in Π(K,C,D)F1\Pi^{\prime}(K,C,D)\cup F_{1}, the program Π(K,C,D)F1F2\Pi^{\prime}(K,C,D)\cup F_{1}\cup F_{2} is still consistent.

Similarly, if we add to Π(K,C,D)\Pi^{\prime}(K,C,D) also the encoding of the typicality inclusions in the knowledge base KK by facts 𝑠𝑢𝑏𝑇𝑦𝑝(Cj,B,N)\mathit{subTyp(C_{j},B,N)} in ΠK\Pi_{K}, then the resulting program Π′′(K,C,D)F1F2\Pi^{\prime\prime}(K,C,D)\cup F_{1}\cup F_{2} is still consistent. In fact, predicate 𝑠𝑢𝑏𝑇𝑦𝑝\mathit{subTyp} only occurs in the input translation.

Let SS be the set of all ground facts which are derivable in Datalog from program Π′′(K,C,D)\Pi^{\prime\prime}(K,C,D) F1F2\cup F_{1}\cup F_{2}. The ground instances of all rules in Π′′(K,C,D)\Pi^{\prime\prime}(K,C,D) are clearly satisfied in SS. Rules (a)-(d) are the only rules in Π(K,C,D)\Pi(K,C,D) that do not belong to Π′′(K,C,D)\Pi^{\prime\prime}(K,C,D). The ground instances of rules (a)-(d) (over the Herbrand Universe of program Π′′(K,C,D)F1F2\Pi^{\prime\prime}(K,C,D)\cup F_{1}\cup F_{2}) are satisfied in SS. For rule (a), for any Cj𝒞C_{j}\in{\cal C}, the literals in F0F_{0} make the head of disjunctive rule (a) satisfied in SS, for each BB such that 𝐓(Cj)BK{\bf T}(C_{j})\sqsubseteq B\in K. For rule (b), by construction, if 𝑖𝑛𝑠𝑡(a,Cj)S\mathit{inst(a,C_{j})}\in S, for some constant aa, then 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)\mathit{inst(aux_{C_{j}},C_{j})} is in F1F_{1} and then in SS. For (c), 𝑡𝑦𝑝(𝑎𝑢𝑥Cj,Cj)\mathit{typ(aux_{C_{j}},C_{j})} is in F2F_{2} (and hence in SS) if 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)\mathit{inst(aux_{C_{j}},C_{j})} is in F1F_{1}. For (d), if 𝑡𝑦𝑝(𝑎𝑢𝑥Cj,Cj)\mathit{typ(aux_{C_{j}},C_{j})} is in SS, then 𝑡𝑦𝑝(𝑎𝑢𝑥Cj,Cj)\mathit{typ(aux_{C_{j}},C_{j})} is in F2F_{2} and 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)\mathit{inst(aux_{C_{j}},C_{j})} is in F1F_{1}. Then, by construction, F1F_{1} must also contain 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,B)\mathit{inst(aux_{C_{j}},B)} for each 𝐓(Cj)B{\bf T}(C_{j})\sqsubseteq B in KK (i.e., for each 𝑠𝑢𝑏𝑇𝑦𝑝(Cj,B,N)\mathit{subTyp(C_{j},B,N)} in ΠK\Pi_{K}).

We have proved that SS is a consistent set of ground atoms and all the ground instances of the rules in Π(K,C,D)\Pi(K,C,D) are satisfied in SS. To see that SS is an answer set of Π(K,C,D)\Pi(K,C,D), we have to show that all literals in SS are supported in SS. Just observe that, all facts in F0F_{0} are obtained applying the disjunctive rule (a). Facts 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)\mathit{inst(aux_{C_{j}},C_{j})} in F1F_{1} and 𝑡𝑦𝑝(𝑎𝑢𝑥Cj,Cj)\mathit{typ(aux_{C_{j}},C_{j})} in F2F_{2} can be derived using rules (b) and (c) from facts (𝑖𝑛𝑠𝑡(a,Cj)\mathit{inst(a,C_{j})}) derived from Π(K,C,D)F0\Pi(K,C,D)\cup F_{0} (by construction of F1F_{1} and F2F_{2}). The facts in 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,B)F1\mathit{inst(aux_{C_{j}},B)}\in F_{1} for each 𝐓(Cj)B{\bf T}(C_{j})\sqsubseteq B in KK are derived using rules (d) from 𝑠𝑢𝑏𝑇𝑦𝑝(Cj,B,N)\mathit{subTyp(C_{j},B,N)} in ΠK\Pi_{K} and from facts 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥Cj,Cj)\mathit{inst(aux_{C_{j}},C_{j})} in F1F_{1}, which are supported in SS.

To conclude the proof, we need to show that 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,D)S\mathit{inst(aux_{C},D)}\not\in S. Observe that the properties satisfied by 𝑎𝑢𝑥C\mathit{aux_{C}} are given by the set of literals F0F_{0}, and 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)\mathit{inst(aux_{C},B)} iff xBIx\in B^{I} in model {\mathcal{M}}. As from the hypothesis xDIx\not\in D^{I}, then 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,D)\mathit{inst(aux_{C},D)} is not in F0F_{0}. If 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,D)\mathit{inst(aux_{C},D)} were in SS, by construction, it would be derivable from Π(K,C,D)F1\Pi^{\prime}(K,C,D)\cup F_{1}. However, in this case, by Lemma 1 of Krötzsch \shortcitejeliaReport, any +{\mathcal{EL}}^{+}_{\bot} model of Kstrict𝒜0𝒜1K_{strict}\cup{\cal A}_{0}\cup{\cal A}_{1} would satisfy {auxC}D\{aux_{C}\}\sqsubseteq D. This contradicts the fact that model ′′{\mathcal{M}}^{\prime\prime} satisfies Kstrict𝒜0𝒜1K_{strict}\cup{\cal A}_{0}\cup{\cal A}_{1} and interprets the individual name auxCaux_{C} as (auxC)I′′=(auxC)I=x(aux_{C})^{I^{\prime\prime}}=(aux_{C})^{I^{\prime}}=x. From the hypothesis, xDIx\not\in D^{I} in {\mathcal{M}} and, hence, xDI′′x\not\in D^{I^{\prime\prime}} in ′′{\mathcal{M}}^{\prime\prime}.

Proposition 5.6. Given a normalized ranked knowledge base K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯C1,,{\cal T}_{C_{1}},\ldots, 𝒯Ck,𝒜{\cal T}_{C_{k}},{\cal A}\rangle over the set of concepts 𝒞{\cal C}, and a subsumption 𝐓(C)D{\bf T}(C)\sqsubseteq D, we can prove the following:

  • (1)

    if there is a canonical and 𝐓{\bf T}-compliant cwm-model =(Δ,<C1,,<Ck,<,I){\mathcal{M}}=(\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}) of KK that falsifies 𝐓(C)D{\bf T}(C)\sqsubseteq D, then there is a preferred answer set SS of Π(K,C,D)\Pi(K,C,D) according to 𝑃𝑟𝑒𝑓\mathit{Pref}, such that inst(auxC,D)Sinst(aux_{C},D)\not\in S.

  • (2)

    if there is a preferred answer set SS of Π(K,C,D)\Pi(K,C,D) according to 𝑃𝑟𝑒𝑓\mathit{Pref}, such that inst(auxC,D)Sinst(aux_{C},D)\not\in S, then there is a canonical and 𝐓{\bf T}-compliant cwm-model =(Δ,<C1,,<Ck,<,I){\mathcal{M}}=(\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}) of KK that falsifies 𝐓(C)D{\bf T}(C)\sqsubseteq D.

Proof C.14.

For part (1), assume that there is a canonical 𝐓{\bf T}-compliant cwm-model =(Δ,<C1,,<Ck,<,I){\mathcal{M}}=(\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}) of KK that falsifies the subsumption 𝐓(C)D{\bf T}(C)\sqsubseteq D. Then, there is some xΔx\in\Delta, such that xmin<(CI)x\in min_{<}(C^{I}) and xDIx\not\in D^{I}.

By Proposition 5.4, part (2), we know that there is an answer set SS of program Π(K,C,D)\Pi(K,C,D) such that inst(auxC,D)Sinst(aux_{C},D)\not\in S. We have to prove that SS is a preferred answer set of Π(K,C,D)\Pi(K,C,D).

Observe that, as 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,C)Π(K,C,D)\mathit{inst(aux_{C},C)\in\Pi(K,C,D)}, 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,C)\mathit{inst(aux_{C},C)} is in SS. By construction of SS, the answer set SS contains the set of facts F0F_{0} where: F0={𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)xBIF_{0}=\{\mathit{inst(aux_{C},B)}\mid\;x\in B^{I} for some 𝐓(Cj)B{\bf T}(C_{j})\sqsubseteq B is in K}K\}.

Suppose, by contradiction that SS is not preferred among the answer sets of Π(K,C,D)\Pi(K,C,D). Then there is another answer set SS^{\prime} which is preferred to SS. By this we mean that auxCaux_{C} is SS^{\prime} (let us denote it as auxCSaux_{C}^{S^{\prime}}) is globally preferred to auxCaux_{C} is SS (let us denote it as auxCSaux_{C}^{S}), that is, auxCS<auxCSaux_{C}^{S^{\prime}}<aux_{C}^{S}. We have seen that the relation of global preference among the ASP constants auxCSaux_{C}^{S^{\prime}} and auxCSaux_{C}^{S} is, essentially, the same as in Definition 6, point (c), andt relations <Cj<_{C_{j}}’s and Cj\leq_{C_{j}} are defined according to Definition 2, by letting:

𝒯Cil(𝑎𝑢𝑥CS)\mathit{{\cal T}^{l}_{C_{i}}(aux_{C}^{S^{\prime}})} ={B𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,Ci)S=\{\mathit{B\mid\;inst(aux_{C},C_{i})\in S^{\prime}} or 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)\in S^{\prime}} s.t. 𝐓(Ci)BK}{\bf T}(C_{i})\sqsubseteq B\in K\} and

𝒯Cil(𝑎𝑢𝑥CS)\mathit{{\cal T}^{l}_{C_{i}}(aux_{C}^{S})} ={B𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,Ci)S=\{\mathit{B\mid\;inst(aux_{C},C_{i})\in S} or 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)\in S} s.t. 𝐓(Ci)BK}{\bf T}(C_{i})\sqsubseteq B\in K\}.

By Proposition 5.4, part (1), from the answer set SS^{\prime} we can construct a 𝐓{\bf T}-compliant cwm-model =(Δ,<C1,,<Ck,<,I){\mathcal{M}}^{\prime}=(\Delta^{\prime},<^{\prime}_{C_{1}},\ldots,<^{\prime}_{C_{k}},<^{\prime},\cdot^{I^{\prime}}) of KK that contains a domain element zCΔz_{C}\in\Delta^{\prime} such that zCCIz_{C}\in C^{I^{\prime}} and zCBIz_{C}\in B^{I^{\prime}}, for all 𝐓(Ci)BK\mathit{{\bf T}(C_{i})\sqsubseteq B\in K} such that 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)\in S^{\prime}}.

As {\mathcal{M}} is a canonical model, there must be an element yΔy\in\Delta such that yBIy\in B^{I} iff zCBIz_{C}\in B^{I^{\prime}}, for all concepts BB. Therefore, for all 𝐓(Ci)BK\mathit{{\bf T}(C_{i})\sqsubseteq B\in K}, yBIy\in B^{I} iff 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)\in S^{\prime}}. We have already observed that: for all 𝐓(Ci)BK\mathit{{\bf T}(C_{i})\sqsubseteq B\in K}, xBIx\in B^{I} iff 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)\in S}. From auxCS<auxCSaux_{C}^{S^{\prime}}<aux_{C}^{S}, it follows that y<xy<x, which contradicts the hypothesis that xx is a <<-minimal CC-element in {\mathcal{M}}. Then, SS must be preferred among the answer sets of Π(K,C,D)\Pi(K,C,D).

For part (2), let us assume that there is a preferred answer set SS of Π(K,C,D)\Pi(K,C,D) such that inst(auxC,D)Sinst(aux_{C},D)\not\in S. By Proposition 5.4, point (1), from the answer set SS we can construct a 𝐓{\bf T}-compliant cwm-model =(Δ,<C1,,<Ck,<,I){\mathcal{M}}^{*}=(\Delta^{*},<^{*}_{C_{1}},\ldots,<^{*}_{C_{k}},<^{*},\cdot^{I^{*}}) of KK in which there is some domain element zCΔz_{C}\in\Delta such that zCBIz_{C}\in B^{I^{*}} iff 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)\in S}. In particular, zCCIz_{C}\in C^{I^{*}} and zCDIz_{C}\not\in D^{I^{*}}.

As {\mathcal{M}} is a preferential model for KK, KK is consistent, and there is a canonical preferential model 𝒩=\mathcal{N}= Δ,<𝒩,I\langle\Delta,{<^{\mathcal{N}}},\cdot^{I}\rangle for KK [Giordano et al. (2018)]. As 𝒩\mathcal{N} is canonical, there must be an element yΔy\in\Delta such that yBIy\in B^{I} iff zCBIz_{C}\in B^{I}, for all +{\mathcal{EL}}^{+}_{\bot} concepts BB. Therefore, yBIy\in B^{I} iff 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)\in S}. In particular, yCIy\in C^{I} and yDIy\not\in D^{I}. (Δ,,I)(\Delta,,\cdot^{I}) is a +{\mathcal{EL}}^{+}_{\bot} model of KK, which is canonical and 𝐓{\bf T}-compliant for KK (as any preferential model is 𝐓{\bf T}-compliant). Let =Δ,<C1,,<Ck,<,I{\mathcal{M}}=\langle\Delta,<_{C_{1}},\ldots,<_{C_{k}},<,\cdot^{I}\rangle be the cwm-model obtained by adding to 𝒩\mathcal{N} the preference relations in Δ\Delta defined according to Definition 6, point (c), and Definition 2.

To conclude that 𝐓(C)D{\bf T}(C)\sqsubseteq D is falsified in a canonical 𝐓{\bf T}-compliant cwm-model {\mathcal{M}}. We have to prove that y𝐓(C)Iy\in{\bf T}(C)^{I}, that is ymin<(CI)y\in min_{<}(C^{I}).

For a contradiction, let us assume that ymin<(CI)y\not\in min_{<}(C^{I}). Then there is some wΔw\in\Delta such that wmin<(CI)w\in min_{<}(C^{I}) and w<yw<y. Given model {\mathcal{M}} and wΔw\in\Delta, we can build an answer set SS^{\prime} of Π(K,C,D)\Pi(K,C,D) (as done in the proof of Proposition 5.4, part (2), such that 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥C,B)S\mathit{inst(aux_{C},B)}\in S^{\prime} wBI\iff w\in B^{I}, for all BB such that 𝐓(Cj)B{\bf T}(C_{j})\sqsubseteq B is in KK.

As w<yw<y, it must be that the answer set SS^{\prime} is preferred to the answer set SS of Π(K,C,D)\Pi(K,C,D), as auxCaux_{C} is SS^{\prime} (let us denote it as auxCSaux_{C}^{S^{\prime}}) is globally preferred to auxCaux_{C} is SS (let us denote it as auxCSaux_{C}^{S}), that is, auxCS<auxCSaux_{C}^{S^{\prime}}<aux_{C}^{S}. However, this contradicts the hypothesis that SS is a preferred answer set. Then we conclude that ymin<(CI)y\in min_{<}(C^{I}). As y(𝐓(CI)y\in({\bf T}(C^{I}) and yDIy\not\in D^{I}, yy falsifies the subsumption 𝐓(C)D{\bf T}(C)\sqsubseteq D.

Proposition C.15.

cwm-entailment is in Π2p\Pi^{p}_{2}.

Proof C.16.

We consider the complementary problem, that is, the problem of deciding whether 𝐓(C)D{\bf T}(C)\sqsubseteq D is not cwm-entailed by KK. It requires determining if there is a canonical 𝐓{\bf T}-complete cwm-model of KK falsifying 𝐓(C)D{\bf T}(C)\sqsubseteq D or, equivalently (by Proposition 5.6), there is a preferred answer set SS of Π(K,C,D)\Pi(K,C,D) such that inst(auxC,D)Sinst(aux_{C},D)\not\in S.

This problem can be solved by an algorithm that non-deterministically guesses a ground interpretation SS over the language of Π(K,C,D)\Pi(K,C,D), of polynomial size (in the size of Π(K,C,D)\Pi(K,C,D)) and, then, verifies that SS satisfies all rules in Π(K,C,D)\Pi(K,C,D) and is supported in SS (i.e., it is an answer set of Π(K,C,D)\Pi(K,C,D)), that inst(auxC,D)Sinst(aux_{C},D)\not\in S and that SS is preferred among the answer sets of Π(K,C,D)\Pi(K,C,D). The last point can be verified using an NP-oracle which answers ”yes” when SS is a preferred answer set of Π(K,C,D)\Pi(K,C,D), and ”no” otherwise.

The oracle checks if there is an answer set SS^{\prime} of Π(K,C,D)\Pi(K,C,D) which is preferred to SS, by non-deterministically guessing a ground polynomial interpretation SS^{\prime} over the language of Π(K,C,D)\Pi(K,C,D), and verifying that SS satisfies all rules and is supported in SS^{\prime} (i.e., it is an answer set of Π(K,C,D)\Pi(K,C,D)), and that SS^{\prime} is preferred to SS. These checks can be done in polynomial time.

Hence, deciding whether 𝐓(C)D{\bf T}(C)\sqsubseteq D is not cwm-entailed by KK is in Σ2p\Sigma^{p}_{2}, and the complementary problem of deciding cwm-entailment is in Π2p\Pi^{p}_{2}.

Proposition C.17.

The problem of deciding cwm-entailment is Π2P\Pi^{P}_{2}-hard.

Proof C.18.

We prove that the problem of deciding cwm-entailment is Π2P\Pi^{P}_{2}-hard, by providing a reduction of the minimal entailment problem of positive disjunctive logic programs, which has been proved to be a Π2P\Pi^{P}_{2}-hard problem by Eiter and Gottlob \shortciteEiter95.

Let PV={p1,,pn}PV=\{p_{1},\ldots,p_{n}\} be a set of propositional variables. A clause is formula l1lhl_{1}\vee\ldots\vee l_{h}, where each literal ljl_{j} is either a propositional variable pip_{i} or its negation ¬pi\neg p_{i}. A positive disjunctive logic program (PDLP) is a set of clauses S={γ1,,γm}S=\{\gamma_{1},\ldots,\gamma_{m}\}, where each γj\gamma_{j} contains at least one positive literal. A truth valuation for SS is a set IPVI\subseteq PV, containing the propositional variables which are true. A truth valuation is a model of SS if it satisfies all clauses in SS. For a literal ll, we write SminlS\models_{min}l if and only if every minimal model (with respect to subset inclusion) of SS satisfies ll. The minimal-entailment problem can be then defined as follows: given a PDLP SS and a literal ll, determine whether SminlS\models_{min}l. In the following we sketch the reduction of the minimal-entailment problem for a PDLP SS to cwm-entailment of an inclusion from a knowledge base KK constructed from SS.

We define a ranked +{\mathcal{EL}}^{+}_{\bot} knowledge base K=𝒯strict,K=\langle{\cal T}_{strict}, 𝒯M1,,{\cal T}_{M_{1}},\ldots, 𝒯Mn,𝒜{\cal T}_{M_{n}},{\cal A}\rangle over the set of concepts 𝒞={M1,,Mn}{\cal C}=\{M_{1},\ldots,M_{n}\}, where 𝐴𝐵𝑜𝑥=\mathit{ABox}=\emptyset and each MhM_{h} is associated with a propositional variable phPVp_{h}\in PV. For each variable phPVp_{h}\in PV (h=1,,nh=1,\ldots,n), we also introduce two concept names PhP_{h} and Ph¯\overline{P_{h}} in NCN_{C}, where Ph¯\overline{P_{h}} is intended to represent the negation of php_{h}. We further introduce in NCN_{C} an auxiliary concept HH, a concept name DSD_{S} associated with the set of clauses SS, and a concept name DjD_{j} associated with each clause γj\gamma_{j} in SS, for j=1,,mj=1,\ldots,m. 𝒯strict{\cal T}_{strict} contains the following strict inclusions (where CijC_{i}^{j} and Cij¯\overline{C_{i}^{j}} are concepts associated with each literal lijl_{i}^{j} occurring in γj=l1jlkj\gamma_{j}=l_{1}^{j}\vee\ldots\vee l_{k}^{j}, as defined below):

(1) CijDjC_{i}^{j}\sqsubseteq D_{j}    for all γj=l1jlkj\gamma_{j}=l_{1}^{j}\vee\ldots\vee l_{k}^{j} in SS

(2) DjC1j¯Ckj¯D_{j}\sqcap\overline{C_{1}^{j}}\sqcap\ldots\sqcap\overline{C_{k}^{j}}\sqsubseteq\bot    for all γj=l1jlkj\gamma_{j}=l_{1}^{j}\vee\ldots\vee l_{k}^{j} in SS

(3) D1DmDSD_{1}\sqcap\ldots\sqcap D_{m}\sqsubseteq D_{S}

(4) DSD1DmD_{S}\sqsubseteq D_{1}\sqcap\ldots\sqcap D_{m}

(5) HPhPh¯H\sqcap P_{h}\sqcap\overline{P_{h}}\sqsubseteq\bot    (h=1,,nh=1,\ldots,n)

(6) HDSH\sqsubseteq D_{S},

for i=1,,ki=1,\ldots,k, j=1,,mj=1,\ldots,m, where CijC_{i}^{j} is defined as follows:

Cij={Ph if lij=phPh¯ if lij=¬phC_{i}^{j}=\left\{\begin{array}[]{l}P_{h}\mbox{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ if }l_{i}^{j}=p_{h}\\ \overline{P_{h}}\mbox{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ if }l_{i}^{j}=\neg p_{h}\end{array}\right.
Cij¯={Ph¯ if lij=phPh if lij=¬ph\overline{C_{i}^{j}}=\left\{\begin{array}[]{l}\overline{P_{h}}\mbox{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ if }l_{i}^{j}=p_{h}\\ P_{h}\mbox{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ if }l_{i}^{j}=\neg p_{h}\end{array}\right.

HH-elements are intended to represent the propositional interpretations. Inclusions (1)-(4) bind the truth values of the PhP_{h}’s to the truth values of the clauses in SS and of their conjunction (represented by DSD_{S}). By (6), in any cwm-model of KK, each instance xx of HH is an instance of DSD_{S}. By (5), each instance xx of HH cannot be an instance of both PhP_{h} and Ph¯\overline{P_{h}}. To capture the requirement that an HH-element must be either an instance of PhP_{h} or an instance of Ph¯\overline{P_{h}}, we let, for each distinguished concept name Mh𝒞M_{h}\in{\cal C} (h=1,,nh=1,\ldots,n), 𝒯Mh{\cal T}_{M_{h}} contains the following two typicality inclusions:

𝐓(Mh)Ph¯{\bf T}(M_{h})\sqsubseteq\overline{P_{h}}, with rank 0,

𝐓(Mh)Ph{\bf T}(M_{h})\sqsubseteq P_{h}, with rank 11.

Relation <Mh<_{M_{h}} prefers Ph¯\overline{P_{h}}-elements wrt PhP_{h}-elements, and prefers PhP_{h}-elements wrt elements xx which are neither instances of PhP_{h} nor instances of Ph¯\overline{P_{h}}. This allows to capture subset inclusion minimality in the interpretations of the positive disjunctive logic program SS.

It can be proved that the instances of HH which are minimal wrt <Mh<_{M_{h}} in a canonical 𝐓{\bf T}-compliant cwm-model of KK, must be either instances of PhP_{h} or instances of Ph¯\overline{P_{h}}. In particular, if there is an HH-element xx which is neither an instance of PhP_{h} nor an instance of Ph¯\overline{P_{h}}, it cannot be <Mh<_{M_{h}}-minimal. In fact, in such a case, the canonical model would contain another HH-element yy, which is an instance of all the concepts of which xx is instance and, in addition, is an instance of Ph¯\overline{P_{h}}. Clearly yy would be preferred to xx wrt <Mh<_{M_{h}}, contradicting the minimality of xx wrt <Mh<_{M_{h}}.

It can be proved that minimal HH-elements with respect to << in a canonical 𝐓{\bf T}-compliant cwm-model of KK correspond to minimal models of SS and that, given a set SS of clauses and a literal ll,

Sminl  Kcwm𝐓(H)ClS\models_{min}l\mbox{\ \ \ }\Leftrightarrow\mbox{\ \ \ }K\models_{cw^{m}}{\bf T}(H)\sqsubseteq C_{l}

where ClC_{l} is the concept associated with ll, i.e., Cl=PhC_{l}=P_{h} if l=phl=p_{h}, and Cl=Ph¯C_{l}=\overline{P_{h}} if l=¬phl=\neg p_{h}.

From the reduction above and the result that minimal entailment for PDLP is Π2P\Pi^{P}_{2}-hard [Eiter and Gottlob (1995)], it follows that cwm-entailment is Π2P\Pi^{P}_{2}-hard.

References