<!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>New inconsistency-tolerant semantics for robust ontology-based data access</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Meghyn Bienvenu</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Riccardo Rosati</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 Sapienza Universita` di Roma</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Laboratoire de Recherche en Informatique CNRS &amp; Universite ́ Paris-Sud</institution>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In ontology-based data access (OBDA) [17], an ontology provides an abstract and formal representation of the domain of interest, which is used as a virtual schema when formulating queries over the data. Current research in OBDA mostly focuses on ontology specification languages for which conjunctive query answering is first-order (FO) rewritable. In a nutshell, FO-rewritability means that query answering can be performed by rewriting the input query into a first-order query which encodes the relevant knowledge from the ontology, and then evaluating the resulting query over the data. Among FO-rewritable ontology languages, description logics (DLs) of the DL-Lite family [8, 2] have played an especially prominent role and notably served as the inspiration for the OWL 2 QL profile 3 of the latest version of the OWL web ontology language. In real-world applications involving large amounts of data and/or multiple data sources, chances are that the data will be inconsistent with the ontology. Standard OBDA querying algorithms are next to useless in such circumstances, since first-order logic semantics (upon which DLs and standard ontology languages are based) dictates that everything can be derived from a contradiction. Appropriate mechanisms for handling inconsistent data are thus critical to the success of OBDA in practice. Clearly, the best solution is to restore consistency by removing the pieces of data that are responsible for the inconsistencies. However, this strategy cannot always be applied, since the system may not have enough information to localize the errors, or may lack the authorization to modify the data (as is often the case in information integration applications). Thus, a robust OBDA system must be capable of providing meaningful answers to user queries in the presence of inconsistent data. Recently, several approaches have pursued the idea of adopting an inconsistencytolerant semantics for OBDA, taking inspiration from the work on consistent query answering in databases [1, 4]. The most well-known and intuitive among such semantics, which we will call the CQA semantics, considers as a repair of a knowledge base (KB) consisting of an ontology T and a dataset A, a maximal subset of A that is consistent with T . Query answering under the CQA semantics then amounts to computing those answers that hold in every repair of the KB. Unfortunately, conjunctive query answering (as well as simpler forms of reasoning) under CQA semantics is computationally 3 http://www.w3.org/TR/owl2-profiles/</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        hard, even for extremely simple ontology languages for which reasoning under classical
semantics is tractable [
        <xref ref-type="bibr" rid="ref13 ref5">13, 5</xref>
        ].
      </p>
      <p>
        To overcome this computational problem, approximations of the CQA semantics
have been recently proposed. In particular, [
        <xref ref-type="bibr" rid="ref13 ref14">13, 14</xref>
        ] introduces a sound approximation
(called IAR semantics) that evaluates queries over the intersection of all the repairs of
the CQA semantics. It was shown that conjunctive query answering under this
semantics is tractable (in particular, it is first-order rewritable) for logics of the DL-Lite family.
However, the IAR semantics has the drawback that it often constitutes a very rough
approximation of the CQA semantics, and desirable query answers may be missed. In
an effort to obtain more answers than the IAR semantics, a family of parameterized
inconsistency-tolerant semantics, called k-lazy consistent semantics, was proposed in
[
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] and shown to converge in the limit to the CQA semantics. However, since the
convergence is not monotone in k, these semantics are not sound approximations of the
CQA semantics. Moreover, these semantics do not retain the nice computational
properties of the IAR semantics: the polynomial data complexity result shown for linear
Datalog+/- ontologies only holds for atomic queries, and it follows from results in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
that conjunctive query answering under k-lazy consistent semantics is coNP-hard in
data complexity, for every k 1.
      </p>
      <p>In this paper, we address the above issues and provide the following contributions:
(i) we propose two new families of inconsistency-tolerant semantics, called k-defeater
and k-support semantics, that approximate the CQA semantics from above (complete
approximations) and from below (sound approximations), respectively, and converge to
the CQA semantics in the limit;</p>
      <p>
        (ii) we study the data complexity of conjunctive query answering under the new
semantics, and show a general tractability result for a broad class of ontology languages
that includes all known first-order rewritable languages, in particular almost all DLs of
the DL-Lite family and several rule-based languages of the Datalog+/- family [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ];
(iii) we analyze the combined complexity of conjunctive query answering under the
above semantics for ontology languages of the DL-Lite family.
      </p>
      <p>The k-support and k-defeater semantics proposed in this paper provide the basis
for a semantically grounded and computationally tractable approximation of the CQA
semantics in OBDA systems. In particular, we envision a flexible, iterated execution
of query q under both k-support and k-defeater semantics with increasing values of k,
which stops as soon as the answers to q under both semantics coincide, or when the
user is not interested in (or does not want to pay further computational cost for) an
exact classification of the tuples that are answers to q under the CQA semantics.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>Ontologies and KBs An ontology T is a finite set of first-order logic sentences, and
an ontology (specification) language L is a (typically infinite) set of first-order logic
sentences. If T L, then T is called an L ontology. A knowledge base (KB) is a pair
consisting of an ontology T and a finite set A of ground facts. A KB hT ; Ai is said to
be consistent if the first-order theory T [ A has a model. Otherwise, it is inconsistent,
which we denote by hT ; Ai j= ?.</p>
      <p>We are interested in the problem of answering instance queries and conjunctive
queries over KBs. Without loss of generality, and for ease of exposition, we only
consider Boolean queries (i.e. queries without free variables). A first-order (FO) query,
or simply query, is a first-order sentence. An instance query (IQ) is a FO query
consisting of a single ground fact. A conjunctive query (CQ) is a FO query of the form
9x( 1 ^ : : : ^ n) where every i is an atom whose arguments are either constants or
variables from x. A query q is entailed by a KB K under classical semantics (denoted
by K j= q) if q is satisfied in every model of K. The instance checking problem consists
in deciding, for a KB K and IQ q, whether K j= q. The conjunctive query entailment
problem is defined analogously, but with q a CQ.</p>
      <p>We introduce some terminology for referring to sets of facts which are responsible
for inconsistency or query entailment. A set S of ground facts is called T -consistent if
hT ; Si 6j= ?. A minimal T -inconsistent subset of A is any S A such that hT ; Si j= ?
and every S0 ( S is T -consistent. A set of facts S A is said to be a T -support for
query q in A if S is T -consistent and hT ; Si j= q, and it is called a minimal T -support
for q in A if no proper subset of S is a T -support for q in A. We sometimes omit “for
q” or “in A”, when these are understood.</p>
      <p>
        Given a set of ground facts A, we define IA as the interpretation isomorphic to A,
i.e., the interpretation defined over the domain of constants occurring in A and such that
the interpretation of every relation R in IA is equal to the set fa j R(a) 2 Ag.
DL-Lite ontology languages We focus on DLs of the DL-Lite family [
        <xref ref-type="bibr" rid="ref2 ref8">8, 2</xref>
        ] and recall
the syntax and semantics of two specific dialects, called DL-Lite4 and DL-LiteHorn . A
DL-Lite ontology consists of a finite set of inclusions B v C, where B and C are
defined according to the following syntax:
      </p>
      <p>B ! A j 9R</p>
      <p>C ! B j :B</p>
      <p>R ! P j P
with A a concept name (unary relation) and P a role name (binary relation). In a
DL-LiteHorn ontology, inclusions take the form B1 u : : : u Bn v C, with B1; : : : ; Bn
and C as above.</p>
      <p>The classical semantics of DL-Lite and DL-LiteHorn ontologies is obtained by
translating inclusions into first-order sentences using the following function :
(A(x)) = A(x)
(9P (x)) = 9y(P (x; y))
(9P (x)) = 9y(P (y; x))</p>
      <p>(:B(x)) = : (B(x))
(B1 u B2(x)) = (B1(x)) ^ (B2(x))</p>
      <p>(C v D) = 8x( (C(x)) ! (D(x))
The classical semantics of a DL-LiteHorn KB hT ; Ai (and in particular, the notions of
model, consistency, and entailment) corresponds to the semantics of the first-order KB
h (T ); Ai. Note that when considering DL KBs, we assume as is standard that the
dataset A uses only unary and binary relations.</p>
      <p>
        First-order rewritability We say that an ontology T is first-order (FO) rewritable
(for CQ answering) under semantics S if, for every CQ q, there exists an effectively
computable FO query q0 such that, for every set of ground facts A, hT ; Ai entails q
4 This DL is referred to as DL-Litecore in [
        <xref ref-type="bibr" rid="ref2 ref8">8, 2</xref>
        ].
under semantics S iff q0 is satisfied in IA (in the classical sense). Such a query q0 is
called a FO-rewriting of q relative to T under semantics S. Moreover, we say that an
ontology language L is FO-rewritable (for CQ answering) under semantics S if, for
every ontology T L, T is FO-rewritable for CQ answering under S.
Complexity There are two common ways of measuring the complexity of query
entailment. The first, called combined complexity, is with respect to the size of the whole input
(T ; A; q), whereas the second, called data complexity, is only with respect to the size
of A. Our complexity results utilize standard complexity classes, such as NLSPACE, P,
NP, and coNP. We also require the following classes which may be less well-known:
AC0 (problems which can be solved by a family of circuits of constant depth and
polynomial size, with unlimited fan-in AND gates and OR gates), 2p (problems whose
complement is solvable in non-deterministic polynomial time with access to an NP
oracle), and 2p[O(log n)] (problems which are solvable in polynomial time with at most
logarithmically many calls to an NP oracle).
      </p>
    </sec>
    <sec id="sec-3">
      <title>3 Inconsistency-tolerant Semantics</title>
      <p>In this section, we formally introduce the consistent query answering (CQA) semantics
and other relevant inconsistency-tolerant semantics. All of the semantics considered in
this paper rely on the notion of a repair, defined as follows:
Definition 1. A repair of a KB K = hT ; Ai is an inclusion-maximal subset of A that is
T -consistent. We use Rep(K) to denote the set of repairs of K.</p>
      <p>The repairs of a KB correspond to the different ways of achieving consistency while
retaining as much of the original data as possible. Hence, if we consider that the data is
mostly reliable, then it is reasonable to assume that one of the repairs accurately reflects
the correct portion of the data.</p>
      <p>
        The consistent query answering semantics (also known as the AR semantics [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ])
is based upon the idea that, in the absence of further information, a query can be
considered to hold if it can be inferred from each of the repairs. Formally:
Definition 2. A query q is entailed by a KB K = hT ; Ai under the consistent query
answering (CQA) semantics, written hT ; Ai j=CQA q, if hT ; Bi j= q for every repair
B 2 Rep(K).
      </p>
      <p>Example 1. Consider the DL-Lite ontology Tuniv:</p>
      <sec id="sec-3-1">
        <title>Prof v Faculty</title>
      </sec>
      <sec id="sec-3-2">
        <title>Lect v :Fellow</title>
      </sec>
      <sec id="sec-3-3">
        <title>Lect v Faculty Fellow v Faculty Prof v :Lect Prof v 9teaches Lect v 9teaches 9teaches v :Faculty</title>
      </sec>
      <sec id="sec-3-4">
        <title>Prof v :Fellow</title>
        <p>which states that professors, lecturers, and research fellows are disjoint classes of
faculty, that professors and lecturers must teach something, and that whatever is taught is
not faculty. Now let Asam be as follows: fProf(sam); Lect(sam); Fellow(sam)g. It is
easy to see that KB hTuniv; Asami is inconsistent and has 3 repairs: R1 = fProf(sam)g,
R2 = fLect(sam)g and R3 = fFellow(sam)g. Observe that from each of the
repairs, we can infer q1 = Faculty(sam), so hTuniv; Asami j=CQA q1. However, q2 =
hTuniv; Asami 6j=CQA q2.</p>
        <p>
          Unfortunately, while the CQA semantics is intuitively appealing, it is well-known
that answering queries under this semantics is usually intractable w.r.t. data complexity
[
          <xref ref-type="bibr" rid="ref13 ref5">13, 5</xref>
          ]. This stems from the fact that the number of repairs of hT ; Ai may be exponential
in the size of A, even when T is formulated in extremely simple ontology languages.
        </p>
        <p>
          To overcome the computational problems of the CQA semantics, a sound
approximation of it, called the IAR semantics, was proposed in [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ].
        </p>
        <p>Definition 3. A query q is entailed by a KB K = hT ; Ai under the IAR semantics,
written hT ; Ai j=IAR q, if hT ; Di j= q where D = TB2Rep(K) B.</p>
        <p>The IAR semantics is more conservative than the CQA semantics, as it only uses
those facts which are not involved in any contradiction. This has the advantage of
yielding query results which are almost surely correct, but also the drawback that some
plausible inferences may be missed, as demonstrated by the following example.
Example 2. Reconsider the KB hTuniv; Asami and CQ q1 from Example 1. The
intersection of the repairs R1 \ R2 \ R3 is the empty set, so hTuniv; Asami 6j=IAR q1, despite the
fact that all the information in Asam supports q1 being true.</p>
        <p>
          From the computational perspective, the IAR semantics can be much better-behaved
than the CQA semantics. Indeed, it was shown in [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] that DL-LiteA is FO-rewritable
for CQ answering under the IAR semantics, and this result was recently extended to
linear Datalog +/- ontologies [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ].
        </p>
        <p>Finally, to obtain a natural overapproximation of the CQA semantics, we introduce
its brave version.</p>
        <p>Definition 4. A query q is entailed by a KB K = hT ; Ai under the brave semantics,
written hT ; Ai j=brave q, if hT ; Bi j= q for some repair B 2 Rep(K).</p>
        <p>Example 3. As q2 is entailed by hTuniv; R1i, we have hTuniv; Asami j=brave q2. Also note
that every fact in Asam appear in some repair, hence, all facts in Asam are entailed under
the brave semantics.</p>
        <p>As Example 3 demonstrates, the brave semantics has the undesirable feature of
allowing contradictory statements to be entailed. Nonetheless, this semantics can still
serve a useful role by providing a means of showing that a query is not entailed under
the CQA semantics.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Approximations of the CQA Semantics</title>
      <p>In this section, we propose two new families of inconsistency-tolerant semantics, which
provide increasingly fine-grained under- and over-approximations of the CQA
semantics. As these semantics will be shown in Section 5 to enjoy the same nice computational
properties as the IAR semantics, our new approach allows us to marry the advantages
of the IAR and CQA semantics.</p>
      <p>We begin by presenting our new family of sound approximations of the CQA
semantics. The intuition is as follows: if a query q is entailed under the CQA semantics,
then this is because there is a set fS1; : : : ; Sng of T -supports for q such that every
repair contains some Si. The k-support semantics we propose is obtained by allowing a
maximum of k different supports to be used.</p>
      <p>Definition 5. A query q is entailed by K = hT ; Ai under the k-support semantics,
written K j=k-supp q, if there exist (not necessarily distinct) subsets S1; : : : ; Sk of A
satisfying the following conditions:
– each Si is a T -support for q in A
– for every R 2 Rep(K), there is some Si with Si R
have hTuniv; Asami j=3-supp q1, but hTuniv; Asami 6j=2-supp q1.</p>
      <p>Example 4. The three repairs of hTuniv; Asami all use different supports for q1. We thus</p>
      <p>The following theorem resumes the important properties of the family of k-support
semantics, showing that they interpolate between the IAR and CQA semantics.
Theorem 1. Let K = hT ; Ai be a KB and q a query. Then:
1. K j=IAR q if and only if K j=1-supp q
2. K j=CQA q if and only if K j=k-supp q for some k
3. for every k 0, if K j=k-supp q, then K j=k+1-supp q</p>
      <p>The k-support semantics allows us to approximate more and more closely the set of
queries entailed under the CQA semantics, but provides no way of showing that a
particular query is not entailed under this semantics. This motivates the study of complete
approximations of the CQA semantics.</p>
      <p>The observation underlying our new family of complete approximations is the
following: if a query q is not entailed under the CQA semantics, this is because there is
a T -consistent set of facts which contradicts all of the T -supports of q. The k-defeater
semantics corresponds to there being no way to construct such a “defeating” set using
at most k facts.</p>
      <p>Definition 6. A query q is entailed by K = hT ; Ai under the k-defeater semantics,
written K j=k-def q, if there does not exist a T -consistent subset S of A with jSj k
such that hT ; S [ Ci j= ? for every minimal T -support C A of q.</p>
      <p>Note that if q has no T -support, then it is not entailed under 0-defeater semantics
since one can simply take S = ;.</p>
      <p>Example 5. We have hTuniv; Asami 6j=1-def q2, since by choosing S = fFellow(sam)g,
we can invalidate the minimal T -supports of q2, which are fProf(sam)g and fLect(sam)g.</p>
      <p>The next theorem shows that the family of k-defeater semantics provides
increasingly closer over-approximations of the CQA semantics, starting from the brave
semantics presented in Section 3.</p>
      <p>Theorem 2. Let K = hT ; Ai be a KB and q a query. Then:
1. K j=brave q if and only if K j=0-def q
2. K j=CQA q if and only if K j=k-def q for every k
3. for every k 1, if K j=k+1-def q, then K j=k-def q</p>
    </sec>
    <sec id="sec-5">
      <title>Data Complexity</title>
      <p>In this section, we study the data complexity of conjunctive query answering under the
k-support and k-defeater semantics. Our main result is the following theorem which
shows that, for a broad class of ontology languages, conjunctive query answering
under these semantics can be done using FO-rewriting, and hence is in AC0 w.r.t. data
complexity.</p>
      <p>Theorem 3. Let T be an ontology that is FO-rewritable for CQ answering under
classical semantics and such that for every CQ q, there exist `; m such that for every A,
every minimal T -support for q relative to A has cardinality at most `, and every
minimal T -inconsistent subset of A has cardinality at most m. Then:
(i) for every k 1, T is FO-rewritable for conjunctive query answering under the
k-support semantics;
(ii) for every k 0, T is FO-rewritable for conjunctive query answering under the
k-defeater semantics.</p>
      <p>Proof (sketch). Let T be as stated, and let q be a CQ. By assumption, we can find ` and
