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

Weighted Conditional \mathcal{EL}^{\bot} Knowledge Bases
with Integer Weights: an ASP Approach

Laura Giordano     Daniele Theseider Dupré DISIT - Università del Piemonte Orientale, Alessandria, Italy {laura.giordano,dtd}@uniupo.it
Abstract

Weighted knowledge bases for description logics with typicality have been recently considered under a “concept-wise” multipreference semantics (in both the two-valued and fuzzy case), as the basis of a logical semantics of Multilayer Perceptrons. In this paper we consider weighted conditional \mathcal{EL}^{\bot} knowledge bases in the two-valued case, and exploit ASP and asprin for encoding concept-wise multipreference entailment for weighted KBs with integer weights.

1 Introduction

Preferential approaches to common sense reasoning [27, 31, 29, 4, 24], have been extended to description logics (DLs), to deal with inheritance with exceptions in ontologies, by allowing for non-strict forms of inclusions, called typicality or defeasible inclusions, with different preferential semantics [19, 8] and closure constructions [11, 10, 20, 32, 12].

In recent work, a concept-wise multipreference semantics [17] has been proposed as a semantics of ranked +{\mathcal{EL}}^{+}_{\bot} knowledge bases, i.e. knowledge bases in which defeasible or typicality inclusions of the form 𝐓(C)D{\bf T}(C)\sqsubseteq D (meaning “the typical CC’s are DD’s” or “normally CC’s are DD’s”) are given a rank, a natural number, representing their strength, where 𝐓{\bf T} is a typicality operator [19] that singles out the typical instances of concept CC. The concept-wise multipreference semantics takes into account preferences with respect to different concepts, and integrates them into a single global preference relation, which is needed for the evaluation of general defeasible inclusions. Answer Set Programming (ASP) and, in particular, asprin [7], has been exploited to achieve defeasible reasoning under the multipreference approach for the lightweight description logic +{\mathcal{EL}}^{+}_{\bot} (a logic of the \mathcal{EL} family [3]).

In [18], the concept-wise multipreference semantics has been adapted to deal with weighted knowledge bases, in which each typicality inclusion is associated to a weight, a real (positive or negative) number, representing its plausibility or implausibility. The multipreference semantics has been exploited to provide a preferential interpretation of Multilayer Perceptrons (MLPs), by representing the input-output behavior of the network. It has been further extended to the fuzzy case, and the fuzzy multipreference interpretation built from the network, for a given set of input stimuli, have been proven to be a model of the neural network, in the logical sense. To this purpose, the deep network has been interpreted as a weighted conditional knowledge base, i.e., a set of weighted defeasible inclusions, by regarding synaptic connections as weighted defeasible inclusions.

While decidability of the fuzzy multipreference entailment is an open problem, in this paper we consider the two-valued case and extend the ASP approach considered for ranked KBs [17] to deal with weighted conditional KBs, for integer weights. Differently from [17], the semantic closure construction used for weighted knowledge bases does not exploit a lexicographic order, as in Lehmann lexicographic closure [29] and in Brewka’s framework of basic preference descriptions [6], but a construction more related to Kern-Isberner’s c-representations [24, 25]. We develop an ASP encoding of the concept-wise multipreference semantics for weighted \mathcal{EL}^{\bot} knowledge bases, and exploit asprin to achieve defeasible reasoning for weighted \mathcal{EL}^{\bot} knowledge bases with integer weights. This is a first step towards the definition of multi-valued approximations of the fuzzy multipreference semantics for weighted knowledge bases, which may be of interest from the standpoint of explainable AI [2, 23].

2 The description logic \mathcal{EL}^{\bot}

