<!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>Expressivity of Planning with Horn Description Logic Ontologies</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Extended Abstract</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefan Borgwardt</string-name>
          <email>stefan.borgwardt@tu-dresden.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jörg Hofmann</string-name>
          <email>hofmann@cs.uni-saarland.de</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alisa Kovtunova</string-name>
          <email>alisa.kovtunova@tu-dresden.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Markus Krötzsch</string-name>
          <email>markus.kroetzsch@tu-dresden.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bernhard Nebel</string-name>
          <email>nebel@informatik.uni-freiburg.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marcel Steinmetz</string-name>
          <email>steinmetz@cs.uni-saarland.de</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Engineering, University of Freiburg</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute of Theoretical Computer Science, Technische Universität Dresden</institution>
          ,
          <addr-line>01062 Dresden</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Saarland University</institution>
          ,
          <addr-line>Saarland Informatics Campus</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>AI planning is a well-investigated framework for describing the evolution of system states through actions [3]. Usually, a planning task describes an initial state of the agent's environment, a set of actions that can afect that environment, and a goal formula that is to be satisfied. In order to reach the goal, actions can be applied whenever their preconditions are satisfied in the current state expressed as a finite set of facts. A plan is a sequence of (ground) actions that transform the initial state into a state satisfying the goal. First-order (FO) formulas in the preconditions and the goal are evaluated using a closed-domain, closed-world semantics, i.e. the domain is fixed a priori and facts that are not contained in a state are assumed to be false. In contrast to preconditions which need to hold locally, the system can require to have global state constraints, constraints that should hold at every state. Knowledge representation formalisms are a natural way to introduce global constraints on permissible states; however, they usually interpret FO formulas over arbitrary models, instead of just one model with a ifxed domain. Moreover, early work on open-world, open-domain formalisms for constraining possible states quickly noticed the so-called ramification problem [ 4], i.e. an action that makes a fact true also has to take care of satisfying the state constraints, possibly requiring to add or remove other facts, which may also involve new objects. One approach to deal with this problem is to not view states as finite interpretations, but as sets of formulas interpreted in an open-world fashion. In this way, implicit knowledge about the world added by the state constraints does not have to be made explicit in the states themselves. This means that the semantics of actions must be changed in such a way that action preconditions are also evaluated under open-world semantics, while action efects do not directly modify a single interpretation,</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;planning</kwd>
        <kwd>expressive DLs</kwd>
        <kwd>compilation scheme</kwd>
        <kwd>experiments</kwd>
        <kwd>benchmarks</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>but instead operate on a set of formulas.</p>
      <p>
        DL-Lite Explicit-Input Knowledge and Action Bases (eKABs) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is an example of such an
extended planning formalism. It was proposed to combine classical planning with state
constraints and high-level concepts formulated in a DL-Lite background ontology [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], while allowing
an open domain and interpreting action preconditions (specified using unions of conjunctive
queries (CQs)) under open-world semantics. Due to FO rewritability of CQs in DL-Lite, eKABs
can be translated into the classical planning language PDDL. In theory, this allows the use of
of-the-shelf planning systems operating under closed-world semantics. Later, this compilation
was further optimized to enable practical planning with DL-Lite background ontologies [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] by
using PDDL derived predicates [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ]. Included in the PDDL 2.1 standard, derived predicates are
special predicates not afected by any actions. Instead, the predicate’s extension is derived by a
set of rules with the predicate in the head, which are re-evaluated at every new system state.
      </p>
      <p>
        This paper extends the expressivity of state constraints in eKABs from the light-weight
DL-Lite to more powerful (Horn) description logics (DLs) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Our contribution is manifold.
A generic compilation scheme for any Datalog¬-rewritable DL and queries. Informally,
a compilation scheme [
        <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
        ] is a mapping from eKAB planning tasks (over a specific DL) to
