<!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>PTime Combined Complexity and FPT in Ontology-Mediated Querying</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Pablo Barcelo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Cristina Feier</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Carsten Lutz</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andreas Pieris</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DCC, U of Chile &amp; IMFD</institution>
          <country country="CL">Chile</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Bremen</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>University of Edinburgh</institution>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Ontology-mediated queries (OMQs) based on description logic (DL) ontologies and their complexity have been a subject of intense study [5, 7, 8]. In the full paper [1] reported on in this abstract, we explore the frontiers of two important notions of tractability for OMQs, PTime combined complexity and xedparameter tractability (FPT) where the parameter is the size of the OMQ. Given that ontologies can get large in practice, these notions of tractability are arguably more realistic than PTime data complexity as frequently considered in the literature [9, 11, 16, 17]. As usual, we use (L; Q) to denote the OMQ language where ontologies are formulated in the DL L and queries are from the query language Q. From now on, we generally mean combined complexity when speaking of complexity. There are only few OMQ languages that have PTime complexity or are FPT (with the parameter being the size of the OMQ) without imposing serious restrictions on the shape of the query or the ontology. An important example for the former is dr; AQ) where dr stands for domain and range restrictions and AQ refers (E LH? to the class of atomic queries of the form A(x), A a concept name; this result is implicit in [18]. An important example for an OMQ language that is FPT is (E LHI?; AQ); we are not aware of this being stated explicitly anywhere, but it is not too hard to prove using standard means. Note that the (unrestricted) use of the popular conjunctive queries (CQs) and unions thereof (UCQs) as the query language Q rules out both of the considered complexities independently of the choice of L since (U)CQ-evaluation (without an ontology) is NP-complete and W[1]-hard, thus most likely not xed-parameter tractable [14]. A seminal result by Grohe precisely characterizes the (recursively enumerable) classes of CQs over schemas of bounded arity that can be evaluated in PTime: this is the case if and only if for some k, every CQ in the class is equivalent to a CQ of tree width k, unless the assumption from parameterized complexity theory that FPT 6= W[1] fails [15]. Grohe's result also establishes that PTime complexity and FPT coincide for evaluating CQs (for schemas of bounded arity). A generalization to UCQs has been observed by Chen [10]. It has further been observed in [6] that whenever Q is a class of CQs that can be evaluated in PTime, then the same is true for OMQs from (E LH; Q). In particular, Q might be the class of CQs of tree width bounded by some k. The main aim of the work that we report about is to precisely analyze the frontiers of PTime complexity and FPT for OMQs in which the ontology language is from the E L and E LI families of DLs and where Q are (U)CQs. An Supported by ERC grant CODA, EPSRC grant EQUID, the Millennium Institute for Foundational Research on Data, and Fondecyt grant 1170109.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        OMQ has bounded tree width if the actual query in it has. Our main contributions
are the following, assuming that FPT 6= W[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]:
      </p>
      <p>dr; UCQ) that admit PTime evaluation are exactly
1. the subclasses of (E LH?</p>
      <p>those in which each OMQ is equivalent to an OMQ of bounded tree width;
2. the subclasses of (E LHI?; UCQ) for which evaluation is in FPT are exactly
those in which each OMQ is equivalent to an OMQ of bounded tree width.
In Point 1 (but not in Point 2), we assume that the ABox signature is full.
Regarding Point 2, we also show that the runtime of the FPT algorithm can
be made single exponential in the parameter. Given that E LHd?r is a fragment
of E LHId?r;, UPCoiQnt)sw1heanndth2e iAmBployx tshigantaPtuTriemies fcuolml. pFleoxrittyhean`udpFpePrTbocuonindc'idoef
in (E LH?
Point 2, we use existential pebble games adapted in a careful way to OMQs.
For the rather non-trivial `lower bound', we build on Grohe's result. Dealing
with non-full ABox signatures is a serious challenge as standard techniques from
relational databases such as using the core of a CQ must be replaced by more
subtle ones. In Points 1 and 2, equivalence to an OMQ Q of bounded tree width
includes the case that Q uses a di erent ontology than the original OMQ. We also
show, however, that in most cases there is no bene t in changing the ontology.</p>
      <p>
        We point out that our tractability results are stronger than those in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]:
