<!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>Abduction Solver⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Extended Abstract</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Janka Boborová</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Iveta Balintová</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Júlia Pukancová</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martin Homola</string-name>
          <email>homola@fmph.uniba.sk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Comenius University in Bratislava</institution>
          ,
          <addr-line>Mlynská dolina, 842 41 Bratislava</addr-line>
          ,
          <country country="SK">Slovakia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>MHS-MXP is an ABox abduction algorithm for DL, that leverages the divide-and-conquer strategy of the efective but incomplete MergeXplain and jointly uses the Minimal Hitting Set algorithm (MHS) to track the search-space exploration in order to ensure completeness. In this extended abstract we focus on our updated implementation which achieved a black-box combination of the abduction component and the JFact DL reasoner via the OWLKnowledgeExplorerReasoner interface of OWL API. We then present the results of our empirical evaluation showing that, compared to MHS, MHS-MXP has a significant advantage on favourable inputs, however, it does not perform as well as MHS on unfavourable inputs.</p>
      </abstract>
      <kwd-group>
        <kwd>abduction</kwd>
        <kwd>description logics</kwd>
        <kwd>ontologies</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        ABox abduction [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] starts from a background ontology and an observation in the form of an ABox
assertion, that is not entailed. The task is to find explanations – sets of ABox assertions, such
that the background ontology and the explanation together entail the observation. Optionally,
abducibles are a set of ABox assertions from which the explanations may be drawn.
      </p>
      <p>
        MHS-MXP is a “hybrid” abduction algorithm, that leverages the divide-and-conquer strategy
