<!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>Cardinality Queries over DL-Lite Ontologies (Extended abstract) ? ??</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>University of Bordeaux</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bordeaux INP</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>LaBRI</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Talence</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>France</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Inria</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>DI ENS</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>University PSL</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Paris</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>France</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>We summarize our recent work [5] on classifying the complexity of answering cardinality queries over DL-Lite ontologies. A major topic in ontology-mediated query answering (OMQA) research has been to understand the complexity of OMQA and identify tractable settings [11,6,12]. Nowadays, for the most commonly considered query language, namely, conjunctive queries (CQs), we have an almost complete picture of the complexity landscape for ontologies formulated in a wide range of di erent description logics (DLs) [2] and rule-based languages [3,7]. In particular, it has been shown that CQ answering is tractable in data complexity for ontologies expressed in the most commonly considered dialects of the DL-Lite family [9,1], which are often employed in OMQA. A crucial property of such DL-Lite dialects and other Horn DLs is that they admit a canonical model, which is a single (possibly in nite) model that, by virtue of being homomorphically embeddable into every model, is guaranteed to give the correct answers to all CQs. While CQs are a natural and well-studied class of queries, there are many other relevant forms of database queries that could be potentially be employed in OMQA. In the present work, our focus will be on counting queries, which together with other forms of aggregate queries, are widely used for data analysis, yet still not well understood in the context of OMQA. A natural way to equip CQs with counting is to count the number of distinct query matches for each answer. As the count value may di er between models, [10] advocated a form of certain answer semantics that considers lower and upper bounds on the count value across di erent models. Their work provided the rst investigation of the complexity of answering counting CQs in the presence of ontologies, revealing such queries to be much more challenging to handle than plain CQs: coNPcomplete in data complexity for the well-known DL-Litecore and DL-LitecHore dialects. A recent work by [4] re ned and generalized the complexity results from</p>
      </abstract>
      <kwd-group>
        <kwd>Ontology-mediated query answering</kwd>
        <kwd>Counting queries</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>? Partially supported by ANR project CQFD (ANR-18-CE23-0003)
?? © 2021 for this paper by its authors. Use permitted under Creative Commons</p>
      <p>License Attribution 4.0 International (CC BY 4.0).</p>
      <p>M. Bienvenu et al.</p>
      <p>Concept cardinality query</p>
      <p>Role cardinality query
DL-Litecore</p>
    </sec>
    <sec id="sec-2">
      <title>DL-LitepHos</title>
    </sec>
    <sec id="sec-3">
      <title>DL-LitecHore</title>
      <p>TC0-c
TC0-cy
TC0-c</p>
      <sec id="sec-3-1">
        <title>TC0-c j co-PM-c j coNP-c</title>
        <p>TC0-c j L-c j coNP-c j ?</p>
      </sec>
      <sec id="sec-3-2">
        <title>TC0-c j L-c j co-PM-c j coNP-c j ?</title>
        <p>
          [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] to a wider class of counting queries and identi ed a restricted scenario with
very low (TC0-complete) data complexity: rooted CQs coupled with DL-Litecore
ontologies. A similar tractability result for connected rooted CQs was proven
independently by [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], who also initiated a study of the impact of other restrictions
on query shape and developed the rst query rewriting procedure for counting
CQs. Notably, both the aforementioned TC0 result and the rewriting procedure
crucially relied upon showing that the canonical model gives the right answers
under the considered restrictions.
        </p>
        <p>
          While recent studies have improved our understanding of the complexity of
