<!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>On queries with inequalities in DL-Lite6= R</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>Federico Croce</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Maurizio Lenzerini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antonella Poggi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Elian Toccacieli</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dipartimento di Ingegneria Informatica, Automatica e Gestionale “Antonio Ruberti”</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dipartimento di Lettere e Culture Moderne Sapienza Universita` di Roma</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>It is well-known that answering conjunctive queries with inequalities (CQ6=s) over DL-LiteR ontologies is in general undecidable. In this paper we consider the subclass of CQ6=s, called CQ6=;bs, where inequalities involve only distinguished variables or individuals. In particular, we tackle the problem of answering CQ6=;bs and unions thereof (UCQ6=;bs) over DL-Lite6= ontologies, where R DL-Lite6= corresponds to DL-LiteR without the Unique Name Assumption, and R with the possibility of asserting inequalities between individuals, as in OWL 2 QL. As a first contribution, we show that answering CQ6=;bs over DL-Lite6= ontologies R has the same computational complexity as the UCQ case over DL-LiteR, i.e., it is in AC0 in data complexity, in PTIME in TBox complexity, and NP-complete in combined complexity. We then deal with the UCQ6=;b case, and prove that answering UCQ6=;bs over DL-Lite6= ontologies is still in AC0 in data complexity and in PTIME in TBox complexiRty, but is 2p-hard in combined complexity.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        DL-LiteR is the Description Logic (DL) of the DL-Lite family [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] which underpins
the OWL 2 profile OWL 2 QL [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. It is arguably one of the most important formalisms
of choice for representing ontologies in Ontology-based Data Access (OBDA) [
        <xref ref-type="bibr" rid="ref18 ref22">18, 22</xref>
        ]
scenarios, where the aim is to access a typically huge amount of data residing in external
data sources. In particular, DL-LiteR has been designed so that answering unions of
conjunctive queries (UCQs) can be reduced to evaluating first-order logic queries over
the database storing the ABox assertions, and therefore is in AC0 with respect to the
size of the ABox, i.e., in the so-called data complexity [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ].
      </p>
      <p>
        While answering UCQs over DL-LiteR ontologies has been extensively studied in
recent years (e.g., by establishing bound on the size of rewritings [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], developing
optimisation algorithms [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ], and implementing systems for real-world applications [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ]),
we argue that not much is known about the problem of answering conjunctive queries
with inequalities (CQ6=s) and unions thereof (UCQ6=s). To the best of our knowledge,
the basic facts that are known about these latter cases can be summarised as follows:
– For subclasses of CQ6=s and UCQ6=s, named local CQ6=s and local UCQ6=s,
respectively, query answering over DL-LiteR ontologies is decidable, but with a high
CONEXPTIME upper bound in data complexity. Furthermore, it is provably
intractable (in general coNP-hard in data complexity) already for local CQ6=s [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ].
– For the subclass of CQ6= with bounded inequalities (called CQ6=;b), where
inequalities involve only individuals or distinguished variables, query answering over DL-LiteR
ontologies is in PTIME in data complexity and in EXPTIME in combined
complexity [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ].
      </p>
      <p>Observe that all the above results hold regardless of whether the Unique Name
Assumption (UNA) is enforced or not. Also, it is immediate to see that, for DL-LiteR,
they do not provide the answer to the question whether answering CQ6=;bs and unions
thereof (UCQ6=;bs) has the same complexity as the UCQ case.</p>
      <p>
        As a first consideration on these classes of queries, we observe that, differently
from the UCQ case [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], query answering over DL-LiteR ontologies is sensitive to the
adoption of the UNA, even for CQ6=;bs, as shown in following example.
Example 1. Consider the DL-LiteR ontology O = hT ; Ai, where T = ; and A =
fP (a; b)g. For the CQ6=;b q = f(x; y) j P (x; y) ^ x 6= yg, it is easy to see that the tuple
ha; bi is in the certain answers of q over O under the UNA, while it is not if the UNA is
not enforced. Indeed, for the model M of O with aM = bM = e and P M = f(e; e)g,
that does not respect the UNA, we have that qM = ;. tu
      </p>
      <p>Notice, however, that answering UCQ6=;bs over DL-LiteR ontologies under the UNA
is a straightforward generalisation of the UCQ case.</p>
      <p>Proposition 1. Answering UCQ6=;bs over DL-LiteR ontologies under the UNA is in
AC0 in data complexity, in PTIME in TBox complexity, and NP-complete in combined
complexity.</p>
      <p>Therefore, in what follows, we implicitly assume that the UNA is not enforced. In
particular, in this paper we consider the DL DL-Lite6= , which extends DL-LiteR with
R
the possibility of asserting inequalities between individuals, as in OWL 2 QL, and we
present the following results:
– Answering CQ6=;bs over DL-Lite6= ontologies has the same computational
complexity of the UCQ case, i.e., it isRin AC0 in data complexity, in PTIME in TBox
complexity, and NP-complete in combined complexity (cf. Theorem 2).
– iAtyns(wcfe.rTinhgeoUreCmQ6=3);.bs over DL-Lite6=R ontologies is 2p-hard in combined
complex– Answering UCQ6=;bs over DL-Lite6= ontologies is in AC0 in data complexity, in</p>
      <p>R
PTIME in TBox complexity, and in EXPTIME in combined complexity (cf.
Theorem 4).</p>
      <p>
        Several recent works investigate the problem of answering UCQs over DL-LiteR
ontologies [
        <xref ref-type="bibr" rid="ref13 ref3 ref6">3, 6, 13</xref>
        ], and answering SPARQL queries over OWL 2 QL ontologies [
        <xref ref-type="bibr" rid="ref11 ref14 ref15 ref2">2, 11,
14, 15</xref>
        ]. However, none of them deal with queries containing inequalities. Conversely,
inequality is considered in [
        <xref ref-type="bibr" rid="ref12 ref17 ref7 ref8">7,8,12,17</xref>
        ]. As we said before, a crucial result in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] shows
that answering queries with inequalities over DL-LiteR ontologies is in general
undecidable. In [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ] the authors prove that answering UCQ6=s over OWL 2 QL ontologies
under the Direct Semantics Entailment Regime [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] (i.e., the regime usually adopted for
SPARQL queries) can be polynomially reduced to the evaluation of a Datalog program,
and therefore is in PTIME in data complexity, and in EXPTIME in combined
complexity. As already mentioned, in [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] the author shows that the same results hold also for
CQ6=;bs under the standard semantics.
      </p>
      <p>The paper is organized as follows. In Section 2 we provide some preliminaries on
the languages considered in the paper. In Section 3 we illustrate the notion of chase that
we use for DL-Lite6= , and some related technical results. In Section 4 and Section 5</p>
      <p>R
we present our results on CQ6=;bs and UCQ6=;bs, respectively. Finally, in Section 6 we
conclude the paper with a discussion on future work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>In this section, we first formally define the syntax and the semantics of DL-Lite6= , and
R
then we present the query languages considered in this paper.</p>
      <p>Ontology language. Essentially, DL-Lite6=R extends DL-LiteR with the possibility of
asserting inequalities between individuals. Formally, starting with an alphabet of
individuals, atomic concepts, and atomic roles, that includes the binary relation symbol 6=,
a DL-Lite6= ontology, or simply an ontology, is a pair O = hT ; Ai, such that T , called
TBox, andRA, called ABox, are sets of axioms, that have, respectively, the following
forms:</p>
      <p>T : B1 v B2</p>
      <p>B1 v :B2
A : A(a)</p>
      <p>R1 v R2
R1 v :R2
P (a; b)
a 6= b
(concept/role inclusion)
(concept/role disjointness)
(concept/role membership)
(inequality)
where a; b denote individuals, A and P denote an atomic concept and an atomic role,
respectively, B1; B2 are basic concepts, i.e., expressions of the form A, 9P , or 9P ,
and R1 and R2 are basic roles, i.e., expressions of the form P , or P .</p>
      <p>The semantics of a DL-Lite6= ontology O is specified through the notion of
interpretation. An interpretation forRO is a pair I = h I ; I i, where the interpretation
domain I is a non-empty, possibly infinite set of objects, and the interpretation
function I assigns to each individual a a domain object aI 2 I , to each atomic concept
A a set of domain objects AI I , to each atomic role a set of pairs of domain
objects P I I I , and to the special predicate “6=” the set of all pairs of distinct
domain objects, i.e., 6=I = f(o1; o2) j o1; o2 2 I ^ o1 6= o2g. The interpretation
function extends to the other basic concepts and the other other basic roles as follows:
(i) (9P )I = fo j 9o0:(o; o0) 2 P I g, (ii) (9P )I = fo j 9o0:(o0; o) 2 P I g, and (iii)
(P )I = f(o; o0) j (o0; o) 2 P I g.</p>
      <p>An interpretation I satisfies a concept inclusion B1 v B2 (respectively, role
inclusion R1 v R2) if B1I B2I (respectively, R1I R2I ), and it satisfies a concept
disjointness B1 v :B2 (respectively, role disjointness R1 v :R2) if B1I \ B2I = ;
(respectively, R1I \R2I = ;). An interpretation I satisfies a DL-LiteR TBox T if it
satisfies every axiom in T . An interpretation I satisfies a DL-Lite6= ABox A if (i) aI 2 AI
R
for every A(a) 2 A, (ii) (aI ; bI ) 2 P I for every P (a; b) 2 A, and (iii) aI 6=I bI for
every a 6= b 2 A. Finally, a DL-Lite6=R ontology O = hT ; Ai is satisfiable if it has a
model, where a model is an interpretation I for O that satisfies both the TBox T and
the ABox A.</p>
      <p>Query language. A conjunctive query with inequalities (CQ6=) over a DL-Lite6=
ontolR
ogy O is an expression of the form q = fx j (x; y)g, where x and y are tuples of
variables, called distinguished and existential variables of q, respectively, and (x; y),
called the body of q, is a finite conjunction of DL-Lite6= ABox assertions with
variR
ables that can appear in predicate arguments, i.e., atoms of the form A(t1), P (t1; t2), or
t1 6= t2, where each tj is either an individual of O, or a variable in x or y. We impose
that every variable in x or y appears in some atom of (x; y). If x is empty, then the
query is called boolean. A CQ6= q without atoms of the form x1 6= x2 in its body is
called a conjunctive query (CQ). An intermediate class of queries that lies between CQs
and CQ6=s is the class of conjunctive queries with bound inequalities (CQ6=;b).
Specifically, a CQ6=;b q = fx j (x; y)g is a CQ6= whose inequalities involve only individuals
or distinguished variables, i.e., for every atom z1 6= z2 appearing in (x; y), both z1
and z2 are not in y. An UCQ (resp., UCQ6=;b, UCQ6=) is a union of a finite set of CQs
(resp., CQ6=;b, CQ6=) with same arity.</p>
      <p>
        The set of certain answers of an UCQ6= q over a DL-Lite6= ontology O, denoted by
R
cert (q; O), is the set of n-tuples t of individuals such that tI 2 qI for every model I
of O, where tI = ht1I ; : : : ; tIni for t = ht1; : : : ; tni, and qI denotes the evaluation of q
over I seen as a relational database [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. When q is a boolean query, we write O j= q if
qI = fhig (i.e., q is true in I, also denoted by I j= q) for every model I of O. Observe
that, if O is unsatisfiable, then cert (q; O) is trivially the set of all possible n-tuples of
individuals, where n is the arity of q (ex falso quodlibet).
      </p>
      <p>
        When we talk about the problem of answering a class of queries Q over a class of
DL ontologies L, in fact we implicitly refer to the following decision problem (also
known as the recognition problem): Given a query q in the class Q, an L-ontology O,
and an n-tuple of t of individuals of O, check whether t 2 cert (q; O).
DL-LiteR. It is well-known (see e.g., [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]) that a DL-LiteR ontology O is satisfiable if
and only if cert(VO; Op) = ;, where Op is obtained from O by removing the
disjointness axioms, and VO is the O-violation query, i.e., the boolean UCQ obtained by
including a CQ of the form f() j A1(x) ^ A2(x)g (resp., f() j A1(x) ^ R(x; y)g,
f() j R1(x; y) ^ R2(x; z)g, and f() j R1(x; y) ^ R2(x; y)g) for each disjointness axiom
A1 v :A2 (resp., A1 v :9R or 9R v :A1, 9R1 v :9R2, and R1 v :R2), where
an atom of the form R(x; y) stands for either P (x; y) if R denotes an atomic role P , or
P (y; x) if R denotes the inverse of an atomic role, i.e., R = P .
      </p>
      <p>
        It is also well-known that if q is an UCQ over a satisfiable DL-LiteR ontology
O = hT ; Ai, then PerfectRef(q; T ) (where PerfectRef is the algorithm described in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ])
computes an UCQ whose evaluation over db(A) (i.e., the ABox A seen as a relational
database) returns exactly cert(q; O), that is, (PerfectRef(q; T ))db(A) = cert(q; O).
Note that the algorithm PerfectRef ignores the disjointness axioms in O.
      </p>
      <p>The chase for DL-Lite6=</p>
      <p>
        R
The conceptual tool that we use for addressing the problem of answering UCQ6=;bs over
DL-Lite6= ontologies is a modification of the chase used for DL-LiteR [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Specifically,
      </p>
      <p>R
given a DL-Lite6= ontology O = hT ; Ai, we build a (possibly infinite) structure, starting</p>
      <p>R
from Chase0(O) = A, and repeatedly computing Chasej+1(O) from Chasej (O) by
applying suitable rules, where each rule can be applied only if certain conditions hold.
In doing so, we make use of a new infinite alphabet V of variables for introducing fresh
unknown individuals, and we follow a deterministic strategy that is fair, i.e., it is such
that if at some point a rule is applicable then it will be eventually applied. Finally, we
set Chase(O) = Si2N Chasei(O). Observe that we make use of the additional binary
predicate symbol ineq, which is used to record all inequalities logically implied by O.</p>
      <p>
        The rules we use include all the ones illustrated in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. For example, if A1 v
9P 2 T , A1(a) is in Chasej (O), and there does not exist any b such that P (a; b)
is in Chasej (O), then we set Chasej+1(O) = Chasej (O) [ fP (a; s)g, where s 2 V
does not appear in Chasej (O). There are, however, crucial additions related to the ineq
predicate. In what follows, when we say that B(a) is in Chasej (O), where B is a basic
concept, we mean A(a) 2 Chasej (O) if B = A, P (a; b) 2 Chasej (O) for some b,
if B = 9P , or P (b; a) 2 Chasej (O) for some b, if B = 9P . Also, when we say
R(a; b) is in Chasej (O), where R is a basic role, we mean P (a; b) 2 Chasej (O), if
R = P , or P (b; a) 2 Chasej (O), if R = P . The additional rules are as follows:
– If a 6= b is in Chasej (O), and ineq(a; b) is not in Chasej (O), then
      </p>
      <p>Chasej+1(O) = Chasej (O) [ fineq(a; b)g;
– ICfhinaesqe(ja+;1b()Ois) i=n CChhaasseejj((OO)),[anfdinienqe(qb(;ba;a)g);is not in Chasej (O), then
– if B1 v :B2 2 T , B1(a); B2(b) are in Chasej (O), and ineq(a; b) is not in</p>
      <p>Chasej (O), then Chasej+1(O) = Chasej (O) [ fineq(a; b)g;
– if R1 v :R2 2 T , R1(c; a); R2(c; b) are in Chasej (O), and ineq(a; b) is not in
Chasej (O) then Chasej+1(O) = Chasej (O) [ fineq(a; b)g.</p>
      <p>From Chase(O) it is immediate to define an interpretation IO for O, extended in
order to deal with predicate ineq, as follows:
– IO = VO [ V , where VO is the set of individuals occurring in O;
– eIO = e for every individual o 2 IO ;
– AIO = fe j A(e) occurs in Chase(O)g for every atomic concept A;
– P IO = f(e1; e2) j P (e1; e2) occurs in Chase(O)g for every atomic role P ;
– ineqIO = f(e1; e2) j ineq(e1; e2) occurs in Chase(O)g.</p>
      <p>Note that, by definition, 6=IO is the set of all pairs of distinct individuals in (VO [V ),
i.e. 6=IO = f(e1; e2) j e1; e2 2 (VO [ V ) ^ e1 6= e2g.</p>
      <p>The next proposition shows that the interpretation IO plays a crucial role in DL-Lite6= .
R
Proposition 2. If M = h
exists a function from</p>
      <p>M; Mi is a model of a DL-Lite6= ontology O, then there</p>
      <p>IO = VO [ V to M such that: R</p>
      <sec id="sec-2-1">
        <title>1. for every e 2</title>
        <p>IO , if e 2 AIO , then (e) 2 AM;</p>
      </sec>
      <sec id="sec-2-2">
        <title>2. for every pair e1; e2 2</title>
      </sec>
      <sec id="sec-2-3">
        <title>3. for every pair e1; e2 2 IO , if (e1; e2) 2 P IO , then ( (e1); (e2)) 2 P M; IO , if (e1; e2) 2 ineqIO , then (e1) 6= (e2).</title>
        <p>
          Proof (Sketch). The proofs of 1. and 2. are similar to that of Lemma 28 of [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. The
proof of 3. is based on showing that the interpretation IO enjoys the following crucial
property: for every pair of individuals a; b 2 VO, (a; b) 2 ineqIO if and only if for every
model M of O, aM 6= bM. tu
        </p>
        <p>The above proposition shows the role of predicate ineq, and the importance of
distinguishing between 6= and ineq. Indeed, since in IO two different elements e1; e2 satisfy
e1 6= e2, condition 3 in Proposition 2 does not hold with 6= in place of ineq.</p>
        <p>Note that if IO satisfies all the axioms of O, then it is a model of O, and therefore
O is satisfiable. Otherwise, it can be seen that IO violates at least one disjointness or
one inequality axiom of O. Note in particular that IO violates a disjointness axiom if
and only if (VO)IO 6= ;, where VO is the O-violation query (cf. Section 2). On the
other hand, by construction, IO violates an inequality axiom if and only if there exists
e in (VO [ V ) such that e 6= e occurs in O. In both cases, by Proposition 2, there exists
no interpretation that can be a model for O, and hence O is unsatisfiable. Intuitively,
this shows that similarly to the “canonical interpretation” of a DL-LiteR ontology, IO
is instrumental for checking the satisfiability of a DL-Lite6= ontology O. Also, checking
R
the satisfiability of a DL-Lite6= ontology O = hT ; Ai can be done in AC0 in the size of</p>
        <p>R
A and in PTIME in the size of T , exactly lime in DL-LiteR.</p>
        <p>In what follows we implicitly assume to deal only with satisfiable DL-Lite6=
onR
tologies. Also, we denote by (q) the query obtained by replacing each inequality atom
t1 6= t2 in q with the atom ineq(t1; t2). The next theorem states that IO is instrumental
also for answering CQ6=;bs over DL-Lite6= ontologies.</p>
        <p>R
Theorem 1. If O is a DL-Lite6= ontology, and q is a CQ6=;b over O, then cert(q; O) =</p>
        <p>R
(q)IO .</p>
        <p>Proof (Sketch). If t 2 (q)IO , then, based on Proposition 2, we can show that t 2 qM,
for every model M of O.</p>
        <p>If t 62 (q)IO , and t does not satisfy in IO all atoms of (q) different from ineq
atoms, then IO is itself a model of O showing that t 62 cert(q; O). On the other hand,
if t satisfies in IO all atoms of (q) different from ineq atoms, then there is at least one
atom of the form ineq(a; b) in (q) that is false in IO. What we do in this case is to
compute an interpretation J from IO, where aJ and bJ coincide, and then we show
that J is a model M of O such that t 62 qM, thus showing that t 62 cert(q; O). tu
4</p>
        <p>Answering CQ6=;bs over DL-Lite6= ontologies</p>
        <p>R
In this section, we study the problem of answering CQ6=;bs over DL-Lite6= ontologies.
R
To this aim, we start by introducing some preliminary notation.</p>
        <p>Given an inequality atom x1 6= x2 and a disjointness axiom , (x1 6= x2; ),
denotes the formula defined as follows:
– (x1 6= x2; A1 v :A2) = A1(x1) ^ A2(x2),
– (x1 6= x2; A v :9R) = (x1 6= x2; 9R v :A) = A(x1) ^ R(x2; z), where z is
a fresh variable,
– (x1 6= x2; 9R1 v :9R2) = R1(x1; z) ^ R2(x2; w), where z and w are fresh
variables, and
– (x1 6= x2; R1 v :R2) = R1(x1; z) ^ R2(x2; z) _ R1(z; x1) ^ R2(z; x2).
where an atom of the form R(x; y) stands for either P (x; y) if R denotes an atomic role
P , or P (y; x) if R denotes the inverse of an atomic role, i.e., R = P .</p>
        <p>Given an inequality atom x1 6= x2 and a TBox T with disjointness axioms 1; : : : ; m,
we denote by (x1 6= x2; T ) the disjunction
ineq(x1; x2) _ ineq(x2; x1) _
_ ( (x1 6= x2; i) _ (x2 6= x1; i))
i2T</p>
        <p>Finally, we denote by (q; T ) the query obtained from q by substituting every
inequality x1 6= x2 by (x1 6= x2; T ), and then turning the resulting query into an
equivalent union of CQs.</p>
        <p>In Fig. 1, we present the algorithm AnsCQ6=;b(q; O) for computing the certain
answers to a CQ6=;b q over a DL-Lite6= ontology O = hT ; Ai.</p>
        <p>R</p>
        <p>
          Informally, the algorithm rewrites q into the UCQ (q; T ), applies the algorithm
PerfectRef described in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] to (q; T ), and then evaluates the resulting UCQ over the
database dbineq(A). Such database stores the object c (resp. the tuple c1; c2) in the table
A (resp. R), for each assertion A(c) (resp. R(c1; c2)) in A, and stores the pair (c1; c2)
in the table ineq for each assertion c1 6= c2 in A.
        </p>
        <p>Algorithm AnsCQ6=;b(q; O)
Input: n-ary CQ6=;b q, DL-Lite6= ontology O = hT ; Ai</p>
        <p>R
Output: a set of n-tuples of individuals of O
begin</p>
        <p>P R := (q; T )
P R := PerfectRef(P R; T )
return P Rdbineq(A)
end</p>
        <p>Fig. 1: The algorithm AnsCQ6=;b(q; O)
Example 2. Consider the DL-Lite6= ontology O = hT ; Ai with T = fP1 v P2; A1 v</p>
        <p>R
:A2g, and the CQ6=;b</p>
        <p>q = f(x1; x2) j P2(x1; x2) ^ x1 6= cg
over O. It is easy to see that (x1 6= c; T ) is the formula ineq(x1; c) _ ineq(c; x1) _
A1(x1) ^ A2(c) _ A2(x1) ^ A1(c) and (q; T ) = f(x1; x2) j P2(x1; x2) ^ ineq(x; c) _
P2(x1; x2) ^ ineq(c; x1) _ P2(x1; x2) ^ A1(x1) ^ A2(c) _ P2(x1; x2) ^ A1(c) ^ A2(x)g.
Finally, PerfectRef( (q; T ); T ) is f(x1; x2) j P2(x1; x2) ^ ineq(x; c) _ P2(x1; x2) ^
ineq(c; x1) _ P2(x1; x2) ^ A1(x1) ^ A2(c) _ P2(x1; x2) ^ A1(c) ^ A2(x) _ P1(x1; x2) ^
ineq(x; c) _ P1(x1; x2) ^ ineq(c; x1) _ P1(x1; x2) ^ A1(x1) ^ A2(c) _ P1(x1; x2) ^
A1(c) ^ A2(x). tu
Proposition 3. If O = hT ; Ai is a DL-Lite6= ontology, and q is a CQ6=;b over O, then
R
AnsCQ6=;b(q; O) terminates and computes exactly cert (q; O).</p>
        <p>Taking into account the computational complexity of algorithm AnsCQ6=;b, the above
proposition implies that answering CQ6=;bs over DL-Lite6= ontologies has the same data
R
and combined complexity as answering UCQs over DL-LiteR ontologies.
Theorem 2. Answering CQ6=s over DL-Lite6= is in AC0 in data complexity, in PTIME
R
in TBox complexity, and NP-complete in combined complexity.
5</p>
        <p>Answering UCQ6=;bs over DL-Lite6= ontologies</p>
        <p>R
In this section, we study the problem of answering UCQ6=;bs over DL-Lite6= ontologies.
R</p>
        <p>
          Observe that, differently from the UCQ case where for any UCQ Q = q1 [ : : : [ qn
and any DL-LiteR ontology O we have that cert (Q; O) = cert (q1; O)[: : :[cert (qn; O)
[
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], the next example shows that this is not the case if we consider UCQ6=;bs.
Example 3. Consider the DL-LiteR ontology O = hT ; Ai, where T = ; and A =
fP (a; b)g. For the boolean UCQ6=;b Q = q1 [ q2, where q1 = f() j P (a; a)g and
q2 = f() j a 6= bg, it is easy to see that O j= Q. Indeed, for any model M of O, if
aM = bM, then M j= q1, otherwise aM 6= bM, then M j= q2. Notice, however,
that both O 6j= q1 and O 6j= q2 hold. For the former, it is sufficient to simply consider
a model M1 of O in which aM1 6= bM1 . For the latter, it is sufficient to consider a
model M2 of O in which aM2 = bM2 = e and P M2 = f(e; e)g.
tu
        </p>
        <p>The next theorem implies that, unless the polynomial hierarchy collapses to the first
level, answering UCQ6=;bs over DL-LiteR ontologies does not have the same combined
complexity of the UCQ and CQ6=;b cases.</p>
        <p>
          Theorem 3. Answering UCQ6=;bs over DL-LiteR ontologies is
complexity.
2p-hard in combined
Proof (Sketch). The proof of 2p-hardness is by a LOGSPACE reduction from the
89CNF problem, which is 2p-complete [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]. tu
        </p>
        <p>In order to present our positive results for the UCQ6=;b case, next we introduce the
notion of e-satisfiability for an equivalence relation e. An equivalence relation e on a set
of individuals C is a binary relation over C that is reflexive, symmetric, and transitive.
In what follows, we write c1 e c2 to denote (c1; c2) 2 e. Moreover, we denote by
Oe = hT ; Aei the DL-Lite6= ontology obtained from O by adding e to the signature of</p>
        <p>R
O as a new atomic role, and with Ae being the ABox obtained from A by adding the
extension of the relation e, i.e., Ae = A [ e.</p>
        <p>Definition 1. Let O = hT ; Ai be a DL-Lite6= ontology, e be an equivalence relation on</p>
        <p>R
a set C of individuals of O, and I be a model of O. Then, we say that I is an e-model of
O if, for any pair of constants c1; c2 2 C, we have that c1I = c2I if and only if c1 e c2.</p>
      </sec>
      <sec id="sec-2-4">
        <title>Also, we say that O is e-satisfiable if it has an e-model.</title>
        <p>The next proposition states that checking for the e-satisfiability has the same
computational complexity of checking the satisfiability.</p>
        <p>Proposition 4. Let O = hT ; Ai be a DL-Lite6= ontology, and let e be an equivalence
R
relation on a set of constants C of O. Checking whether O is e-satisfiable can be done
in AC0 in the size of A and in PTIME in the size of T .</p>
        <p>Proof (Sketch). Let VO6=;e be the Oe-violation query obtained by extending the boolean
UCQ VO with the following CQs over the signature of Oe:
– f() j A1(x1) ^ A2(x2) ^ e(x1; x2)g for each axiom of the form A1 v :A2,
– f() j A(x1) ^ R(x2; y) ^ e(x1; x2)g for each axiom of the form A v :9R or of
the form 9R v :A,
– f() j R1(x1; y) ^ R2(x2; z) ^ e(x1; x2)g for each axiom of the form 9R1 v :9R2,
– f() j R1(x1; y1) ^ R2(x2; y2) ^ e(x1; x2) ^ e(y1; y2)g for each axiom of the form</p>
        <p>R1 v :R2,
where an atom of the form R(x; y) stands for either P (x; y) if R denotes an atomic role
P , or P (y; x) if R denotes the inverse of an atomic role, i.e., R = P .</p>
        <p>It can be readily seen that a DL-Lite6= ontology O is e-satisfiable if and only if</p>
        <p>R
cert (VO6=;e; Oep) = ; and there exists no a 6= b occurring in A such that a e b.</p>
        <p>Intuitively, for checking e-satisfiability we check whether the equivalence relation e
contradicts a disjointness, or an inequality axiom. This also directly implies that
checking whether O is e-satisfiable can be done by evaluating a suitable query over dbineq(A),
and therefore the problem is in AC0 in the size of the ABox A and in PTIME in the size
of the TBox T , as required. tu</p>
        <p>Based on the above result, in Fig. 2 we provide the algorithm AnsUCQ6=;b(Q; O) for
the problem of answering UCQ6=;bs over DL-LiteR ontologies. Observe that it is enough
to consider only boolean UCQ6=;bs. Indeed, given a UCQ6=;b Q, a DL-Lite6= ontology
R
O = hT ; Ai, and an n-tuple t of individuals of O of the same arity of Q, checking
whether t 2 cert (Q; O) is equivalent to checking whether O j= Q(t), where Q(t)
denotes the boolean UCQ6=;b obtained by replacing appropriately the distinguished
variables of each CQ q in Q with the individuals of t.</p>
        <p>Moreover, note that every boolean UCQ6=;b Q is such that every inequality
appearing in its body is of the form a 6= b, where both a and b are individuals of O. In the
algorithm, we denote by ej(q) the function that, given a CQ q, returns the set of
existential variables that appears more than two times in the body of q, i.e., the set of existential
variables that are in join.</p>
        <p>Intuitively, to say that O 6j= Q, the algorithm seeks for a relation between the
individuals appearing in Q for which (i) the ontology O is e-satisfiable, where e is the
equivalence relation induced by , and (ii) the reformulated UCQ Q is not entailed by
Oe. In particular, Q is first reformulated by evaluating every inequality based on the
Algorithm AnsUCQ6=;b(Q; O)
Input: a boolean UCQ6=;b Q, and a DL-Lite6= ontology O = hT ; Ai</p>
        <p>R
Output: true or false
begin
let CQ be the set of all individuals appearing in Q
for each (CQ CQ):
let e be the reflexive, symmetric, and transitive closure of
if O is e-satisfiable then
for each q 2 Q and inequality atom c1 6= c2 2 q:
if c1 e c2 then</p>
        <p>q = q n fc1 6= c2g
else</p>
        <p>Q = Q n fqg
Q0 = Q
for each q in Q0, Y ej(q), and y 2 Y:
let y1; : : : ; ymy denote the different occurrences of y in q
replace each occurrence yj of the variable y with a fresh existential variable zj
for each pair of newly introduced variables zk; zl with k 6= l:
q = q [ fe(zik; zi)g</p>
        <p>l</p>
        <p>Q = Q [ q
for each q in Q and individual c in q:
replace all the occurrences of c with a fresh existential variable yc
q = q [ fe(yc; c)g
if Oe 6j= Q then</p>
        <p>return false
return true
end</p>
        <p>Fig. 2: The algorithm AnsUCQ6=;b(Q; O)
equivalence relation e. Then, Q is further reformulated by allowing that in each CQ
q of Q, and for some of the existential variables y1; : : : ; yn appearing in q, different
occurrences of each yi may be mapped to distinct individuals of the set CQ, provided
that these distinct individuals are in the same equivalence class of e. An analogous
consideration is for the individuals appearing in the query, where the last step of the
reformulation of Q allows that an existential variable yc may match an individual c0
that is not necessarily the individual c, but it is such that c0 e c, i.e., it is in the same
equivalence class of c.</p>
        <p>Proposition 5. If O = hT ; Ai is a DL-Lite6=R ontology, and Q is a boolean UCQ6=;b
over O, then AnsUCQ6=;b(q; O) terminates and returns true if and only if O j= Q.</p>
        <p>With regard to the cost of the algorithm AnsUCQ6=;b(Q; O), observe that all the
for-loops of the algorithm depend only on Q, and can be done in EXPTIME in its size.
As for the e-satisfiability check, from Proposition 4, it can be done in AC0 in the size
of A, and in PTIME in the size of T . Also, since Q0e is an UCQ, checking whether
Oe 6j= Q0e can be obviously done in AC0 in the size of A, in PTIME in the size of T ,
and in EXPTIME in the size of Q. From Proposition 5 and the above considerations, we
easily get the following result.</p>
        <p>Theorem 4. Answering UCQ6=;bs over DL-Lite6= ontologies is in AC0 in data
complexR
ity, in PTIME in TBox complexity, and in EXPTIME in combined complexity.
6</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>In this paper we have singled out a specific class of queries, namely UCQ6=;bs, for
which query answering over DL-Lite6= ontologies is still in AC0 in data complexity and</p>
      <p>R
in PTIME in TBox complexity. The algorithm is EXPTIME in combined complexity,
and we have shown that the problem is 2p-hard.</p>
      <p>There are several problems to consider for continuing the work presented here, the
most obvious being trying to derive a matching 2p upper bound in combined
complexity of the above problem. Another interesting topic is to look for more subclasses of
queries, or even more ontology languages for which answering queries with
inequalities is decidable/tractable.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowlegments References</title>
      <p>Work supported by MIUR under the SIR project “MODEUS” – grant n. RBSI14TQHQ,
and by Sapienza under the research project “PRE-O-PRE”.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>S.</given-names>
            <surname>Abiteboul</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Hull</surname>
          </string-name>
          , and
          <string-name>
            <given-names>V.</given-names>
            <surname>Vianu</surname>
          </string-name>
          .
          <source>Foundations of Databases. Addison Wesley Publ. Co.</source>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>M.</given-names>
            <surname>Arenas</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Gottlob, and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>Expressive languages for querying the semantic web</article-title>
          .
          <source>ACM Trans. on Database Systems</source>
          ,
          <volume>43</volume>
          (
          <issue>3</issue>
          ):
          <volume>13</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>13</lpage>
          :
          <fpage>45</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>A.</given-names>
            <surname>Artale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>The DL-Lite family and relations</article-title>
          .
          <source>J. of Artificial Intelligence Research</source>
          ,
          <volume>36</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>69</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Cogrel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Komla-Ebri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lanti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rezk</surname>
          </string-name>
          , M. RodriguezMuro, and
          <string-name>
            <given-names>G.</given-names>
            <surname>Xiao.</surname>
          </string-name>
          <article-title>Ontop: Answering SPARQL queries over relational databases</article-title>
          .
          <source>Semantic Web J.</source>
          ,
          <volume>8</volume>
          (
          <issue>3</issue>
          ):
          <fpage>471</fpage>
          -
          <lpage>487</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rodriguez-Muro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ruzzi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D. F.</given-names>
            <surname>Savo</surname>
          </string-name>
          .
          <article-title>The Mastro system for ontology-based data access</article-title>
          .
          <source>Semantic Web J.</source>
          ,
          <volume>2</volume>
          (
          <issue>1</issue>
          ):
          <fpage>43</fpage>
          -
          <lpage>53</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Tractable reasoning and efficient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>J. of Automated Reasoning</source>
          ,
          <volume>39</volume>
          (
          <issue>3</issue>
          ):
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>G.</given-names>
            <surname>Cima</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          .
          <article-title>On the SPARQL metamodeling semantics entailment regime for OWL 2 QL ontologies</article-title>
          .
          <source>In Proc. of the 7th Int. Conf. on Web Intelligence, Mining and Semantics (WIMS)</source>
          , pages
          <fpage>10</fpage>
          :
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          :
          <fpage>6</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>G.</given-names>
            <surname>Cima</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          .
          <article-title>Querying OWL 2 QL under the SPARQL metamodeling semantics entailment regime</article-title>
          .
          <source>In Proc. of the 25th Ital. Symp. on Advanced Database Systems (SEBD)</source>
          , volume
          <year>2037</year>
          , page
          <volume>165</volume>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          .
          <article-title>Using SPARQL with RDFS and OWL entailment</article-title>
          .
          <source>In Reasoning Web. Semantic Technologies for the Web of Data - 7th Int. Summer School Tutorial Lectures (RW)</source>
          , pages
          <fpage>137</fpage>
          -
          <lpage>201</lpage>
          .
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. G. Gottlob,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kikot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V. V.</given-names>
            <surname>Podolskii</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Schwentick</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>The price of query rewriting in ontology-based data access</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>213</volume>
          :
          <fpage>42</fpage>
          -
          <lpage>59</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>G.</given-names>
            <surname>Gottlob</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>Beyond SPARQL under OWL 2 QL entailment regime: Rules to the rescue</article-title>
          .
          <source>In Proc. of the 24th Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          , pages
          <fpage>2999</fpage>
          -
          <lpage>3007</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. V.
          <article-title>Gutie´rrez-</article-title>
          <string-name>
            <surname>Basulto</surname>
            ,
            <given-names>Y. A.</given-names>
          </string-name>
          <string-name>
            <surname>Iba</surname>
          </string-name>
          <article-title>´n˜ez-Garc´ıa</article-title>
          , R. Kontchakov, and
          <string-name>
            <given-names>E. V.</given-names>
            <surname>Kostylev</surname>
          </string-name>
          .
          <article-title>Queries with negation and inequalities over lightweight ontologies</article-title>
          .
          <source>J. of Web Semantics</source>
          ,
          <volume>35</volume>
          :
          <fpage>184</fpage>
          -
          <lpage>202</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>S.</given-names>
            <surname>Kikot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Conjunctive query answering with OWL 2 QL</article-title>
          .
          <source>In Proc. of the 13th Int. Conf. on the Principles of Knowledge Representation and Reasoning (KR)</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rezk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rodriguez-Muro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Xiao</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Answering SPARQL queries over databases under OWL 2 QL entailment regime</article-title>
          .
          <source>In Proc. of the 13th Int. Semantic Web Conf. (ISWC)</source>
          , pages
          <fpage>552</fpage>
          -
          <lpage>567</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>M. Lenzerini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Lepore</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          .
          <article-title>A higher-order semantics for metaquerying in OWL 2 QL</article-title>
          .
          <source>In Proc. of the 15th Int. Conf. on the Principles of Knowledge Representation and Reasoning (KR)</source>
          , pages
          <fpage>577</fpage>
          -
          <lpage>580</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. Cuenca</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fokoue</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Lutz</surname>
          </string-name>
          .
          <article-title>OWL 2 Web Ontology Language profiles (second edition)</article-title>
          .
          <source>W3C Recommendation</source>
          , World Wide Web Consortium, Dec.
          <year>2012</year>
          . Available at http://www.w3.org/TR/owl2-profiles/.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          .
          <article-title>On the SPARQL direct semantics entailment regime for OWL 2 QL</article-title>
          .
          <source>In Proc. of the 29th Int. Workshop on Description Logic (DL)</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Linking data to ontologies</article-title>
          .
          <source>J. on Data Semantics</source>
          , X:
          <fpage>133</fpage>
          -
          <lpage>173</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Almatelli</surname>
          </string-name>
          .
          <article-title>Improving query answering over DL-Lite ontologies</article-title>
          .
          <source>In Proc. of the 12th Int. Conf. on the Principles of Knowledge Representation and Reasoning (KR)</source>
          , pages
          <fpage>290</fpage>
          -
          <lpage>300</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <given-names>L. J.</given-names>
            <surname>Stockmeyer</surname>
          </string-name>
          .
          <article-title>The polynomial-time hierarchy</article-title>
          .
          <source>Theoretical Computer Science</source>
          ,
          <volume>3</volume>
          (
          <issue>1</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>22</lpage>
          ,
          <year>1976</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <given-names>M. Y.</given-names>
            <surname>Vardi</surname>
          </string-name>
          .
          <article-title>The complexity of relational query languages</article-title>
          .
          <source>In Proc. of the 14th ACM SIGACT Symp. on Theory of Computing (STOC)</source>
          , pages
          <fpage>137</fpage>
          -
          <lpage>146</lpage>
          ,
          <year>1982</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22. G. Xiao,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Ontology-based data access: A survey</article-title>
          .
          <source>In Proc. of the 27th Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          , pages
          <fpage>5511</fpage>
          -
          <lpage>5519</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>