of the efective but yet incomplete MergeXplain [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and jointly uses the Minimal Hitting Set
algorithm (MHS) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] to track the search-space exploration in order to ensure completeness. It
was developed as an ABox abduction approach and implemented into a solver [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>We report on an updated implementation which fixes a serious flaw of the previous version,
namely in the integration of the external DL reasoner. The flaw greatly limited the inputs the
solver could correctly handle. MHS and MHS-MXP call an external DL reasoner for consistency
checking and obtaining certain information about the model (specifically, the set of all atomic
concept and role assertions that are true in the model); this task is referred to as “model
LGOBE
https://dai.fmph.uniba.sk/~pukancova/ (J. Pukancová); https://dai.fmph.uniba.sk/~homola/ (M. Homola)</p>
      <p>
        © 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
extraction”. It is, however, highly non-standard for DL reasoners to output model information
(some of then may not even construct a model, e.g. consequence-based reasoners such as Elk [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]).
      </p>
      <p>In our current implementation, model extraction from the JFact reasoner is achieved via
the experimental OWLKnowledgeExplorerReasoner interface of OWL API. We also report on
an empirical evaluation that we were able to run on this implementation. It is conjectured
that cases with a lower number of contradictory abducibles and those with smaller sizes of
explanations and a lower overall count of explanations are favourable for MHS-MXP. It was also
confirmed by our evaluation. On the other hand, on cases where the search space was clogged
by large numbers of contradictory abducibles, MHS-MXP did not perform as well as MHS.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Implementation</title>
      <p>
        An implementation1 of the abduction solver was developed in Java. It implements the DL
Abducion API [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] for integration into applications. The solver allows to choose between the
MHS or MHS-MXP abduction algorithm. It supports any OWL 2 ontology as background
knowledge and observations as (possibly multiple) concept or role assertions, including complex
concepts and negated roles. The solver is capable to find all explanations in the class of sets of
atomic and negated atomic concept and role assertions involving the named individuals from
the observation or the knowledge base’s ABox.
      </p>
      <p>The solver relies on OWL API. DL reasoning, in the form of consistency checking and model
extraction, is provided by an external DL reasoner. In the new version, we access the completion
graph through an OWL API OWLKnowledgeExplorerReasoner2 interface implemented by the
JFact reasoner3. In fact, it required some adjustments to make the interface work in JFact4.</p>
      <p>Apart from the input ontology and the observation, the solver allows additional settings: the
choice of abduction algorithm; a timeout; a depth limit for HS-tree exploration; and abducibles,
either as a set of symbols or assertions. In the new version, it is also possible to toggle role
assertions and role looping (role assertions of form (, ) s.t.  ∈   and  ∈   ) in explanations,
and diferent ways how relevant explanation is defined for a multiple observation.</p>
      <p>An example input file follows, in which the ontology is loaded from familyX.owl and the
observation is set to Father(jack). In addition, the timeout is set to 14,400 seconds, and negations
and role assertions in explanations are suppressed:
-f: files/familyX.owl
-o: Prefix: fam: &lt;http://www.semanticweb.org/julia/ontologies/2017/8/family\#&gt;</p>
      <p>Class: fam:Father Individual: fam:jack Types: fam:Father
-t: 14400
-n: false
-r: false
1Available at https://github.com/boborova3/MHS-MXP-algorithm.
2https://owlcs.github.io/owlapi/apidocs_4/org/semanticweb/owlapi/reasoner/knowledgeexploration/
OWLKnowledgeExplorerReasoner.html
3https://github.com/owlcs/jfact
4The version we actually used is avalable at https://github.com/boborova3/jfact/tree/test4.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Evaluation</title>
      <p>
        We evaluated5 the implementation of MHS-MXP against MHS. We conjecture that MHS-MXP
will perform better when the maximum size or the total count of explanations is lower. We used
the LUBM ontology [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] to generate 50 observations with the explanations of various sizes (from
1 to 5). The observations were divided into groups S1–5 according to the size of the largest
explanation and C1–5 according to the explanation count (Table 1).
      </p>
      <p>
        The theoretical properties of MHS-MXP [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] show that the allowed abducible space may have
a significant impact on its performance. We, therefore, distinguish between (a) the unfavourable
case: MHS-MXP has a disadvantage if the abducibles (i.e. the search space) are clogged by a
large number of mutually conflicting facts – the case was constructed by allowing for each
atomic assertion also its complement as abducibles); and (b) the favourable case: when mutually
conflicting abducibles are not present (the case allowed only atomic assertions as abducibles).
The size of abducibles in the unfavourable and the favourable case was 86 and 43, respectively.
      </p>
      <p>We observe that in the unfavourable case (Figure 1 (a,b)), both algorithms computed
explanations up to size 3, but MHS-MXP achieved slightly worse results than MHS. This verifies our
hypothesis that MHS-MXP is not able to handle large numbers of conflicting abducibles well.</p>
      <p>On the other hand, in the favourable case (Figure 1 (c,d)), MHS-MXP achieved significantly
better results than MHS, which performs similarly in both cases. All MHS-MXP groups except
for S5 and C5 terminated successfully within the timeout. MHS-MXP managed to find all
explanations. We also observe a correlation in the increase of computation time and the size of
the largest explanation (groups S) and likewise for the explanation count (groups C).
5The evaluation was executed on a virtual machine with 8 cores (16 threads) of Intel Xeon CPU E5-2695 v4, 2.10GHz,
with 32GB RAM, running Ubuntu 20.04 and Oracle Java SE Runtime Environment v1.8.0_201. Execution times were
measured using ThreadMXBean from the java.lang.management package. We measured user time –- the actual
time without system overhead. The maximum Java heap size to 4GB. Each input was run 5 times and the results
were averaged for each group. The timeout was set to 4 hours (=14,440 seconds).</p>
      <p>104
103
102
101
100
104
103
102
101
100
all
S5
S4
S3
S2
S1
all
S5
S4
S3
S2</p>
      <p>S1
MHS</p>
      <p>MHS-MXP</p>
      <p>MHS</p>
      <p>MHS-MXP</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusions</title>
      <p>
        We have reported on the current implementation of the MHS-MXP ABox abduction solver and
