<!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>Inconsistency-Tolerant Conjunctive Query Answering for Simple Ontologies</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Meghyn Bienvenu</string-name>
          <email>meghyn@lri.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LRI - CNRS &amp; Universite Paris-Sud</institution>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        In recent years, there has been growing interest in using description logic (DL)
ontologies to query instance data. An important issue which arises in this setting
is how to handle the case in which the data (ABox) is inconsistent with the
ontology (TBox). Ideally, one would like to restore consistency by identifying and
correcting the errors in the data (using e.g. techniques for debugging or revising
DL knowledge bases, cf. [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]). However, such an approach requires the ability to
modify the data and the necessary domain knowledge to determine which part
of the data is erroneous. When these conditions are not met (e.g. in information
integration applications), an alternative is to adopt an inconsistency-tolerant
semantics in order to obtain reasonable answers despite the inconsistencies.
      </p>
      <p>
        The related problem of querying databases which violate integrity constraints
has long been studied in the database community (cf. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and the survey [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]),
under the name of consistent query answering. The semantics is based upon the
notion of a repair, which is a database which satis es the integrity constraints
and is as similar as possible to the original database. Consistent query answering
corresponds to evaluating the query in each of the repairs, and then intersecting
the results. This semantics is easily adapted to the setting of ontology-based data
access, by de ning repairs as the inclusion-maximal subsets of the data which
are consistent with the ontology.
      </p>
      <p>
        Consistent query answering for the DL-Lite family of lightweight DLs was
investigated in [
        <xref ref-type="bibr" rid="ref10 ref11">10, 11</xref>
        ]. The obtained complexity results are rather disheartening:
the problem was shown in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] to be co-NP-hard in data complexity, even for
instance queries; this contrasts sharply with the very low AC0 data complexity for
(plain) conjunctive query answering in DL-Lite. Similarly discouraging results
were recently obtained in [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] for another prominent lightweight DL E L? [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In
fact, we will see in Example 1 that if we consider conjunctive queries, only a single
concept disjointness axiom is required to obtain co-NP-hard data complexity.
      </p>
      <p>
        In the database community, negative complexity results spurred a line of
research [
        <xref ref-type="bibr" rid="ref15 ref8 ref9">8, 9, 15</xref>
        ] aimed at identifying cases where consistent query answering is
feasible, and in particular, can be done using rst-order query rewriting
techniques. The idea is to use targeted polynomial-time procedures whenever
possible, and to reserve generic methods with worst-case exponential behavior for
difcult cases (see [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] for some experimental results supporting such an approach).
A similar investigation for DL-Lite ontologies was initiated in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], where general
conditions were identi ed for proving either rst-order expressibility or
coNPhardness of consistent query answering for a given TBox and instance query.
      </p>
      <p>The main objective of the present work is to gain a better understanding
of what makes consistent conjunctive query answering in the presence of
ontologies so di cult. To this end, we conduct a ne-grained complexity analysis
which aims to characterize the complexity of consistent query answering based
on the properties of the ontology and the conjunctive query. We focus on
simple ontologies, consisting of class subsumption (A1 v A2) and class disjointness
(A1 v :A2) axioms, since the problem is already far from trivial for this case. We
identify the number of quanti ed variables in the query as an important factor in
determining the complexity of consistent query answering. Speci cally, we show
that consistent query answering is always rst-order expressible for conjunctive
queries with at most one quanti ed variable; the problem has polynomial data
complexity (but is not necessarily rst-order expressible) when there are two
quanti ed variables; and it may become coNP-hard starting from three
quanti ed variables. For queries having at most two quanti ed variables, we further
identify a necessary and su cient condition for rst-order expressibility.</p>
      <p>
        To obtain positive results for arbitrary conjunctive queries, we propose a
novel inconsistency-tolerant semantics which is a sound approximation of the
consistent query answering semantics (and a ner approximation than the
approximate semantics proposed in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]). We show that under this semantics,
rstorder expressibility of consistent query answering is guaranteed for all
conjunctive queries. Finally, in order to treat more expressive ontologies, and to
demonstrate the applicability of our techniques, we show how our positive results can
be extended to handle DL-Litecore ontologies without inverse roles.
      </p>
      <p>Full proofs can be found in a long version available on the author's website.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>
        Syntax. All the ontology languages considered in this paper are fragments of