We consider the description logic \mathcal{EL}^{\bot} of the {\cal EL} family [3]. Let N_C{N_{\_}C} be a set of concept names, N_R{N_{\_}R} a set of role names and N_I{N_{\_}I} a set of individual names. The set of \mathcal{EL}^{\bot} concepts can be defined as follows: C:=ACCr.C{a}C\ \ :=A\mid\top\mid\bot\mid C\sqcap C\mid\exists r.C\mid\{a\} where aN_Ia\in N_{\_}I, AN_CA\in N_{\_}C and rN_Rr\in N_{\_}R. {a}\{a\} is a nominal, a concept containing a single element. 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. 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, rN_Rr\in N_{\_}R, and a,bN_Ia,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 CN_CC\in N_{\_}C to a set CIΔC^{I}\subseteq\Delta, each role name rN_Rr\in N_{\_}R to a binary relation rIΔ×Δr^{I}\subseteq\Delta\times\Delta, and each individual name aN_Ia\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, {a}I={aI}\{a\}^{I}=\{a^{I}\}, (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 notion of satisfiability of a KB in an interpretation is 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 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 Weighted knowledge bases and the multipreference semantics

Let 𝒞={C_1,,C_k}{\cal C}=\{C_{\_}1,\ldots,C_{\_}k\} be a set of distinguished \mathcal{EL}^{\bot} concepts, the concepts for which defeasible inclusions are defined. A weighted TBox 𝒯_C_i{\cal T}_{\_}{C_{\_}i} is defined for each distinguished concept C_i𝒞C_{\_}i\in{\cal C} as a set of defeasible inclusions of the form 𝐓(C_i)D{\bf T}(C_{\_}i)\sqsubseteq D with a weight. A weighted \mathcal{EL}^{\bot} knowledge base KK over 𝒞{\cal C} is a tuple 𝒯_strict,𝒯_C_1,,𝒯_C_k,𝒜\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 strict concept inclusions, 𝒜{\cal A} is an ABox and, for each C_i𝒞C_{\_}i\in{\cal C}, 𝒯_C_i{\cal T}_{\_}{C_{\_}i} is a set of weighted defeasible inclusions, {(d_ih,w_ih)}\{(d^{i}_{\_}h,w^{i}_{\_}h)\}, where each d_ihd^{i}_{\_}h is a typicality inclusion of the form 𝐓(C_i)D_i,h{\bf T}(C_{\_}i)\sqsubseteq D_{\_}{i,h}, having weight w_ihw^{i}_{\_}h, a real number.

Consider, for instance, the weighted knowledge base K=𝒯_strict,𝒯_Emp,𝒯_Student,K=\langle{\cal T}_{\_}{strict},{\cal T}_{\_}{Emp},{\cal T}_{\_}{Student}, 𝒜{\cal A}\rangle, over the set of distinguished concepts 𝒞={𝐸𝑚𝑝,𝑆𝑡𝑢𝑑𝑒𝑛𝑡}{\cal C}=\{\mathit{Emp,Student}\}, with empty ABox, and with 𝒯_strict{\cal T}_{\_}{strict} containing the set of strict inclusions:

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

𝒯_Emp{\cal T}_{\_}{Emp} contains the following weighted defeasible inclusions:

(d_1)(d_{\_}1) 𝐓(𝐸𝑚𝑝)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Emp)\sqsubseteq Young},   - 50                   (d_2)(d_{\_}2) 𝐓(𝐸𝑚𝑝)ℎ𝑎𝑠_𝑏𝑜𝑠𝑠.𝐸𝑚𝑝\mathit{{\bf T}(Emp)\sqsubseteq\exists has\_boss.Emp},   100

(d_3)(d_{\_}3) 𝐓(𝐸𝑚𝑝)ℎ𝑎𝑠_𝑐𝑙𝑎𝑠𝑠𝑒𝑠.\mathit{{\bf T}(Emp)\sqsubseteq\exists has\_classes.\top},   -70;

𝒯_Student{\cal T}_{\_}{Student} contains the defeasible inclusions:

(d_4)(d_{\_}4) 𝐓(𝑆𝑡𝑢𝑑𝑒𝑛𝑡)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(Student)\sqsubseteq Young},   90              (d_5)(d_{\_}5) 𝐓(𝑆𝑡𝑢𝑑𝑒𝑛𝑡)ℎ𝑎𝑠_𝑐𝑙𝑎𝑠𝑠𝑒𝑠.\mathit{{\bf T}(Student)\sqsubseteq\exists has\_classes.\top},   80

(d_6)(d_{\_}6) 𝐓(𝑆𝑡𝑢𝑑𝑒𝑛𝑡)ℎ𝑎𝑠𝑆𝑐ℎ𝑜𝑙𝑎𝑟𝑠ℎ𝑖𝑝.\mathit{{\bf T}(Student)\sqsubseteq\exists hasScholarship.\top},    -30

The meaning is that, while an employee normally has a boss, he is not likely to be young or have classes. Furthermore, between the two defeasible inclusions (d_1)(d_{\_}1) and (d_3)(d_{\_}3), the second one is considered to be less plausible than the first one. Given two employees Tom and Bob such that Tom is not young, has no boss and has classes, while Bob is not young, has a boss and has no classes, considering the weights above, we will regard Bob as being more typical than Tom as an employee. Note that negative weights represent penalties that could not be expressed by positive ranks in a ranked \mathcal{EL}^{\bot} knowledge base.