its evaluation which demonstrated an advantage of MHS-MXP over MHS on a significant class
of inputs, particularly those where abducibles can be carefully configured by a knowledgeable
user (as not uncommon in real-world applications [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]). We hope that further optimization will
help to bring the algorithm on par with MHS also in the unfavourable cases of inputs.
      </p>
      <p>
        While there are currently approaches in ABox abduction [
        <xref ref-type="bibr" rid="ref10 ref11 ref12 ref13">10, 11, 12, 13</xref>
        ] which are more
tractable, they are also limited in the supported DL expressivity. Notably, in our solver, we were
able to achieve black-box integration with JFact which supports the full ℛℐ DL [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], i.e.
OWL 2 [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. The implementation of the OWLKnowledgeExplorerReasoner interface in other
DL reasoners will make them accessible for such integration with MHS and derived algorithms.
      </p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This research was sponsored by the Slovak Republic under the grant APVV-19-0220 (ORBIS)
and by the EU under the H2020 grant no. 952215 (TAILOR). J. Boborová was supported by an
extraordinary scholarship awarded by Comenius University in Bratislava, Faculty of Mathematics,
Physics and Informatics and by a DL student grant.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Homola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pukancová</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Boborová</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Balintová</surname>
          </string-name>
          , Merge, explain, iterate
          <article-title>: A combination of MHS and MXP in an ABox abduction solver</article-title>
          ,
          <source>in: Logics in Artificial Intelligence - 18th European Conference, JELIA</source>
          <year>2023</year>
          , Dresden, Germany, Sep 20-
          <issue>22</issue>
          ,
          <year>2023</year>
          , Proceedings, volume
          <volume>14281</volume>
          <source>of LNCS</source>
          , Springer,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C.</given-names>
            <surname>Elsenbroich</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Kutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          ,
          <article-title>A case for abductive reasoning over ontologies</article-title>
          ,
          <source>in: Proceedings of the OWLED*06 Workshop on OWL: Experiences and Directions</source>
          , Athens, GA, US, volume
          <volume>216</volume>
          <source>of CEUR-WS</source>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>K. M. Shchekotykhin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Jannach</surname>
          </string-name>
          , T. Schmitz,
          <article-title>MergeXplain: Fast computation of multiple conflicts for diagnosis</article-title>
          ,
          <source>in: Proceedings of the 24th International Joint Conference on Artificial Intelligence, IJCAI</source>
          <year>2015</year>
          ,
          <string-name>
            <given-names>Buenos</given-names>
            <surname>Aires</surname>
          </string-name>
          , Argentina, AAAI Press,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R.</given-names>
            <surname>Reiter</surname>
          </string-name>
          ,
          <article-title>A theory of diagnosis from first principles</article-title>
          ,
          <source>Artificial intelligence 32</source>
          (
          <year>1987</year>
          )
          <fpage>57</fpage>
          -
          <lpage>95</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Homola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pukancová</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Balintová</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Boborová</surname>
          </string-name>
          ,
          <article-title>Hybrid MHS-MXP abox abduction solver: First empirical results</article-title>
          ,
          <source>in: Proceedings of the 35th International Workshop on Description Logics (DL</source>
          <year>2022</year>
          ), Haifa, Israel, volume
          <volume>3263</volume>
          <source>of CEUR-WS</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kazakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Krötzsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Simančík</surname>
          </string-name>
          , The incredible
          <string-name>
            <surname>ELK</surname>
          </string-name>
          ,
          <source>Journal of Automated Reasoning</source>
          <volume>53</volume>
          (
          <year>2014</year>
          )
          <fpage>1</fpage>
          -
          <lpage>61</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Kloc</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Homola</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. Pukancová,</surname>
          </string-name>
          <article-title>DL abduction API v2 and GUI interface</article-title>
          ,
          <source>in: Proceedings of the 36th International Workshop on Description Logics (DL</source>
          <year>2023</year>
          ), Rhodes, Greece, To appear
          <source>in CEUR-WS</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. Heflin,</surname>
          </string-name>
          <article-title>LUBM: A benchmark for OWL knowledge base systems</article-title>
          ,
          <source>Journal of Web Semantics</source>
          <volume>3</volume>
          (
          <year>2005</year>
          )
          <fpage>158</fpage>
          -
          <lpage>182</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Rashid</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>McCusker</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. M.</given-names>
            <surname>Gruen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Seneviratne</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. L.</given-names>
            <surname>McGuinness</surname>
          </string-name>
          ,
          <article-title>A concise ontology to support research on complex, multimodal clinical reasoning</article-title>
          ,
          <source>in: The Semantic Web - 20th International Conference, ESWC</source>
          <year>2023</year>
          , Hersonissos, Crete, Greece, May 28 - June 1,
          <year>2023</year>
          , Proceedings, volume
          <volume>13870</volume>
          <source>of LNCS</source>
          , Springer,
          <year>2023</year>
          , pp.
          <fpage>390</fpage>
          -
          <lpage>407</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J.</given-names>
            <surname>Du</surname>
          </string-name>
          , G. Qi,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. Z.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <article-title>Towards practical ABox abduction in large description logic ontologies</article-title>
          ,
          <source>Int. J. Semantic Web Inf. Syst</source>
          .
          <volume>8</volume>
          (
          <issue>2012</issue>
          )
          <fpage>1</fpage>
          -
          <lpage>33</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>J.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <article-title>A tractable approach to ABox abduction over description logic ontologies</article-title>
          ,
          <source>in: Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, July 27-31</source>
          ,
          <year>2014</year>
          ,
          <string-name>
            <given-names>Québec</given-names>
            <surname>City</surname>
          </string-name>
          , Québec, Canada.,
          <year>2014</year>
          , pp.
          <fpage>1034</fpage>
          -
          <lpage>1040</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>W.</given-names>
            <surname>Del-Pinto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Schmidt</surname>
          </string-name>
          ,
          <article-title>Abox abduction via forgetting in ALC, in: The Thirty-</article-title>
          <source>Third AAAI Conference on Artificial Intelligence</source>
          ,
          <source>AAAI</source>
          <year>2019</year>
          , Honolulu, Hawaii, USA, AAAI Press,
          <year>2019</year>
          , pp.
          <fpage>2768</fpage>
          -
          <lpage>2775</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>P.</given-names>
            <surname>Koopmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Del-Pinto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Tourret</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Schmidt</surname>
          </string-name>
          ,
          <article-title>Signature-based abduction for expressive description logics</article-title>
          ,
          <source>in: Proceedings of the 17th International Conference on Principles of Knowledge Representation and Reasoning</source>
          , KR 2020, Rhodes, Greece,
          <year>2020</year>
          , pp.
          <fpage>592</fpage>
          -
          <lpage>602</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>I.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Kutz</surname>
          </string-name>
          , U. Sattler,
          <article-title>The even more irresistible ℛℐ</article-title>
          ,
          <source>in: Proceedings, Tenth International Conference on Principles of Knowledge Representation and Reasoning</source>
          ,
          <source>Lake District of the United Kingdom, AAAI</source>
          ,
          <year>2006</year>
          , pp.
          <fpage>57</fpage>
          -
          <lpage>67</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>B.</given-names>
            <surname>Cuenca Grau</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>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Parsia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Patel-Schneider</surname>
          </string-name>
          ,
          <string-name>
            <surname>U.</surname>
          </string-name>
          <article-title>Sattler, OWL 2: The next step for OWL</article-title>
          ,
          <source>J. Web Semant</source>
          .
          <volume>6</volume>
          (
          <year>2008</year>
          )
          <fpage>309</fpage>
          -
          <lpage>322</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>