<!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>The Price of Selfishness: Conjunctive Query Entailment for ALCSelf is 2ExpTime-hard (Extended Abstract)?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bartosz Bednarczyk</string-name>
          <email>bartosz.bednarczyk@tu-dresden.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>B and Sebastian Rudolph</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Computational Logic Group, Technische Universität Dresden</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Institute of Computer Science, University of Wrocław</institution>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Various modelling features of DLs affect the complexity of conjunctive query (CQ) entailment in a rather strong sense. For the most popular basic description logic (DL), ALC, the complexity of CQ entailment is known to be ExpTimecomplete, as is that of knowledge-base satisfiability. It was first shown in [9, Thm. 2] that CQ entailment becomes exponentially harder when ALC is extended with inverse roles (I), while the complexity of satisfiability remains the same. Shortly after, a combination of transitivity and role-hierarchies (SH) was shown to be another culprit of higher worst-case complexity of reasoning [5, Thm. 1]. Finally, also nominals (O) turned out to be equally problematic [10, Thm. 9]. On the other hand, there are “benign” DL constructs that do not affect the complexity of CQ entailment. Examples are counting (Q) [9, Thm. 4] (the complexity stays the same even for expressive arithmetical constraints [1, Thm. 21]), role-hierarchies alone (H) [6, Cor. 3], or even a tamed use of higher-arity relations [2, Thm. 20]. Our result. We study CQ entailment in ALCSelf , an extension of ALC with the Self operator, i.e. a modelling feature that allows us to specify the situation when an element is related to itself by a binary relationship. Among other things, this allows us to formalise the concept of a “narcissist”, e.g. Narcissist ≡ ∃loves.Self. The Self operator is supported by the OWL 2 Web Ontology Language and the DL SROIQ [7]. Due to its simplicity (it only refers to one element), it is easy to handle by automata techniques [4] or consequence-based methods [11] and thus, so far, there has been no real indication that the added expressivity provided by Self may change anything, complexity-wise. Arguably, this impression is further corroborated by the observation that Self features in two profiles of OWL 2 (EL/RL), without harming tractability [8]. However, we present a rather counter-intuitive result, namely that CQ entailment for ALCSelf is exponentially harder than for ALC, thus placing the seemingly innocuous Self operator among the “malign” modelling features.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Bartosz Bednarczyk, Sebastian Rudolph
Our proof goes via encoding of computational trees of alternating Turing machines
working in exponential space and follows a general hardness-proof-scheme by
Lutz [9, Section 4]. However, to adjust the schema to ALCSelf , novel ideas are
required: the ability to speak about self-loops is exploited to produce a single
query that traverses trees in a root-to-leaf manner and to simulate disjunction
inside CQs, useful to express that certain paths are repeated inside the tree.</p>
      <p>To illustrate our proof technique, assume that the structures under
consideration are two full binary trees of height n with their roots connected via the
next role. The crucial task of the to-be-constructed query is to “synchronise”
the two trees, which requires to identify and connect leaves in corresponding
positions. To this end, the structures are axiomatised to satisfy a few additional
properties: (a) each node is labelled with a unique Lvli concept (meaning that
its distance from its root is equal to i), (b) every node from the (i−1)-th level is
connected to its left (resp. right) child by `i (resp. ri) role, (c) every node has a
`i- and a ri-self-loop for all 1 ≤ i ≤ n, and (d) all leaves (and only they) have a
next-self-loop. The case of n = 2 is depicted below.</p>
      <p>
        Then, one can produce a single CQ q with distinguished variables x, y such that
