<!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>Eficient Computation of General Modules for ℒ Ontologies (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>LISN, CNRS, Université Paris-Saclay</institution>
          ,
          <addr-line>Rue Raimond Castaing bâtiment 650, 91190 Gif-sur-Yvette, French</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Vrije Universiteit Amsterdam</institution>
          ,
          <addr-line>De Boelelaan 1105, 1081 HV Amsterdam</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We present a method for extracting general modules for ontologies formulated in the description logic ℒ. Given an ontology  and a signature Σ of concept and role names, a general module is an ideally substantially smaller ontology that preserves all ℒ axioms that are entailed by  and can be expressed using only the names in Σ. As such, it has applications such as ontology reuse and ontology analysis. In particular, if we want to reuse only a part of an ontology in a new application, rather than using the entire ontology, we may first want to extract a general module for the set of terms that are actually relevant for the application. General modules may also serve as a restricted view of the ontology, focused on a small set of terms of interest, which may make hidden relations between the terms visible. While classical modules have the additional requirement that they are a subset of the original ontology, general modules can also reformulate axioms from the input ontology, which can lead to smaller results that are more focused on the provided signature, and thus potentially better suited for the aforementioned applications. Another special case of general modules are uniform interpolants, which are general modules that are complete formulated using only names from the provided ontology. We believe that for application such as ontology reuse, this requirement is in fact too strict and can even be counter-productive. However, so far, general modules have only been investigated for lightweight description logics [1, 2]. Our main contributions are: 1) we present the first method dedicated to computing general modules in ℒ, 2) we provide a formal analysis of some properties of the general modules we compute, 3) based on our methods, we also obtain new methods for computing classical modules and uniform interpolants, and 4) using an evaluation on real-world ontologies we demonstrate the eficiency of our technique. This work has been accepted by IJCAI 2023. For detailed results and proofs, please refer to the extended version of the paper [3]. The main steps of our approach are shown in Figure 1. Essentially, our method works by performing uniform interpolation on a normalized version of the input ontology, inspired by the uniform interpolation method presented in [4]. Our normalization introduces fresh concept names, called definers , which are eliminated in the final step. However, diferent from [4], we put fewer constraints on the normal form and do not allow the introduction of</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Ontologies</kwd>
        <kwd>General Module</kwd>
        <kwd>Deductive Module</kwd>
        <kwd>Uniform Interpolation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Role
Isolation</p>
      <p>RIΣ</p>
      <p>Role
Forgetting
rolEΣ</p>
      <p>Concept
Forgetting
conEΣ</p>
      <p>Definer
Substitution/
Forgetting</p>
      <p>General Module: gmΣ, gm*Σ
Deductive Module: dmΣ</p>
      <p>
        Uniform Interpolant