counting CQs, there nevertheless remain many unanswered questions. In this
work, we focus on Boolean atomic counting queries of the form 9z:A(z) and
9z1; z2:R(z1; z2), which we term cardinality queries as they correspond to the
natural task of determining (bounds on) the cardinality of a given concept or
role name. The data complexity of answering such basic counting queries remains
completely open for DL-Litecore ontologies, whilst for DL-LitecHore, the problem
is known to be P-hard and in coNP [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. The main results of our investigation are
displayed in Table 1. We show that when ontologies are expressed in DL-Litecore,
cardinality query answering is tractable in data complexity and enjoys the lowest
possible complexity (TC0-complete). For cardinality queries based upon a
concept atom, TC0 membership holds even for the fragment of DL-LitecHore obtained
by disallowing negative role inclusions. By contrast, for role cardinality queries,
we show that coNP-hard situations arise in DL-LitepHos, which allows only
positive concept and role inclusions. In fact, we obtain a complete data complexity
classi cation for DL-LitepHos, showing that every ontology-mediated query is
either TC0-complete, coNP-complete, or is in P and logspace-equivalent to the
complement of Perfect Matching (whose precise complexity is a
longstanding open problem). The preceding classi cation does not extend to DL-LitecHore:
we identify new sources of coNP-hardness and further exhibit L-complete cases.
We nd it intriguing that such complex behaviour arises in what appears at rst
glance to be a simple OMQA setting. Moreover, in all of the tractable cases
we identify, the canonical model may not yield the minimum cardinality, and
query answering involves solving non-trivial optimization problems. This led us
to devise an entirely new approach based upon exploring a space of strategies
to nd the optimal way of merging witnesses for existential axioms.
        </p>
        <p>Cardinality Queries over DL-Lite Ontologies (Extended abstract)</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Artale</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>The DL-Lite family and relations</article-title>
          .
          <source>Journal of Arti cial Intelligence Research (JAIR) 36</source>
          ,
          <issue>1</issue>
          {
          <fpage>69</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>An Introduction to Description Logic</article-title>
          . Cambridge University Press (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leclere</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Salvat</surname>
          </string-name>
          , E.:
          <article-title>On rules with existential variables: Walking the decidability line</article-title>
          .
          <source>Journal of Arti cial Intelligence (JAR) 175(9-10)</source>
          ,
          <volume>1620</volume>
          {
          <fpage>1654</fpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maniere</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thomazo</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Answering counting queries over DLLite ontologies</article-title>
          .
          <source>In: Proc. of the 29th International Joint Conference on Arti cial Intelligence (IJCAI)</source>
          . pp.
          <volume>1608</volume>
          {
          <issue>1614</issue>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maniere</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thomazo</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Cardinality queries over DL-Lite ontologies</article-title>
          .
          <source>In: Proc. of the 30th International Joint Conference on Arti cial Intelligence (IJCAI)</source>
          . pp.
          <year>1801</year>
          {
          <year>1807</year>
          (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Ontology-mediated query answering with data-tractable description logics</article-title>
          .
          <source>In: Tutorial Lectures of the 11th Reasoning Web International Summer School</source>
          . pp.
          <volume>218</volume>
          {
          <issue>307</issue>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Cal</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lukasiewicz</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>A general datalog-based framework for tractable query answering over ontologies</article-title>
          .
          <source>Journal of Web Semantics (JWS) 14</source>
          ,
          <fpage>57</fpage>
          {
          <fpage>83</fpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Corman</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lanti</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Razniewski</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Counting query answers over a DL-Lite knowledge base</article-title>
          .
          <source>In: Proc. of the 29th International Joint Conference on Arti cial Intelligence (IJCAI)</source>
          . pp.
          <volume>1658</volume>
          {
          <issue>1666</issue>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giacomo</surname>
            ,
            <given-names>G.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable reasoning and e cient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>Journal of Automated Reasoning (JAR) 39(3)</source>
          ,
          <volume>385</volume>
          {
          <fpage>429</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Kostylev</surname>
            ,
            <given-names>E.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reutter</surname>
            ,
            <given-names>J.L.</given-names>
          </string-name>
          :
          <article-title>Complexity of answering counting aggregate queries over DL-Lite</article-title>
          .
          <source>Journal of Web Semantics (JWS) 33</source>
          ,
          <fpage>94</fpage>
          {
          <fpage>111</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Poggi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>Linking data to ontologies</article-title>
          .
          <source>Journal of Data Semantics</source>
          <volume>10</volume>
          ,
          <issue>133</issue>
          {
          <fpage>173</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Xiao</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poggi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Ontology-based data access: A survey</article-title>
          .
          <source>In: Proc. of the 27th International Joint Conference on Arti cial Intelligence (IJCAI)</source>
          . pp.
          <volume>5511</volume>
          {
          <issue>5519</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>