the set of pairs (π(x), π(y)) over all matches π of q over the above-depicted
structure is equal to the set of all leaf-leaf pairs between two trees of the same
addresses (when numbered from left to right). A quick check can ensure the
reader that, for n = 2, the following conjunctive query does the job:3
(Lvl2?; r2−; `2−; r1−; `1−; Lvl0?; next; Lvl0?; `1; r1; `2; r2; Lvl2?)(x, y)
∧ (r2−; `2−; `1−; next; `1; `2; r2; Lvl2?; r2−; `2−; r1−; next; r1; `2; r2)(x, y)
∧ (`2−; r1−; `1−; next; `1; r1; `2; Lvl2?; r2−; r1−; `1−1; next; `1; r1; r2)(x, y)
The first line of the query is responsible for selecting a leaf x in the left tree
and a leaf y in the second tree. The second (resp. third) line ensures that the
first (resp. second) bits of their addresses coincide. In the full paper [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], we show
that a similar query can be produced for any n with only a polynomial blow-up.
3 To write CQs in a concise way we employ the 2-way path syntax of CQs, letting
(A0?; r1; A1?; r2; A2?; . . . ; An−1?; rn; An?)(x0, xn)
denote the CQ Vn i=1 ri(xi−1, xi) with concepts Ai and (possibly inverted)
i=0 Ai(xi)∧Vn
roles ri, where r−(x, y) stands for r(y, x). Whenever Ai happens to be &gt;, it will be
removed from the expression; this does not create ambiguities. Note that path CQs
are just syntactic sugar and should not be mistaken e.g. with regular path queries.
Acknowledgements
This work was supported by the European Research Council through the
Consolidator Grant No. 771779 (DeciGUT).
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bednarczyk</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Satisfiability and Query Answering in Description Logics with Global and Local Cardinality Constraints</article-title>
          .
          <source>In: ECAI 2020 - 24th European Conference on Artificial Intelligence</source>
          ,
          <volume>29</volume>
          <fpage>August</fpage>
          -8
          <source>September</source>
          <year>2020</year>
          , Santiago de Compostela, Spain,
          <source>August 29 - September 8</source>
          ,
          <year>2020</year>
          .
          <source>Frontiers in Artificial Intelligence and Applications</source>
          , vol.
          <volume>325</volume>
          , pp.
          <fpage>616</fpage>
          -
          <lpage>623</lpage>
          . IOS Press (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bednarczyk</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Exploiting Forwardness: Satisfiability and Query-Entailment in Forward Guarded Fragment</article-title>
          .
          <source>In: Logics in Artificial Intelligence - 17th European Conference, JELIA</source>
          <year>2021</year>
          ,
          <string-name>
            <given-names>Virtual</given-names>
            <surname>Event</surname>
          </string-name>
          , May
          <volume>17</volume>
          -20,
          <year>2021</year>
          ,
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>12678</volume>
          , pp.
          <fpage>179</fpage>
          -
          <lpage>193</lpage>
          . Springer (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bednarczyk</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>The Price of Selfishness: Conjunctive Query Entailment for ALCSelf is 2ExpTime-hard</article-title>
          .
          <source>CoRR abs/2106</source>
          .15150 (
          <year>2021</year>
          ), https: //arxiv.org/abs/2106.15150
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Regular Path Queries in Expressive Description Logics with Nominals</article-title>
          .
          <source>In: IJCAI 2009, Proceedings of the 21st International Joint Conference on Artificial Intelligence</source>
          , Pasadena, California, USA, July
          <volume>11</volume>
          -
          <issue>17</issue>
          ,
          <year>2009</year>
          . pp.
          <fpage>714</fpage>
          -
          <lpage>720</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simkus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Query Answering in Description Logics with Transitive Roles</article-title>
          .
          <source>In: IJCAI 2009, Proceedings of the 21st International Joint Conference on Artificial Intelligence</source>
          , Pasadena, California, USA, July
          <volume>11</volume>
          -
          <issue>17</issue>
          ,
          <year>2009</year>
          . pp.
          <fpage>759</fpage>
          -
          <lpage>764</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simkus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Conjunctive query answering in the description logic SH using knots</article-title>
          .
          <source>J. Comput. Syst. Sci</source>
          .
          <volume>78</volume>
          (
          <issue>1</issue>
          ),
          <fpage>47</fpage>
          -
          <lpage>85</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutz</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>The Even More Irresistible SROIQ</article-title>
          .
          <source>In: Proceedings, Tenth International Conference on Principles of Knowledge Representation and Reasoning</source>
          ,
          <source>Lake District of the United Kingdom, June 2-5</source>
          ,
          <year>2006</year>
          . pp.
          <fpage>57</fpage>
          -
          <lpage>67</lpage>
          . AAAI Press (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Krötzsch</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hitzler</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          : ELP:
          <article-title>Tractable Rules for OWL 2</article-title>
          .
          <source>In: The Semantic Web - ISWC</source>
          <year>2008</year>
          , 7th International Semantic Web Conference,
          <string-name>
            <surname>ISWC</surname>
          </string-name>
          <year>2008</year>
          , Karlsruhe, Germany,
          <source>October 26-30</source>
          ,
          <year>2008</year>
          .
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>5318</volume>
          , pp.
          <fpage>649</fpage>
          -
          <lpage>664</lpage>
          . Springer (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>The Complexity of Conjunctive Query Answering in Expressive Description Logics</article-title>
          .
          <source>In: Automated Reasoning</source>
          , 4th International Joint Conference,
          <string-name>
            <surname>IJCAR</surname>
          </string-name>
          <year>2008</year>
          , Sydney, Australia,
          <source>August 12-15</source>
          ,
          <year>2008</year>
          ,
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>5195</volume>
          , pp.
          <fpage>179</fpage>
          -
          <lpage>193</lpage>
          . Springer (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Ngo</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simkus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Closed Predicates in Description Logics: Results on Combined Complexity</article-title>
          .
          <source>In: Principles of Knowledge Representation and Reasoning: Proceedings of the Fifteenth International Conference, KR</source>
          <year>2016</year>
          ,
          <string-name>
            <surname>Cape</surname>
            <given-names>Town</given-names>
          </string-name>
          , South Africa,
          <source>April 25-29</source>
          ,
          <year>2016</year>
          . pp.
          <fpage>237</fpage>
          -
          <lpage>246</lpage>
          . AAAI Press (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simkus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Worst-Case Optimal Reasoning for the HornDL Fragments of OWL 1 and 2</article-title>
          .
          <source>In: Principles of Knowledge Representation and Reasoning: Proceedings of the Twelfth International Conference, KR 2010</source>
          , Toronto, Ontario, Canada, May 9-
          <issue>13</issue>
          ,
          <year>2010</year>
          . AAAI Press (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>