The semantics of a weighted knowledge base has been defined [18] based on a concept-wise preference semantics, a semantics first exploited for ranked \mathcal{EL}^{\bot} knowledge bases [17]. For each concept C_i𝒞C_{\_}i\in{\cal C}, a preference relation <_C_i<_{\_}{C_{\_}i} describes the preference among domain elements with respect to C_iC_{\_}i. Each <_C_i<_{\_}{C_{\_}i} has the properties of preferences in KLM-style ranked interpretations [29], i.e., it is a modular and well-founded strict partial order. More precisely, <_C_i<_{\_}{C_{\_}i} is well-founded if, for all SΔS\subseteq\Delta, if SS\neq\emptyset, then min_<_C_i(S)min_{\_}{<_{\_}{C_{\_}i}}(S)\neq\emptyset; <_C_i<_{\_}{C_{\_}i} is modular if, for all x,y,zΔx,y,z\in\Delta, x<_C_jyx<_{\_}{C_{\_}j}y implies (x<_C_jzx<_{\_}{C_{\_}j}z or z<_C_jyz<_{\_}{C_{\_}j}y).

To define a concept-wise semantics for weighted \mathcal{EL}^{\bot} KBs, let us recall the notion of multipreference interpretation [17]: an \mathcal{EL}^{\bot} interpretation is extended with a collection of preferences.

Definition 2 (Multipreference interpretation)

A multipreference \mathcal{EL}^{\bot} interpretation is a tuple =Δ,<_C_1,,<_C_k,I\mathcal{M}=\langle\Delta,<_{\_}{C_{\_}1},\ldots,<_{\_}{C_{\_}k},\cdot^{I}\rangle, where:

(a) Δ\Delta is a domain, and I\cdot^{I} an interpretation function, as in \mathcal{EL}^{\bot} interpretations;

(b) for each C_i𝒞C_{\_}i\in{\cal C}, <_C_i<_{\_}{C_{\_}i} is an irreflexive, transitive, well-founded and modular relation over Δ\Delta.

A preference relation <_C_i<_{\_}{C_{\_}i} determines the relative typicality of domain individuals with respect to concept C_iC_{\_}i. For instance, Tom may be more typical than Bob as a student (𝑡𝑜𝑚<_𝑆𝑡𝑢𝑑𝑒𝑛𝑡𝑏𝑜𝑏\mathit{tom<_{\_}\mathit{Student}bob}), but more exceptional than Tom as an employee ( 𝑏𝑜𝑏<_𝐸𝑚𝑝𝑡𝑜𝑚\mathit{bob<_{\_}\mathit{Emp}tom}). The minimal C_iC_{\_}i-elements with respect to <_C_i<_{\_}{C_{\_}i} are taken as the most typical C_iC_{\_}i-elements.

For a multipreference interpretation \mathcal{M} to satisfy a weighted knowledge base K=𝒯_strict,𝒯_C_1,,K=\langle{\cal T}_{\_}{strict},{\cal T}_{\_}{C_{\_}1},\ldots, 𝒯_C_k,𝒜{\cal T}_{\_}{C_{\_}k},{\cal A}\rangle, we require Δ,I\langle\Delta,\cdot^{I}\rangle to satisfy the axioms in 𝒯_strict{\cal T}_{\_}{strict} and 𝒜{\cal A}, as usual in \mathcal{EL}^{\bot}, and each preference relation <_C_i<_{\_}{C_{\_}i} to be constructed from 𝒯_C_i{\cal T}_{\_}{C_{\_}i}, through a semantic closure construction, similar in spirit to the lexicographic closure [30], but more similar to to c-representation [24, 25]. The sum of the weights of the defeasible inclusions for C_iC_{\_}i satisfied by each domain element xΔx\in\Delta is considered; higher preference wrt <_C_i<_{\_}{C_{\_}i} is given to the domain elements whose associated sum (wrt C_iC_{\_}i) is higher [18].

As \mathcal{EL}^{\bot} has the finite model property [3], we can restrict to interpretations with a finite domain Δ\Delta. We say that xΔx\in\Delta satisfies 𝐓(C_i)D{\bf T}(C_{\_}i)\sqsubseteq D in II, if xC_iIx\not\in C_{\_}i^{I} or xDIx\in D^{I} (otherwise xx violates 𝐓(C_i)D{\bf T}(C_{\_}i)\sqsubseteq D in II). Given an \mathcal{EL}^{\bot} interpretation I=Δ,II=\langle\Delta,\cdot^{I}\rangle and a domain element xΔx\in\Delta, the weight W_i(x)W_{\_}i(x) of xx wrt C_iC_{\_}i in II is defined considering the inclusions (𝐓(C_i)D_i,h,w_ih)𝒯_C_i({\bf T}(C_{\_}i)\sqsubseteq D_{\_}{i,h}\;,w^{i}_{\_}h)\in{\cal T}_{\_}{C_{\_}i}, as follows:

