<!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>Complexity of Approximate Query Answering under Inconsistency in Datalog</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Thomas Lukasiewicz</string-name>
          <email>thomas.lukasiewicz@cs.ox.ac.uk</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Enrico Malizia</string-name>
          <email>e.malizia@exeter.ac.uk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Cristian Molinaro</string-name>
          <email>cmolinaro@dimes.unical.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DIMES, University of Calabria</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science, University of Exeter</institution>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Department of Computer Science, University of Oxford</institution>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>24</fpage>
      <lpage>27</lpage>
      <abstract>
        <p>Several semantics have been proposed to query inconsistent ontological knowledge bases, including the intersection of repairs and the intersection of closed repairs as two approximate inconsistency-tolerant semantics. In this paper, we analyze the complexity of conjunctive query answering under these two semantics for a wide range of Datalog languages. We consider both the standard setting, where errors may only be in the database, and the generalized setting, where also the rules of a Datalog knowledge base may be erroneous.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <sec id="sec-1-1">
        <title>Description logics (DLs) and existential rules from the context of Datalog are popular</title>
        <p>ontology languages. In real-world ontology-based applications involving large amounts
of data (such as ontology-based data extraction and/or integration), it is very likely that
the data are inconsistent with the ontology, and thus inconsistency-tolerant semantics for
ontology-based query answering are urgently needed.</p>
      </sec>
      <sec id="sec-1-2">
        <title>Consistent query answering, first developed for relational databases [1] and then</title>
        <p>
          generalized as the AR semantics for several DLs [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], is the most widely accepted