adding an ontology can lower the complexity of a (U)CQ and it is in fact not
hard to see that there are classes of OMQs from (E L; CQ) that can be evaluated
in PTime, but the class of CQs used in them cannot. More loosely related studies
of the combined complexity of OMQs in which the ontology is formulated in
DL-LiteR and DL-LitehRorn are in [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]. There is also a loose connection to the
rewriting of OMQs based on CQs and expressive DLs such as ALC into OMQs
based on instance queries (and expressive DLs) [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. For a study of FPT in the
context of subsumption, see [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ].
      </p>
      <p>
        We further study the complexity of the meta problem of deciding whether
a given OMQ is equivalent to an OMQ of bounded tree width. Our results
range from 2p between (DL-LiteR; CQ) and (DL-LitehRorn; UCQ) via ExpTime
dr; UCQ) to 2ExpTime between (E LI; CQ) and
between (E L; CQ) and (E LH?
(E LHI?; UCQ). As an important special case, we consider the full ABox
signature. There, the complexity drops considerably, to NP, NP, and ExpTime,
respectively. The case of the full ABox signature is also interesting because it
admits constructions that are close to the case of relational databases, such as (a
suitably adapted version of) retracts. Under the full ABox signature, the
problems studied here are related to the the evaluation of (U)CQs of bounded tree
width over relational databases with integrity constraints [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        We also take a rst glimpse at OMQ languages based on DL-LiteF . This turns
out to be closely related to the evaluation of UCQs over relational databases in
the presence of key dependencies, as studied by Figueira [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. We show that
evaluating OMQs that are equivalent to an OMQ of tree width bounded by
some k is in FPT and even in PTime when k = 1, and that the meta problem
of deciding whether an OMQ belongs to this class is decidable in 3ExpTime
and NP-complete when k = 1. In this part, we assume the full ABox signature
and that queries are Boolean. When k &gt; 1, we further assume that the ontology
cannot be changed.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Pablo</given-names>
            <surname>Barcelo</surname>
          </string-name>
          , Cristina Feier, Carsten Lutz, and
          <string-name>
            <given-names>Andreas</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>When is ontologymediated querying e cient? In LICS</article-title>
          . IEEE Computer Society,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Pablo</given-names>
            <surname>Barcelo</surname>
          </string-name>
          , Georg Gottlob, and
          <string-name>
            <given-names>Andreas</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>Semantic acyclicity under constraints</article-title>
          .
          <source>In PODS</source>
          , pages
          <volume>343</volume>
          {
          <fpage>354</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          , Stanislav Kikot, Roman Kontchakov,
          <string-name>
            <surname>Vladimir</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Podolskii</surname>
            , Vladislav Ryzhikov, and
            <given-names>Michael</given-names>
          </string-name>
          <string-name>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>The complexity of ontologybased data access with OWL 2 QL and bounded treewidth queries</article-title>
          .
          <source>In PODS</source>
          , pages
          <volume>201</volume>
          {
          <fpage>216</fpage>
          . ACM,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          , Stanislav Kikot, Roman Kontchakov,
          <string-name>
            <surname>Vladimir</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Podolskii</surname>
            , and
            <given-names>Michael</given-names>
          </string-name>
          <string-name>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Ontology-mediated queries: Combined complexity and succinctness of rewritings via circuit complexity</article-title>
          .
          <source>J. ACM</source>
          ,
          <volume>65</volume>
          (
          <issue>5</issue>
          ):
          <volume>28</volume>
          :1{
          <fpage>28</fpage>
          :
          <fpage>51</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          and
          <string-name>
            <given-names>Magdalena</given-names>
            <surname>Ortiz</surname>
          </string-name>
          .
          <article-title>Ontology-mediated query answering with data-tractable description logics</article-title>
          .
          <source>In Reasoning Web</source>
          , volume
          <volume>9203</volume>
          <source>of LNCS</source>
          , pages
          <volume>218</volume>
          {
          <fpage>307</fpage>
          . Springer,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          , Magdalena Ortiz, Mantas Simkus, and
          <string-name>
            <given-names>Guohui</given-names>
            <surname>Xiao</surname>
          </string-name>
          .
          <article-title>Tractable queries for lightweight description logics</article-title>
          .
          <source>In IJCAI</source>
          , pages
          <volume>768</volume>
          {
          <fpage>774</fpage>
          . IJCAI/AAAI,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          , Balder ten Cate, Carsten Lutz, and
          <string-name>
            <given-names>Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          .
          <article-title>Ontologybased data access: A study through disjunctive datalog, CSP, and MMSNP</article-title>
          .
          <source>ACM Trans. Database Syst</source>
          .,
          <volume>39</volume>
          (
          <issue>4</issue>
          ):
          <volume>33</volume>
          :1{
          <fpage>33</fpage>
          :
          <fpage>44</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. Diego Calvanese, Giuseppe De Giacomo, Domenico Lembo, Maurizio Lenzerini, Antonella Poggi, Mariano Rodriguez-Muro, and
          <string-name>
            <given-names>Riccardo</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Ontologies and databases: The DL-Lite approach</article-title>
          .
          <source>In Reasoning Web</source>
          , pages
          <volume>255</volume>
          {
          <fpage>356</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Diego Calvanese, Giuseppe De Giacomo, Domenico Lembo, Maurizio Lenzerini, and
          <string-name>
            <given-names>Riccardo</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Data complexity of query answering in description logics</article-title>
          .
          <source>Artif</source>
          . Intell.,
          <volume>195</volume>
          :
          <fpage>335</fpage>
          {
          <fpage>360</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>Hubie</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>On the complexity of existential positive queries</article-title>
          .
          <source>ACM Trans. Comput. Log.</source>
          ,
          <volume>15</volume>
          (
          <issue>1</issue>
          ):9:
          <issue>1</issue>
          {9:
          <fpage>20</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Thomas</surname>
            <given-names>Eiter</given-names>
          </string-name>
          , Georg Gottlob, Magdalena Ortiz, and
          <string-name>
            <given-names>Mantas</given-names>
            <surname>Simkus</surname>
          </string-name>
          .
          <article-title>Query answering in the description logic Horn-SHIQ</article-title>
          .
          <source>In JELIA</source>
          , volume
          <volume>5293</volume>
          <source>of LNCS</source>
          , pages
          <volume>166</volume>
          {
          <fpage>179</fpage>
          . Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Cristina</surname>
            <given-names>Feier</given-names>
          </string-name>
          , Carsten Lutz, and
          <string-name>
            <given-names>Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          .
          <article-title>From conjunctive queries to instance queries in ontology-mediated querying</article-title>
          .
          <source>In IJCAI</source>
          , pages
          <year>1810</year>
          {
          <year>1816</year>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. Diego Figueira.
          <article-title>Semantically acyclic conjunctive queries under functional dependencies</article-title>
          .
          <source>In LICS</source>
          , pages
          <volume>847</volume>
          {
          <fpage>856</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Jo</surname>
          </string-name>
          <article-title>rg Flum and Martin Grohe</article-title>
          .
          <source>Parameterized Complexity Theory. Texts in Theoretical Computer Science. An EATCS Series</source>
          . Springer,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <given-names>Martin</given-names>
            <surname>Grohe</surname>
          </string-name>
          .
          <article-title>The complexity of homomorphism and constraint satisfaction problems seen from the other side</article-title>
          .
          <source>J. ACM</source>
          ,
          <volume>54</volume>
          (
          <issue>1</issue>
          ):1:
          <issue>1</issue>
          {1:
          <fpage>24</fpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Ullrich</surname>
            <given-names>Hustadt</given-names>
          </string-name>
          , Boris Motik, and
          <string-name>
            <given-names>Ulrike</given-names>
            <surname>Sattler</surname>
          </string-name>
          .
          <article-title>Reasoning in description logics by a reduction to disjunctive datalog</article-title>
          .
          <source>J. Autom. Reasoning</source>
          ,
          <volume>39</volume>
          (
          <issue>3</issue>
          ):
          <volume>351</volume>
          {
          <fpage>384</fpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <given-names>Adila</given-names>
            <surname>Krisnadhi</surname>
          </string-name>
          and
          <string-name>
            <given-names>Carsten</given-names>
            <surname>Lutz</surname>
          </string-name>
          .
          <article-title>Data complexity in the EL family of description logics</article-title>
          .
          <source>In LPAR</source>
          , volume
          <volume>4790</volume>
          <source>of LNCS</source>
          , pages
          <volume>333</volume>
          {
          <fpage>347</fpage>
          . Springer,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Carsten</surname>
            <given-names>Lutz</given-names>
          </string-name>
          , David Toman,
          <string-name>
            <given-names>and Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          .
          <article-title>Conjunctive query answering in the description logic EL using a relational database system</article-title>
          .
          <source>In IJCAI</source>
          , pages
          <year>2070</year>
          {
          <year>2075</year>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Frantisek</surname>
            <given-names>Simancik</given-names>
          </string-name>
          , Boris Motik, and
          <string-name>
            <given-names>Ian</given-names>
            <surname>Horrocks</surname>
          </string-name>
          .
          <article-title>Consequence-based and xedparameter tractable reasoning in description logics</article-title>
          .
          <source>Artif</source>
          . Intell.,
          <volume>209</volume>
          :
          <fpage>29</fpage>
          {
          <fpage>77</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>