<!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>Union and Intersection of all Justi cations (Extended Abstract) ?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jieying Chen</string-name>
          <email>jieyingc@ifi.uio.no</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yue Ma</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rafael Pen~aloza</string-name>
          <email>rafael.penaloza@unimib.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hui Yang</string-name>
          <email>yangg@lri.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IKR3 Lab, University of Milano-Bicocca</institution>
          ,
          <addr-line>Milan</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LISN, Univ. Paris-Sud, CNRS, Universite Paris-Saclay</institution>
          ,
          <addr-line>Orsay</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>SIRIUS, Department of Information, University of Oslo</institution>
          ,
          <country country="NO">Norway</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>As ontologies grow in size and complexity, it becomes ever more important to understand the underlying causes for a consequence followed from an ontology, specially if this consequence is unexpected or unwanted for the representation domain. A usual approach in description logics (DL) is to compute one or all justi cations ; that is, the minimal subontologies that still entail the consequence under consideration. Several approaches have been developed for computing these justi cations. Black-box approaches|which repeatedly call an unmodi ed reasoner|dominate the scene for more expressive DLs, while glassbox approaches modifying the underlying behaviour of the reasoner have been implemented mainly for lightweight DLs only [12]. Recent work has highlighted the importance of approximating the set of all justi cations through two sets: the intersection and union of all justi cations. The intersection (also known as the core) provides a lower approximation, with axioms that are necessary for the entailment. In fact, removing any axiom from the core automatically removes the consequence. The union, on the other hand, yields an upper approximation containing all relevant axioms. That is, as long as one is only interested in the consequence at hand, one can safely ignore all the axioms that do not belong to this union. In other words, this union is the smallest possible justi cation-preserving module. There is, to date, a lack of approaches for computing these upper and lower approximations, specially in the case of the union of justi cations, which has an underlying computationally-hard task. We ll this gap by presenting new methods for computing the core and the union of justi cations. Core. The algorithm for computing the core follows a simple black-box approach based on the notion of necessity. In essence, an axiom is necessary (and hence belongs to the core) if and only if removing it from the ontology means getting rid of the consequence. Our algorithm simply checks necessity of by calling a reasoner with the ontology minus f g: if the consequence does not ? Jieying Chen is supported by the SIRIUS centre, which is funded by the Norwegian Research Council, project number 237898 and is co-funded by its partner companies. Copyright c 2021 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        hold anymore, the is added to the core. This approach requires one entailment
test for each axiom, and thus incurs in a linear overhead over standard reasoning.
To avoid unnecessary checks, we run the algorithm over a justi cation-preserving
module [
        <xref ref-type="bibr" rid="ref13 ref3 ref4 ref9">3, 4, 9, 13</xref>
        ].
      </p>
      <p>
        Union of all Justi cations. We introduce two algorithms for computing
the union of all justi cations. The rst one is a black-box approach inspired
by Reiter's Hitting Set Tree algorithm [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], following the ideas similar to those
presented in [
        <xref ref-type="bibr" rid="ref16 ref8">8, 16</xref>
        ]. Due to its black-box nature, it can be applied to ontologies
with any expressivity, as long as a reasoner is available. The idea is to collect
the union of all justi cations while computing all justi cations and prune the
search space when all remaining justi cations are fully contained in the union
computed. Additionally, we use the pre-computed intersection of all justi cations
to reduce the search space. The algorithm runs in exponential time in size of the
given ontology in the worst case.
      </p>
      <p>
        The second algorithm reduces the problem of computing the union of all