W_i(x)\displaystyle W_{\_}i(x) ={_h:xD_i,hIw_hi if xC_iI otherwise \displaystyle=\left\{\begin{array}[]{ll}\sum_{\_}{{h:x\in D_{\_}{i,h}^{I}}}w_{\_}h^{i}&\mbox{ \ \ \ \ if }x\in C_{\_}i^{I}\\ -\infty&\mbox{ \ \ \ \ otherwise }\end{array}\right. (3)

where -\infty is added at the bottom of all real values. Informally, given an interpretation II, for xC_iIx\in C_{\_}i^{I}, the weight W_i(x)W_{\_}i(x) of xx wrt C_iC_{\_}i is the sum of the weights of all defeasible inclusions for C_iC_{\_}i satisfied by xx in II. The more plausible are the satisfied inclusions, the higher is the weight of xx. The lowest weight, -\infty, is given to all domain elements which are not instances of C_iC_{\_}i.

Based on this notion of weight of a domain element wrt a concept, one can construct a preference relation <_C_i<_{\_}{C_{\_}i} from a given \mathcal{EL}^{\bot} interpretation II. A domain element xx is preferred to element yy wrt C_iC_{\_}i if the sum of the weights of the defaults in 𝒯_C_i{\cal T}_{\_}{C_{\_}i} satisfied by xx is higher than the sum of the weights of defaults in 𝒯_C_i{\cal T}_{\_}{C_{\_}i} satisfied by yy: for x,yΔx,y\in\Delta,

x\displaystyle x <_C_iy iff W_i(x)>W_i(y)\displaystyle<_{\_}{C_{\_}i}y\mbox{ \ \ iff \ \ }W_{\_}i(x)>W_{\_}i(y) (4)

Note that <_C_j<_{\_}{C_{\_}j} a strict modular partial order, and all C_iC_{\_}i-elements are preferred wrt <_C_i<_{\_}{C_{\_}i} to the domain elements which are not instances of C_iC_{\_}i. The higher is the weight of an element wrt C_iC_{\_}i the more preferred is the element. In the example, W_i(bob)=30>W_i(tom)=70W_{\_}i(bob)=30>W_{\_}i(tom)=-70 (for C_i=𝐸𝑚𝑝C_{\_}i=\mathit{Emp}) and, hence, 𝑏𝑜𝑏<_𝐸𝑚𝑝𝑡𝑜𝑚\mathit{bob<_{\_}{Emp}tom}, i.e., Bob is more typical than Tom as an employee.

Given the preferences <_C_i<_{\_}{C_{\_}i} for the distinguished concepts, we can interpret 𝐓(C_i){\bf T}(C_{\_}i) as the set of minimal C_iC_{\_}i elements w.r.t. preference <_C_i<_{\_}{C_{\_}i}. To provide an interpretation of the typicality concept 𝐓(C){\bf T}(C) for an arbitrary CC (such as, for instance, 𝐓(𝐸𝑚𝑝𝑙𝑜𝑦𝑒𝑒𝑆𝑡𝑢𝑑𝑒𝑛𝑡)\mathit{{\bf T}(Employee\sqcap Student)}), following [17], a notion of global preference << is introduced by exploiting a modified Pareto combination of the preference relations <_C_1,,<_C_k<_{\_}{C_{\_}1},\ldots,<_{\_}{C_{\_}k}, which takes into account the specificity relation \succ among concepts, e.g., that concept 𝑃ℎ𝐷𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{PhDStudent} is more specific than concept 𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{Student} (𝑃ℎ𝐷𝑆𝑡𝑢𝑑𝑒𝑛𝑡𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{PhDStudent\succ Student}), and its properties override the properties of 𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{Student}, when conflicting). The global preference relation << is defined from <_C_1,,<_C_k<_{\_}{C_{\_}1},\ldots,<_{\_}{C_{\_}k} as follows:
                          x<y iff (i)x<_C_iy, for some C_i𝒞, and x<y\mbox{ iff \ \ }(i)\ x<_{\_}{C_{\_}i}y,\mbox{ for some }C_{\_}i\in{\cal C},\mbox{ and }
                                          (ii) for all C_j𝒞,x_C_jy or C_h(C_hC_j and x<_C_hy)(ii)\ \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).
We interpret 𝐓(C){\bf T}(C), for an arbitrary concept CC, as the set of minimal CC-elements with respect to << (i.e., (𝐓(C))I=min_<(CI)({\bf T}(C))^{I}=min_{\_}{<}(C^{I})). This leads to the definition of a concept-wise multipreference model (cwm-model) of a weighted knowledge base K=𝒯_strict,K=\langle{\cal T}_{\_}{strict}, 𝒯_C_1,,{\cal T}_{\_}{C_{\_}1},\ldots, 𝒯_C_k,𝒜{\cal T}_{\_}{C_{\_}k},{\cal A}\rangle over 𝒞{\cal C}, as a a tuple =Δ,<_C_1,,<_C_k,<,I{\mathcal{M}}=\langle\Delta,<_{\_}{C_{\_}1},\ldots,<_{\_}{C_{\_}k},<,\cdot^{I}\rangle, where Δ,I\langle\Delta,\cdot^{I}\rangle satisfies 𝒯_strict{\cal T}_{\_}{strict} and 𝒜{\cal A} in \mathcal{EL}^{\bot}; <_C_j<_{\_}{C_{\_}j} is defined from 𝒯_C_j{\cal T}_{\_}{C_{\_}j} and II, according to condition (4), for all j=1,,kj=1,\ldots,k; and << is the global preference relation.