definers after normalization. As a result, our definer elimination step may reintroduce names
eliminated during uniform interpolation. This is not a problem, since our aim is not to compute
uniform interpolants of the input ontology. In contrast, eliminating definers as done in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] can
cause an exponential blowup, and introduce concepts with the non-standard greatest fixpoint
constructor [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. In the following, we give a short overview of our method.
      </p>
      <p>Ontology Normalization
form:</p>
      <p>An ontology  is in normal form if every axiom is of the following
⊤ ⊑ 1 ⊔ . . . ⊔</p>
      <p>::=  | ¬ | Q., Q ∈ {∀, ∃}.</p>
      <p>For simplicity, we omit the “⊤ ⊑” on the left-hand side of normalized axioms. As an example,
the axiom 2 ⊑ 3 ⊔ ∀.3 is equivalent to ¬2 ⊔ 3 ⊔ ∀.3 in normal form.</p>
      <p>
        As the first step, we normalize the input ontology  using standard transformations. In
particular, we replace every concept  occurring under role restrictions by a so-called definer
name . For each definer , we remember the concept  that was replaced by it.
Role Forgetting Next, we apply role forgetting to eliminate role names outside the given
signature Σ. Existing methods to compute role forgetting either rely on an external reasoner
[
        <xref ref-type="bibr" rid="ref4 ref6">6, 4</xref>
        ] or introduce the universal role ∇ [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ]. The former approach can be expensive, while the
latter produces axioms outside of ℒ. Our normal form allows us to implement a more eficient
solution within ℒ, which relies on an integrated reasoning procedure and an additional
transformation step that produces so-called role isolated ontologies RIΣ(). For role isolated
ontologies, role forgetting is straightforward by the following result.
      </p>
      <p>Theorem 1. Let rolEΣ() be the ontology obtained as follows:
1. apply the r-Rule in Figure 2 exhaustively for each  ∈ sigR() ∖ Σ,
2. remove all axioms containing some  ∈ sigR() ∖ Σ.</p>
      <p>If  is role isolated for Σ, then rolEΣ() is a role-forgetting for  and Σ.</p>
      <p>Concept Forgetting Inspired by [7, Theorem 1], we define a concept forgetting operator
conEΣ using A-Rule in Figure 2 in a similar way as defining rolEΣ. Applying the
aforementioned procedure yields conEΣ(rolEΣ(RIΣ())), which contains only of names in the signature
Σ or definers.</p>
      <p>r-Rule :
A-Rule :
1 ⊔ ∃.1, ⋃︀</p>
      <p>=2{ ⊔ ∀.}, 
1 ⊔ . . . ⊔ 
1 ⊔ 1 ¬1 ⊔ 2
1 ⊔ 2
,
 = ⊔1≤ ≤ ¬ or ⊔2≤ ≤  ¬
Constructing the General Module To obtain our general modules gmΣ() for  and Σ,
we eliminate the introduced definers  from conEΣ(rolEΣ(RIΣ())). For this, we replace
each definer  by , the concept replaced by  in the normalization step.</p>
      <p>
        Eliminating definers in this way may reintroduce previously forgotten names, which is why
our general modules are in general not uniform interpolants. This way, we avoid the triple
exponential blow-up caused by uniform interpolation in the worst case [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. However, a single
exponential blow-up in the size of the input is still possible.
      </p>
      <p>Proposition 1. For any ontology  and signature Σ, we have ‖gmΣ()‖ ≤ 2(‖cl()‖). On the
other hand, there exists a family of ontologies  and signatures Σ s.t. ‖‖ is polynomial in
 ≥ 1 and ‖gmΣ ()‖ =  · 2(‖cl()‖).</p>
      <p>
        Optimized General Modules To obtain smaller general modules, we eliminate some definers
before substituting them, using an operation inspired by [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. The resulting optimized general
modules are denoted by gm*Σ().
      </p>
      <p>
        Deductive Modules and Uniform Interpolants Our method can also be used to compute
classical modules, which we do by tracing the inferences performed when computing the general
module gm*Σ(). For applications that instead require uniform interpolants, such as logical
diference [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], we change the definer elimination step, and eliminate definers using an existing
uniform interpolation tool such as Lethe or Fame [
        <xref ref-type="bibr" rid="ref4">4, 12</xref>
        ].
      </p>
      <p>
        Evaluation We evaluated our methods on 222 ontologies from the OWL Reasoner Evaluation
(ORE) 2015 classification track [ 13], from which we removed axioms not expressible in ℒ.
For each ontology, we randomly generated 50 signatures consisting of 100 concept and role
names as in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>
        We implemented a prototype called GeMo1 in Python 3.7.4. For each request (, Σ), GeMo
produced two types of general modules (gm and the optimized gm* ), a classical module (dm), as
well as a uniform interpolant (gmLethe). To show that our general modules can serve as a better
alternative for ontology reuse and analysis, we compared them with the state-of-the-art tools
implementing module extraction and uniform interpolation for ℒ: (i) ⊤⊥* -modules [14] as
implemented in the OWL API [15]; (ii) minM [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] that computes minimal deductive modules under
1The prototype can be downloaded at https://hub.docker.com/r/yh1997/demo_gemo
ℒℋ∇-semantics; (iii) Lethe 0.62[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and Fame 1.03 [12] that compute uniform interpolants.
Some of results are shown below.
      </p>
      <p>• Success rate: We say a method succeeds on a request if it outputs the expected results
within 600s. Table 1 summarizes the success rate for the methods considered. After the
⊤⊥* -modules, GeMo had the highest success rate.
• Resulting ontology length and run time: We used ontology length, which is the sum of the
sizes of the axioms in the ontology, as metric. Table 2 shows the length and run time for
the requests on which all methods were successful (78.45% of all requests). We observe
that our optimization gm* was efective, and lead to almost the best length in median, only
being improved by gmLethe, which however had longer run times. While our modules
were generally smaller than what was computed by the state-of-the-art, run-times could
almost compete with that of ⊤⊥* -module-modules.</p>
      <p>Conclusion The experiments validate the eficiency of our proposal and the quality of the
computed general modules. In the future, we want to optimize the concept elimination step to
obtain more concise general modules. Also, we would like to investigate how to generalize our
ideas to more expressive description logics.
2https://lat.inf.tu-dresden.de/~koopmann/LETHE/
3http://www.cs.man.ac.uk/~schmidt/sf-fame/
Conference, KR 2014, AAAI Press, 2014. URL: http://www.aaai.org/ocs/index.php/KR/
KR14/paper/view/7985.
[12] Y. Zhao, R. A. Schmidt, FAME: an automated tool for semantic forgetting in expressive
description logics, in: International Joint Conference on Automated Reasoning, Springer,
2018, pp. 19–27.
[13] B. Parsia, N. Matentzoglu, R. S. Gonçalves, B. Glimm, A. Steigmiller, The OWL reasoner
evaluation (ORE) 2015 competition report, J. Autom. Reason. 59 (2017) 455–482. URL:
https://doi.org/10.1007/s10817-017-9406-8. doi:10.1007/s10817-017-9406-8.
[14] B. C. Grau, I. Horrocks, Y. Kazakov, U. Sattler, Modular reuse of ontologies: Theory and
practice, Journal of Artificial Intelligence Research 31 (2008) 273–318.
[15] M. Horridge, S. Bechhofer, The OWL API: a java API for OWL ontologies, Semantic Web 2
(2011) 11–21. URL: https://doi.org/10.3233/SW-2011-0025. doi:10.3233/SW-2011-0025.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>N.</given-names>
            <surname>Nikitina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          ,
          <article-title>Hitting the sweetspot: Economic rewriting of knowledge bases</article-title>
          , in: P.
          <string-name>
            <surname>Cudré-Mauroux</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Heflin</surname>
            , E. Sirin,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Tudorache</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Euzenat</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Hauswirth</surname>
            ,
            <given-names>J. X.</given-names>
          </string-name>
          <string-name>
            <surname>Parreira</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Hendler</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Schreiber</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Bernstein</surname>
          </string-name>
          , E. Blomqvist (Eds.),
          <source>The Semantic Web - ISWC</source>
          <year>2012</year>
          - 11th International Semantic Web Conference, Proceedings,
          <string-name>
            <surname>Part</surname>
            <given-names>I</given-names>
          </string-name>
          , volume
          <volume>7649</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2012</year>
          , pp.
          <fpage>394</fpage>
          -
          <lpage>409</lpage>
          . URL: https://doi. org/10.1007/978-3-
          <fpage>642</fpage>
          -35176-1_
          <fpage>25</fpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>642</fpage>
          -35176-1\_
          <fpage>25</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>G.</given-names>
            <surname>Alghamdi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Schmidt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Del-Pinto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <article-title>Upwardly abstracted definition-based subontologies</article-title>
          , in: A. L.
          <string-name>
            <surname>Gentile</surname>
          </string-name>
          , R. Gonçalves (Eds.),
          <source>K-CAP '21: Knowledge Capture Conference</source>
          , ACM,
          <year>2021</year>
          , pp.
          <fpage>209</fpage>
          -
          <lpage>216</lpage>
          . URL: https://doi.org/10.1145/3460210.3493564. doi:
          <volume>10</volume>
          . 1145/3460210.3493564.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Koopmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ma</surname>
          </string-name>
          , N. Bidoit,
          <article-title>Eficient computation of general modules for ℒ ontologies (extended version</article-title>
          ),
          <year>2023</year>
          . arXiv:
          <volume>2305</volume>
          .09503, https://arxiv.org/abs/2305. 09503.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>P.</given-names>
            <surname>Koopmann</surname>
          </string-name>
          ,
          <article-title>LETHE: Forgetting and uniform interpolation for expressive description logics</article-title>
          ,
          <source>KI-Künstliche Intelligenz</source>
          <volume>34</volume>
          (
          <year>2020</year>
          )
          <fpage>381</fpage>
          -
          <lpage>387</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <article-title>Expressive description logics, in: The description logic handbook: theory, implementation</article-title>
          , and applications,
          <year>2003</year>
          , pp.
          <fpage>178</fpage>
          -
          <lpage>218</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Alghamdi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Schmidt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Feng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Stoilos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Juric</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Khodadadi</surname>
          </string-name>
          ,
          <article-title>Tracking logical diference in large-scale ontologies: A forgetting-based approach</article-title>
          ,
          <source>in: The Thirty-Third AAAI Conference on Artificial Intelligence</source>
          ,
          <source>AAAI</source>
          <year>2019</year>
          , AAAI Press,
          <year>2019</year>
          , pp.
          <fpage>3116</fpage>
          -
          <lpage>3124</lpage>
          . URL: https://doi.org/10.1609/aaai.v33i01.33013116. doi:
          <volume>10</volume>
          .1609/aaai. v33i01.
          <fpage>33013116</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Schmidt</surname>
          </string-name>
          ,
          <article-title>Role forgetting for ℒℋ(∇)-ontologies using an Ackermannbased approach</article-title>
          , in: C.
          <string-name>
            <surname>Sierra</surname>
          </string-name>
          (Ed.),
          <source>Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI</source>
          <year>2017</year>
          ,
          <article-title>ijcai</article-title>
          .org,
          <year>2017</year>
          , pp.
          <fpage>1354</fpage>
          -
          <lpage>1361</lpage>
          . URL: https://doi.org/10.24963/ijcai.
          <year>2017</year>
          /188. doi:
          <volume>10</volume>
          .24963/ijcai.
          <year>2017</year>
          /188.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>P.</given-names>
            <surname>Koopmann</surname>
          </string-name>
          ,
          <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.
          <string-name>
            <surname>Bessiere</surname>
          </string-name>
          (Ed.),
          <source>Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>1636</fpage>
          -
          <lpage>1643</lpage>
          . URL: https://doi.org/10.24963/ijcai.
          <year>2020</year>
          /227. doi:
          <volume>10</volume>
          .24963/ijcai.
          <year>2020</year>
          /227.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>C.</given-names>
            <surname>Lutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wolter</surname>
          </string-name>
          ,
          <article-title>Foundations for uniform interpolation and forgetting in expressive description logics</article-title>
          , in: T. Walsh (Ed.),
          <source>IJCAI 2011, Proceedings of the 22nd International Joint Conference on Artificial Intelligence, IJCAI/AAAI</source>
          ,
          <year>2011</year>
          , pp.
          <fpage>989</fpage>
          -
          <lpage>995</lpage>
          . URL: https: //doi.org/10.5591/978-1-
          <fpage>57735</fpage>
          -516-8/
          <fpage>IJCAI11</fpage>
          -170. doi:
          <volume>10</volume>
          .5591/978-1-
          <fpage>57735</fpage>
          -516-8/
          <fpage>IJCAI11</fpage>
          -170.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Sakr</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Schmidt</surname>
          </string-name>
          ,
          <article-title>Fine-grained forgetting for the description logic ℒ</article-title>
          , in: O.
          <string-name>
            <surname>Arieli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Homola</surname>
            ,
            <given-names>J. C.</given-names>
          </string-name>
          <string-name>
            <surname>Jung</surname>
          </string-name>
          , M. Mugnier (Eds.),
          <source>Proceedings of the 35th International Workshop on Description Logics (DL</source>
          <year>2022</year>
          ), volume
          <volume>3263</volume>
          <source>of CEUR Workshop Proceedings</source>
          , CEURWS.org,
          <year>2022</year>
          . URL: http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>3263</volume>
          /paper-17.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ludwig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Konev</surname>
          </string-name>
          ,
          <article-title>Practical uniform interpolation and forgetting for ℒ tboxes with applications to logical diference</article-title>
          , in: C. Baral,
          <string-name>
            <given-names>G. D.</given-names>
            <surname>Giacomo</surname>
          </string-name>
          , T. Eiter (Eds.),
          <source>Principles of Knowledge Representation and Reasoning: Proceedings of the Fourteenth International</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>