DL-Litecore [
        <xref ref-type="bibr" rid="ref2 ref5">5, 2</xref>
        ]. We recall that DL-Litecore knowledge bases (KBs) are built
up from a set NI of individuals, a set NC of atomic concepts, and a set NR of
atomic roles. Complex concept and role expressions are constructed as follows:
B ! A j 9P
      </p>
      <p>C ! B j :B</p>
      <p>P ! R j R
where A 2 NC and R 2 NR. A TBox is a nite set of inclusions of the form
B v C (B; C as above). An ABox is a nite set of (ABox) assertions of the
form A(a) (A 2 NC) or R(a; b) (R 2 NR), where a; b 2 NI. We use Ind(A) to
denote the set of individuals in A. A KB consists of a TBox and an ABox.
Semantics An interpretation is I = ( I ; I ), where I is a non-empty set and
I maps each a 2 NI to aI 2 I , each A 2 NC to AI I , and each P 2 NR
to P I I I . The function I is straightforwardly extended to general
concepts and roles, e.g. (:A)I = I n AI and (9S)I = fc j 9d : (c; d) 2 SI g.
I satis es G v H if GI HI ; it satis es A(a) (resp. P (a; b)) if aI 2 AI
(resp. (aI ; bI ) 2 P I ). We write I j= if I satis es inclusion/assertion . An
interpretation I is a model of K = (T ; A) if I satis es all inclusions in T and
assertions in A. We say a KB K is consistent if it has a model, and that K entails
an inclusion/assertion , written K j= , if every model of K is a model of .</p>
      <p>We say that a set of concepts fC1; : : : ; Cng is consistent w.r.t. a TBox T
if there is a model I of T and an element e 2 I such that e 2 Ci for every
1 i n. Entailment of a concept from a set of concepts is de ned in the obvious
way: T j= S v D if and only if for every model I of T , we have \C2S CI DI .
Queries A ( rst-order) query is a formula of rst-order logic with equality,
whose atoms are of the form A(t) (A 2 NC), R(t; t0) (R 2 NR), or t = t0 with t; t0
terms, i.e., variables or individuals. Conjunctive queries (CQs) have the form
9y , where y denotes a tuple of variables, and is a conjunction of atoms
of the forms A(t) or R(t; t0). Instance queries are queries consisting of a single
atom with no variables (i.e. ABox assertions). Free variables in queries are called
answer variables, whereas bound variables are called quanti ed variables. We use
terms(q) to denote the set of terms appearing in a query q.</p>
      <p>A Boolean query is a query with no answer variables. For a Boolean query q,
we write I j= q when q holds in the interpretation I, and K j= q when I j= q for
all models I of K. For a non-Boolean query q with answer variables v1; : : : ; vk,
a tuple of individuals (a1; : : : ; ak) is said to be a certain answer for q w.r.t.
K just in the case that K j= q[a1; : : : ; ak], where q[a1; : : : ; ak] is the Boolean
query obtained by replacing each vi by ai. Thus, conjunctive query answering is
straightforwardly reduced to entailment of Boolean CQs.</p>
      <p>
        First-order rewritability Calvanese et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] proved that for everyDL-Litecore
TBox T and CQ q, there exists a rst-order query q0 such that for every ABox
A and tuple a: T ; A j= q[a] , IA j= q0[a], where IA denotes the interpretation
with domain Ind(A) that makes true precisely the assertions in A.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Consistent Query Answering for Description Logics</title>
      <p>In this section, we formally recall the consistent query answering semantics,
present some simple examples which illustrate the di culty of the problem, and
introduce the main problem which will be studied in this paper. For readability,
we will formulate our de nitions and results in terms of Boolean CQs, but they
can be straightforwardly extended to general CQs.</p>
      <p>The key notion underlying consistent query answering semantics is that of a
