<!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 Bag Semantics of Ontology-Based Data Access (Extended Abstract)?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Charalampos Nikolaou</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Egor V. Kostylev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>George Konstantinidis</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mark Kaminski</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bernardo Cuenca Grau</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ian Horrocks</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of Oxford</institution>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>? This is the extended abstract of the paper accepted for publication in the proceedings of IJCAI 2017. The full paper may be accessed at arXiv:1705.07105 [cs.AI]. Work supported by the Royal Society under a University Research Fellowship, the EPSRC projects ED3 and DBOnto, and the Research Council of Norway via the Sirius SFI.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Ontology-based data access (OBDA) is an increasingly popular approach
to enable uniform access to multiple data sources with diverging schemas. In
OBDA, an ontology provides a unifying conceptual model for the data sources
together with domain knowledge. The ontology is linked to each source by
globalas-view (GAV) mappings, which assign views over the data to ontology
predicates. Users access the data by means of queries formulated using the vocabulary
of the ontology; query answering amounts to computing the certain answers of
the query over the union of ontology and the materialisation of the views de ned
by the mappings. The formalism of choice for representing ontologies in OBDA
is the description logic DL-LiteR which underpins OWL 2 QL. DL-LiteR was
designed to ensure that queries against the ontology are rst-order rewritable;
that is, they can be reformulated as a set of relational queries over the sources.</p>
      <p>An important observation about the conventional semantics of OBDA is that
it is set-based: the materialisation of the views de ned by the mappings is
formalised as a virtual ABox consisting of a set of facts over the ontology
predicates. This treatment is, however, in disagreement with the semantics of database
views, which is based on bags (multisets) and where duplicate tuples are retained
by default. The distinction between set and bag semantics in databases is very
important in practice since it in uences the evaluation of aggregate queries that
combine various aggregation functions (e.g., Min, Max, Sum, Count, Avg) with
the grouping functionality provided in SQL by the GroupBy construct.</p>
      <p>In this paper we study a bag semantics for OBDA that is compatible with
the semantics of standard databases and can provide the foundations for the
future study of aggregate queries. We propose the ontology language DL-LitebRag
and its restriction DL-Litebcaorge , where ABoxes consist of a bag of facts. We de ne
the bag semantics of conjunctive query (CQ) answering and show that it is
compatible with the conventional set semantics. However, we show that DL-Litebcaorge
ontologies may not admit a universal model while CQ answering becomes
coNPhard in data complexity, hence losing rst-order rewritability of CQs. To regain
tractability, we study the class of rooted CQs, which captures most practical
OBDA queries, and show that it admits universal models and enjoys rst-order
rewritability for DL-Litebcaorge ontologies. Unfortunately, these properties do not
extend to DL-LitebRag where CQ answering remains coNP-hard.</p>
    </sec>
  </body>
  <back>
    <ref-list />
  </back>
</article>