Based on the notion of cwm-model of a KB, a notion of concept-wise entailment (or cwm-entailment) can be defined in a natural way for weigthed KBs. Let us restrict consideration to (finite) canonical models, i.e., models which are large enough to contain all the relevant domain elements (see [17]).

Definition 3 (cwm-entailment [18])

An inclusion 𝐓(C)D{\bf T}(C)\sqsubseteq D is cwm-entailed from a weighted knowledge base KK if it is satisfied in all canonical cwm-models \mathcal{M} of KK.

As for ranked +{\mathcal{EL}}^{+}_{\bot} knowledge bases [17], it can be proven that this notion of cwm-entailment for weigthed \mathcal{EL}^{\bot} KBs satisfies the KLM postulates of a preferential consequence relation, as the global preference relation << is a strict partial order.

4 Encoding cwm-entailment in ASP and asprin for integer weights

From the computational point of view, in the case of knowledge bases integer weights, the notion of cwm-entailment can be reformulated as a problem of computing preferred answer sets, as done for ranked knowledge bases [17]. It is possible to adapt the ASP encoding for ranked knowledge bases to deal with the extension of \mathcal{EL}^{\bot} with typicality inclusions with integer weights. The encoding has been developed by exploiting a fragment of Krötzsch’s Datalog materialization calculus [28] to generate the answer sets (representing canonical cwm-models), and asprin [7] to select preferred answer sets: asprin allows to do this according to preferences defined from a library, or with a preference program, as in this case.

In principle, verifying cwm-entailment of a typicality subsumption 𝐓(C)D{\bf T}(C)\sqsubseteq D from KK, would require considering all typical CC-elements in all possible canonical cwm-models of KK, and checking whether they are all instances of DD. However, 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 by Krötzsch [28], and a distinguished domain element aux_Caux_{\_}C to represent a prototypical CC-element. The preferred answer sets are those maximizing the weight of typicality inclusions satisfied by aux_Caux_{\_}C. As in the materialization calculus auxiliary constants are used to deal with existential rules. Differently from [17], we do not need other auxiliary predicates for the distinguished concepts C_iC_{\_}i.

Following [28], we assume that the knowledge base KK is in normal form [3], where a typicality inclusion 𝐓(B)C{\bf T}(B)\sqsubseteq C is in normal form when B,CN_CB,C\in N_{\_}C. Extending the results by Krötzsch [28], it can be proven that, given a KB, a semantically equivalent KB in normal form (over an extended signature) can be computed in linear time [21].

The base program Π(K,C,D)\Pi(K,C,D) for the (normalized) knowledge base KK and a 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 based on the materialization calculus [28], where 𝑛𝑜𝑚(a)\mathit{nom(a)}, 𝑐𝑙𝑠(A)\mathit{cls(A)}, 𝑟𝑜𝑙(R)\mathit{rol(R)} are used for aN_I\mathit{a\in N_{\_}I} , AN_C\mathit{A\in N_{\_}C}, RN_R\mathit{R\in N_{\_}R}, and, for example, 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(a,C)\mathit{subClass(a,C)} and 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(A,C)\mathit{subClass(A,C)} are used, respectively, for C(a)C(a) and ACA\sqsubseteq C. Additionally, 𝑠𝑢𝑏𝑇𝑦𝑝(C,D,W)\mathit{subTyp(C,D,W)} is introduced to describe the typical properties T(C)D\mathit{T(C)\sqsubseteq D} of concept CC with their weight WW, and is used for specifying preferences in asprin.