repair of an ABox A, which is an ABox which is consistent with the TBox and
as similar as possible to A. In this paper, we follow common practice and use
subset inclusion to compare ABoxes.</p>
      <sec id="sec-3-1">
        <title>De nition 1. A repair of a DL ABox A w.r.t. a TBox T is an inclusionmaximal subset B of A consistent with T . We use RepT (A) to denote the set of repairs of A w.r.t. T .</title>
        <p>Consistent query answering can be seen as performing standard query
answering on each of the repairs and intersecting the answers. For Boolean queries,
the formal de nition is as follows:</p>
        <sec id="sec-3-1-1">
          <title>De nition 2. A query q is said to be consistently entailed from a DL KB</title>
          <p>(T ; A), written T ; A j=cons q, if T ; B j= q for every repair B 2 RepT (A).</p>
          <p>Just as with standard query entailment, we can ask whether consistent query
entailment can be tested by rewriting the query and evaluating it over the data.</p>
        </sec>
        <sec id="sec-3-1-2">
          <title>De nition 3. A rst-order query q0 is a consistent rewriting of a Boolean query</title>
          <p>q w.r.t. a TBox T if for every ABox A, we have T ; A j=cons q i IA j= q0.</p>
          <p>
            As mentioned in Section 1, consistent query answering in DL-Litecore is
co-NP-hard in data complexity, even for instance queries [
            <xref ref-type="bibr" rid="ref10">10</xref>
            ], which means in
particular that consistent rewritings need not exist. All known reductions make
crucial use of inverse roles, and indeed, we will show in Section 7 that consistent
instance checking is rst-order expressible for DL-Litecoreontologies without
inverse. However, in the case of conjunctive queries, the absence of inverses does
not guarantee tractability. Indeed, the next example shows that only a single
concept disjointness axiom can yield coNP-hardness.
          </p>
          <p>
            Example 1. We use a variant of UNSAT, called 2+2UNSAT, proved coNP-hard
in [
            <xref ref-type="bibr" rid="ref7">7</xref>
            ], in which each clause has 2 positive and 2 negative literals, where literals
