<!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>Tractable Query Answering for Expressive Ontologies and Existential Rules: Extended Abstract?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>David Carral</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Irina Dragoste</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Markus Krötzsch</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Center for Advancing Electronics Dresden (cfaed)</institution>
          ,
          <addr-line>TU Dresden</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Answering conjunctive queries (CQs) over knowledge bases (KBs) containing disjunctive existential rules is a relevant reasoning task which can be addressed using the disjunctive chase algorithm-a sound and complete materialisation-based procedure where all relevant consequences are pre-computed, allowing queries to be directly evaluated over materialised sets of facts-and acyclicity notions [7,8]-sufficient conditions that guarantee termination of this procedure [2]. As shown in [5,6], acyclicity notions can be used to determine that the chase will indeed terminate over a large subset of real-world ontologies. Nevertheless, even if a KB is characterised as acyclic, CQ answering still remains a problem of high theoretical complexity: CQ answering over acyclic programs with disjunctive existential rules is coN2ExpTime-complete [3]. For acyclic Horn-S ROIQ ontologies, it is ExpTime-complete [6]. Moreover, CQ answering becomes even harder if we consider non-deterministic ontologies. Example 1. Let Rn = fDi 1¹xº ! 9yi :Li ¹x; yi º ^ Di ¹yi º; Di 1¹xº ! 9zi :Ri ¹x; zi º ^ Di ¹zi º j i = 1; : : : ; ng with n 0. The chase of the program P = hRn; fD0¹cºgi is exponentially large in n. Note that P is acyclic with respect to all notions described in [6] and can be expressed in most DL fragments.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>(f, b, w, p)
coNP/P
(f, b, w)</p>
      <p>(f, b, p)
coNPNPNP</p>
      <p>(f, w, p)
(f, p)</p>
      <p>(b, w, p)
(f, b)
(f, w)
(b, w)
(b, p)
(w, p)
coNExpTime/ExpTime</p>
      <p>coN2ExpTime/2ExpTime
(f)
(b)
(w)
(p)
Definition 3. Consider a directed graph G. A path is a sequence of nodes 1; : : : ; n
with i ! i+1 2 G for all i = 1; : : : ; n 1. The graph G is acyclic if, for every path
1; : : : ; n with n 2, 1 , n. A simple path is a path which does not contain two
occurrences of the same node. A braid is a sequence of nodes 1; : : : ; n such that, for
all i = 1; : : : ; n 1, there are at least two different simple paths from i to i+1.</p>
      <p>As our main theoretical contribution, we study the complexity of reasoning over a
rule set R that satisfies some combination of the following restrictions:
(a) The graph G¹Rº is acyclic.
(f) The arity of all function symbols in sk¹Rº is at most 1.
(b) The length of the braids in G¹Rº is bounded.
(w) The treewidth of the rules in R is bounded.
(p) The arity of the predicates in R is bounded.</p>
      <p>We summarise our findings in Figure 1, where we assume that the rule set satisfies (a),
as otherwise reasoning becomes undecidable. All the complexity results are tight.</p>
      <p>
        We empirically study the generality of these restrictions using (deterministic and
non-deterministic) real-world ontologies without equality from the MOWL Corp (MC)
[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and Oxford Ontology Library (OOL) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. To do so, we transform the DL ontologies
in these corpora into KBs with disjunctive existential rules, and then check how many of
them satisfy (a-p). Since rule sets resulting from the transformation of normalised DL
ontologies satisfy (f), (w), and (p), we check how many satisfy (a) and (b). We found
that 61.8% (974) of the ontologies from MC and (76%) (171) from OOL satisfy (a).
Moreover, 78.3% of the acyclic ontologies from MC contain braids of length at most 1,
90.8% of length at most 2, 95.5% at most 3, 98.8% at most 4 and 99% at most 5. In the
OOL, 51.4% of the acyclic ontologies feature braids of length at most 1, 69.5% at most
2, 81.2% at most 3, 92.3% at most 4, 97.6 % at most 5, and 98.2 % at most 6. Our work
therefore suggests a new approach to efficient CQ answering that might be applicable to
many real-world ontologies.
      </p>
      <p>Acknowledgements This work was supported by the DFG within the cfaed Cluster of
Excellence, CRC 912 (HAEC), and Emmy Noether grant KR 4381/1-1.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <article-title>The oxford ontology library</article-title>
          . Available at https://www.cs.ox.ac.uk/isg/ontologies/
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bourhis</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morak</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pieris</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>The impact of disjunction on query answering under guarded-based existential rules</article-title>
          .
          <source>In: Proc. 23rd Int. Joint Conf. on Artificial Intelligence (IJCAI'13)</source>
          . pp.
          <fpage>796</fpage>
          -
          <lpage>802</lpage>
          . AAAI Press/IJCAI (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Carral</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoste</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krötzsch</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Restricted chase (non)termination for existential rules with disjunctions</article-title>
          . In: Sierra,
          <string-name>
            <surname>C</surname>
          </string-name>
          . (ed.)
          <source>Proc. 26th Int. Joint Conf. on Artificial Intelligence (IJCAI'17)</source>
          . pp.
          <fpage>922</fpage>
          -
          <lpage>928</lpage>
          . IJCAI (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Carral</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoste</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krötzsch</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Tractable query answering for expressive ontologies and existential rules</article-title>
          .
          <source>In: Proc. 16th Int. Semantic Web Conf. (ISWC'17)</source>
          . LNCS, vol.
          <volume>10587</volume>
          , pp.
          <fpage>156</fpage>
          -
          <lpage>172</lpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Carral</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feier</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hitzler</surname>
            ,
            <given-names>P.:</given-names>
          </string-name>
          <article-title>A practical acyclicity notion for query answering over HornSRIQ ontologies</article-title>
          .
          <source>In: The 15th International Semantic Web Conference</source>
          , Kobe, Japan,
          <year>2016</year>
          , Proceedings,
          <string-name>
            <surname>Part I. LNCS</surname>
          </string-name>
          , vol.
          <volume>9981</volume>
          , pp.
          <fpage>70</fpage>
          -
          <lpage>85</lpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Cuenca</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            ,
            <surname>Krötzsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Kupke</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Magka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            ,
            <surname>Motik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <surname>Z.</surname>
          </string-name>
          :
          <article-title>Acyclicity notions for existential rules and their application to query answering in ontologies</article-title>
          .
          <source>J. of Artificial Intelligence Research</source>
          <volume>47</volume>
          ,
          <fpage>741</fpage>
          -
          <lpage>808</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <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>
          :
          <article-title>Extending decidable existential rules by joining acyclicity and guardedness</article-title>
          .
          <source>In: Proc. 22nd Int. Conf. on Artificial Intelligence (IJCAI'11)</source>
          . pp.
          <fpage>963</fpage>
          -
          <lpage>968</lpage>
          . IJCAI (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Marnette</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Generalized schema-mappings: from termination to tractability</article-title>
          . In: Paredaens,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Su</surname>
          </string-name>
          ,
          <string-name>
            <surname>J</surname>
          </string-name>
          . (eds.)
          <source>Proc. 28th Symposium on Principles of Database Systems (PODS'09)</source>
          . pp.
          <fpage>13</fpage>
          -
          <lpage>22</lpage>
          . ACM (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Matentzoglu</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bail</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>A snapshot of the OWL Web</article-title>
          .
          <source>In: Proc. 12th Int. Semantic Web Conf. (ISWC'13)</source>
          . LNCS, vol.
          <volume>8218</volume>
          , pp.
          <fpage>331</fpage>
          -
          <lpage>346</lpage>
          . Springer (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>