semantics for querying inconsistent ontologies. Query answering under the AR semantics
is known to be a hard problem, even for very simple languages [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. For this reason,
several other semantics have been recently developed with the aim of approximating
consistent query answering [
          <xref ref-type="bibr" rid="ref12 ref17 ref2 ref4">12,2,17,4</xref>
          ].
        </p>
      </sec>
      <sec id="sec-1-3">
        <title>In particular, in [12], besides the AR semantics, three other inconsistency-tolerant</title>
        <p>
          query answering semantics are proposed, including the approximate intersection of
repairs (IAR) semantics, in which an answer is considered to be valid, if it can be
inferred from the intersection of the repairs (and the ontology). The intersection of
closed repairs (ICR) [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] is another approximate semantics, in which an answer is valid,
if it can be inferred from the intersection of the closure of the repairs (and the ontology).
        </p>
      </sec>
      <sec id="sec-1-4">
        <title>The complexity of query answering under the AR semantics when the ontology is described using one of the central DLs is well-understood. The data and combined complexity were studied by [20] for a wide spectrum of DLs, while [2] identified cases</title>
        <p>
          for simple ontologies (within the DL-Lite family) for which tractable data complexity
results can be obtained. In [
          <xref ref-type="bibr" rid="ref16 ref17 ref19">17,19,16</xref>
          ], the data and different types of combined
complexity, respectively, of the AR semantics have been studied for ontologies described via
existential rules and negative constraints. [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] analyzed the data and combined complexity
of query answering under the AR and IAR semantics for different notions of maximal
repairs over the language DL-LiteR. Recently, the AR semantics was extended to the
generalized repair semantics (GAR) and its computational complexity analyzed [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. In
the GAR semantics, also ontological rules may be removed, and some database atoms
and rules are assumed to be non-removable.
        </p>
      </sec>
      <sec id="sec-1-5">
        <title>This paper continues this line of research and analyzes the complexity of inconsistencytolerant query answering as follows:</title>
      </sec>
      <sec id="sec-1-6">
        <title>B We consider different popular inconsistency-tolerant semantics, namely, the IAR</title>
        <p>and the ICR semantics, in both their standard and their generalized repair variants.</p>
      </sec>
      <sec id="sec-1-7">
        <title>B We consider the most popular Datalog languages: linear, guarded, sticky, and</title>
        <p>acyclic existential rules, along with “weak” generalizations, as well as full
restrictions, and full (i.e., non-existential) rules in general.</p>
      </sec>
      <sec id="sec-1-8">
        <title>B Our analysis concerns the data, fixed-program combined, bounded-arity combined,</title>
        <p>and combined complexity.
2</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Datalog</title>
      <sec id="sec-2-1">
        <title>We briefly recall some basics on existential rules from the context of Datalog [6].</title>
        <p>General. We assume a set C of constants, a set N of labeled nulls, and a set V of regular
variables. A term t is a constant, null, or variable. We also assume a set of predicates,
each associated with an arity, i.e., a non-negative integer. An atom has the form p(t1; : : : ;
tn), where p is an n-ary predicate, and t1; : : : ; tn are terms. Conjunctions of atoms are
often identified with the sets of their atoms. An instance I is a (possibly infinite) set of
atoms p(t), where t is a tuple of constants and nulls. A database D is a finite instance that
contains only constants. A homomorphism is a substitution h : C [ N [ V ! C [ N [ V
that is the identity on C and that maps N to C [ N. A conjunctive query (CQ) q has the
form 9Y (X; Y), where (X; Y) is a conjunction of atoms without nulls. The answer
to q over an instance I, denoted q(I), is the set of all tuples t over C for which there is a
homomorphism h such that h( (X; Y)) I and h(X) = t. A Boolean CQ (BCQ) q is
a CQ 9Y (Y), i.e., all variables are existentially quantified; q is true over I, denoted
I j= q, if q(I) 6= ;, i.e., there is a homomorphism h with h( (Y)) I.</p>
        <sec id="sec-2-1-1">
          <title>Dependencies. A tuple-generating dependency (TGD) is a first-order formula</title>
          <p>8X8Y '(X; Y) ! 9Z p(X; Z), where X [ Y [ Z V, '(X; Y) is a
conjunction of atoms, and p(X; Z) is an atom, all without nulls. An instance I satisfies ,
written I j= , if the following holds: whenever there exists a homomorphism h such
that h('(X; Y)) I, then there exists h0 hjX, where hjX is the restriction of h on
X, such that h0(p(X; Z)) 2 I. A negative constraint (NC) is a first-order formula
8X '(X) ! ?, where X V, '(X) is a conjunction of atoms without nulls and ?
denotes the truth constant false. An instance I satisfies , written I j= , if there is no
homomorphism h such that h('(X)) I. Given a set of TGDs and NCs, I satisfies
, written I j= , if I satisfies each TGD and NC of . Given a class of TGDs C, we
denote by C? the formalism obtained by combining C with arbitrary NCs. Finite sets of</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>TGDs and NCs are also called programs, and TGDs are also called existential rules.</title>
        <p>Knowledge Bases. A knowledge base is a pair (D; ), where D is a database, and is
a program. For programs , T and NC are the subsets of containing the TGDs
and NCs of , respectively. The set of models of KB = (D; ), denoted mods(KB ),
is the set of instances fI j I D ^ I j= g. We say that KB is consistent, if
mods(KB ) 6= ;, otherwise KB is inconsistent. The answer to a CQ q relative to KB is
the set of tuples ans(q; KB ) = Tfq(I) j I 2 mods(KB )g. The answer to a BCQ q is
true, denoted KB j= q, if ans(q; KB ) 6= ;. The decision version of the CQ answering
problem is as follows: given a knowledge base KB , a CQ q, and a tuple of constants t,
decide whether t 2 ans(q; KB ). Since CQ answering can be reduced in LOGSPACE
to BCQ answering, we focus on BCQs. The combined complexity of BCQ answering
considers the database, the set of dependencies, and the query as part of the input. The
bounded-arity combined (or ba-combined) complexity assumes that the arity of the
underlying schema is bounded by an integer constant. The fixed-program combined
(or fp-combined) complexity considers the sets of TGDs and NCs as fixed; the data
complexity also assumes the query fixed.</p>
        <p>
          The Datalog languages that we consider to guarantee decidability are among the
most frequently analyzed in the literature, namely, linear (L) [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], guarded (G) [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], sticky
(S) [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], and acyclic TGDs (A), along with their “weak” (proper) generalizations weakly
guarded (WG) [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], weakly sticky (WS) [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], and weakly acyclic TGDs (WA) [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], as
well as their “full” (proper) restrictions linear full (LF), guarded full (GF), sticky full
(SF), and acyclic full TGDs (AF), respectively, and full (i.e., existential-free) TGDs (F)
in general. We also recall the following further inclusions: L G, F WA WS, and
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>F WG. We refer to, e.g., [8] for a more detailed overview and complexity results.</title>
        <p>3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Approximate Inconsistency Semantics</title>
      <sec id="sec-3-1">
        <title>We now recall three prominent inconsistency-tolerant semantics for ontology-based</title>
        <p>
          query answering, namely, the ABox repair (AR) semantics and its approximation by
the intersection of repairs (IAR) and the intersection of closed repairs (ICR)
semantics [
          <xref ref-type="bibr" rid="ref12 ref2">12,2</xref>
          ]; all three are based on the notion of repair, which is a maximal consistent
subset of the given database. Furthermore, we newly define generalized repair variants [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]
of the two intersection-based approximate repair semantics.
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Classically, errors leading to inconsistencies are assumed to be only in the database,</title>
        <p>
          and not in the ontology. [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] have introduced the generalized inconsistency semantics
allowing for errors also in the ontology, and for parts of the database and the ontology
to be without errors. More specifically, for a knowledge base (D; ), the generalized
semantics allows also (i) to minimally remove TGDs from , and (ii) to partition both D
and into a hard and a soft part of non-removable and removable elements, respectively.
        </p>
      </sec>
      <sec id="sec-3-3">
        <title>The so partitioned database (resp., program) is called flexible database (resp., program).</title>
      </sec>
      <sec id="sec-3-4">
        <title>A flexible database is a pair (Dh; Ds) of databases, called the hard and soft database, respectively. A flexible program is a pair ( h; s) consisting of a finite set h of TGDs and NCs and a finite set s of TGDs, called the hard and soft program, respectively.</title>
      </sec>
      <sec id="sec-3-5">
        <title>A flexible knowledge base is a pair ((Dh; Ds); ( h; s)), where (Dh; Ds) is a flexible</title>
        <p>database, and ( h; s) is a flexible program. Note that a (standard) knowledge base
(D; ) is a special case of a flexible one ((Dh; Ds); ( h; s)), where Dh = ;, Ds = D,
h = , and s = ;. Below, we provide definitions for flexible knowledge bases that
generalize the ones for (standard) knowledge bases.</p>
        <p>For knowledge bases KB 0 = (D0; 0) and KB 00 = (D00; 00), we write KB 0 KB 00,
if D0 D00 and 0 00. A selection of a flexible knowledge base ((Dh; Ds); ( h; s))
is a knowledge base (D0; 0) such that Dh D0 (Dh[Ds) and h 0 ( h[ s).</p>
      </sec>
      <sec id="sec-3-6">
        <title>A repair of a flexible knowledge base FKB is an inclusion-maximal consistent selection</title>
        <p>of FKB . We denote by Rep(FKB ) the set of all repairs of FKB . Notice that for
(standard) knowledge bases, a repair is usually defined as a maximal consistent subset
of the database. However, when a flexible knowledge base models a standard one (i.e.,
Dh = ; and s = ;), the definition above coincides with the classical one.</p>
      </sec>
      <sec id="sec-3-7">
        <title>Example 1. Consider the flexible database (Dh;Ds) given by</title>
        <p>Dh = fPostdoc(p); Researcher (p); leaderOf (p0; g0)g and Ds = fProf (p); leaderOf (p; g)g;
asserting that p is a postdoc, a researcher, a professor, and the leader of the research
group g, and that p0 is the leader of g0. Consider also the flexible program ( h; s)
defined as
h = fProf (X) ! Researcher (X);</p>
        <p>Postdoc(X) ! Researcher (X);
Prof (X); Postdoc(X) ! ?;
leaderOf (X; Y ) ! Group(Y )g;
s = fleaderOf (X; Y ) ! Prof (X)g;
expressing that professors and postdocs are researchers, professors and postdocs form
disjoint sets, and leaderOf has Prof as domain and Group as range. It is easy to see
that mods(D; ) = ;, since p violates the disjointness constraint.</p>
      </sec>
      <sec id="sec-3-8">
        <title>The flexible knowledge base ((Dh; Ds); ( h; s)) has two repairs (D0; 0) and</title>
        <p>(D00; 00):</p>
        <p>D0 = Dh [ fleaderOf (p; g)g ;
D00 = Dh ;
0 =
00 =
h ;
h [ s :
In both, the atom Prof (p) is removed; in the first one, also the rule leaderOf (X; Y ) !</p>
      </sec>
      <sec id="sec-3-9">
        <title>Prof (X) is removed, while in the second one, the atom leaderOf (p; g) is removed.</title>
      </sec>
      <sec id="sec-3-10">
        <title>We now define the inconsistency-tolerant semantics considered. For a knowledge</title>
        <p>base KB = (D; ), the closure Cn(KB ) of KB is the set of all ground atoms, built
from constants in D and , entailed by D and the TGDs of . Let FKB be a flexible
knowledge base, and let q be a BCQ.</p>
        <p>– FKB entails q under the generalized ABox repair (GAR) semantics, if, for all</p>
        <p>KB 0 2 Rep(FKB ), KB 0 j= q.
– FKB entails q under the generalized intersection of repairs (GIAR) semantics, if
(D ; ) j= q, where D = TfD0 j (D0; 0) 2 Rep(FKB )g and = Tf 0 j
(D0; 0) 2 Rep(FKB )g.</p>
        <p>In the definition above, observe that if FKB is a standard knowledge base, then = ,
and thus the definition above generalizes the AR, IAR, and ICR semantics for standard
knowledge bases to the case of flexible knowledge bases. We talk of BCQ answering
under the GAR, GIAR, and GICR semantics when flexible knowledge bases can be
arbitrary, and we talk of BCQ answering under the AR, IAR, and ICR semantics when
flexible knowledge bases model standard knowledge bases (i.e., Dh = ; and s = ;).
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Complexity Results</title>
      <sec id="sec-4-1">
        <title>We give a precise picture of the complexity of BCQ answering from existential rules</title>
        <p>under the IAR, ICR, GIAR, and GICR semantics, which is summarized in Fig. 1.
4.1</p>
        <p>Membership Results</p>
      </sec>
      <sec id="sec-4-2">
        <title>IAR semantics. The following theorem proves all upper bounds equal to and above</title>
        <p>co-NP in Fig. 1, left side, excluding the 2P memberships.</p>
        <sec id="sec-4-2-1">
          <title>Theorem 1. If BCQ answering from databases under programs over some Datalog</title>
          <p>language L is in C in the data (resp., fp-combined, ba-combined, and combined)
complexity, then IAR-BCQ answering from databases under programs over L is in
coNPC in the data (resp., fp-combined, ba-combined, and combined) complexity.</p>
        </sec>
      </sec>
      <sec id="sec-4-3">
        <title>Consider now the Datalog fragments whose BCQ answering in the data complexity</title>
        <p>is in AC0, i.e., L?, S?, A?, LF?, AF?, and SF?. In such cases, the following theorem
states the upper bound in the fp-combined complexity.</p>
        <p>Theorem 2. IAR-BCQ answering for L?, S?, and A? (and LF?, AF?, and SF?) is in</p>
        <sec id="sec-4-3-1">
          <title>NP in the fp-combined complexity.</title>
          <p>The following theorem proves all 2P upper bounds in Fig. 1, left side.
Theorem 3. IAR-BCQ answering for WS? and G? (and WA?, F?, and GF?) is in
2P in the fp-combined complexity.</p>
        </sec>
      </sec>
      <sec id="sec-4-4">
        <title>ICR semantics. The following theorem proves all upper bounds in Fig. 1, right side,</title>
        <p>including the PNEXP = co-NPNEXP membership for A?, excluding memberships in 2P
and the combined complexity.</p>
        <sec id="sec-4-4-1">
          <title>Theorem 4. If BCQ answering from databases under programs over some Datalog</title>
          <p>language L is in C in the data (resp., fp- and ba-combined) complexity, then ICR-BCQ
answering from databases under programs over L is in co-NPC in the data (resp.,
fpand ba-combined) complexity.</p>
        </sec>
      </sec>
      <sec id="sec-4-5">
        <title>BCQ answering under the ICR semantics for all the considered Datalog fragments</title>
        <p>but WG? is in 2P in the fp-combined complexity.</p>
        <p>Theorem 5. ICR-BCQ answering for all the considered Datalog fragments but WG?
is in 2P in the fp-combined complexity.</p>
      </sec>
      <sec id="sec-4-6">
        <title>As for the combined complexity, we get the following theorem.</title>
        <sec id="sec-4-6-1">
          <title>Theorem 6. If BCQ answering from databases under programs over some Datalog</title>
          <p>language L is in the deterministic complexity class C in the combined complexity,
then ICR-BCQ answering from databases under programs over L is in PSPACE C in
the combined complexity.</p>
        </sec>
      </sec>
      <sec id="sec-4-7">
        <title>The membership results above can be extended to the generalized semantics case [15].</title>
        <p>4.2</p>
        <p>Hardness Results</p>
      </sec>
      <sec id="sec-4-8">
        <title>As BCQ answering under the IAR and ICR semantics for Datalog fragments L</title>
        <p>coincides with BCQ answering for L when there are no inconsistencies, we immediately
obtain hardness for all NP, PSPACE, EXP, and 2EXP entries in Fig. 1.</p>
      </sec>
      <sec id="sec-4-9">
        <title>IAR semantics. Hardness for co-NP of BCQ answering under the IAR semantics in the</title>
        <p>data complexity is shown by a reduction from deciding unsatisfiability of 3CNF formulas
(UNSAT). It produces a knowledge base with a fixed GF? program and fixed query. This
proves all open co-NP-hardness results in Fig. 1, left side.</p>
        <p>Theorem 7. IAR-BCQ answering for GF? (and F?) is co-NP-hard in the data
complexity.</p>
        <p>
          We can show that IAR-BCQ answering for A? is PNEXP-hard in the ba-combined
complexity, proving all PNEXP-hardness results in Fig. 1, left side. Intuitively, the reduction
for the PNEXP-hardness proof in [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] for AR-BCQ answering for A? in the ba-combined
complexity is turned into a PNEXP-hardness proof for IAR-BCQ answering in this case.
Theorem 8. IAR-BCQ answering for A? is PNEXP-hard in the ba-combined complexity.
        </p>
        <p>
          BCQ answering under IAR semantics for GF? (and thus also for F?, G?, WA?, and
WS?) in the fp-combined complexity can be shown to be 2P-hard via a reduction from
the 2P-complete problem COMP-SAT: Given two sets A and B of Boolean formulas,
decide whether A contains more satisfiable formulas than B [
          <xref ref-type="bibr" rid="ref13 ref14">13,14</xref>
          ].
        </p>
        <p>Theorem 9. IAR-BCQ answering for GF? (and F?, G?, WA?, and WS?) is
in the fp-combined complexity.
2P-hard</p>
      </sec>
      <sec id="sec-4-10">
        <title>ICR semantics. ICR-BCQ answering in the data complexity is co-NP-hard by a reduction from UNSAT. This proves all open co-NP-hardness results in Fig. 1, right side.</title>
        <p>Theorem 10. ICR-BCQ answering for LF?, AF?, and SF? (and GF?, F?, and A?)
is co-NP-hard in the data complexity.</p>
        <p>BCQ answering under ICR semantics is 2P-hard in the fp-combined complexity, by
a reduction from COMP-SAT, for all remaining entries in Fig. 1, right side, but for WG?.</p>
        <sec id="sec-4-10-1">
          <title>Theorem 11. ICR-BCQ answering in the fp-combined complexity is</title>
          <p>the considered Datalog fragments.
2P-hard for all</p>
          <p>
            BCQ answering under the ICR semantics for AF? (and thus also for F?) is 2P-hard
in the ba-combined complexity, by a reduction from NQBF 2;8, which is a variant of
quantified Boolean formulas with two quantifiers starting with a universal one [
            <xref ref-type="bibr" rid="ref10 ref21">10,21</xref>
            ].
          </p>
        </sec>
        <sec id="sec-4-10-2">
          <title>Theorem 12. ICR-BCQ answering is</title>
          <p>AF? (and F?).</p>
          <p>2P-hard in the ba-combined complexity for</p>
          <p>The following result shows that ICR-BCQ answering for A? is PNEXP-hard in the
ba-combined complexity, proving all PNEXP-hardness results in Fig. 1, right side.
Theorem 13. ICR-BCQ answering for A? is PNEXP-hard in the ba-combined
complexity.</p>
          <p>The following shows all 2P-hardness results in Fig. 1, right side. The
results in Fig. 1, left side, are proved similarly.
2P-hardness
Theorem 14. ICR-BCQ answering for L?, LF?, AF?, S?, SF?, F?, and GF? is
hard in the ba-combined complexity.
2P</p>
        </sec>
      </sec>
      <sec id="sec-4-11">
        <title>Also for the hardness results, it is possible to show that they extend to the generalized semantics case [15].</title>
        <p>5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Summary and Outlook</title>
      <sec id="sec-5-1">
        <title>We have given a precise picture of the complexity of BCQ answering under different</title>
        <p>approximate inconsistency-tolerant semantics for the most popular Datalog languages
and complexity measures. In addition to the standard setting, we have also considered
the more general setting where also ontological rules may be removed.</p>
      </sec>
      <sec id="sec-5-2">
        <title>Future research lines include considering other classes of existential rules and to</title>
        <p>
          define other semantics for inconsistency-tolerant ontological query answering. Another
interesting direction for future work is to carry out a complexity analysis of the local
generalized semantics [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Also, a more fine-grained way to analyze the complexity of
query answering would be a non-uniform approach, looking at the complexity of a single
ontology or a single ontology-mediated query (see, e.g., [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]).
        </p>
      </sec>
      <sec id="sec-5-3">
        <title>Acknowledgements. This work was supported by The Alan Turing Institute under the</title>
        <p>UK EPSRC grant EP/N510129/1, and by the EPSRC grants EP/R013667/1, EP/L012138/1,
and EP/M025268/1.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Marcelo</given-names>
            <surname>Arenas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Leopoldo E.</given-names>
            <surname>Bertossi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Jan</given-names>
            <surname>Chomicki</surname>
          </string-name>
          .
          <article-title>Consistent query answers in inconsistent databases</article-title>
          .
          <source>In Proc. PODS</source>
          , pages
          <fpage>68</fpage>
          -
          <lpage>79</lpage>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          .
          <article-title>On the complexity of consistent query answering in the presence of simple ontologies</article-title>
          .
          <source>In Proc. AAAI</source>
          , pages
          <fpage>705</fpage>
          -
          <lpage>711</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          , Camille Bourgaux, and
          <string-name>
            <given-names>François</given-names>
            <surname>Goasdoué</surname>
          </string-name>
          .
          <article-title>Querying inconsistent description logic knowledge bases under preferred repair semantics</article-title>
          .
          <source>In Proc. AAAI</source>
          , pages
          <fpage>996</fpage>
          -
          <lpage>1002</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Meghyn</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          and
          <string-name>
            <given-names>Riccardo</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Tractable approximations of consistent query answering for robust ontology-based data access</article-title>
          .
          <source>In Proc. IJCAI</source>
          , pages
          <fpage>775</fpage>
          -
          <lpage>781</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Andrea</given-names>
            <surname>Calì</surname>
          </string-name>
          , Georg Gottlob, and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kifer</surname>
          </string-name>
          .
          <article-title>Taming the infinite chase: Query answering under expressive relational constraints</article-title>
          .
          <source>J. Artif. Intell. Res.</source>
          ,
          <volume>48</volume>
          :
          <fpage>115</fpage>
          -
          <lpage>174</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Andrea</given-names>
            <surname>Calì</surname>
          </string-name>
          , Georg Gottlob, and
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Lukasiewicz</surname>
          </string-name>
          .
          <article-title>A general Datalog-based framework for tractable query answering over ontologies</article-title>
          .
          <source>J. Web Sem</source>
          .,
          <volume>14</volume>
          :
          <fpage>57</fpage>
          -
          <lpage>83</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Andrea</given-names>
            <surname>Calì</surname>
          </string-name>
          , Georg Gottlob, and
          <string-name>
            <given-names>Andreas</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>Towards more expressive ontology languages: The query answering problem</article-title>
          .
          <source>Artif</source>
          . Intell.,
          <volume>193</volume>
          :
          <fpage>87</fpage>
          -
          <lpage>128</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Eiter</surname>
          </string-name>
          , Thomas Lukasiewicz, and
          <string-name>
            <given-names>Livia</given-names>
            <surname>Predoiu</surname>
          </string-name>
          .
          <article-title>Generalized consistent query answering under existential rules</article-title>
          .
          <source>In Proc. KR</source>
          , pages
          <fpage>359</fpage>
          -
          <lpage>368</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Ronald</given-names>
            <surname>Fagin</surname>
          </string-name>
          , Phokion G. Kolaitis,
          <string-name>
            <given-names>Renée J</given-names>
            .
            <surname>Miller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and Lucian</given-names>
            <surname>Popa</surname>
          </string-name>
          .
          <article-title>Data exchange: semantics and query answering</article-title>
          .
          <source>Theor. Comput. Sci.</source>
          ,
          <volume>336</volume>
          (
          <issue>1</issue>
          ):
          <fpage>89</fpage>
          -
          <lpage>124</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Gianluigi</surname>
            <given-names>Greco</given-names>
          </string-name>
          , Enrico Malizia, Luigi Palopoli, and
          <string-name>
            <given-names>Francesco</given-names>
            <surname>Scarcello</surname>
          </string-name>
          .
          <article-title>On the complexity of core, kernel, and bargaining set</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>175</volume>
          (
          <fpage>12</fpage>
          -13):
          <fpage>1877</fpage>
          -
          <lpage>1910</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>André</surname>
            <given-names>Hernich</given-names>
          </string-name>
          , Carsten Lutz, Fabio Papacchini, and
          <string-name>
            <given-names>Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          .
          <article-title>Dichotomies in ontologymediated querying with the guarded fragment</article-title>
          .
          <source>In Proc. PODS</source>
          , pages
          <fpage>185</fpage>
          -
          <lpage>199</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Domenico</surname>
            <given-names>Lembo</given-names>
          </string-name>
          , Maurizio Lenzerini, Riccardo Rosati, Marco Ruzzi, and Domenico Fabio Savo.
          <article-title>Inconsistency-tolerant semantics for description logics</article-title>
          .
          <source>In Proc. RR</source>
          , pages
          <fpage>103</fpage>
          -
          <lpage>117</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. Thomas Lukasiewicz and
          <string-name>
            <given-names>Enrico</given-names>
            <surname>Malizia</surname>
          </string-name>
          .
          <article-title>On the complexity of mCP-nets</article-title>
          .
          <source>In Proc. AAAI</source>
          , pages
          <fpage>558</fpage>
          -
          <lpage>564</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14. Thomas Lukasiewicz and
          <string-name>
            <given-names>Enrico</given-names>
            <surname>Malizia</surname>
          </string-name>
          .
          <article-title>A novel characterization of the complexity class kP based on counting and comparison</article-title>
          .
          <source>Theor. Comput. Sci.</source>
          ,
          <volume>694</volume>
          :
          <fpage>21</fpage>
          -
          <lpage>33</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Thomas</surname>
            <given-names>Lukasiewicz</given-names>
          </string-name>
          , Enrico Malizia, and
          <string-name>
            <given-names>Cristian</given-names>
            <surname>Molinaro</surname>
          </string-name>
          .
          <article-title>Complexity of approximate query answering under inconsistency in datalog+/-</article-title>
          .
          <source>In International Joint Conference on Artificial Intelligence (IJCAI)</source>
          , pages
          <fpage>1921</fpage>
          -
          <lpage>1927</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Thomas</surname>
            <given-names>Lukasiewicz</given-names>
          </string-name>
          , Maria Vanina Martinez, Andreas Pieris, and
          <string-name>
            <surname>Gerardo</surname>
            <given-names>I. Simari.</given-names>
          </string-name>
          <article-title>From classical to consistent query answering under existential rules</article-title>
          .
          <source>In Proc. AAAI</source>
          , pages
          <fpage>1546</fpage>
          -
          <lpage>1552</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Thomas</surname>
            <given-names>Lukasiewicz</given-names>
          </string-name>
          , Maria Vanina Martinez, and
          <string-name>
            <surname>Gerardo</surname>
            <given-names>I.</given-names>
          </string-name>
          <string-name>
            <surname>Simari</surname>
          </string-name>
          . Inconsistency handling in Datalog+/- ontologies.
          <source>In Proc. ECAI</source>
          , pages
          <fpage>558</fpage>
          -
          <lpage>563</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Thomas</surname>
            <given-names>Lukasiewicz</given-names>
          </string-name>
          , Maria Vanina Martinez, and
          <string-name>
            <surname>Gerardo</surname>
            <given-names>I.</given-names>
          </string-name>
          <string-name>
            <surname>Simari</surname>
          </string-name>
          .
          <article-title>Inconsistency-tolerant query rewriting for linear Datalog+/-</article-title>
          .
          <source>In Proc. Datalog 2.0</source>
          , pages
          <fpage>123</fpage>
          -
          <lpage>134</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Thomas</surname>
            <given-names>Lukasiewicz</given-names>
          </string-name>
          , Maria Vanina Martinez, and
          <string-name>
            <surname>Gerardo</surname>
            <given-names>I. Simari.</given-names>
          </string-name>
          <article-title>Complexity of inconsistency-tolerant query answering in Datalog+/-</article-title>
          .
          <source>In Proc. OTM</source>
          , pages
          <fpage>488</fpage>
          -
          <lpage>500</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <given-names>Riccardo</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>On the complexity of dealing with inconsistency in description logic ontologies</article-title>
          .
          <source>In Proc. IJCAI</source>
          , pages
          <fpage>1057</fpage>
          -
          <lpage>1062</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <given-names>Marcus</given-names>
            <surname>Schaefer</surname>
          </string-name>
          .
          <article-title>Graph Ramsey theory and the polynomial hierarchy</article-title>
          .
          <source>Journal of Computer and System Sciences</source>
          ,
          <volume>62</volume>
          (
          <issue>2</issue>
          ):
          <fpage>290</fpage>
          -
          <lpage>322</lpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>