Π_IR\Pi_{\_}{IR} contains the subset of the inference rules for instance checking from the materialization calculus [28], those relevant for \mathcal{EL}^{\bot}, for example, 𝑖𝑛𝑠𝑡(x,z)\mathit{inst(x,z)\leftarrow} 𝑠𝑢𝑏𝐶𝑙𝑎𝑠𝑠(y,z),𝑖𝑛𝑠𝑡(x,y)\mathit{subClass(y,z),inst(x,y)}. For \bot, we use an additional rule: 𝑏𝑜𝑡(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 [28]), and a rule to define predicate 𝑚𝑜𝑟𝑒𝑠𝑝𝑒𝑐(𝐶ℎ,𝐶𝑗)\mathit{morespec(Ch,Cj)} describing the specificity relation among concepts (meaning that concept C_hC_{\_}h is more specific than concept C_jC_{\_}j). Π_IR\Pi_{\_}{IR} also contains the rule: {𝑖𝑛𝑠𝑡(𝑎𝑢𝑥_C,D)}𝑐𝑙𝑠(D)\mathit{\{inst(aux_{\_}C,D)\}\ \leftarrow cls(D)}, which generates alternative answer sets, corresponding to different interpretations of 𝑎𝑢𝑥_C\mathit{aux_{\_}C}, which may be an instance or not of any concept DD.

Let us notice that the rules enforcing 𝐓{\bf T}-compliance in [17] are omitted. In fact, in a 𝐓{\bf T}-compliant interpretation all typical C_iC_{\_}i elements are assumed to satisfy all typicality inclusions for C_iC_{\_}i in 𝒯_C_i{\cal T}_{\_}{C_{\_}i}, an assumption which cannot be taken in the presence of defeasible inclusions with negative weights.

Π_C,D\Pi_{\_}{C,D} contains (when needed) 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}(Emp\sqcap Student)\sqsubseteq Young} with 𝐓(A)𝑌𝑜𝑢𝑛𝑔\mathit{{\bf T}(A)\sqsubseteq Young} and A𝐸𝑚𝑝\mathit{A\sqsubseteq Emp}, A𝑆𝑡𝑢𝑑𝑒𝑛𝑡\mathit{A\sqsubseteq Student} and 𝐸𝑚𝑝𝑆𝑡𝑢𝑑𝑒𝑛𝑡A\mathit{Emp\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).}

Differently from the ASP encoding in [17], where the lexicographic strategy # [6] for ranked knowledge bases is used, the preference among individuals is now expressed as: x<_C_iyx<_{\_}{C_{\_}i}y iff W_i(x)>W_i(y)W_{\_}i(x)>W_{\_}i(y), where W_i(x)W_{\_}i(x) and W_i(y)W_{\_}i(y) are integer values. Given a query 𝐓(C)D{\bf T}(C)\sqsubseteq D, we have to verify that, in all canonical cwm-models of the KB, all the typical CC-elements are DD-elements. This verification is accomplished, by generating answer sets, corresponding to the cwm-models of the KB, and by selecting the preferred ones, in which the distinguished element aux_Caux_{\_}C represents a typical CC-element.

An answer set SS is preferred to answer set SS^{\prime} if, considering the typicality inclusions satisfied by aux_Caux_{\_}C in SS and in SS^{\prime} (and the relative weights W_i(aux_CS)W_{\_}i(aux_{\_}C^{S}) and W_i(aux_CS)W_{\_}i(aux_{\_}C^{S^{\prime}}) for each concept C_iC_{\_}i), in the global preference relation, aux_CS<aux_CSaux_{\_}C^{S}<aux_{\_}C^{S^{\prime}}. The preference relations <_C_i<_{\_}{C_{\_}i} can be suitably encoded in the aspirin specification (based on the definition above), verifying which atoms 𝑖𝑛𝑠𝑡(𝑎𝑢𝑥_C,B)\mathit{inst(aux_{\_}C,B)} are in SS (resp., in SS^{\prime}) to determine the typicality inclusions satisfied by aux_CSaux_{\_}C^{S} and aux_CSaux_{\_}C^{S^{\prime}}, to establish whether aux_CS<_C_iaux_CSaux_{\_}C^{S}<_{\_}{C_{\_}i}aux_{\_}C^{S^{\prime}}. The (global) preference relation between answer sets can be defined by combining the preferences <_C_i<_{\_}{C_{\_}i}. A query 𝐓(C)D{\bf T}(C)\sqsubseteq D is entailed by the knowledge base if, in all the preferred answer sets, aux_Caux_{\_}C is an instance of concept DD. It can be proven that this corresponds to verifying that DD is satisfied in all minimal CC-elements in all canonical cwm-models of the knowledge base.

Based on the reformulation of cwm-entailment as a problem of computing preferred answer sets, deciding cwm-entailment can be proven to be in Π_p2\Pi^{p}_{\_}2 for weighted knowledge bases with integer weights, as for ranked KBs. The proof of the result is similar to the proof of Proposition 7 in the online Appendix of [17], although here we use a different notion of preference <_C_i<_{\_}{C_{\_}i}, a different encoding, and do not consider 𝐓{\bf T}-compliant interpretations. This result also extends to weighted knowledge bases with real valued weights, although our implementation in asprin does not deal with real valued weights.

5 Conclusions