involve either regular variables or the truth constants true and false. Consider
an instance ' = c1 ^ : : : ^ cm of 2+2-UNSAT over v1; : : : ; vk; true, and false.
Let T = fT v :F g, and de ne A as follows:
f P1(ci; u); P2(ci; x); N1(ci; y); N2(ci; z) j ci = u _ x _ :y _ :z; 1
i
mg
[ f T (vj ); F (vj ) j 1
j
          </p>
          <p>k g [ fT (true); F (false)g
Then one can show that ' is unsatis able just in the case that (T ; A) consistently
entails the following query:
9xy1... y4P1(x; y1)^F (y1)^P2(x; y2)^F (y2)^N1(x; y3)^T (y3)^N2(x; y4)^T (y4)
Essentially, T v :F forces the choice of a truth value for each variable, so the
repairs of A correspond exactly to the set of valuations. Importantly, there is
only one way to avoid satisfying a 2+2-clause: the rst two variables must be
assigned false and the last two variables must be assigned true. The existence of
such a con guration is checked by q.</p>
          <p>We remark that the query in the preceding reduction does not have a particularly
complicated structure (in particular, it is tree-shaped). Its only notable property
is that it has several quanti ed variables.</p>
          <p>In this paper, we aim to gain a better understanding of what makes consistent
conjunctive query answering so di cult (and conversely, what can make it easy).
To this end, we will consider the following decision problem:</p>
          <p>ConsEnt(q; T ): Is A such that T ; A j=cons q?
and we will try to characterize its complexity in terms of the properties of the
pair (q; T ). We will in particular investigate the impact of limiting the number
of quanti ed variables in the query q.</p>
          <p>In the next three sections, we focus on simple ontologies, consisting of
inclusions of the forms A1 v A2 and A1 v :A2 where A1; A2 2 NC. As Example 1
demonstrates, the problem is already non-trivial in this case. All obtained lower
bounds transfer to richer ontologies, and we will show in Section 7 that positive
results can also be extended to DL-Litecore ontologies without inverse roles.
4</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Tractability for Queries with At Most Two Quanti ed</title>
    </sec>
    <sec id="sec-5">
      <title>Variables</title>
      <p>In this section, we investigate the complexity of consistent query answering in the
presence of simple ontologies for CQs having at most two quanti ed variables.
We show this problem has tractable data complexity, and we provide necessary
and su cient conditions for FO-expressibility.</p>
      <p>We begin with queries with at most one quanti ed variable, showing that a
consistent rewriting always exists.</p>
      <sec id="sec-5-1">
        <title>Theorem 1. Let T be a simple ontology, and let q be a Boolean CQ with at most one quanti ed variable. Then ConsEnt(q; T ) is rst-order expressible.</title>
        <p>Proof (Sketch). We show how to construct the desired consistent rewriting of q
in the case where q has a single quanti ed variable x. First, for each t 2 terms(q),
we set Ct = fA j A(t) 2 qg, and we let t be the set of all S NC such that every
maximal subset U S consistent with T is such that T j= U v Ct. Intuitively,
t de nes the possible circumstances under which the conjunction of concepts
in Ct is consistently entailed. We can express this condition with the rst-order
formula t:
t =
_ ( ^
S2 t A2S</p>
        <p>A(t) ^</p>
        <p>^
A2NCnS
:A(t))
Now using the t, we construct q0:
q0 = 9x</p>
        <p>^
R(t;t0)2q</p>
        <p>R(t; t0) ^</p>
        <p>^
t2terms(q)
t
It can be shown that q0 is indeed a consistent rewriting of q w.r.t. T . To see
why this is so, it is helpful to remark that the repairs of (T ; A) contain precisely
the role assertions in A, together with a maximal subset of concept assertions
consistent with T for each individual.</p>
        <p>The next example shows that Theorem 1 cannot be extended to the class of
queries with two quanti ed variables.
A A A A . . . A A A
B B B B B B B</p>
        <p>A1</p>
        <p>A A A A . . . A A A</p>
        <p>B B B B B B
A A A A . . . A A
B B B B B B B</p>
        <p>A2</p>
        <p>
          Example 2. Consider q = 9xy A(x)^R(x; y)^B(y) and T = fA v :Bg. Suppose
for a contradiction that q0 is a consistent rewriting of q w.r.t. T , and let k be the
quanti er rank of q0. In Fig. 1, we give two ABoxes A1 and A2, each consisting
of two R-chains of length &gt; 2k. It can be veri ed that q is consistently entailed
from T ; A1. This is because in every repair, the upper chain will have A at one
end, B at the other, and either an A or B at all interior points; every such
con guration makes q true somewhere along the chain. On the other hand, we
can construct a repair for T ; A2 which does not entail q by always preferring A
on the top chain and B on the bottom chain. It follows that the interpretation
IA1 satis es q0, whereas IA2 does not. However, one can show using standard
tools from nite model theory (cf. Ch. 3-4 of [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]) that no formula of quanti er
rank k can distinguish IA1 and IA2 , yielding the desired contradiction.
        </p>
        <p>We can generalize the preceding example to obtain su cient conditions for
the inexistence of a consistent rewriting.</p>
      </sec>
      <sec id="sec-5-2">
        <title>Theorem 2. Let T be a simple ontology, and let q be a Boolean CQ with two</title>
        <p>quanti ed variables x; y. Assume that there do not exist CQs q1 and q2, each with
less than two quanti ed variables, such that q q1 ^ q2. Denote by Cx (resp. Cy)
the set of concepts A such that A(x) 2 q (resp. A(y) 2 q). Then ConsEnt(q; T )
is not rst-order expressible if there exists S NC such that:
- for v 2 fx; yg, there is a maximal subset Dv</p>
      </sec>
      <sec id="sec-5-3">
        <title>S consistent with T s.t.</title>
        <p>T 6j= Dv v Cv
- for every maximal subset D</p>
        <p>T j= D v Cy</p>
        <p>S consistent with T , either T j= D v Cx or
Proof (Sketch). The proof generalizes the argument outlined in Example 2.
Instead of having a single role connecting successive elements in the chains, we
establish the required relational structure for each pair of successive points. We
then substitute the set Dy for A, the set Dx for B, and the set S for fA; Bg.
The properties of S ensure that if S is asserted at some individual, then we can
block the satisfaction of Cx using Dy, and we can block Cy using Dx, but we
can never simultaneously block both Cx and Cy. The assumption that q cannot
be rewritten as a conjunction of queries with less than two quanti ed variables
is used in the proof of T ; A2 6j=cons q to show that the only possible matches
of q involve successive chain elements (and not constants from the query). To
show IA1 and IA2 cannot be distinguished, we use Ehrenfeucht-Frasse games,
rather than Hanf locality, since the latter is inapplicable when there is a role
atom containing a constant and a quanti ed variable.</p>
        <p>The following theorem shows that whenever the conditions of Theorem 2 are
not met, a consistent rewriting exists.</p>
      </sec>
      <sec id="sec-5-4">
        <title>Theorem 3. Let T be a simple ontology, and let q be a Boolean CQ with two</title>
        <p>quanti ed variables x; y. Then ConsEnt(q; T ) is rst-order expressible if q is
equivalent to a CQ with at most one quanti ed variable, or if there is no set S
satisfying the conditions of Theorem 2.</p>
        <p>Proof (Sketch). When q is equivalent to a query q0 with at most one quanti ed
variable, then Theorem 1 yields a consistent rewriting of q0, and hence of q.
Thus, the interesting case is when there is no such equivalent query, nor any set
S satisfying the conditions of Theorem 2. Intuitively, the inexistence of such a
set S ensures that if at some individual, one can block Cx, and one can block Cy,
then it is possible to simultaneously block Cx and Cy (compare this to Example
2 in which blocking A causes B to hold, and vice-versa). This property is key,
as it allows di erent potential query matches to be treated independently.</p>
        <p>Together, Theorems 2 and 3 provide a necessary and su cient condition for
the existence of a consistent rewriting. We now reconsider T and q from Example
2 and outline a polynomial-time method for solving ConsEnt(q; T ).
Example 3. Suppose we have an ABox A, and we wish to decide if T ; A j=cons q,
for T = fA v :Bg and q = 9xy A(x) ^ R(x; y) ^ B(y). The basic idea is to try to
construct a repair which does not entail q. We start by iteratively applying the
following rules until neither rule is applicable: (1) if R(a; b); A(a); B(a); B(b) 2 A
but A(b) 62 A, then delete A(a) from A, and (2) if R(a; b); A(a); A(b); B(b) 2 A
but B(a) 62 A, then delete B(b). Note that since the size of A decreases with
every rule application, we will stop after a polynomial number of iterations.
Once nished, we check whether there are a; b such that A(a); R(a; b); B(b) 2 A,
B(a) 62 A, and A(b) 62 A. If so, we return `yes' (to indicate T ; A j=cons q), and
otherwise, we output no' (for T ; A 6j=cons q). Note that in the latter case, for all
pairs a; b with A(a); R(a; b); B(b) 2 A, we have both B(a) and A(b). Thus, we
can choose to always keep A, thereby blocking all remaining potential matches.</p>
        <p>By carefully generalizing the ideas outlined in Example 3, we obtain a
tractability result which covers all queries having at most two quanti ed variables.</p>
      </sec>
      <sec id="sec-5-5">
        <title>Theorem 4. Let T be a simple ontology, and let q be a CQ with at most 2 quanti ed variables. Then ConsEnt(q; T ) is polynomial in data complexity.</title>
        <p>5</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>An Improved coNP Lower Bound</title>
      <p>The objective of this section is to show that the tractability result we obtained
for queries with at most two quanti ed variables cannot be extended further
AC
vi
vjAC
a</p>
      <p>B
to the class of conjunctive queries with three quanti ed variables. We will do
this by establishing coNP-hardness for a speci c conjunctive query with three
quanti ed variables, thereby improving the lower bound sketched in Example 1.
Speci cally, we will reduce 3SAT to ConsEnt(q; T ) where:</p>
      <p>T = fA v :B; A v :C; B v :Cg
q = 9x; y; z A(x) ^ R(x; y) ^ B(y) ^ R(y; z) ^ C(z).</p>
      <p>The rst component of the reduction is a mechanism for choosing truth values
for the variables. For this, we create an ABox Avi = fA(vi); C(vi)g for each
variable vi. It is easy to see that there are two repairs for Avi w.r.t. T : fA(vi)g
and fC(vi)g. We will interpret the choice of A(vi) as assigning true to vi, and
the presence of C(vi) to mean that vi is false.</p>
      <p>Next we need some way of verifying whether a clause is satis ed by the
valuation associated with a repair of [iAvi . To this end, we create an ABox Ac`
for each clause c`; the ABox A' encoding ' will then simply be the union of the
ABoxes Avi and Ac` . The precise de nition of the ABox Ac` is a bit delicate
and depends on the polarity of the literals in c`. Figure 2 presents a pictorial
representation of Ac` for the case where c` = :vi _ :vj _ :vk (the ABoxes Avi ,
Avj , and Avk are also displayed).</p>
      <p>Let us now see how the ABox Ac` pictured in Fig. 2 can be used to test the
satisfaction of c`. First suppose that we have a repair B of A' which contains
A(vi); A(vj ), and A(vk), i.e. the valuation associated with the repair does not
satisfy c`. We claim that this implies that q holds. Suppose for a contradiction
that q is not entailed from T ; B. We rst note that by maximality of repairs, B
must contain all of the assertions A(vj ); R(vj ; a`); B(a`), and R(a`; c`2). It follows
that including C(c`2) in B would cause q to hold, which means we must choose to
include B(c`2) instead. Using similar reasoning, we can see that in order to avoid
satisfying q, we must have C(d`) in B rather than B(d`), which in turn forces us
to select C(c`3) to block A(c`3). However, this is a contradiction, since we have
identi ed a match for q in B with x = vi; y = c`2; z = c`3. The above argument
(once extended to the other possible forms of Ac` ) is the key to showing that
the unsatis ability of ' implies T ; A' j= q.</p>
      <p>Conversely, it can be proven that if one of c`'s literals is made true by the
valuation, then it is possible to repair Ac` in such a way that a match for q
is avoided. For example, consider again Ac` from Figure 2, and suppose that
the second literal vj is satis ed. It follows that C(vj ) 2 B, hence A(vj ) 62 B,
which means we can keep C(c`2) rather than B(c`2), thereby blocking the match
at (vi; c`2; c`3). By showing this property holds for the di erent forms of Ac` ,
and by further arguing that we can combine \q-avoiding" repairs of the Ac`
without inducing a match for q, we can prove that the satis ability of ' implies
T ; A' 6j= q. We thus have:
Theorem 5. ConsEnt(q; T ) is coNP-hard in data complexity for T = fA v
:B; A v :C; B v :Cg and q = 9x; y; z A(x) ^ R(x; y) ^ B(y) ^ R(y; z) ^ C(z).
6</p>
    </sec>
    <sec id="sec-7">
      <title>Tractability through Approximation</title>
      <p>The positive results from Section 4 give us a polynomial algorithm for consistent
query answering in the presence of simple ontologies, but only for CQs with
at most two quanti ed variables. In order to be able to handle all queries, we
explore in this section alternative inconsistency-tolerant semantics which are
sound approximations of the consistent query answering semantics.</p>
      <p>
        One option is to adopt the IAR semantics from [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. We recall that this
semantics (denoted by j=IAR) can be seen as evaluating queries against the ABox
corresponding to the intersection of the repairs. Conjunctive query answering
under IAR semantics was shown in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] tractable for general CQs in the presence
of DL-Lite ontologies (and a fortiori simple ontologies) using query rewriting.
      </p>
      <p>To obtain a ner approximation of the consistent query answering semantics,
we propose a new inconsistency-tolerant semantics which corresponds to
closing repairs with respect to the TBox before intersecting them. In the following
de nition, we use clT (B) to denote the set of assertions entailed from T ; B.</p>
      <sec id="sec-7-1">
        <title>De nition 4. A Boolean query q is said to be entailed from (T ; A) under ICR</title>
        <p>semantics (\intersection of closed repairs"), written T ; A j=ICR q, if T ; D j= q,
where D = TB2RepT (A) clT (B).</p>
        <p>The following theorem, which is easy to prove, establishes the relationship
among the three semantics.</p>
      </sec>
      <sec id="sec-7-2">
        <title>Theorem 6. For every Boolean CQ q and TBox T :</title>
        <p>T ; A j=IAR q
)</p>
        <p>T ; A j=ICR q
)</p>
        <p>T ; A j=cons q</p>
        <sec id="sec-7-2-1">
          <title>The reverse implications do not hold.</title>
          <p>The next example illustrates the di erence between IAR and ICR semantics:
