<!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>Answering Counting Queries over DL-Lite Ontologies (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Meghyn Bienvenu</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Quentin Maniere</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michael Thomazo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Inria, DI ENS, ENS, CNRS, University PSL</institution>
          ,
          <addr-line>Paris</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Bordeaux</institution>
          ,
          <addr-line>CNRS, Bordeaux INP, LaBRI, Talence</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This extended abstract brie y summarizes our recent work [1] on answering counting queries over DL-Lite knowledge bases. Our contributions include the de nition of a more general form of counting conjunctive query (CCQ), a detailed study of the data and combined complexity of CCQ answering over DL-Litecore and DL-LiteR knowledge bases under various restrictions on the TBox and query, and the precise data complexity of identifying the best certain interval.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>M. Bienvenu et al.</title>
      <sec id="sec-1-1">
        <title>Data</title>
      </sec>
      <sec id="sec-1-2">
        <title>Combined</title>
        <sec id="sec-1-2-1">
          <title>Rooted Exh. rooted</title>
        </sec>
        <sec id="sec-1-2-2">
          <title>Rooted</title>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>DL-Litecore coNP-c</title>
      <p>DL-LiteR
coNP-c
TC0-c
coNP-c
2p-h
PP-h</p>
      <p>/ coNEXP
coNEXP-h / coN2EXP
coNEXP-c (f.-d. TBox)</p>
      <sec id="sec-2-1">
        <title>Exh. rooted</title>
        <p>
          PP-c
2p-h
PP-h
/ coNEXP
the aggregation are required to match to data constants. However, as discussed in
[
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], this semantics can also give unintuitive results by ignoring ways of mapping
aggregate variables to anonymous elements inferred due the ontology axioms.
For instance, if no children of alex are listed in the data, then a query that asks
to return the number of children will yield 0 under epistemic semantics, even if
it can be inferred (e.g. due to a family tax bene t) that there must be at least 3
children. This led Kostylev and Reutter [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] to de ne an alternative semantics for
two kinds of counting queries (inspired by the COUNT and COUNT DISTINCT
in SQL) which adopts a form of certain answer semantics but considers lower and
upper bounds on the count value across di erent models. For the two considered
logics (DL-Litecore and DL-LiteR), only the lower bounds on the count value
are non-trivial, and a complexity analysis shows that they are challenging to
identify: coNP-data complexity for both logics, and 2p-hard (resp.
coNEXPhard) in combined complexity for DL-Litecore (resp. DL-LiteR). Several questions
were left unanswered by their work, including the di culty of recognizing the
optimal lower bound and the impact of allowing multiple aggregation variables.
        </p>
        <p>
          In the present work, which is reported in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], we return to the issue of
handling counting queries in OMQA and make several important contributions. We
rst introduce a new notion of counting CQ that generalizes the two forms of
queries from [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] and allows arbitrarily many counting variables. We show that
existing complexity results for DL-Litecore and DL-LiteR KBs continue to hold
for our more general notion of counting CQ, and we further provide an improved
coNEXP upper bound for the relevant case of nite-depth TBoxes. We also
consider the impact of restricting the query structure, focusing on the class of rooted
queries, in which every query variable must be connected to an answer variable
or individual in the query graph. A recent result, obtained as part of a study
of bag semantics for OMQA [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], identi ed a case in which rootedness leads to
tractable data complexity for counting queries. This motivated us to perform
a thorough investigation of rooted counting queries, which yielded several
improvements upon existing complexity bounds (see Table 1), including a tight
PP-completeness result for the natural subclass of exhaustive rooted counting
CQs, in which every non-answer variable is a counting variable. As our nal
contribution, we investigate the problem of recognizing the best certain interval
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Answering Counting Queries over DL-Lite Ontologies (Extended Abstract) 3</title>
      <p>
        and show it to be DP-complete in data complexity. Our results close some
questions that were left open by the work of Kostylev and Reutter [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and pave the
way for further study of counting and aggregate queries in the OMQA setting.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <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 DL-Lite ontologies</article-title>
          .
          <source>In: Proceedings of the 29th International Joint Conference on Arti cial Intelligence (IJCAI)</source>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <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="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</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>Regular path queries in lightweight description logics: Complexity and algorithms</article-title>
          .
          <source>Journal of Arti cial Intelligence Research (JAIR) 53</source>
          ,
          <fpage>315</fpage>
          {
          <fpage>374</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <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>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="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kharlamov</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nutt</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thorne</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Aggregate queries over ontologies</article-title>
          .
          <source>In: Proceedings of the 2nd International Workshop on Ontologies and Information Systems for the Semantic Web (ONISW)</source>
          . pp.
          <volume>97</volume>
          {
          <issue>104</issue>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Gutierrez-Basulto</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <article-title>Iban~ez-Garc a</article-title>
          ,
          <string-name>
            <given-names>Y.A.</given-names>
            ,
            <surname>Kontchakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Kostylev</surname>
          </string-name>
          ,
          <string-name>
            <surname>E.V.</surname>
          </string-name>
          :
          <article-title>Queries with negation and inequalities over lightweight ontologies</article-title>
          .
          <source>Journal of Web Semantics (JWS) 35</source>
          ,
          <fpage>184</fpage>
          {
          <fpage>202</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <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(1)</source>
          ,
          <volume>94</volume>
          {
          <fpage>111</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Nikolaou</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kostylev</surname>
            ,
            <given-names>E.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Konstantinidis</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kaminski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grau</surname>
            ,
            <given-names>B.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Foundations of ontology-based data access under bag semantics</article-title>
          .
          <source>Arti cial Intelligence (AIJ) 274</source>
          ,
          <fpage>91</fpage>
          {
          <fpage>132</fpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <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="ref10">
        <mixed-citation>
          10.
          <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: Proceedings 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>