In this paper we have described an ASP approach for reasoning in a defeasible extension of the description logic \mathcal{EL}^{\bot} with weighted typicality inclusions. We have considered the case with integer weights, for which an encoding of the concept-wise multipreference entailment can be defined using ASP and asprin [7]. We have further considered a concept-wise semantics with multiple preferences, in which any distinguished concept C_iC_{\_}i has its own set 𝒯_C_i{\cal T}_{\_}{C_{\_}i} of (weighted) typicality inclusions, and preference <_C_i<_{\_}{C_{\_}i}.

Related semantics with multiple preferences have been proposed, starting from Brewka’s framework of basic preference descriptions [6], in system ARS, as a refinement of System Z by Kern-Isberner and Ritterskamp [26]; in an extension of 𝒜𝒞+𝐓\mathcal{ALC}+{\bf T} by Gil [15]; in a refinement of rational closure by Gliozzi [22]; by associating multiple preferences to roles by Britz and Varzinczak [9]; in ranked \mathcal{EL} knowledge bases in [17]; and in the first-order logic setting by Delgrande and Rantsaudis [14].

The development of proof methods for multipreference entailment is motivated by the relationship between weighted conditionals under the (fuzzy) concept-wise multipreference semantics and multilayer perceptrons. Undecidability results for fuzzy description logics with general inclusion axioms [13, 5] motivate the investigation of multi-valued approximations of fuzzy multipreference entailment. This is a first step towards the definition of proof methods for multi-valued extensions of our concept-wise preferential semantics based on a notion of faithful interpretations [16]. Other possible extensions concern the definition of multiple typicality operators, based on the combination of selected concepts, and a temporal extension to capture the transient behavior of Multilayer Perceptrons.

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

