<!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>Bagging the DL-Lite Family Further</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Gianluca Cima</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Charalampos Nikolaou</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Egor V. Kostylev</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mark Kaminski</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bernardo Cuenca Grau</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ian Horrocks</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Sapienza Universita di Roma</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Oxford</institution>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Ontology-based data access (OBDA) is a popular approach for integrating and querying multiple data sources by means of an ontology, which is usually expressed in a description logic (DL) of DL-Lite family. The conventional semantics of OBDA and DLs is set-based|that is, duplicates are disregarded. This disagrees with the standard database bag (multiset) semantics, which is especially important for the correct evaluation of aggregate queries. In this article, we study two variants of the bag semantics for query answering over DL-LiteF , extending basic DL-Litecore with functional roles. For our rst semantics, which follows the semantics of primary keys in SQL, conjunctive query (CQ) answering is coNP-hard in data complexity in general, but it is in TC0 for the restricted class of rooted CQs; such CQs are also rewritable to the bag relational algebra. For our second semantics, the results are the same except that TC0 membership and rewritability hold only for the restricted class of ontologies identi ed by a new notion of functional weak acyclicity.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Ontology-based data access (OBDA) is an increasingly popular approach for
enabling uniform access to multiple data sources with diverging schemas [
        <xref ref-type="bibr" rid="ref15 ref22 ref5">5, 15, 22</xref>
        ].