Example 4. Let T = fA v C; B v C; A v :Bg and A = fA(a); B(a)g. Then
C(a) is entailed from (T ; A) under ICR semantics, but not under IAR semantics.</p>
          <p>Finally, we show that under ICR semantics, we can answer any conjunctive
query in polynomial time using query rewriting.</p>
        </sec>
      </sec>
      <sec id="sec-7-3">
        <title>Theorem 7. Let T be a simple ontology and q a Boolean CQ. Then there exists a rst-order query q0 such that for every ABox A: T ; A j=ICR q i IA j= q0.</title>
        <p>Proof (Sketch). We rst compute, using standard techniques, a union of
conjunctive queries ' such that for every A, we have T ; A j= q if and only if IA j= '.
Next we use Theorem 1 to nd a consistent rewriting A(t) of each concept atom
A(t) 2 ', and we let q0 be the rst-order query obtained by replacing each
occurrence of A(t) in ' by A(t). It can be shown that the query q0 is such that
T ; A j=ICR q if and only if IA j= q0.
7</p>
      </sec>
    </sec>
    <sec id="sec-8">
      <title>Extension to Inverse-Free DL-Litecore</title>
      <p>In this section, we show how the techniques we developed for simple ontologies
can be used to extend our positive results to DL-Litecore ontologies which do
not contain inverse roles (we will use DL-Liteno to refer to this logic).</p>
      <p>Our rst result shows that the analogues of Theorems 1 and 4 hold for