References

  • [1]
  • [2] A. Adadi & M. Berrada (2018): Peeking Inside the Black-Box: A Survey on Explainable Artificial Intelligence (XAI). IEEE Access 6, pp. 52138–52160, 10.1109/ACCESS.2018.2870052.
  • [3] F. Baader, S. Brandt & C. Lutz (2005): Pushing the \mathcal{EL} envelope. In: Proc. 19th Int. Joint Conf. on Artificial Intelligence (IJCAI 2005), Edinburgh, Scotland, UK, pp. 364–369.
  • [4] S. Benferhat, C. Cayrol, D. Dubois, J. Lang & H. Prade: Inconsistency Management and Prioritized Syntax-Based Entailment. In: Proc. IJCAI’93, Chambéry, France, 28/8 - 3/9, 1993, Morgan Kaufmann, pp. 640–647.
  • [5] S. Borgwardt & R. Peñaloza (2012): Undecidability of Fuzzy Description Logics. In: Principles of Knowledge Representation and Reasoning: Proc. 13th Int. Conf., KR 2012, Rome, Italy, June 10-14, 2012.
  • [6] G. Brewka (2004): A Rank Based Description Language for Qualitative Preferences. In: Proc. 16th Eureopean Conf. on Artificial Intelligence, ECAI’2004, Valencia, Spain, August 22-27, 2004, pp. 303–307.
  • [7] G. Brewka, J. P. Delgrande, J. Romero & T. Schaub (2015): asprin: Customizing Answer Set Preferences without a Headache. In: Proc. AAAI 2015, pp. 1467–1474.
  • [8] K. Britz, J. Heidema & T. Meyer (2008): Semantic Preferential Subsumption. In G. Brewka & J. Lang, editors: KR 2008, AAAI Press, Sidney, Australia, pp. 476–484.
  • [9] K. Britz & I J. Varzinczak (2018): Rationality and Context in Defeasible Subsumption. In: FoIKS 2018, Budapest, May 14-18, 2018, pp. 114–132, 10.1007/978-3-319-90050-6_7.
  • [10] G. Casini, T. Meyer, I. J. Varzinczak, & K. Moodley (2013): Nonmonotonic Reasoning in Description Logics: Rational Closure for the ABox. In: DL 2013, CEUR Workshop Proceedings 1014, pp. 600–615.
  • [11] G. Casini & U. Straccia (2010): Rational Closure for Defeasible Description Logics. In: JELIA 2010, LNCS 6341, Springer, Helsinki, pp. 77–90, 10.1007/978-3-642-15675-5_9.
  • [12] G. Casini, U. Straccia & T. Meyer (2019): A polynomial Time Subsumption Algorithm for Nominal Safe ELO\perp under Rational Closure. Inf. Sci. 501, pp. 588–620, 10.1016/j.ins.2018.09.037.
  • [13] M. Cerami & U. Straccia (2011): On the Undecidability of Fuzzy Description Logics with GCIs with Lukasiewicz t-norm. CoRR abs/1107.4212. Available at http://arxiv.org/abs/1107.4212.
  • [14] J. Delgrande & C. Rantsoudis (2020): A Preference-Based Approach for Representing Defaults in First-Order Logic. In: 18th Int. Workshop on Non-Monotonic Reasoning, NMR2020, September 12th - 14th.
  • [15] Oliver Fernandez Gil (2014): On the Non-Monotonic Description Logic ALC+Tmin_{}_{\_}{\mbox{min}}. CoRR abs/1404.6566.
  • [16] L. Giordano (2021): On the KLM properties of a fuzzy DL with Typicality. In: 16th European Conf. on Symbolic and Quantitative Approaches to Reasoning with Uncertainty, ECSQARU 2021, Sept. 17-20, LNAI 12897, Springer, 10.1007/978-3-030-86772-040.
  • [17] L. Giordano & D. Theseider Dupré (2020): An ASP approach for reasoning in a concept-aware multipreferential lightweight DL. TPLP 10(5), pp. 751–766, 10.1007/978-3-642-15675-521.
  • [18] L. Giordano & D. Theseider Dupré (2021): Weighted defeasible knowledge bases and a multipreference semantics for a deep neural network model. In: Proc17th European Conf. on Logics in AI, JELIA 2021, May 17-20, LNCS 12678, Springer, pp. 225–242, 10.1007/978-3-030-75775-516.
  • [19] L. Giordano, V. Gliozzi, N. Olivetti & G. L. Pozzato (2007): Preferential Description Logics. In: LPAR 2007, LNAI 4790, Springer, Yerevan, Armenia, pp. 257–272, 10.1007/978-3-540-75560-9_20.
  • [20] L. Giordano, V. Gliozzi, N. Olivetti & G. L. Pozzato (2015): Semantic characterization of rational closure: From propositional logic to description logics. Artif. Intell. 226, pp. 1–33, 10.1016/j.artint.2015.05.001.
  • [21] L. Giordano & D. Theseider Dupré (2018): Defeasible Reasoning in SROEL from Rational Entailment to Rational Closure. Fundam. Inform. 161(1-2), pp. 135–161, 10.3233/FI-2018-1698.
  • [22] V. Gliozzi (2016): Reasoning about Multiple Aspects in Rational Closure for DLs. In: AI*IA 2016: 15th Int. Conf. of the Italian Assoc. for AI, Genova, Italy, Nov. 2016, pp. 392–405, 10.1007/978-3-319-49130-1_29.
  • [23] R. Guidotti, A. Monreale, S. Ruggieri, F. Turini, F. Giannotti & D. Pedreschi (2019): A Survey of Methods for Explaining Black Box Models. ACM Comput. Surv. 51(5), pp. 93:1–93:42, 10.1145/3236009.
  • [24] G. Kern-Isberner (2001): Conditionals in Nonmonotonic Reasoning and Belief Revision - Considering Conditionals as Agents. LNCS 2087, Springer, 10.1007/3-540-44600-1.
  • [25] G. Kern-Isberner & C. Eichhorn (2014): Structural Inference from Conditional Knowledge Bases. Studia Logica 102(4), pp. 751–769, 10.1007/s11225-013-9503-6.
  • [26] G. Kern-Isberner & M. Ritterskamp (2010): Preference Fusion for Default Reasoning Beyond System Z. J. Autom. Reasoning 45(1), pp. 3–19, 10.1007/s10817-009-9129-6.
  • [27] S. Kraus, D. Lehmann & M. Magidor (1990): Nonmonotonic Reasoning, Preferential Models and Cumulative Logics. Artificial Intelligence 44(1-2), pp. 167–207, 10.1016/0004-3702(90)90101-5.
  • [28] M. Krötzsch (2010): Efficient Inferencing for OWL EL. In: Proc. JELIA 2010, pp. 234–246, 10.1007/978-3-642-15675-5_21.
  • [29] D. Lehmann & M. Magidor (1992): What does a conditional knowledge base entail? Artificial Intelligence 55(1), pp. 1–60, 10.1016/0004-3702(92)90041-U.
  • [30] D. J. Lehmann (1995): Another Perspective on Default Reasoning. Ann. Math. Artif. Intell. 15(1), pp. 61–82, 10.1007/BF01535841.
  • [31] J. Pearl: System Z: A Natural Ordering of Defaults with Tractable Applications to Nonmonotonic Reasoning. In: TARK’90, Pacific Grove, CA, USA, 1990, Morgan Kaufmann, pp. 121–135.
  • [32] M. Pensel & A. Turhan (2018): Reasoning in the Defeasible Description Logic EL_{EL}_{\_}\bot - computing standard inferences under rational and relevant semantics. Int. J. Approx. Reasoning 103, pp. 28–70, 10.1016/j.ijar.2018.08.005.