In OBDA, an ontology provides a unifying conceptual model for the data sources,
which is linked to each source by mappings assigning 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 to 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 usually the lightweight description logic DL-LiteR [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], which
underpins OWL 2 QL [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. DL-LiteR was designed to ensure that conjunctive
queries (CQs) against the ontology are rst-order rewritable|that is, they can
be reformulated as relational database queries over the sources [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        There is, however, an important mismatch between standard database query
languages, such as SQL, and OBDA: the former work under bag semantics, but
the latter is usually set-based. This becomes apparent when evaluating queries
with aggregate functions, where the multiplicities of tuples are important [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
Motivated by the need to support database-style aggregate queries in OBDA
systems and inspired by the semantics of aggregates over DL-LiteR of [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], a
bag version of DL-LiteR was recently proposed by Nikolaou et al. [
        <xref ref-type="bibr" rid="ref20 ref21">20, 21</xref>
        ], where
duplicates in the views de ned by the mappings are retained. The most
common reasoning tasks of ontology satis ability and query answering in this new
DL, called DL-LitebR, generalise the counterpart problems de ned under the
traditional set semantics. This generalisation does not come for free though as it
raises the data complexity of query answering from AC0 to coNP-hard, and
this holds already for the core fragment DL-Litecbore of DL-LitebR. To regain
tractability, Nikolaou et al. [
        <xref ref-type="bibr" rid="ref20 ref21">20, 21</xref>
        ] studied restrictions on CQs and showed that
query answering for the class of so-called rooted CQs [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] becomes again tractable
in data complexity. This result was obtained by showing that rooted CQs are
rewritable to BCALC, a logical counterpart of the relational algebra for bags
BALG1 [
        <xref ref-type="bibr" rid="ref10 ref17">10, 17</xref>
        ], whose evaluation problem is in TC0 in data complexity [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].
      </p>
      <p>
        Building on the work of Nikolaou et al. [
        <xref ref-type="bibr" rid="ref20 ref21">20, 21</xref>
        ], in this paper we consider the
logic DL-LitebF |that is, the extension of DL-Litecbore with functionality axioms.
Such axioms comprise a desirable feature in description logics and OBDA since
they are able to deliver various modelling scenarios encountered in information
systems that require the expression of key and identi cation constraints [
        <xref ref-type="bibr" rid="ref18 ref23 ref7 ref8">7, 8, 18,
23</xref>
        ]. We propose two alternative semantics for DL-LitebF , both of which generalise
the standard set-based semantics, and which di er from each other in the way
they handle functionality axioms. Our rst semantics, called SQL semantics,
interprets functionality axioms following the semantics of primary keys in SQL;
in particular, for each rst component in the interpretation of a functional role
there exists exactly one second component, and, moreover, the multiplicity of
this relation between the components is exactly one. By contrast, our second
semantics, called multiplicity-respectful (MR) semantics, enforces only the rst
requirement, while the multiplicity may be arbitrary.
      </p>
      <p>We study how the two semantics relate to the set-based semantics of DL-LiteF
and to each other in terms of the standard reasoning tasks of satis ability
checking and query answering. On the one hand, we show that under the MR semantics
both problems generalise the corresponding ones under set semantics. Under the
SQL semantics, on the other hand, the notion of satis ability becomes stronger
than under set semantics, while query answering for satis able ontologies again
generalises set semantics. We further investigate whether the class of rooted CQs
is rewritable to BCALC under our two semantics. For the SQL semantics, we
obtain positive results, which imply that query answering is feasible in TC0. For
the MR semantics, however, we obtain negative results (LogSpace-hardness in
data complexity) even for the class of instance queries, which are the simplest
queries encountered in OBDA. To address this, we identify a class of TBoxes,
called functionally weakly acyclic, for which rooted CQs become rewritable to
BCALC, and thus query answering is feasible in TC0.</p>
      <p>
        The rest of the paper is organised as follows. Section 2 introduces the
relevant background. Section 3 de nes the SQL and MR semantics as extensions
of the bag semantics proposed in [
        <xref ref-type="bibr" rid="ref20 ref21">20, 21</xref>
        ] accounting for functionality axioms,
and relates the new semantics to the set semantics and to each other. Section 4
then studies the query answering problem for the bag semantics, establishing
the rewritability results. Last, Section 5 concludes the paper.
      </p>
      <p>Acknowledgements Research supported by the SIRIUS Centre for Scalable
Data Access and the EPSRC projects DBOnto, MaSI3, and ED3.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>
        We start by de ning DL-LiteF ontologies as well as the notions of query
answering and rewriting over such ontologies, all over the usual set semantics [
        <xref ref-type="bibr" rid="ref2 ref6">2, 6</xref>
        ],
after which we summarise the bag semantics of queries in databases [
        <xref ref-type="bibr" rid="ref10 ref17 ref21">10, 17, 21</xref>
        ].
Syntax of DL-LiteF . We x a vocabulary consisting of countably in nite and
pairwise disjoint sets of individuals I (i.e., constants), atomic concepts C (i.e.,
unary predicates) and atomic roles R (i.e., binary predicates). A role is an
atomic role P 2 R or its inverse P . A concept is an atomic concept in C or
an expression 9R with R a role. Expressions C1 v C2 and Disj(C1; C2) with C1,
C2 concepts are inclusion and disjointness axioms, respectively. An expression
(funct R) with R a role is a functionality axiom. A DL-LiteF TBox is a nite set
of inclusion, disjointness, and functionality axioms. A concept assertion is A(a)
with a 2 I and A 2 C, and a role assertion is P (a; b) with a; b 2 I and P 2 R. A
(set ) ABox is a nite set of concept and role assertions. A DL-LiteF ontology is
a pair (T ; A) with T a DL-LiteF TBox and A an ABox. A DL-Litecore ontology
is the same except that functionality axioms are disallowed.
      </p>
      <p>Semantics of DL-LiteF . A (set ) interpretation I is a pair ( I ; I ), where the
domain I is a non-empty set, and the interpretation function I maps each
a 2 I to aI 2 I such that aI 6= bI for all a; b 2 I (i.e., as usual for DL-Lite
we adopt the UNA|that is, the unique name assumption), each A 2 C to
AI I , and each P 2 R to P I I I . Interpretation function I extends
to non-atomic concepts and roles as follows:
(P )I = f(u; u0) j (u0; u) 2 P I g; (9R)I = fu 2
I j 9u0 2</p>
      <p>
        I : (u; u0) 2 RI g:
An interpretation I satis es a DL-LiteF TBox T if C1I C2I for each inclusion
axiom C1 v C2 in T , C1I \C2I = ; for each Disj(C1; C2) in T , and v1 = v2 for each
(u; v1), (u; v2) in RI with (funct R) in T . Interpretation I satis es an ABox A if
aI 2 AI for all A(a) 2 A and (aI ; bI ) 2 P I for all P (a; b) 2 A. An interpretation
I is a model of an ontology (T ; A) if it satis es T and A. An ontology is satis able
if it has a model. Checking satis ability of a DL-LiteF ontology is
NLogSpacecomplete in general and in AC0 if the TBox is xed [
        <xref ref-type="bibr" rid="ref2 ref6">2, 6</xref>
        ].
      </p>
      <p>
        Queries over DL-LiteF . A conjunctive query (CQ ) q(x) with answer variables
x is a formula 9y: (x; y), where x, y are (possibly empty) repetition-free tuples
of variables from a set X disjoint from I, C and R, and (x; y) is a conjunction
of atoms of the form A(t), P (t1; t2) or (z = t), where A 2 C, P 2 R, z 2 x [ y,
and t; t1; t2 2 x [ y [ I. If x is inessential, then we write q instead of q(x).
The equality atoms (z = t) in (x; y) yield an equivalence relation on terms
x [ y [ I, and we write t~ for the equivalence class of a term t. The Gaifman graph
of q(x) has a node t~ for each t 2 x [ y [ I in , and an edge ft~1; t~2g for each atom
in over t1 and t2. We assume that all CQs are safe|that is, for each z 2 x [ y,
z~ contains a term mentioned in an atom of (x; y) that is not equality. A CQ
q(x) is rooted if each connected component of its Gaifman graph has a node with
a term in x [ I [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. A union of CQs (UCQ ) is a disjunction of CQs with the
same answer variables. The certain answers qK to a (U)CQ q(x) over a DL-LiteF
ontology K are the set of all tuples a of individuals such that q(a) holds in every
model of K. Checking whether a tuple of individuals is in the certain answers to
a (U)CQ over a DL-LiteF ontology is an NP-complete problem with AC0 data
complexity (i.e., when the CQ and TBox are xed) [
        <xref ref-type="bibr" rid="ref2 ref6">2, 6</xref>
        ]. The latter follows from
the rewritability of the class of UCQs to itself over DL-LiteF |that is, from the
fact that for every UCQ q and DL-LiteF TBox T we can nd a UCQ q1 such
that q(T ;A) = q1(;;A) for every ABox A [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        Bags. A bag over a set M is a function : M ! N01, where N01 is the set N0
of non-negative integers extended with the (positive) in nity 1. The value (c)
is the multiplicity of element c in . A bag is nite if there are nitely many
c 2 M with (c) &gt; 0 and there is no c with (c) = 1. The empty bag ; over M
is the bag such that ;(c) = 0 for each c 2 M . A bag 1 over M is a subbag of a
bag 2 over M , in symbols 1 2, if 1(c) 2(c) for each c 2 M . Often we
will use an alternative syntax for bags: for instance, we will write fj c : 5; d : 3 jg
for the bag that assigns 5 to c, 3 to d, and 0 to all other elements. We use the
following common operators on bags [
        <xref ref-type="bibr" rid="ref10 ref17">10, 17</xref>
        ]: the intersection \, maximal union
[, arithmetic union ], and di erence are the binary operators de ned, for
bags 1 and 2 over a set M , and for every c 2 M , as
( 1 \
( 1 ]
2)(c) = minf 1(c); 2(c)g; ( 1 [
      </p>
      <p>
        2)(c) = maxf 1(c); 2(c)g;
2)(c) =
1(c) +
2(c);
( 1
2)(c) = maxf0; 1(c)
2(c)g:
Note that bag di erence is well-de ned only if 2(c) is a nite number for each
c 2 M . The unary duplicate elimination operator " is de ned for a bag over
M and for each c 2 M as ("( ))(c) = 1 if (c) &gt; 0 and ("( ))(c) = 0 otherwise.
Queries over Bags. Following [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ], a BCALC query (x) with (a tuple of)
answer variables x is any of the following, for , 1, and 2 BCALC queries:
{ S(t), where S 2 C [ R and t is a tuple over x [ I mentioning all x;
{ 1(x1) ^ 2(x2), where x = x1 [ x2;
{ (x0) ^ (x = t), where x 2 x0, t 2 X [ I, and x = x0 [ (ftg n I);
{ 9y: (x; y), where y is a tuple of distinct variables from X that are not in x;
{ 1(x) op 2(x), where op 2 f_; _: ; ng; or
{ (x).
      </p>
      <p>In particular, all UCQs are syntactically BCALC queries.</p>
      <p>BCALC queries are evaluated over bag database instances, which are, in the
context of this paper, bag ABoxes|that is, nite bags over the set of concept
and role assertions. The bag answers A to a BCALC query (x) over a bag
ABox A is the nite bag over Ijxj de ned inductively by the following equations,
for every tuple a over I with jaj = jxj, where : x [ I ! I is the function such
that (x) = a and (a) = a for all a 2 I:
{ A(a) = A(S( (t))), if (x) = S(t);
{ A(a) = 1A( (x1)) 2A( (x2)), if (x) = 1(x1) ^ 2(x2);
{ A(a) = A( (x0)), if (x) = (x0) ^ (x = t) and (x) = (t);
{ A(a) = 0, if (x) = (x0) ^ (x = t) and (x) 6= (t);
{ A(a) = P 0: y!I A(a; 0(y)), if (x) = 9y: (x; y);
{ A(a) = ( 1A op 2A)(a), if (x) = 1(x) op0 2(x), where op is [, ], or ,
and op0 is _, _: , or n, respectively;
{ A(a) = "( A) (a), if (x) = (x).</p>
      <p>
        As shown in [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ], BCALC is a logical counterpart of the bag relational algebra
BALG1 of [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], with the same expressive power. Evaluation of a xed BALG1
(and hence BCALC) query is in TC0 [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] (i.e., between AC0 and LogSpace).
3
      </p>
      <sec id="sec-2-1">
        <title>DL-LiteF under Bag Semantics</title>
        <p>
          In this section we introduce the bag version DL-LitebF of the ontology language
DL-LiteF with two semantics and study their properties and relationships. Both
semantics extend the bag semantics of DL-Litecbore studied in [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ] but di er in
their interpretation of functionality axioms.
        </p>
        <sec id="sec-2-1-1">
          <title>Syntax and Semantics of DL-LitebF</title>
          <p>Syntactically, DL-LitebF is the same as DL-LiteF except that assertions in ABoxes
may have arbitrary nite multiplicities|that is, bag ABoxes are considered
instead of set ABoxes. Note that syntactically DL-LitebF is a conservative extension
of DL-LiteF , since each set ABox can be seen as a bag ABox with assertion
multiplicities 0 and 1.</p>
          <p>De nition 1. A DL-LitebF ontology is a pair (T ; A) of a DL-LiteF TBox T and
a bag ABox A. A DL-Litecbore ontology is the same except that T is DL-Litecore.</p>
          <p>The semantics of DL-LitebF ontologies is based on bag interpretations, which
are the same as set interpretations except that concepts and roles are interpreted
as bags rather than sets. Note that the extension of the interpretation function
to non-atomic concepts and roles is de ned in a way that respects the
multiplicities: for example, the concept 9P for an atomic role P is interpreted by a bag
interpretation I as the bag projection of P I to its rst component, where each
occurrence of a pair (u; v) in P I contributes separately to the multiplicity of u
in (9P )I .</p>
          <p>De nition 2. A bag interpretation I is a pair ( I ; I ) where the domain I
is a non-empty set, and the interpretation function I maps each a 2 I to an
element aI 2 I such that aI 6= bI for all a; b 2 I, each A 2 C to a bag AI
over I , and each P 2 R to a bag P I over I I . Interpretation function
I extends to non-atomic concepts and roles as follows, for all P 2 R, R a role,
and u; u0 2 I :
(P )I (u; u0) = P I (u0; u)
and
(9R)I (u) = X</p>
          <p>A bag interpretation I is nite if so are</p>
          <p>I and SI for each S 2 C [ R.</p>
          <p>Note that, same as in the set case, we adopt the UNA by requiring di erent
individuals be interpreted by di erent domain elements.</p>
          <p>
            We are now ready to present our two semantics of DL-LitebF . Both semantics
extend the semantics of DL-Litecbore considered in [
            <xref ref-type="bibr" rid="ref21">21</xref>
            ], but handle the functional
axioms di erently. Our rst SQL semantics follows the semantics of primary keys
in SQL: if R is a functional role then for every domain element u of a model there
exists at most one element u0 related to u by R; moreover, the multiplicity of the
tuple (u; u0) in R cannot be more than one. Our second MR semantics allows
more freedom for functional roles: same as before, only one u0 may be related to
u by a functional role R, but the multiplicity of (u; u0) may be arbitrary.
De nition 3. A bag interpretation I satis es an inclusion axiom C1 v C2 if
C1I C2I . It satis es a disjointness axiom Disj(C1; C2) if C1I \ C2I = ;. It
satis es a functionality axiom (funct R) under SQL semantics (or SQL-satis es,
for short) if u0 = u00 and RI (u; u0) = RI (u; u00) = 1 for every u, u0, and u00
in I such that RI (u; u0) &gt; 0 and RI (u; u00) &gt; 0; it satis es (funct R) under
MR semantics (or MR-satis es) if the same holds except that the restriction
RI (u; u0) = RI (u; u00) = 1 is not imposed.
          </p>
          <p>For X being SQL or MR, a bag interpretation I X-satis es a DL-LiteF
TBox T , written I j=X T , if it (X-)satis es every axiom in T . A bag
interpretation I = ( I ; I ) satis es a bag ABox A, written I j= A, if A(A(a)) AI (aI )
and A(P (a; b)) P I (aI ; bI ) for each concept assertion A(a) and role assertion
P (a; b), respectively. A bag interpretation I is an X-model of a DL-LitebF
ontology (T ; A), written I j=X (T ; A), if I j=X T and I j= A. A DL-LitebF ontology
is X-satis able if it has an X-model.</p>
          <p>Since MR-satisfaction is a relaxation of SQL-satisfaction, every SQL-model
of a DL-LitebF ontology is also an MR-model of this ontology. However, as
illustrated by the following example, the opposite does not hold.</p>
          <p>Example 1. Consider an online store that employs atomic roles hasItem
and placedBy for recording the items ordered by customers in a
purchase. Then, a sample DL-LitebF ontology recording an order is
Kex = (Tex; Aex) with TBox Tex = f9hasItem v 9placedBy; (funct placedBy)g
and ABox Aex = fj hasItem(o; i1) : 1; hasItem(o; i2) : 1; placedBy(o; c) : 1 jg. Let
Iex be the bag interpretation interpreting individuals by themselves and roles as
hasItemIex = fj (o; i1) : 1; (o; i2) : 1 jg, placedByIex = fj (o; c) : 2 jg. It is immediate
to see that Iex is an MR-model of Kex but not a SQL-model.</p>
          <p>To conclude this section, we note that each semantics has its advantages and
drawbacks. Indeed, on the one hand, SQL semantics is compatible with primary
keys in SQL, so a large fragment of DL-LitebF under this semantics can be easily
simulated by a SQL engine. On the other hand, one can show that entailment of
axioms under set and bag semantics coincides only for the case of MR models;
this means that the adoption of MR semantics does not a ect the standard TBox
reasoning services implemented in ontology development tools. So neither of the
two semantics is clearly preferable to the other.</p>
        </sec>
        <sec id="sec-2-1-2">
          <title>Queries over DL-LitebF</title>
          <p>
            We next de ne the answers qI to a CQ q(x) over a bag interpretation I as
the bag of tuples of individuals such that each valid embedding of the atoms
in q into I contributes separately to the multiplicity of the tuple (x) in qI ,
and where the contribution of each speci c is the product of the multiplicities
of the images of the query atoms under in I. This may be seen as usual CQ
answering under bag semantics over relational databases when the interpretation
is seen as a bag database instance [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ]. In fact, it can be easily observed that q
as a BCALC query evaluated over this bag database instance gives exactly qI .
De nition 4. Let q(x) = 9y: (x; y) be a CQ and I = ( I ; I ) be a bag
interpretation. The bag answers qI to q over I are the bag over tuples of individuals
from I of size jxj such that, for every such tuple a,
qI (a)
=
          </p>
          <p>X</p>
          <p>Y
2</p>
          <p>S(t) in (x;y)</p>
          <p>SI ( (t));
where is the set of all valuations : x [ y [ I ! I such that (x) = aI ,
(a) = aI for each a 2 I, and (z) = (t) for each z = t in (x; y).</p>
          <p>
            Note that conjunction (x; y) in a CQ may contain repeated atoms, and
hence can be seen as a bag of atoms; while repeated atoms are redundant in the
set case, they are essential in the bag setting [
            <xref ref-type="bibr" rid="ref12 ref9">9, 12</xref>
            ], and thus in the de nition of
qI (a) each occurrence of a query atom S(t) is treated separately in the product.
          </p>
          <p>
            The following de nition of certain answers, which captures open-world query
answering [
            <xref ref-type="bibr" rid="ref14">14</xref>
            ], is a natural extension of certain answers for DL-LiteF to bags.
For DL-Litecbore, this de nition coincides with the one in [
            <xref ref-type="bibr" rid="ref21">21</xref>
            ] for both semantics.
De nition 5. For X being SQL or MR, the X-bag certain answers qXK to a
CQ q over a DL-LitebF ontology K are the bag TI j=X K qI .
          </p>
          <p>Note that in this de nition we assume that the intersection of zero bags
(which is relevant when K is not X-satis able) assigns 1 to all tuples over I.</p>
          <p>The (data complexity version of the) decision problem corresponding to
computing the X-bag certain answers to a CQ q over an ontology with a DL-LiteF
TBox T , for X being SQL or MR, is de ned as follows, assuming that all
numbers in the input are represented in unary.</p>
          <p>BagCertX [q; T ]
Input: ABox A, tuple a of individuals from I, and k 2 N01.</p>
          <p>Question: Is qX(T ;A)(a) k?</p>
          <p>Besides the complexity of query answering, an important related property of
any description logic is query rewritability: since TBoxes are much more stable
than ABoxes in practice, it is desirable to be able to rewrite a query and a TBox
into another query so that the answers to the original query over each satis able
ontology with this TBox are the same as the answers to the rewriting over the</p>
          <p>ABox alone. The rewriting may be in a richer query language than the language
of the original query, provided we have an e cient query engine for the target
language; it is important, however, that the rewriting does not depend on the
ABox. In our setting, the source language is CQs and the target language is
BCALC, which can be easily translated to SQL.</p>
          <p>De nition 6. For X being SQL or MR, a BCALC query is an X-rewriting
of a CQ q with respect to a DL-LiteF TBox T if qX(T ;A) = A for every bag ABox
A with (T ; A) X-satis able. A class Q of CQs is X-rewritable to a class Q0 of
BCALC queries over a sublanguage L of DL-LiteF if, for every CQ in Q and
TBox in L, there is an X-rewriting of the CQ with respect to the TBox in Q0.</p>
          <p>
            Since evaluation of xed BCALC queries is in TC0 [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ], rewritability to
BCALC implies TC0 data complexity of query answering, provided rewritings
are e ectively constructible. BagCertX [q; T ] is coNP-hard even for DL-Litecbore
ontologies (for both X) [
            <xref ref-type="bibr" rid="ref21">21</xref>
            ], which precludes e cient query answering and
BCALC rewritability (under the usual complexity-theoretic assumptions).
However, rewritability and TC0 data complexity of query answering are regained for
the class of rooted CQs, which are common in practice. The main goal of this
paper is to understand to what extent these positive results transfer to DL-LitebF .
          </p>
          <p>We next establish some basic properties of the proposed bag semantics and
relate them to the standard set semantics. The following theorem states that
satis ability and query answering under the set semantics and MR semantics
are essentially equivalent when multiplicities are ignored, while SQL semantics
is in a sense stronger as only one direction of the statements holds.
Theorem 1. The following statements hold for every DL-LiteF TBox T and
every bag ABox A (recall that " is the duplicate elimination operator):
1. if (T ; A) is SQL-satis able then (T ; "(A)) is satis able; and
2. for every tuple a over I, if a 2 q(T ;"(A)) then qS(TQ;LA)(a) 1, and the converse
holds whenever (T ; A) is SQL-satis able.</p>
          <p>The same holds when MR semantics is considered instead of SQL; moreover, in
this case the converses of both statements hold unconditionally.</p>
          <p>In fact, the converse direction of statement 1 does not hold for SQL semantics;
indeed, the DL-LitebF ontology Kex of Example 1 is not SQL-satis able but
(Tex; "(Aex)) is satis able.</p>
          <p>Statement 1 for MR semantics implies that we can check MR-satis ability
of DL-LitebF ontologies using standard techniques for DL-LiteF under the set
semantics; in particular, we can do it in AC0 for xed TBoxes. The following
proposition says that for SQL semantics the problem is not much more di cult.
Proposition 1. The problem of checking whether a DL-LitebF ontology is
SQLsatis able is in TC0 when the TBox is xed.</p>
          <p>Finally, note that, since every SQL-model of a DL-LitebF ontology is also its
MR-model, qMKR qSKQL for every CQ q and DL-LitebF ontology K; it is not
di cult to see that the inclusion may be strict even if K is SQL-satis able.</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>Rewriting and Query Answering in DL-Liteb</title>
        <p>
          F
We next study rewritability of rooted CQs to BCALC over DL-LitebF under
our two semantics (recall that the class of all CQs are not rewritable even over
DL-Litecbore [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ]). We rst show that for SQL semantics and satis able ontologies
we can apply the same rewriting as for DL-Litecbore [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ], which implies TC0
data complexity of query answering. However, MR semantics is more complex,
because, as we show, even simple rooted CQs (in particular, instance queries)
have LogSpace-hard query answering, which precludes rewritability (assuming
TC0 ( LogSpace). To overcome this, we introduce a new acyclicity condition
on TBoxes, for which we show that rewritability is regained.
4.1
        </p>
        <p>SQL Semantics
The key ingredient for rewritability and tractability of query answering in many
description logics is the existence of a universal model.</p>
        <p>De nition 7. For X being SQL or MR, an X-model I of a DL-LitebF ontology
K is X-universal for a class of CQs Q if qXK = qI for every q 2 Q.</p>
        <p>
          In the set case, it is well-known that if the ontology is satis able, then the
socalled canonical interpretation, which can be constructed by the chase procedure,
is always a universal model for all CQs [
          <xref ref-type="bibr" rid="ref2 ref6">2, 6</xref>
          ]. Nikolaou et al. generalised this
idea to DL-Litecbore and rooted CQs [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ], and it turns out that their canonical
interpretation is a universal model not only for DL-Litecbore but also for DL-LitebF
(under SQL semantics).
        </p>
        <p>Proposition 2. Every SQL-satis able DL-LitebF ontology has a SQL-universal
model for rooted CQs.</p>
        <p>
          Having this result at hand, we can reuse the rewriting of rooted CQs over
DL-Litecbore introduced in [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ] for the SQL semantics of DL-LitebF .
Corollary 1. Rooted CQs are SQL-rewritable to BCALC over DL-LitebF .
        </p>
        <p>
          Since the proof of rewritability in [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ] is constructive, SQL-satis ability is in
AC0, and BCALC evaluation is in TC0, rooted CQ answering is also in TC0.
Corollary 2. Problem BagCertSQL[q; T ] is in TC0 for every rooted CQ q and
DL-LiteF TBox T .
4.2
        </p>
        <p>MR Semantics
Since evaluation of BCALC queries is in TC0, the following theorem says that
even very simple rooted CQs (in particular, instance queries) are unlikely to be
MR-rewritable to BCALC.</p>
        <p>Theorem 2. There is a CQ of the form A(a) with A 2 C and a 2 I, and a
DL-LiteF TBox T such that problem BagCertMR[A(a); T ] is LogSpace-hard.</p>
        <p>Next we introduce a restriction on TBoxes which guarantees MR-rewritability.
De nition 8. The functional dependency graph GT of a DL-LiteF T is the
directed graph that has all the concepts appearing in T as nodes, a usual edge
(C1; C2) for each C1 v C2 in T , and a special edge (C1; 9R ) for each C1 v 9R
with (funct R) in T , where, for P 2 R, R is P if R is P . TBox T is
functionally weakly acyclic if GT has no cycle with a special edge. The f-depth dT
of such a TBox T is the maximum number of special edges along a path in GT .</p>
        <p>
          We will need the following technical notions. As in [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ], the concept closure
cclT [u; I] of an element u 2 I in a bag interpretation I = ( I ; I ) over a TBox
T is the bag of concepts such that, for any concept C,
        </p>
        <p>cclT [u; I](C) = maxfC0I (u) j T j= C0 v Cg:
The union I [ J of two bag interpretations I = ( I ; I ) and J = ( J ; J )
such that aI = aJ for all a 2 I is the bag interpretation ( I [ J ; I[J ) with
aI[J = aI for all a 2 I and SI[J = SI [SJ for all S 2 C[R. Given a bag ABox
A, we denote by IA the standard interpretation of A that is de ned as follows:</p>
        <p>IA = I, aIA = a for each a 2 I, and SIA (a) = A(S(a)) for each S 2 C [ R and
tuple of individuals a. The closure L(K) of a DL-LitebF ontology K = (T ; A)
is the union Si 0 Li(K) of bag interpretations Li(K) = ( Li(K); Li(K)) with</p>
        <p>Li(K) = I such that L0(K) = IA and, for each i 1, Li(K) extends Li 1(K)
so that aLi(K) = a for all a 2 I, and, for all A 2 C, P 2 R and a; b; c; c0 2 I,
ALi(K)(a) = cclT [a; Li 1(K)](A);
if P Li 1(K)(a; b) = 0;
P Li(K)(a; b) =</p>
        <p>(0;
`R(c; c0) =</p>
        <p>maxf`P (a; b); `P (b; a)g; otherwise, where
(cclT [c; Li 1(K)](9R); if (funct R) is in T ;</p>
        <p>RLi 1(K)(c; c0); otherwise:
In fact, if TBox is functionally weakly acyclic then the closure can be computed
in a nite number of steps that does not depend on the ABox.</p>
        <p>Proposition 3. For every DL-LitebF ontology K = (T ; A) with a functionally
weakly acyclic TBox T we have L(K) = SdT +1 i
i=0 L (K).</p>
        <p>We use the closure in the following de nition of MR-canonical interpretations.
Note the di erence in handling functional and non-functional roles when creating
anonymous elements, resulting in a most general possible interpretation.
De nition 9. The MR-canonical bag interpretation CMR(K) of a DL-LitebF
ontology K = (T ; A) is the union Si 0 CMiR(K) of bag interpretations CMiR(K) with
CM0R(K) = L(K) and, for each i 1, CMiR(K) obtained from CMiR1(K) as follows:</p>
        <p>CMiR(K) extends</p>
        <p>CMiR1(K) by
- a fresh anonymous element wu;R for each u 2</p>
        <p>with (funct R) 2 T , cclT [u; CMiR1(K)](9R) &gt; 0, and (9R)CMiR1(K)(u) = 0,
- fresh anonymous elements wu1;R; : : : ; wu;R for each u 2 CMiR1(K) and each
CMiR1(K) and each role R
role R with (funct R) 62 T and = cclT [u; CMiR1(K)](9R)
{ aCMiR(K) = a for all a 2 I, and, for all A 2 C, P 2 R, and u, v in
(9R)CMiR1(K)(u);</p>
        <p>CMiR(K),
ACMiR(K)(u) = (cclT [u; CMiR1(K)](A); if u 2
0; otherwise;</p>
        <p>CMiR1(K);</p>
        <p>CMiR1(K) and u = wv;P ;
j j
if v = wu;P or u = wv;P ;</p>
        <p>As the following theorem says, the MR-canonical bag interpretation is an
MR-universal model, as desired.</p>
        <p>Theorem 3. The MR-canonical bag interpretation CMR(K) of an
MR-satisable DL-LitebF ontology K = (T ; A) with T functionally weakly acyclic is an
MR-universal model for the class of rooted CQs.</p>
        <p>
          By adapting and extending the techniques in [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ], we establish that rooted
CQs are MR-rewritable to BCALC over the restricted ontology language.
Theorem 4. Rooted CQs are MR-rewritable to BCALC over DL-LitebF with
functionally weakly acyclic TBoxes.
        </p>
        <p>Hence, under the restrictions, query answering is indeed feasible in TC0.
Corollary 3. Problem BagCertMR[q; T ] is in TC0 for every rooted CQ q and
functionally weakly acyclic DL-LiteF TBox T .
5</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>
        In this paper, we studied two bag semantics for functionality axioms: our rst
SQL semantics follows the bag semantics of SQL for primary keys, while the
second MR semantics is more general and gives more modelling freedom.
Combining the semantics with the bag semantics of DL-Litecore of [
        <xref ref-type="bibr" rid="ref20 ref21">20,21</xref>
        ], we studied
the problems of satis ability, query answering, and rewritability for the
resulting logic DL-LitebF . To the best of our knowledge, this is the rst work studying
the interaction of functionality and inclusion axioms under a bag semantics. A
bag semantics for functional dependencies, which generalises our SQL semantics
for functionality axioms, has been studied before in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. It would be interesting
to see how our work generalises to the case of n-ary predicates. This case has
been studied only very recently in the context of data exchange settings [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and
language Datalog [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], which, however, do not consider functional dependencies.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Abiteboul</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hull</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vianu</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Foundations of databases</article-title>
          .
          <source>Addison-Wesley</source>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <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>J. Artif. Intell. Res</source>
          .
          <volume>36</volume>
          ,
          <issue>1</issue>
          {
          <fpage>69</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bertossi</surname>
            ,
            <given-names>L.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pichler</surname>
          </string-name>
          , R.: Datalog:
          <article-title>Bag semantics via set semantics</article-title>
          .
          <source>In: Proc. of ICDT</source>
          . pp.
          <volume>16</volume>
          :
          <issue>1</issue>
          {
          <fpage>16</fpage>
          :
          <fpage>19</fpage>
          (
          <year>2019</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>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Query containment in description logics reconsidered</article-title>
          .
          <source>In: Proc. of KR</source>
          . pp.
          <volume>221</volume>
          {
          <issue>231</issue>
          (
          <year>2012</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>Cogrel</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Komla-Ebri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lanti</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rezk</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rodriguez-Muro</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiao</surname>
          </string-name>
          , G.:
          <article-title>Ontop: Answering SPARQL queries over relational databases</article-title>
          .
          <source>Semant. Web</source>
          <volume>8</volume>
          (
          <issue>3</issue>
          ),
          <volume>471</volume>
          {
          <fpage>487</fpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <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>J. Autom. Reason</source>
          .
          <volume>39</volume>
          (
          <issue>3</issue>
          ),
          <volume>385</volume>
          {
          <fpage>429</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <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>
          </string-name>
          , R.:
          <article-title>Path-based identi cation constraints in description logics</article-title>
          .
          <source>In: Proc. of KR</source>
          . pp.
          <volume>231</volume>
          {
          <issue>241</issue>
          (
          <year>2008</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>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Identi cation constraints and functional dependencies in description logics</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          . pp.
          <volume>155</volume>
          {
          <issue>160</issue>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Chaudhuri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vardi</surname>
          </string-name>
          , M.Y.:
          <article-title>Optimization of Real conjunctive queries</article-title>
          .
          <source>In: Proc. of PODS</source>
          . pp.
          <volume>59</volume>
          {
          <issue>70</issue>
          (
          <year>1993</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Grumbach</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milo</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Towards tractable algebras for bags</article-title>
          .
          <source>J. Comput. Syst. Sci</source>
          .
          <volume>52</volume>
          (
          <issue>3</issue>
          ),
          <volume>570</volume>
          {
          <fpage>588</fpage>
          (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Hernich</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolaitis</surname>
            ,
            <given-names>P.G.</given-names>
          </string-name>
          :
          <article-title>Foundations of information integration under bag semantics</article-title>
          .
          <source>In: Proc. of LICS</source>
          . pp.
          <volume>1</volume>
          {
          <issue>12</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Ioannidis</surname>
            ,
            <given-names>Y.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ramakrishnan</surname>
          </string-name>
          , R.:
          <article-title>Containment of conjunctive queries: Beyond relations as sets</article-title>
          .
          <source>ACM Trans. Database Syst</source>
          .
          <volume>20</volume>
          (
          <issue>3</issue>
          ),
          <volume>288</volume>
          {
          <fpage>324</fpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. Kohler, H.,
          <string-name>
            <surname>Link</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Armstrong axioms and Boyce-Codd-Heath normal form under bag semantics</article-title>
          .
          <source>Inf. Process. Lett</source>
          .
          <volume>110</volume>
          (
          <issue>16</issue>
          ),
          <volume>717</volume>
          {
          <fpage>724</fpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <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>Web Semant</source>
          .
          <volume>33</volume>
          ,
          <issue>94</issue>
          {
          <fpage>111</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Data integration: A theoretical perspective</article-title>
          .
          <source>In: Proc. of PODS</source>
          . pp.
          <volume>233</volume>
          {
          <issue>246</issue>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Libkin</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Expressive power of SQL</article-title>
          .
          <source>Theor. Comput. Sci</source>
          .
          <volume>296</volume>
          (
          <issue>3</issue>
          ),
          <volume>379</volume>
          {
          <fpage>404</fpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Libkin</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wong</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Query languages for bags and aggregate functions</article-title>
          .
          <source>J. Comput. Syst. Sci</source>
          .
          <volume>55</volume>
          (
          <issue>2</issue>
          ),
          <volume>241</volume>
          {
          <fpage>272</fpage>
          (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Areces</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>Keys, nominals, and concrete domains</article-title>
          .
          <source>J. Artif. Intell. Res</source>
          .
          <volume>23</volume>
          ,
          <issue>667</issue>
          {
          <fpage>726</fpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cuenca Grau</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fokoue</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>OWL 2 Web Ontology Language Pro les (Second Edition)</article-title>
          .
          <source>W3C recommendation</source>
          ,
          <source>W3C</source>
          (
          <year>2012</year>
          ), http://www.w3.org/TR/owl2-profiles/
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <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>
            <given-names>Cuenca</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <surname>I.</surname>
          </string-name>
          :
          <article-title>The bag semantics of ontology-based data access</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          . pp.
          <volume>1224</volume>
          {
          <issue>1230</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <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>
            <given-names>Cuenca</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <surname>I.</surname>
          </string-name>
          :
          <article-title>Foundations of ontology-based data access under bag semantics</article-title>
          .
          <source>Artif. Intell</source>
          .
          <volume>274</volume>
          ,
          <issue>91</issue>
          {
          <fpage>132</fpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <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>J. Data Semant</source>
          .
          <volume>10</volume>
          ,
          <issue>133</issue>
          {
          <fpage>173</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <surname>Toman</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weddell</surname>
            ,
            <given-names>G.E.</given-names>
          </string-name>
          :
          <article-title>On keys and functional dependencies as rst-class citizens in description logics</article-title>
          .
          <source>J. Autom. Reason</source>
          .
          <volume>40</volume>
          (
          <issue>2-3</issue>
          ),
          <volume>117</volume>
          {
          <fpage>132</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>