justi cations to a related problem over propositional formulas, through three main
steps. First, we compute a CNF formula using the consequence-based reasoner
condor [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Then, we check for each clause if it belongs to a Minimal Unsatis able
Subsets (MUS) of the formula or not using the SAT-tool cmMUS [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Finally, we
extract the union of all justi cations from the original axioms corresponding to
clauses that are members of MUSes. Contrary to the black-box approach, this
method requires the ontology to be in a language which condor can handle. In
our current implementation, the condor can accept ALC-TBoxes.
Repair. A repair of an ontology is a maximal sub-ontology that does not
preserve the consequence. We propose a new repair notion called optimal repair.
Generally speaking, an optimal repair is a repair that removes the least amount
of axioms from the original ontology. We say S is the smallest minimal hitting
set if jSj is the smallest among all minimal hitting sets. The following
proposition shows how we can compute the set of all optimal repairs through a hitting
set computation [
        <xref ref-type="bibr" rid="ref1 ref10 ref15">1, 10, 15</xref>
        ].
      </p>
      <p>Proposition 1. Let Just(O; ) be the set of all justi cations for the GCI
w.r.t. the ontology O. If S is the set of all smallest minimal hitting sets for
Just(O; ), then fO n S j S 2 Sg is the set of all optimal repairs for O j= .</p>
      <p>
        Specially, if the core is not empty, a smallest minimal hitting set for all
justi cations is a singleton set that contains only one axiom from the core.
Evaluation. We built a prototypical implementation to evaluate the
performance of our algorithms in real-world ontologies. The black-box algorithm uses
the OWL API [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] to access ontologies and HermiT [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] as a standard reasoner. The
MUS-membership algorithm (MUS-MEM) calls cmMUS [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] to detect whether a
clause is a member of MUSes. We computed a single justi cation (J ), the core
(C), and the union of justi cations for all atomic subsumptions entailed by 95
ontologies from the 2014 ORE competition [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>min
max
mean
median</p>
      <p>Note that in terms of computational complexity computing the core and one
justi cation are equally hard problems. But the black-box method for the latter
should intuitively be faster than the former as it reduces the size of the ontology
throughout the execution. Indeed, the latter method removes all unnecessary
axioms, while the former always calls the reasoner with the original ontology
minus one axiom. Our experiments tend to con rm this view, as shown in Table 1.</p>
      <p>To evaluate the computation of the union of justi cations, we compared
against the canonical approach of nding all justi cations and our approach on
computing the union. Figure 1 plots the logarithmic computation time of the
union (in the vertical axis) of each test instance (in the horizontal axis). Each
blue, green or red dot corresponds to the computation time of the union by
OWL API, the black-box algorithm or the MUS-MEM algorithm for a conclusion
respectively. In our experiments, our black-box approach clearly outperformed
the MUS-based translation and the enumeration of justi cations.</p>
      <p>In the end, we also analysed the proportional sizes of cores, justi cations,
and unions of justi cations. Interestingly, 85% of the test instances have only
one justi cation, and even among the others, 84% of cores are non-empty, which
means that we could be able to use core to compute the set of all optimal repairs
for most cases. In general, the size of the union tends not to be much larger than
that of the core.</p>
      <p>Conclusion In this paper, we presented algorithms for computing the core and
the union of all justi cations for a given DL consequence. As an application,
we study how to compute optimal repairs e ectively, through the information
provided by the core and the union of all justi cations.</p>
      <p>In the future, we plan to further detailed analyse the experimental results
and provide better insights to explain the results that we have shown in the
evaluation. Currently, the MUS-based approach for computing the union of all
justi cations only supports ALC ontologies. However, we would expect that this
approach could be further generalised to more expressive languages.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>F.</given-names>
            <surname>Baader</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Pen</surname>
          </string-name>
          <article-title>~aloza. Axiom pinpointing in general tableaux</article-title>
          .
          <source>J. Log. Comput.</source>
          ,
          <volume>20</volume>
          (
          <issue>1</issue>
          ):5{
          <fpage>34</fpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>A.</given-names>
            <surname>Bate</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. C.</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. T.</given-names>
            <surname>Cucala</surname>
          </string-name>
          ,
          <string-name>
            <surname>F.</surname>
          </string-name>
          <article-title>Simanc k, and</article-title>
          <string-name>
            <given-names>I.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          .
          <article-title>Consequence-based reasoning for description logics with disjunctions and number restrictions</article-title>
          .
          <source>J. Artif. Int. Res.</source>
          ,
          <volume>63</volume>
          (
          <issue>1</issue>
          ):
          <volume>625</volume>
          {
          <fpage>690</fpage>
          ,
          <string-name>
            <surname>Sept</surname>
          </string-name>
          .
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ludwig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ma</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Walther</surname>
          </string-name>
          .
          <article-title>Zooming in on ontologies: Minimal modules and best excerpts</article-title>
          .
          <source>In Proc. of ISWC'17</source>
          ,
          <string-name>
            <surname>Part</surname>
            <given-names>I</given-names>
          </string-name>
          , volume
          <volume>10587</volume>
          of Lecture Notes in Computer Science, pages
          <volume>173</volume>
          {
          <fpage>189</fpage>
          . Springer,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ludwig</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Walther</surname>
          </string-name>
          .
          <article-title>Computing minimal subsumption modules of ontologies</article-title>
          .
          <source>In Proc. of GCAI'18</source>
          , pages
          <fpage>41</fpage>
          {
          <fpage>53</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          , G. Stoilos, and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          .
          <article-title>HermiT: an OWL 2 reasoner</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          ,
          <volume>53</volume>
          (
          <issue>3</issue>
          ):
          <volume>245</volume>
          {
          <fpage>269</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>M.</given-names>
            <surname>Horridge</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Bechhofer</surname>
          </string-name>
          .
          <article-title>The OWL API: A Java API for OWL ontologies</article-title>
          .
          <source>Semantic Web</source>
          ,
          <volume>2</volume>
          (
          <issue>1</issue>
          ):
          <volume>11</volume>
          {
          <fpage>21</fpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>M.</given-names>
            <surname>Janota</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Marques-Silva</surname>
          </string-name>
          .
          <article-title>cmMUS: A tool for circumscription-based mus membership testing</article-title>
          .
          <source>In International Conference on Logic Programming and Nonmonotonic Reasoning</source>
          , pages
          <volume>266</volume>
          {
          <fpage>271</fpage>
          . Springer,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>A.</given-names>
            <surname>Kalyanpur</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Parsia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Horridge</surname>
          </string-name>
          , and
          <string-name>
            <given-names>E.</given-names>
            <surname>Sirin</surname>
          </string-name>
          .
          <article-title>Finding all justi cations of OWL DL entailments</article-title>
          .
          <source>In Proceedings of ISWC 2007 &amp; ASWC</source>
          <year>2007</year>
          , volume
          <volume>4825</volume>
          <source>of LNCS</source>
          , pages
          <volume>267</volume>
          {
          <fpage>280</fpage>
          . Springer,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>P.</given-names>
            <surname>Koopmann</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>Deductive module extraction for expressive description logics</article-title>
          . In C. Bessiere, editor,
          <source>Proceedings of IJCAI'20</source>
          , pages
          <fpage>1636</fpage>
          <lpage>{</lpage>
          1643. ijcai.org,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>M. H</surname>
          </string-name>
          .
          <article-title>Li ton and K. A</article-title>
          .
          <string-name>
            <surname>Sakallah</surname>
          </string-name>
          .
          <article-title>On nding all minimally unsatis able subformulas</article-title>
          . In F. Bacchus and T. Walsh, editors,
          <source>Proceedings of the 8th International Conference on Theory and Applications of Satis ability Testing (SAT</source>
          <year>2005</year>
          ), volume
          <volume>3569</volume>
          of Lecture Notes in Computer Science, pages
          <volume>173</volume>
          {
          <fpage>186</fpage>
          . Springer,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>B.</given-names>
            <surname>Parsia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Matentzoglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Goncalves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Steigmiller</surname>
          </string-name>
          .
          <article-title>The OWL reasoner evaluation (ORE) 2015 competition report</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          , pages
          <volume>1</volume>
          {
          <fpage>28</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>R.</given-names>
            <surname>Pen</surname>
          </string-name>
          <article-title>~aloza. Axiom pinpointing</article-title>
          . In G. Cota,
          <string-name>
            <given-names>M.</given-names>
            <surname>Daquino</surname>
          </string-name>
          , and G. L. Pozzato, editors,
          <source>Applications and Practices in Ontology Design, Extraction, and Reasoning</source>
          , volume
          <volume>49</volume>
          <source>of Studies on the Semantic Web</source>
          , pages
          <volume>162</volume>
          {
          <fpage>177</fpage>
          . IOS Press,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. R. Pen~aloza, C.
          <article-title>Menc a, A. Ignatiev, and</article-title>
          <string-name>
            <given-names>J.</given-names>
            <surname>Marques-Silva</surname>
          </string-name>
          .
          <article-title>Lean kernels in description logics</article-title>
          . In E. Blomqvist,
          <string-name>
            <given-names>D.</given-names>
            <surname>Maynard</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gangemi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Hoekstra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Hitzler</surname>
          </string-name>
          , and O. Hartig, editors,
          <source>Proceeding of ESWC'17</source>
          , volume
          <volume>10249</volume>
          of Lecture Notes in Computer Science, pages
          <volume>518</volume>
          {
          <fpage>533</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>R.</given-names>
            <surname>Reiter</surname>
          </string-name>
          .
          <article-title>A theory of diagnosis from rst principles</article-title>
          .
          <source>Arti cial Intelligence</source>
          ,
          <volume>32</volume>
          (
          <issue>1</issue>
          ):
          <volume>57</volume>
          {
          <fpage>95</fpage>
          ,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <given-names>S.</given-names>
            <surname>Schlobach</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Cornet</surname>
          </string-name>
          .
          <article-title>Non-standard reasoning services for the debugging of description logic terminologies</article-title>
          . In G. Gottlob and T. Walsh, editors,
          <source>Proceedings of the Eighteenth International Joint Conference on Arti cial Intelligence</source>
          , pages
          <fpage>355</fpage>
          {
          <fpage>362</fpage>
          . Morgan Kaufmann,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <given-names>B.</given-names>
            <surname>Suntisrivaraporn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Qi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Ji</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Haase</surname>
          </string-name>
          .
          <article-title>A modularization-based approach to nding all justi cations for OWL DL entailments</article-title>
          . In J. Domingue and C. Anutariya, editors,
          <source>The Semantic Web</source>
          , pages
          <volume>1</volume>
          {
          <fpage>15</fpage>
          , Berlin, Heidelberg,
          <year>2008</year>
          . Springer Berlin Heidelberg.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>