<!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>Practical Fixed-Domain Reasoning for Description Logics { Extended Abstract</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sarah Alice Gaggl</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sebastian Rudolph</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lukas Schweizer</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Technische Universitat Dresden, Computational Logic Group</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this extended abstract, we report on our work on xed-domain reasoning published at the 22nd European Conference on Arti cial Intelligence [6]. Introduction. The Web Ontology Language OWL [13] comes with comprehensive modeling tool support. This sometimes leads to situations where OWL is the modeling paradigm chosen over other formalisms, even if the application scenario does not match the typical usage of this language. For example, problems of a constraint-satisfaction nature do not go well with OWL's standard semantics which allows for models of arbitrary size. Example 1 Assume we want to nd out if, in a given graph (V; E), a Hamiltonian path from vertex v to vertex v! exists. Using one individual name v for every vertex v 2 V , one might come up with the axioms (in description logic notation) noedge(v; v0) whenever (v; v0) 2= E, as well as &gt; v 1edgeonpath:&gt; u 1:edgeonpath :&gt; and :fv gv9edgeonpath :&gt; and :fv!gv9edgeonpath:&gt;, requiring that all nodes have exactly one incoming and one outgoing edge that is on the Hamiltonian path, except for v which just has an outgoing and v! which just has an incoming such edge. The axiom fv g v (9edgeonpath:)jV j 1fv!g expresses that there is an edgeonpath-path of length jV j 1 from v to v!. The axiom Dis(edgeonpath; noedge) ensures that the path can never go along \no-edges". Under the usual semantics, however, this set of axioms is always satis able since models may contain \anonymous" elements that do not correspond to any of the node individual names. The given formalisation is only appropriate if we restrict to models with domain V .</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>De nition 1 (Fixed-Domain Semantics). Given a non-empty nite set
of individual names, called xed domain, an interpretation I = ( I ; I ) is said to
be - xed (or just xed, if is clear from the context), if I = and aI = a
for all a 2 . Accordingly, for a DL knowledge base K, we call an interpretation
I a -model of K, if I is a - xed interpretation and I j= K. A knowledge base
K is called -satis able if it has a -model.</p>
      <p>Enumeration of -Models. As mentioned before, our approach aims at
scenarios like constraint satisfaction problems where a knowledge base is a formal
problem description for which each model represents one solution; in particular
the domain is part of the problem description and hence xed a-priori. Then,
retrieval of one, several, or all models is a natural task, as opposed to merely
checking model existence. We let model enumeration denote the task of making
the -models of a knowledge base explicit.</p>
      <p>Axiomatization of -Models. When introducing a new semantics for some
logic, it is worthwhile to ask if existing reasoners can be used. Obviously,
assuming = fa1; : : : ; ang, adding the DL axiom &gt; v fa1; : : : ; ang as well as
the set of inequality axioms containing ai 6= aj with i &lt; j to K will (up to
isomorphism) rule out all models of K, not having as their domain. Denoting
these additional axioms with F D , we nd that K is -satis able i K [ F D
is satis able under the classical DL semantics. Consequently, any o -the-shelf
SROIQ reasoner can be used for xed-domain reasoning, at least when it comes
to the classical reasoning tasks.</p>
      <p>Complexity Analysis. We report on complexities of classical reasoning tasks
under the xed-domain semantics. Note that, next to the size of the considered
knowledge base the size of the domain j j contributes to the input size of the
reasoning problems considered.</p>
      <p>
        The combined complexity of standard reasoning in SROIQ is known to be
N2ExpTime-complete, both for arbitrary models and nite models [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
Restricting to xed domains leads to a drastic drop in complexity. Contrarily, imposing
xed domains on (allegedly) inexpressive fragments such as DL-Litecore, turns
reasoning into a harder problem.
      </p>
      <p>Let DLmin be a minimalistic description logic that merely allows TBox axioms
of the form A v :B, with A; B 2 NC . Moreover, only atomic assertions of the
form A(a) and r(a; b) are admitted.</p>
      <p>Theorem 1. Fixed-domain satis ability checking in any language between DLmin
and SROIQ is NP-complete.</p>
      <p>We next consider the complexity of query entailment for DLs. Again, we will
notice a very uniform behavior over a wide range of DLs and query types.</p>
      <p>
        Bounded-arity Datalog queries over DLs are rather expressive, they subsume
many of the prominent query classes in knowledge representation and databases,
including (unions of) conjunctive queries, positive queries, (unions of)
conjunctive 2-way regular path queries [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], positive 2-way regular path queries, (unions
of) conjunctive nested 2-way regular path queries [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], and regular queries as
de ned in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. We obtain the following theorem.
      </p>
      <p>Theorem 2. For any class of queries subsuming conjunctive queries and
subsumed by bounded-arity Datalog queries and any DL subsuming DLmin and
subsumed by SROIQ, the combined complexity of xed-domain query entailment is
2P-complete.</p>
      <p>
        Practical Fixed-Domain Reasoning. When axiomatizing the xed-domain
semantics, available OWL reasoners struggle with standard reasoning, and we
supported this statement with an evaluation. Thus, a more viable approach is
required for realizing xed-domain reasoning. To this end, we propose an encoding
of arbitrary SROIQ knowledge bases into answer set programming (ASP) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
This allows us to use existing ASP machinery to perform both standard
reasoning as well as the non-standard tasks model enumeration and query entailment
quite elegantly.
      </p>
      <p>We now brie y sketch how reasoning tasks w.r.t. the xed-domain
semantics can be encoded by ASP. Intuitively, the set of all -interpretations de nes
a search space, which can be traversed searching for -models, guided by
appropriate constraints. We thus propose a translation (K; ) for any SROIQ
knowledge base K; i.e. (K; ) = gen( ) [ chk(K), consisting of a generating
part gen( ) that de nes all potential candidate interpretations using so-called
guessing rules, and a constraining part chk(K) containing only integrity
constraints (i.e., rules with empty heads) that rules out interpretations violating
axioms in K.</p>
      <p>
        We implemented our translation based approach as an open-source tool {
named Wolpertinger.1 The obtained logic programs can be evaluated with most
modern ASP solvers. However, the evaluation was conducted using Clingo [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]
for grounding and solving, since it is currently the most prominent solver leading
the latest competitions [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        For satis ability checking, we conducted some preliminary tests, comparing
our tool to the popular HermiT and Konclude reasoners [
        <xref ref-type="bibr" rid="ref12 ref8">8, 12</xref>
        ]. Both are full
OWL 2 DL reasoners and are leading the latest competitions. We are aware that
these reasoners are designed for and optimized toward open-world scenarios, the
conducted tests shall merely show the feasibility of our approach in comparison
to standard DL reasoners using the previously discussed axiomatization.
      </p>
      <p>Among other experiments, we created a knowledge base modeling fully and
correctly lled Sudokus, beginning with a 6 6 eld, consisting of 64 individuals,
13 concept names and 1 role name, then extending the size to a 9 9 eld
featuring 108 named individuals. While HermiT &amp; Konclude were still able to
detect satis ability for the 6 6 case, invoking a satis ability test on the 9 9
case did not yield any answer within 30 minutes. In both cases Wolpertinger
detected satis ability with reasonable runtimes of below 10 seconds.</p>
      <p>For model enumeration, we used the knowledge base for the 9 9 Sudoku and
turned the task into generating new Sudoku instances. We observed that, besides
1 https://github.com/wolpertinger-reasoner/Wolpertinger
a constant time of around 6 seconds required for grounding, even requesting 106
models is reasonably e cient, i.e., it requires less than 5 minutes.
Conclusion and Future Work. The xed-domain semantics allows to con ne
modelhood of interpretations to models of the right form, for OWL ontologies
which represent constraint-type problems. Although OWL still imposes some
restrictions regarding expressivity (e.g., by restricting the arity of the used
predicates to 1 and 2), we argue that quite large and involved problem scenarios can
be modeled by OWL ontologies. Clearly, more comprehensive evaluations of our
system with respect to such ontologies remain as imperative issue. Moreover,
translations of xed-domain reasoning problems into other formalisms are
conceivable, including pure CSP languages or even SAT, which would have to be
implemented and compared against the ASP approach.</p>
      <p>Another interesting strand of research would be to consider extensions of
the source formalism, e.g. by non-monotonic features. As ASP itself is a
nonmonotonic logic programming formalism, rule-based extensions of OWL {
monotonic or non-monotonic { should be straightforward to accommodate.</p>
      <p>Finally, we plan to incorporate typical ontology engineering tasks such as
explanation and axiom pinpointing into our ASP-based framework.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>M.</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ortiz</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Simkus</surname>
          </string-name>
          , `
          <article-title>Nested regular path queries in description logics'</article-title>
          ,
          <source>in Proc. KR</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Gerhard</given-names>
            <surname>Brewka</surname>
          </string-name>
          , Thomas Eiter, and Miroslaw Truszczynski, `
          <article-title>Answer set programming at a glance', Commun</article-title>
          . ACM,
          <volume>54</volume>
          (
          <issue>12</issue>
          ),
          <volume>92</volume>
          {
          <fpage>103</fpage>
          , (
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>F.</given-names>
            <surname>Calimeri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gebser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Maratea</surname>
          </string-name>
          , and
          <string-name>
            <given-names>F.</given-names>
            <surname>Ricca</surname>
          </string-name>
          , `
          <article-title>Design and results of the 5th answer set programming competition', Artif</article-title>
          . Intell.,
          <volume>231</volume>
          , 151{
          <fpage>181</fpage>
          , (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , `
          <article-title>Finite model reasoning in description logics'</article-title>
          ,
          <source>in Proc. DL</source>
          (
          <year>1996</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Eiter</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Ortiz</surname>
          </string-name>
          , `
          <article-title>Regular path queries in expressive description logics with nominals'</article-title>
          ,
          <source>in Proc. IJCAI</source>
          (
          <year>2009</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Gaggl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Rudolph</surname>
          </string-name>
          , and L. Schweizer, `
          <article-title>Fixed-domain reasoning for description logics'</article-title>
          ,
          <source>in Proc. ECAI</source>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>M.</given-names>
            <surname>Gebser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Kaufmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kaminski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ostrowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Schaub</surname>
          </string-name>
          , and M. T. Schneider, `
          <article-title>Potassco: The Potsdam Answer Set Solving Collection'</article-title>
          ,
          <source>AI Communications</source>
          ,
          <volume>24</volume>
          (
          <issue>2</issue>
          ),
          <volume>107</volume>
          {
          <fpage>124</fpage>
          , (
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <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="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kazakov</surname>
          </string-name>
          , `
          <article-title>RIQ and SROIQ are harder than SHOIQ'</article-title>
          ,
          <source>in Proc. KR</source>
          (
          <year>2008</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>J. L. Reutter</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Romero</surname>
            , and
            <given-names>M. Y.</given-names>
          </string-name>
          <string-name>
            <surname>Vardi</surname>
          </string-name>
          , `Regular Queries on Graph Databases',
          <source>in Proc. ICDT</source>
          (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. S. Rudolph, `
          <article-title>Undecidability results for database-inspired reasoning problems in very expressive description logics'</article-title>
          ,
          <source>in Proc. KR</source>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>A.</given-names>
            <surname>Steigmiller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Liebig</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          , `
          <article-title>Konclude: System description'</article-title>
          ,
          <source>Journal of Web Semantics</source>
          ,
          <volume>27</volume>
          , 78{
          <fpage>85</fpage>
          , (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. W3C OWL Working Group,
          <article-title>OWL 2 Web Ontology Language: Document Overview</article-title>
          ,
          <source>W3C Recommendation</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>