DL-Liteno ontologies. The main technical di culty in adapting the proofs of
Theorems 1 and 4 is that role assertions may now be contradicted, which means
repairs need not have the same set of role assertions as the original ABox.</p>
      <sec id="sec-8-1">
        <title>Theorem 8. Consider a DL-Liteno ontology T , and a Boolean CQ q with</title>
        <p>at most two quanti ed variables. Then ConsEnt(q; T ) is polynomial in data
complexity, and rst-order expressible if there is at most one quanti ed variable.</p>
        <p>We can also extend the general rst-order expressibility result for the new
ICR semantics (Theorem 7) to the class of DL-Liteno ontologies.</p>
      </sec>
      <sec id="sec-8-2">
        <title>Theorem 9. Let T be a DL-Liteno ontology, and let q be a Boolean CQ. Then</title>
        <p>there exists a rst-order query q0 such that for every ABox A: T ; A j=ICR q if
and only if IA j= q0.</p>
        <p>As noted earlier, consistent query answering in (full) DL-Litecore is
coNPhard in data complexity even for instance queries, which means that neither of
the preceding theorems can be extended to the class of DL-Litecore ontologies.
8</p>
      </sec>
    </sec>
    <sec id="sec-9">
      <title>Conclusion and Future Work</title>
      <p>
        The detailed complexity analysis we conducted for consistent query answering
