<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Explaining Query Answers under Inconsistency-Tolerant Semantics over Description Logic Knowledge Bases (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Meghyn Bienvenu</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Camille Bourgaux</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Francois Goasdoue</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IRISA, Universite de Rennes 1</institution>
          ,
          <addr-line>Lannion</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LRI, CNRS &amp; Universite Paris-Sud</institution>
          ,
          <addr-line>Orsay</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The problem of querying description logic (DL) knowledge bases (KBs) using
database-style queries (in particular, conjunctive queries) has been a major focus
of recent DL research. Since scalability is a key concern, much of the work has
focused on lightweight DLs for which query answering can be performed in
polynomial time w.r.t. the size of the ABox. The DL-Lite family of lightweight DLs
[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is especially popular due to the fact that query answering can be reduced,
via query rewriting, to the problem of standard database query evaluation.
      </p>
      <p>
        Since the TBox is usually developed by experts and subject to extensive
debugging, it is often reasonable to assume that its contents are correct. By
contrast, the ABox is typically substantially larger and subject to frequent
modi cations, making errors almost inevitable. As such errors may render the KB
inconsistent, several inconsistency-tolerant semantics have been introduced in
order to provide meaningful answers to queries posed over inconsistent KBs.
Arguably the most well-known is the AR semantics [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], inspired by work on
consistent query answering in databases (cf. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for a survey). Query
answering under AR semantics amounts to considering those answers (w.r.t. standard
semantics) that can be obtained from every repair, the latter being de ned as
an inclusion-maximal subset of the ABox that is consistent with the TBox. A
more cautious semantics, called IAR semantics [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] queries the intersection of
the repairs and provides a lower bound on AR semantics. The brave semantics
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], which considers the answers holding in some repair, provides a natural upper
bound. This extended abstract presents our work [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] on explaining why a tuple
is a (non-)answer to a query under AR, IAR, or brave semantics.
      </p>
      <p>
        The need to equip reasoning systems with explanation services is widely
acknowledged by the DL community. Indeed, there have been numerous works on
axiom pinpointing, in which the objective is to identify (minimal) subsets of a
KB that entail a given TBox axiom (or ABox assertion) [
        <xref ref-type="bibr" rid="ref14 ref15 ref16 ref18 ref20 ref21 ref22 ref9">18, 9, 21, 16, 22, 20, 14,
15</xref>
        ]. With regards to conjunctive queries (CQs), a proof-theoretic approach to
explaining positive answers to CQs over DL-LiteA KBs was introduced in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], and,
more recently, the problem of explaining negative query answers over DL-LiteA
KBs has been studied in [11{13]. Explanation facilities are all the more essential
when using inconsistency-tolerant semantics, as recently argued in [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]. Indeed,
the brave, AR, and IAR semantics allow query answers to be classi ed into three
categories of increasing reliability, and a user may naturally wonder why a given
tuple was assigned to, or excluded from, one of these categories. To help the user
understand this classi cation, we introduce the notion of explanation for positive
and negative query answers under brave, AR, and IAR semantics. Formally, the
explanations we consider take either the form of a set of ABox assertions (viewed
as a conjunction) or a set of sets of assertions (disjunction of conjunctions).
      </p>
      <p>The simplest answers to explain are positive brave- and IAR-answers (i.e.,
answers that hold under brave, resp. IAR, semantics). For the former, we can use
as explanations the query's causes, which are the minimal consistent sets of
assertions that entail the answer together with the TBox, and for the latter, we
consider the causes that do not participate in any contradictions. To explain
why a tuple is an AR-answer, it is no longer su cient to give a single cause
since di erent repairs may use di erent causes. We therefore de ne explanations
as (minimal) disjunctions of causes that `cover' all repairs, i.e., minimal sets of
causes such that every repair contains at least one of them. To explain negative
AR-answers, the idea is to give a (minimal) subset of the ABox that is consistent
with the TBox and contradicts every cause of the query, since any such subset
can be extended to a repair that omits all causes. For negative IAR-answers, we
need only ensure that every cause is contradicted by some consistent subset.</p>
      <p>When there are a large number of explanations for a given result, it may be
impractical to present them all to the user. In such cases, one may choose instead
to rank the explanations according to some preference criteria, and to present
one or a small number of most preferred explanations. In the present work, we
use cardinality to rank explanations for brave- and IAR-answers and negative
AR- and IAR-answers. For positive AR-answers, we consider two ways of ranking
explanations: the number of disjuncts, since fewer disjuncts requires less
casebased reasoning, and the total number of assertions, to favour disjunctions of
causes that share assertions. A complementary approach is to concisely
summarize the set of explanations in terms of the necessary assertions (that occur in
every explanation) and the relevant assertions (occurring in some explanation).
2</p>
    </sec>
    <sec id="sec-2">
      <title>Complexity Results and Connections to SAT</title>
      <p>
        In addition to the problem of computing explanations, we consider four natural
decision problems: decide whether a given assertion appears in some explanation
(rel) or in every explanation (nec), decide whether a candidate is an
explanation (rec), resp. a best explanation according a given criteria (best rec). For
our study, we consider ontologies formulated in the lightweight logic DL-LiteR
that underlies the OWL 2 QL pro le [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ].
      </p>
      <p>The results of our complexity analysis are displayed in Figure 1. For the
explanation tasks that are shown to be intractable, we have exhibited tight
connections with variants of propositional satis ability that enable us to exploit
brave, IAR
neg. IAR
neg. AR
rel in P 2p-co in P NP-co
nec in P NP-co in P coNP-co
rec in P BH2-co in P in P
best recy in P 2p-coz coNP-co coNP-co
y upper bounds hold for ranking criteria that can be decided in P
z 2p-hard for smallest disjunction or fewest assertions</p>
      <p>
        coNP-hard for cardinality-minimal explanations
facilities of modern SAT solvers. We use the encoding ':q ^ 'cons introduced
in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] which is unsatis able i the corresponding answer is entailed under AR
semantics. Intuitively, ':q gives the ways of contradicting every cause, and 'cons
enforces consistency. We can show that the explanations for positive AR-answers
correspond to the minimal unsatis able subsets of ':q w.r.t. 'cons, while the
smallest explanations for negative AR-answers (resp. negative IAR-answers)
correspond to the cardinality-minimal models of ':q ^ 'cons (resp. ':q).
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>System and Experiments</title>
      <p>
        We extended the CQAPri system [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] to implement our framework, relying on
the SAT4J SAT solver to compute minimal unsatis able subsets and
cardinalityminimal models [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Our prototype runs in two modes: either it explains some
selected query answers, or all the answers as they are being computed. These
answers are divided into three classes: Possible (brave-answers not entailed under
the AR semantics), Likely (AR-answers not entailed under IAR semantics), and
Sure (IAR-answers). Concretely, explaining an answer a consists in providing,
for the relevant semantics S, S0 according to the class of a: (i) all explanations
of a being an S-answer, as well as necessary and relevant assertions, and (ii) one
smallest explanation of a not being an S0-answer, with necessary and relevant
assertions when S0 = IAR, and necessary assertions when S0 = AR together
with necessary and relevant assertions for explaining a not being an IAR-answer.
Positive explanations are ranked as explained in Section 1.
      </p>
      <p>The experimental evaluation of our prototype system over the slightly
modi ed CQAPri benchmark shows that explanations of query (non-)answers can be
generated very quickly (typically less than 1ms), although we did nd some rare
di cult cases for which computing a smallest explanation for a negative answer
is long (more than 1h). Finally, we observed that the average number of
explanations per answer is often reasonably low, although some answers have a large
number of explanations (e.g., 654 for an IAR-answer, 243 for an AR-answer,
and 693 for a brave-answer), showing the practical interest of presenting such
explanations in a concise way.</p>
      <p>Acknowledgements This work was supported contract ANR-12-JS02-007-01.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Arioua</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tamani</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Croitoru</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>On conceptual graphs and explanation of query answering under inconsistency</article-title>
          .
          <source>In: Proc. of ICCS</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Arioua</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tamani</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Croitoru</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buche</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Query failure explanation in inconsistent knowledge bases using argumentation</article-title>
          .
          <source>In: Proc. of COMMA</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Berre</surname>
            ,
            <given-names>D.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parrain</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <source>The sat4j library, release 2.2. JSAT 7</source>
          (
          <issue>2-3</issue>
          ),
          <volume>59</volume>
          {
          <fpage>64</fpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bertossi</surname>
            ,
            <given-names>L.E.</given-names>
          </string-name>
          :
          <article-title>Database Repairing and Consistent Query Answering</article-title>
          .
          <source>Synthesis Lectures on Data Management</source>
          , Morgan &amp; Claypool Publishers (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bourgaux</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goasdoue</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Querying inconsistent description logic knowledge bases under preferred repair semantics</article-title>
          .
          <source>In: Proc. of AAAI</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bourgaux</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goasdoue</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Explaining query answers under inconsistency-tolerant semantics over description logic knowledge bases (</article-title>
          <year>2015</year>
          ),
          <source>Technical Report 1580</source>
          , LRI, Orsay, France. Available at https://www.lri.fr/ ~bibli/Rapports-internes/
          <year>2015</year>
          /RR1580.pdf
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable approximations of consistent query answering for robust ontology-based data access</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Borgida</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rodriguez-Muro</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>Explanation in the DL-Lite family of description logics</article-title>
          .
          <source>In: Proc. of OTM</source>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Borgida</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Franconi</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Explaining ALC subsumption</article-title>
          .
          <source>In: Proc. of ECAI</source>
          (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable reasoning and e cient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>J. Autom. Reasoning (JAR) 39(3)</source>
          ,
          <volume>385</volume>
          {
          <fpage>429</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simkus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stefanoni</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>Reasoning about explanations for negative query answers in DL-Lite</article-title>
          .
          <source>J. Artif. Intell. Res. (JAIR) 48</source>
          ,
          <fpage>635</fpage>
          {
          <fpage>669</fpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shen</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>A tractable approach to abox abduction over description logic ontologies</article-title>
          .
          <source>In: Proc. of AAAI</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shen</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>Towards tractable and practical abox abduction over inconsistent description logic ontologies</article-title>
          .
          <source>In: Proc. of AAAI</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Horridge</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bail</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>The cognitive complexity of OWL justi cations</article-title>
          .
          <source>In: Proc. of ISWC</source>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Horridge</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>Extracting justi cations from bioportal ontologies</article-title>
          .
          <source>In: Proc. of ISWC</source>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Kalyanpur</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sirin</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hendler</surname>
            ,
            <given-names>J.A.</given-names>
          </string-name>
          :
          <article-title>Debugging unsatis able classes in OWL ontologies</article-title>
          .
          <source>J. Web Sem</source>
          .
          <volume>3</volume>
          (
          <issue>4</issue>
          ),
          <volume>268</volume>
          {
          <fpage>293</fpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ruzzi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Savo</surname>
            ,
            <given-names>D.F.</given-names>
          </string-name>
          :
          <article-title>Inconsistency-tolerant semantics for description logics</article-title>
          .
          <source>In: Proc. of RR</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>McGuinness</surname>
            ,
            <given-names>D.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borgida</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Explaining subsumption in description logics</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cuenca Grau</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fokoue</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>OWL 2 Web Ontology Language pro les</article-title>
          .
          <source>W3C Recommendation (11 December</source>
          <year>2012</year>
          ), available at http://www.w3.org/TR/owl2-profiles/
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20. Pen~aloza, R.,
          <string-name>
            <surname>Sertkaya</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Complexity of axiom pinpointing in the dl-lite family of description logics</article-title>
          .
          <source>In: Proc. of ECAI</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Schlobach</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cornet</surname>
          </string-name>
          , R.:
          <article-title>Non-standard reasoning services for the debugging of description logic terminologies</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Sebastiani</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vescovi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Axiom pinpointing in lightweight description logics via horn-sat encoding and con ict analysis</article-title>
          .
          <source>In: Proc. of CADE</source>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>