m such that for every A, the minimal T -supports for q relative to A have cardinality
at most `, and the minimal T -inconsistent subsets of A have cardinality bounded by
m. For point (i), a FO-rewriting of q relative to T for the k-support semantics can be
obtained by considering the first-order query 'q = q1 _ : : : _ qn, where the disjuncts
qi correspond to the different possible choices of k T -supports for q of cardinality at
most `, and each qi asserts that the chosen supports are present in A and that there is
no T -consistent subset of A of cardinality at most km which conflicts with each of the
supports. For point (ii), the desired FO-rewriting of q takes the form :(q1 _ : : : _ qn),
where every qi asserts the existence of a T -consistent set of facts of cardinality at most
k which conflicts with every minimal T -support for q. Here we again utilize the fact
that the size of minimal T -supports is bounded by `, and hence there are only finitely
many types of supports to consider.</p>
      <p>
        Theorem 3 significantly strengthens earlier positive results for the IAR semantics
[
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ] by covering a full range of semantics and an entire class of practically
relevant ontology languages. Indeed, it is easy to verify that all ontology languages that
are currently known to be first-order rewritable under classical semantics satisfy the
hypotheses of Theorem 3: that is, all logics of the original DL-Lite family [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and almost
all members of the extended DL-Lite family [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], as well as all dialects of
Datalog+/that are known to be FO-rewritable under classical semantics [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>The following examples illustrate the construction of FO-rewritings for the k-support
and k-defeater semantics.</p>
      <p>Example 6. We consider how to rewrite the CQ q1 under the k-support semantics.
When k = 1, we can take as our FO-rewriting the disjunction of the formulas:</p>
      <sec id="sec-5-1">
        <title>Faculty(sam) ^ :9x teaches(x; sam)</title>
      </sec>
      <sec id="sec-5-2">
        <title>Prof(sam) ^ :9x teaches(x; sam) ^ :Lect(sam) ^ :Fellow(sam)</title>
      </sec>
      <sec id="sec-5-3">
        <title>Lect(sam) ^ :9x teaches(x; sam) ^ :Prof(sam) ^ :Fellow(sam)</title>
      </sec>
      <sec id="sec-5-4">
        <title>Fellow(sam) ^ :9x teaches(x; sam) ^ :Lect(sam) ^ :Prof(sam)</title>
        <p>Note that each disjunct expresses that one of the four possible T -supports is present and
is not contradicted by other facts. To obtain the rewriting for k = 2, we must introduce
additional disjuncts which assert that a pair of T -supports is present and cannot be
simultaneously contradicted. We obtain three new disjuncts (the other combinations
being subsumed by one of the other disjuncts):</p>
      </sec>
      <sec id="sec-5-5">
        <title>Prof(sam) ^ Lect(sam) ^ :9x teaches(x; sam) ^ :Fellow(sam)</title>
      </sec>
      <sec id="sec-5-6">
        <title>Lect(sam) ^ Fellow(sam) ^ :9x teaches(x; sam) ^ :Prof(sam)</title>
      </sec>
      <sec id="sec-5-7">
        <title>Fellow(sam) ^ Prof(sam) ^ :9x teaches(x; sam) ^ :Lect(sam)</title>
        <p>Finally, for k = 3, we must add further disjuncts to check for the existence of a triple
of T -supports which are present and cannot be defeated. In our case, this leads to one
new (non-subsumed) disjunct:</p>
      </sec>
      <sec id="sec-5-8">
        <title>Prof(sam) ^ Lect(sam) ^ Fellow(sam) ^ :9x teaches(x; sam)</title>
        <p>Note that this last disjunct is satisfied in IAsam , witnessing hTuniv; Asami j=3-supp q1.
Notice also that in this particular example, the CQA and 3-support semantics coincide,
and so the FO-rewriting for k = 3 is also a FO-rewriting under the CQA semantics.
Example 7. We now consider how to rewrite the query q2 under the k-defeater
semantics. When k = 0, the construction yields the following FO-rewriting:
: :(9x Faculty(sam) ^ teaches(sam; x)) ^ :Prof(sam)</p>
        <p>^ :Lect(sam) ^ :(9x Fellow(sam) ^ teaches(sam; x))
Inside the negation, there is a single disjunct which asserts that the empty set conflicts
with every T -support, or equivalently, that there are no T -supports. When k = 1, we
must add further disjuncts inside the negation to capture single facts which conflict with
all T -supports. In our case, we must add two new disjuncts:</p>
      </sec>
      <sec id="sec-5-9">
        <title>9x teaches(x; sam)</title>
      </sec>
      <sec id="sec-5-10">
        <title>Fellow(sam) ^ :teaches(sam; x)</title>
        <p>The first disjunct is needed since any fact of the form teaches(x; sam) contradicts
Faculty(sam), and hence, every T -support for q2. The second disjunct treats the case
where there is no atom teaches(x; sam), in which case the only possible T -supports
for q2 are Prof(sam) and Lect(sam), both of which are contradicted by Fellow(sam).
Notice that this last disjunct holds in IAsam , which proves that hTuniv; Asami 6j= q2.</p>
        <p>
          We briefly remark that polynomial data complexity is not preserved under the new
semantics. Indeed, in the lightweight DL E L?, CQ answering and unsatisfiability are
P-complete w.r.t. data complexity, but it was shown in [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ] that instance checking under
the IAR (equiv. 1-support) semantics is coNP-hard w.r.t. data complexity, and it is not
hard to show intractability also for the brave (equiv. 0-defeater) semantics.
6
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Combined Complexity</title>
      <p>To gain further insight into the computational properties of the different
inconsistencytolerant semantics considered in this paper, we study the combined complexity of
instance checking and CQ entailment for DL-Lite and DL-LiteHorn KBs under these
semantics. The results of our analysis are reported in Figure 1.
IC</p>
      <p>DL-Lite NLSPACE</p>
      <p>DL-LiteHorn coNP
CQ DL-Lite</p>
      <p>DL-LiteHorn</p>
      <p>NP NP
2p[O(log n)] 2p[O(log n)]
k-supp (k &gt; 1)
NLSPACE
coNP
2p[O(log n)]
coNP
coNP
p
2
p
2
k-def (k &gt; 0) brave
NLSPACE
NP
NP
NP</p>
      <p>NLSPACE
NP
NP
NP</p>
      <p>Before presenting the results in more detail, let us begin with some general
observations. First, it is interesting to note that for DL-Lite KBs, the complexities
obtained for the IAR, k-support, brave, k-defeater, and classical semantics all coincide,
and are strictly lower than the complexity w.r.t. the CQA semantics. By contrast, for
DL-LiteHorn KBs, instance checking under any of the considered inconsistency-tolerant
semantics is of higher complexity than under classical semantics. Moreover, we lose the
symmetry between the sound and complete approximations. Indeed, for CQ entailment,
the complexities of the sound approximations (IAR and k-support) is higher than for
the complete approximations (brave and k-defeater semantics).</p>
      <p>Finally, we remark that in several cases, and in particular, for the k-support
semantics, the complexity for DL-LiteHorn is higher than for DL-Lite. This can be explained
by the fact that for DL-Lite KBs, the size of a minimal T -support of a query is linear in
the size of the query and independent of T , whereas for DL-LiteHorn KBs, the bound
on minimal T -supports depends also on the size of T . Overall, these results suggest
that while the k-support and k-defeater semantics are tractable w.r.t. data complexity
for both DL-Lite and DL-LiteHorn , it will likely be much easier to obtain practical
algorithms for DL-Lite KBs.</p>
      <p>We now present our different complexity results and some brief ideas concerning
the proofs. We start by showing that for DL-Lite, instance checking under the proposed
semantics has the same low complexity as under classical semantics.</p>
      <p>Theorem 4. In DL-Lite, instance checking under the k-support semantics is
NLSPACEcomplete w.r.t. combined complexity, for every k 1. The same holds for the k-defeater
semantics, for every k 0.</p>
      <p>Proof (idea). The proof exploits the fact that when T is a DL-Lite ontology, minimal
T -supports for IQs consist of single facts, and minimal T -inconsistent subsets contain
at most two facts. This means in particular that every k-tuple of minimal T -supports
contains at most k facts, and at most k facts are needed to contradict all k supports.
This enables a NLSPACE procedure which guesses k facts and verifies that each fact is
a T -support, and that there is no set with at most k facts which contradicts all of the
guessed facts. The upper bound for the k-defeater semantics uses similar ideas.</p>
      <p>In DL-LiteHorn , instance checking is intractable already for the IAR and brave
semantics, and the lower bounds can be used to show intractability also for the k-support
and k-defeater semantics. For the k-defeater semantics, Theorem 6 provides a matching
upper bound, while the precise complexity for the k-support semantics remains open.
Theorem 5. Instance checking in DL-LiteHorn is coNP-complete w.r.t. combined
complexity under the IAR semantics, coNP-hard w.r.t. combined complexity under k-support
semantics, and NP-complete w.r.t. combined complexity under both the brave semantics
and k-defeater semantics.</p>
      <p>Proof (idea). We sketch the coNP lower bound for the IAR semantics, which is by
reduction from UNSAT. Let ' = c1 ^ : : : ^ cn be a propositional CNF over variables
x1; : : : ; xm. Consider the DL-LiteHorn KB with</p>
      <p>fTi u Fi v ? j 1
T =fTi v Cj j xi 2 cj g [ fFi v Cj j :xi 2 cj g[
i</p>
      <p>mg[fA u C1 u : : : u Cn v ?g
and A = fA(a)g[fTi(a); Fi(a) j 1 i mg. Then it can be shown that hT ; Ai j=IAR
A(a) if and only if the formula ' is unsatisfiable.</p>
      <p>We next consider the complexity of CQ entailment under our proposed semantics.
For DL-Lite, we obtain precisely the same complexity as under the classical semantics.
Theorem 6. In DL-Lite, CQ entailment under the k-support semantics is NP-complete
w.r.t. combined complexity, for every k 1. For both DL-Lite and DL-LiteHorn , CQ
entailment under the k-defeater semantics is NP-complete w.r.t. combined complexity,
for every k 1.</p>
      <p>Proof (idea). We sketch the upper bound for the k-defeater semantics. Fix a DL-LiteHorn
KB hT ; Ai and a CQ q. Let S1; : : : ; Sm be the T -consistent subsets of A with
cardinality at most k. Guess a sequence C1; : : : ; Cm of subsets of A of cardinality at most
c = 2 jqj jT j, together with polynomial certificates that hT ; Cii j= q, for each Ci.
Output yes if for every 1 i m, the certificate is valid and Si [ Ci is T -consistent.
As m is polynomial in jAj (since k is fixed), and both conditions can be verified in
polynomial time for DL-LiteHorn KBs, we obtain an NP procedure. Correctness relies
on the fact that because T is a DL-LiteHorn ontology, every minimal T -support for q
has cardinality at most c.</p>
      <p>For DL-LiteHorn , CQ entailment under the IAR and k-support semantics rises to
2p[O(log n)]-complete.</p>
      <p>
        Theorem 7. In DL-LiteHorn , CQ entailment under k-support semantics is
complete w.r.t. combined complexity, for every k 1.
2p[O(log
n)]Proof (idea). The lower bound is by a non-trivial reduction from the Parity(SAT)
problem [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ]. For the upper bound, consider the following algorithm which takes as input a
DL-LiteHorn KB hT ; Ai and CQ q:
1. For every k-tuple ( 1; : : : ; k) Ak of facts, use an NP oracle to decide whether
every repair contains some i. Let S contain all k-tuples for which the test succeeds.
      </p>
      <p>
        Every minimal T -support for q contains at most c facts. It follows that the algorithm
returns yes if hT ; Ai j=k-supp q. Conversely, if the output is yes, with (C1; : : : ; Cn) the
k-tuple from Step 2, then by (i), every Ci is a T -support for q. Moreover, (ii) ensures
that every repair contains some Ci, for it not, we could find some k-tuple ( 1; : : : ; k) 2
C1 : : : Cn which does not belong to S, contradicting (ii). Note that the algorithm
runs in polynomial time with an NP oracle, since there are only polynomially many
k-tuples of facts to consider, for fixed k. As the oracle calls can be organized into a tree,
membership in 2p[O(log n)] follows by a result from [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>Finally, we determine the combined complexity of instance checking and CQ
entailment for the CQA semantics (prior results only considered data complexity).
Theorem 8. For DL-Lite and DL-LiteHorn , instance checking (resp. CQ entailment)
under CQA semantics is coNP-complete (resp. 2p-complete) for combined complexity.
Proof (idea). The upper bounds are easy: guess a repair and show that it does not
entail the query. The coNP-lower bound for instance checking follows from the
coNPhardness of this problem w.r.t. data complexity. The 2p-hardness result involves a
nontrivial reduction from 2-QBF validity.</p>
      <p>We should point out that our proofs are quite generic and can be directly used (or
trivially extended) to obtain results for a whole rangle DL-Lite dialects (as well as other
ontology languages).
7</p>
    </sec>
    <sec id="sec-7">
      <title>Future Work</title>
      <p>
        The present work can be extended in several directions. First, we believe that our
approach can have a practical impact on OBDA systems, so we aim to implement and
experiment with the approach. It would also be very interesting to investigate the
connections between our approach and approximate knowledge compilation [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]: in
particular, it would be important (also for practical purposes) to study the possibility of
effectively “compiling” our semantics. Moreover, it is also relevant to extend our
analysis to more complex OBDA systems, where the ontology elements are related to the
data sources through complex mappings [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. Finally, while the present approach is
computationally attractive for all known FO-rewritable ontology languages, tractable
approximations of the CQA semantics for other tractable yet non-FO-rewritable
ontology languages (like E L? [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]) are still missing.
      </p>
      <p>Acknowledgments. The first author has been supported by a Universite´ Paris-Sud
Attractivite´ grant and ANR project PAGODA (ANR-12-JS02-007-01). The second author
has been partially supported by EU FP7 project Optique – Scalable End-user Access to
Big Data (grant n. FP7-318338).</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.
          <fpage>68</fpage>
          -
          <lpage>79</lpage>
          . 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 Artificial Intelligence Research</source>
          <volume>36</volume>
          ,
          <fpage>1</fpage>
          -
          <lpage>69</lpage>
          (
          <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 E L envelope</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          . pp.
          <fpage>364</fpage>
          -
          <lpage>369</lpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bertossi</surname>
            ,
            <given-names>L.E.</given-names>
          </string-name>
          :
          <article-title>Database Repairing and Consistent Query Answering</article-title>
          .
          <source>Synthesis Lectures on Data Management</source>
          , Morgan &amp; Claypool Publishers (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>On the complexity of consistent query answering in the presence of simple ontologies</article-title>
          .
          <source>In: Proc. of AAAI</source>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. Cal`ı,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Pieris</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          :
          <article-title>New expressive languages for ontological query answering</article-title>
          .
          <source>In: Proc. of AAAI</source>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. Cal`ı,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Pieris</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          :
          <article-title>Towards more expressive ontology languages: The query answering problem</article-title>
          .
          <source>Artificial Intelligence</source>
          <volume>193</volume>
          ,
          <fpage>87</fpage>
          -
          <lpage>128</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>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 efficient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>39</volume>
          (
          <issue>3</issue>
          ),
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>The complexity of logic-based abduction</article-title>
          .
          <source>J. ACM</source>
          <volume>42</volume>
          (
          <issue>1</issue>
          ),
          <fpage>3</fpage>
          -
          <lpage>42</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>The complexity class 2p: Recent results and applications in AI and modal logic</article-title>
          .
          <source>In: Proc. of FCT</source>
          . pp.
          <fpage>1</fpage>
          -
          <lpage>18</lpage>
          (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Gottlob</surname>
          </string-name>
          , G.:
          <article-title>Np trees and Carnap's modal logic</article-title>
          .
          <source>Journal of the ACM</source>
          <volume>42</volume>
          (
          <issue>2</issue>
          ),
          <fpage>421</fpage>
          -
          <lpage>457</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Immerman</surname>
          </string-name>
          , N.:
          <article-title>Nondeterministic space is closed under complementation</article-title>
          .
          <source>SIAM Journal of Computing</source>
          <volume>17</volume>
          (
          <issue>5</issue>
          ),
          <fpage>935</fpage>
          -
          <lpage>938</lpage>
          (
          <year>1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <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.
          <fpage>103</fpage>
          -
          <lpage>117</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <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.
          <fpage>155</fpage>
          -
          <lpage>169</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Lukasiewicz</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martinez</surname>
            ,
            <given-names>M.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simari</surname>
            ,
            <given-names>G.I.</given-names>
          </string-name>
          :
          <article-title>Inconsistency handling in datalog+/- ontologies</article-title>
          .
          <source>In: Proc. of ECAI</source>
          . pp.
          <fpage>558</fpage>
          -
          <lpage>563</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Lukasiewicz</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martinez</surname>
            ,
            <given-names>M.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simari</surname>
            ,
            <given-names>G.I.</given-names>
          </string-name>
          :
          <article-title>Inconsistency-tolerant query rewriting for linear datalog+/-</article-title>
          .
          <source>In: Proc. of Datalog 2.0</source>
          . pp.
          <fpage>123</fpage>
          -
          <lpage>134</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Poggi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giacomo</surname>
            ,
            <given-names>G.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>Linking data to ontologies</article-title>
          .
          <source>Journal of Data Semantics</source>
          <volume>10</volume>
          ,
          <fpage>133</fpage>
          -
          <lpage>173</lpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <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.
          <fpage>1057</fpage>
          -
          <lpage>1062</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Selman</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kautz</surname>
            ,
            <given-names>H.A.</given-names>
          </string-name>
          :
          <article-title>Knowledge compilation and theory approximation</article-title>
          .
          <source>Journal of the ACM</source>
          <volume>43</volume>
          (
          <issue>2</issue>
          ),
          <fpage>193</fpage>
          -
          <lpage>224</lpage>
          (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20. Szelepcse´nyi, R.:
          <article-title>The method of forcing for nondeterministic automata</article-title>
          .
          <source>Bulletin of the EATCS 33</source>
          ,
          <fpage>96</fpage>
          -
          <lpage>99</lpage>
          (
          <year>1987</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Wagner</surname>
            ,
            <given-names>K.W.</given-names>
          </string-name>
          :
          <article-title>More complicated questions about maxima and minima, and some closures of NP</article-title>
          .
          <source>Theoretical Computer Science</source>
          <volume>51</volume>
          ,
          <fpage>53</fpage>
          -
          <lpage>80</lpage>
          (
          <year>1987</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>