PDDL tasks such that there exists a plan for an eKAB task if there exists a plan for its PDDL
translation. If in the mapped PDDL task the signature, domain, actions, and rules for derived
predicates are bounded polynomially (exponentially) in the size of the eKAB description (i.e. a
DL ontology and a set of actions), then the compilation scheme is polynomial (exponential). For
example, the compilation scheme for DL-Lite eKABs [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is exponential.
      </p>
      <p>Such compilation schemes can be used to investigate the relative expressivity of eKABs and
PDDL. To be considered of the same expressivity, there should be a polynomial1 compilation
scheme that the length of the resulting plans grows at most polynomially, but ideally grows
only by a constant amount. On the one hand, such a translation shows that the expressivity of
eKABs with a specific DL is not higher than that of PDDL. On the other hand, although such
eKABs could be considered syntactic sugar, they represent powerful tools that allow domain
engineers to add open-world constraints to planning tasks.</p>
      <p>
        Our generic compilation scheme for any DL and queries that enjoy Datalog¬-rewritability
essentially compiles an ontology and CQs in action preconditions into PDDL derived predicates
of the same size. Using the property of Datalog¬-rewritability in the compilation, we can employ
many existing results from the DL literature [
        <xref ref-type="bibr" rid="ref13">13, 14, 15</xref>
        ] for enhanced AI planning. For example,
this immediately implies that eKABs with Horn-ℋℐ TBoxes have exponential compilations
into PDDL with derived predicates (without negation) and for ℰ ℒℋ⊥ and DL-Lite we even
obtain polynomial compilations [14, 15]. The latter also holds for Horn-ℋℐ if all conditions
are restricted to EIQs [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], i.e. unary atoms possibly prefixed by epistemic negation [ 16]. In
general, our construction applies to any ontology language where CQs are Datalog¬-rewritable,
and to any specific TBoxes and queries that happen to be Datalog ¬-rewritable.
1The polynomial space requirement is attributed to the original work on compiling planning formalisms [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]: the
result of a compilation should be concisely represented, i.e., in polynomial space.
      </p>
      <p>
        Polynomial compilation scheme for DL Horn-ℒℋℐ. To extend the previous
compilability result even further, we provide a novel polynomial Datalog¬-rewriting for queries in
the very expressive DL Horn-ℒℋℐ [17]. It is based on a query answering approach
developed by [18] and encodes the relevant definitions from that paper into Datalog ,¬ rules, which
extend Datalog¬ by set terms that denote sets of objects. We then adapt a known polynomial
translation to obtain a set of Datalog¬ rules [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
      </p>
      <p>Non-compilability for more expressive DLs. However, there are signs that our generic
scheme does not work for the slightly more expressive DL Horn-ℛℐ [17] that does
not enjoy Datalog¬-rewritability. Let us consider two related problems. The polynomial-step
planning problem is to decide whether a given task has a plan of polynomial length (for some
given polynomial), and the 1-step planning problem is the case where the polynomial is 1.
Theorem. The polynomial-step planning problem for PDDL is ExpTime-complete but the 1-step
planning problem for Horn-ℛℐ eKABs is 2ExpTime-complete.</p>
      <p>
        Although suggestive, this does not yet show that Horn-ℛℐ eKABs cannot be translated
into PDDL using a polynomial compilation scheme (recall that we are only interested in the
polynomial size of the resulting PDDL task, not the time it took to translate it). Nevertheless,
we can show that such a compilation cannot exist (under a reasonable complexity-theoretic
assumption) for Horn-ℛℐ as well as the non-Horn DLs ℋ and ℒℐ. To prove this, we
follow the idea of a previous non-compilability result for PDDL with derived predicates into
PDDL without derived predicates [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. This more or less draws a line between the standardized
ontology languages OWL 1,2 which results in planning tasks of equal expressivity as PDDL,
and OWL 2,3 where queries are strictly more expressive than PDDL.
      </p>
      <p>Experimental evaluation. We conclude with an experimental evaluation that combines an
existing practical implementation of an (exponential) Datalog-rewriting for Horn-ℋℐ [14]
with our generic compilation scheme. While polynomial rewritings as above are nice in theory,
they are often not practical due to a polynomial increase in the arity of predicates.</p>
      <p>
        We encode Horn-ℋℐ eKAB tasks as ontology files accompanied by PDDL files whose
syntax has been extended to allow conjunctive queries (CQ-PDDL). Our compiler generates a
classical planning task in standard PDDL format, where the Datalog rewriting is generated by
Clipper [14]. Our benchmark collection consists of 125 instances adapted from existing DL-Lite
eKAB benchmarks (translated into our format) [
        <xref ref-type="bibr" rid="ref5 ref7">5, 7</xref>
        ], and 110 newly created instances using
more expressive ontologies. Since Horn-ℋℐ is more expressive than DL-Lite, we created 3
new planning domains in which we make use of conjunctions, qualified existential restrictions
occurring with negative polarity, and symmetric and transitive relations, all of which are not
supported by DL-Lite [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>
        On this benchmark set, our compilation approach showed superior runtimes compared
to [
        <xref ref-type="bibr" rid="ref5 ref7">5, 7</xref>
        ], both for the compilation itself as well as for finding plans for the resulting PDDL tasks.
In fact, we could solve all DL-Lite eKAB instances, which was not possible using the previous
2http://www.w3.org/TR/owl-features/
3http://www.w3.org/TR/owl2-overview/
approaches. Our method also shows promising performance on the new benchmark instances,
but there are not yet any other systems to compare it against.
      </p>
      <p>Acknowledgments
This work is supported by DFG grant 389792660 as part of TRR 248 – CPEC, see https://
perspicuous-computing.science).
of OWL 1 and 2, in: F. Lin, U. Sattler, M. Truszczynski (Eds.), Proc. of the 12th Int. Conf.
on Principles of Knowledge Representation and Reasoning (KR’10), AAAI Press, 2010, pp.
269–279. URL: https://aaai.org/ocs/index.php/KR/KR2010/paper/view/1296.
[14] T. Eiter, M. Ortiz, M. Šimkus, T.-K. Tran, G. Xiao, Query rewriting for Horn-ℋℐ
plus rules, in: J. Hofmann, B. Selman (Eds.), Proc. of the 26th AAAI Conf. on Artificial
Intelligence (AAAI’12), AAAI Press, 2012, pp. 726–733. URL: http://www.aaai.org/ocs/
index.php/AAAI/AAAI12/paper/view/4931.
[15] M. Bienvenu, M. Ortiz, Ontology-mediated query answering with data-tractable description
logics, in: W. Faber, A. Paschke (Eds.), Reasoning Web. 11th Int. Summer School, volume
9203 of Lecture Notes in Computer Science, Springer, 2015, pp. 218–307. doi:10.1007/
978-3-319-21768-0_9.
[16] D. Calvanese, G. De Giacomo, D. Lembo, M. Lenzerini, R. Rosati, EQL-Lite: Efective
ifrst-order query processing in description logics, in: M. M. Veloso (Ed.), 20th Int. Joint
Conf. on Artificial Intelligence (IJCAI), 2007, pp. 274–279. URL: https://www.ijcai.org/
Abstract/07/042.
[17] M. Ortiz, S. Rudolph, M. Šimkus, Query answering in the horn fragments of the
description logics ℋℐ and ℛℐ, in: T. Walsh (Ed.), Proc. of the 22nd
Int. Joint Conf. on Artificial Intelligence (IJCAI’11), AAAI Press, 2011, pp. 1039–1044.
doi:10.5591/978-1-57735-516-8/IJCAI11-178.
[18] D. Carral, I. Dragoste, M. Krötzsch, The combined approach to query answering in
hornℒℋℐ, in: M. Thielscher, F. Toni, F. Wolter (Eds.), Proc. of the 16th Int. Conf. on
Principles of Knowledge Representation and Reasoning (KR’18), AAAI Press, 2018, pp.
339–348. URL: https://aaai.org/ocs/index.php/KR/KR18/paper/view/18076.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Borgwardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hofmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kovtunova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Krötzsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Nebel</surname>
          </string-name>
          , M. Steinmetz,
          <article-title>Expressivity of planning with horn description logic ontologies</article-title>
          ,
          <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>
          <volume>36</volume>
          (
          <year>2022</year>
          )
          <fpage>5503</fpage>
          -
          <lpage>5511</lpage>
          . URL: https://ojs.aaai.org/index.php/AAAI/ article/view/20489. doi:
          <volume>10</volume>
          .1609/aaai.v36i5.
          <fpage>20489</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Borgwardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hofmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kovtunova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Krötzsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Nebel</surname>
          </string-name>
          , M. Steinmetz,
          <article-title>Expressivity of Planning with Horn Description Logic Ontologies</article-title>
          (
          <source>Technical Report)</source>
          ,
          <year>2022</year>
          . URL: https: //arxiv.org/abs/2203.09361. doi:
          <volume>10</volume>
          .48550/ARXIV.2203.09361.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ghallab</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Nau</surname>
          </string-name>
          , P. Traverso,
          <source>Automated Planning: Theory and Practice</source>
          , Morgan Kaufmann,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M. L.</given-names>
            <surname>Ginsberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. E.</given-names>
            <surname>Smith</surname>
          </string-name>
          ,
          <article-title>Reasoning about action I: A possible worlds approach</article-title>
          ,
          <source>Artificial Intelligence</source>
          <volume>35</volume>
          (
          <year>1988</year>
          )
          <fpage>165</fpage>
          -
          <lpage>195</lpage>
          . doi:
          <volume>10</volume>
          .1016/
          <fpage>0004</fpage>
          -
          <lpage>3702</lpage>
          (
          <issue>88</issue>
          )
          <fpage>90011</fpage>
          -
          <lpage>2</lpage>
          .
        </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>M.</given-names>
            <surname>Montali</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Patrizi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Stawowy</surname>
          </string-name>
          ,
          <article-title>Plan synthesis for knowledge and action bases</article-title>
          , in: S. Kambhampati (Ed.),
          <source>25th Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          , AAAI Press,
          <year>2016</year>
          , pp.
          <fpage>1022</fpage>
          -
          <lpage>1029</lpage>
          . URL: https://www.ijcai.org/Abstract/16/149.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          ,
          <article-title>Tractable reasoning and eficient query answering in description logics: The dl-lite family</article-title>
          ,
          <source>Journal of Automated Reasoning</source>
          <volume>39</volume>
          (
          <year>2007</year>
          )
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          . doi:
          <volume>10</volume>
          .1007/s10817-007-9078-x.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Borgwardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hofmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kovtunova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Steinmetz</surname>
          </string-name>
          ,
          <string-name>
            <surname>Making</surname>
            <given-names>DL</given-names>
          </string-name>
          -
          <article-title>Lite planning practical</article-title>
          , in: M.
          <string-name>
            <surname>Bienvenu</surname>
          </string-name>
          , G. Lakemeyer (Eds.),
          <source>Proc. of the 18th Int. Conf. on Principles of Knowledge Representation and Reasoning (KR'21)</source>
          , IJCAI,
          <year>2021</year>
          , pp.
          <fpage>641</fpage>
          -
          <lpage>645</lpage>
          . doi:
          <volume>10</volume>
          .24963/kr.2021/61.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Fox</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Long</surname>
          </string-name>
          ,
          <year>PDDL2</year>
          .
          <article-title>1: an extension to PDDL for expressing temporal planning domains</article-title>
          ,
          <source>Journal of Artificial Intelligence Research</source>
          <volume>20</volume>
          (
          <year>2003</year>
          )
          <fpage>61</fpage>
          -
          <lpage>124</lpage>
          . doi:
          <volume>10</volume>
          .1613/jair. 1129.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J.</given-names>
            <surname>Hofmann</surname>
          </string-name>
          ,
          <string-name>
            <surname>S. Edelkamp,</surname>
          </string-name>
          <article-title>The deterministic part of IPC-4: An overview</article-title>
          ,
          <source>Journal of Artificial Intelligence Research</source>
          <volume>24</volume>
          (
          <year>2005</year>
          )
          <fpage>519</fpage>
          -
          <lpage>579</lpage>
          . doi:
          <volume>10</volume>
          .1613/jair.1677.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>F.</given-names>
            <surname>Baader</surname>
          </string-name>
          , I. Horrocks,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          , An Introduction to Description Logic, Cambridge University Press,
          <year>2017</year>
          . URL: http://dltextbook.org/. doi:
          <volume>10</volume>
          .1017/9781139025355.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>B.</given-names>
            <surname>Nebel</surname>
          </string-name>
          ,
          <article-title>On the compilability and expressive power of propositional planning formalisms</article-title>
          ,
          <source>Journal of Artificial Intelligence Research</source>
          <volume>12</volume>
          (
          <year>2000</year>
          )
          <fpage>271</fpage>
          -
          <lpage>315</lpage>
          . doi:
          <volume>10</volume>
          .1613/jair.735.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>S.</given-names>
            <surname>Thiébaux</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hofmann</surname>
          </string-name>
          , B. Nebel, In defense of PDDL axioms,
          <source>Artificial Intelligence</source>
          <volume>168</volume>
          (
          <year>2005</year>
          )
          <fpage>38</fpage>
          -
          <lpage>69</lpage>
          . doi:
          <volume>10</volume>
          .1016/j.artint.
          <year>2005</year>
          .
          <volume>05</volume>
          .004.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ortiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Rudolph</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Šimkus</surname>
          </string-name>
          ,
          <article-title>Worst-case optimal reasoning for the Horn-DL fragments</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>