in the presence of simple ontologies provides further insight into previously
obtained negative complexity results [
        <xref ref-type="bibr" rid="ref10 ref14">10, 14</xref>
        ], by making clear how little is needed to
obtain rst-order inexpressibility or intractability. Our investigation also yielded
some positive results, including the identi cation of novel tractable cases, such
as inverse-free DL-Litecore ontologies coupled with CQs with at most two
quanti ed variables (or coupled with arbitary CQs, under the new ICR semantics).
      </p>
      <p>
        There are several natural directions for future work. First, it would be
interesting to explore how far we can push our positive results. We expect that
adding Horn inclusions and positive role inclusions should be unproblematic, but
role disjointness axioms will be more challenging. In order to handle functional
roles, we might try to combine our positive results with those which have been
obtained for relational databases under functional dependencies [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. It would
also be interesting to try to build upon the results in this paper in order to
obtain a criterion for rst-order expressibility (or tractability) which applies to
all conjunctive queries, regardless of the number of quanti ed variables.
      </p>
      <p>
        Finally, we view the present work as a useful starting point in the
development of sound but incomplete consistent query answering algorithms for popular
lightweight DLs like (full) DL-Litecore and E L?. For example, our results could
be extended to identify some CQ-TBox pairs in these richer logics for which
consistent query answering is tractable. Another idea is to use the new ICR
semantics to lift tractability results for IQs (like those in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]) to classes of CQs.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Arenas</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bertossi</surname>
            ,
            <given-names>L.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chomicki</surname>
          </string-name>
          , J.:
          <article-title>Consistent query answers in inconsistent databases</article-title>
          .
          <source>In: Proc. of PODS</source>
          . pp.
          <volume>68</volume>
          {
          <fpage>79</fpage>
          . ACM Press (
          <year>1999</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>Journal of Arti cial Intelligence Research</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>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brandt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Pushing the EL envelope</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          . pp.
          <volume>364</volume>
          {
          <issue>369</issue>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>First-order expressibility results for queries over inconsistent DLLite knowledge bases</article-title>
          .
          <source>In: Proc. of DL</source>
          (
          <year>2011</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>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable reasoning and e cient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>39</volume>
          (
          <issue>3</issue>
          ),
          <volume>385</volume>
          {
          <fpage>429</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Chomicki</surname>
          </string-name>
          , J.:
          <article-title>Consistent query answering: Five easy pieces</article-title>
          .
          <source>In: Proc. of ICDT</source>
          . pp.
          <volume>1</volume>
          {
          <issue>17</issue>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Donini</surname>
            ,
            <given-names>F.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nardi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schaerf</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Deduction in concept languages: From subsumption to instance checking</article-title>
          .
          <source>Journal of Logic and Computation</source>
          <volume>4</volume>
          (
          <issue>4</issue>
          ),
          <volume>423</volume>
          {
          <fpage>452</fpage>
          (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Fuxman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miller</surname>
            ,
            <given-names>R.J.</given-names>
          </string-name>
          :
          <article-title>First-order query rewriting for inconsistent databases</article-title>
          .
          <source>In: Proc. of ICDT</source>
          . pp.
          <volume>337</volume>
          {
          <issue>351</issue>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Grieco</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ruzzi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Consistent query answering under key and exclusion dependencies: algorithms and experiments</article-title>
          .
          <source>In: Proc. of CIKM</source>
          . pp.
          <volume>792</volume>
          {
          <issue>799</issue>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <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>
          ,
          <string-name>
            <surname>Ruzzi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Savo</surname>
            ,
            <given-names>D.F.</given-names>
          </string-name>
          :
          <article-title>Inconsistency-tolerant semantics for description logics</article-title>
          .
          <source>In: Proc. of RR</source>
          . pp.
          <volume>103</volume>
          {
          <issue>117</issue>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <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>
          ,
          <string-name>
            <surname>Ruzzi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Savo</surname>
            ,
            <given-names>D.F.</given-names>
          </string-name>
          :
          <article-title>Query rewriting for inconsistent DL-Lite ontologies</article-title>
          .
          <source>In: Proc. of RR</source>
          . pp.
          <volume>155</volume>
          {
          <issue>169</issue>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Libkin</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Elements of Finite Model Theory</article-title>
          . Springer (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Nikitina</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Glimm</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Reasoning-supported interactive revision of knowledge bases</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          . pp.
          <volume>1027</volume>
          {
          <issue>1032</issue>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>On the complexity of dealing with inconsistency in description logic ontologies</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          . pp.
          <volume>1057</volume>
          {
          <issue>1062</issue>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Wijsen</surname>
          </string-name>
          , J.:
          <article-title>On the rst-order expressibility of computing certain answers to conjunctive queries over uncertain databases</article-title>
          .
          <source>In: Proc. of PODS</source>
          . pp.
          <volume>179</volume>
          {
          <issue>190</issue>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>