<!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 Inconsistency-Tolerant Query Answering in Datalog+/-</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Thomas Lukasiewicz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mar´ıa Vanina Mart´ınez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gerardo I. Simari</string-name>
          <email>gerardo.simarig@cs.ox.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of Oxford</institution>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The study of inconsistency-tolerant semantics for query answering in ontological languages has recently gained much attention. In this work, we consider three inconsistency-tolerant semantics recently proposed in the literature, namely: consistent query answering, the intersection (also called IAR) semantics, and the intersection of closed repairs (ICR) semantics. We study the data complexity of conjunctive query answering under these semantics for a wide set of tractable fragments of Datalog+/-. The Datalog+/- family of ontology languages covers several important description logics (DLs), bridging the gap in expressive power between database query languages and DLs as ontology languages, and extending the well-known Datalog language in order to embed DLs. Its properties of decidability of query answering and of tractability of query answering in the (data) complexity make Datalog+/- very useful in modeling real-world applications in which inconsistency-tolerant reasoning is essential.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        The issue of inconsistency handling in AI in general and in knowledge representation
(KR) in particular has been widely studied in the last three decades. In the database
community, the field of database repairing and consistent query answering (CQA) has
gained much attention since the work of [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], which provided a model-theoretic construct
of a database repair. The most widely accepted semantics for querying a possibly
inconsistent database is that of consistent answers, which yields the set of tuples (atoms)
that appear in the answer to the query over every possible repair. CQA enforces
consistency at query time as an alternative to enforcing it at the instance level, as conventional
data cleaning techniques do. This allows to focus on a smaller portion of the database
for which repairs can be computed more easily. Furthermore, techniques have been
developed so that it is not necessary to materialize every possible repair. The work of [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]
addresses the basic concepts and results of the area of CQA.
      </p>
      <p>
        More recently, the advent of the Semantic Web, a vision for the future Web, which
is strongly based on ontology languages, has led to a resurgence of interest in this
area, specially focusing on the development of efficient inconsistency-tolerant
reasoning and query answering in DLs and ontology languages. Lately, several works have
focused on inconsistency handling for different classes of DLs, adapting and
specializing general techniques previously considered for traditional logics [
        <xref ref-type="bibr" rid="ref18">25, 18, 26, 24</xref>
        ].
In [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ], the adaptation of CQA for DL-Lite ontologies is studied. The intersection
semantics (ICons) is presented as a sound approximation of consistent answers, which
Fragment of Datalog+/– Cons ICons ICR
guarded (Theorem 9) co-NP-complete [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] co-NP-complete [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] co-NP-complete
linear (Theorem 10) co-NP-complete [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] FO-rewritable [23] co-NP-complete
multi-linear (Theorem 10) co-NP-complete FO-rewritable co-NP-complete
frontier-one (Theorem 11) co-NP-complete co-NP-complete co-NP-complete
frontier-guarded (Theorem 12) co-NP-complete co-NP-complete co-NP-complete
joint-acyclic (Theorem 14) co-NP-complete co-NP-complete co-NP-complete
weakly-acyclic (Theorem 13) co-NP-complete co-NP-complete co-NP-complete
sticky (Theorem 15) co-NP-complete FO-rewritable co-NP-complete
sticky-join (Theorem 16) co-NP-complete FO-rewritable co-NP-complete
weakly-sticky (Theorem 17) co-NP-complete co-NP-complete co-NP-complete
weakly-sticky-join (Theorem 17) co-NP-complete co-NP-complete co-NP-complete
for the DL-Lite family is easier to compute, as well as the closed ABox version, which
considers the closure of the set of assertional axioms (ABox, or extensional database)
by the terminological axioms (TBox, or intensional database). Later, in [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ], the authors
explore first-order (FO-) rewritability of DL-Lite ontologies under ICons . The data and
combined complexity of the semantics were studied in [27] for a wide spectrum of DLs.
Despite the fact that computing consistent answers is an inherently hard problem ([
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]
shows co-NP completeness even for ground atomic queries in DL-Lite), some works
identify cases for simple ontologies (within the DL-Lite family) for which tractable
results can be obtained [
        <xref ref-type="bibr" rid="ref6 ref8">6, 8</xref>
        ]. In [27], the complexity for query answering under
inconsistency-tolerant semantics is provided for a wide spectrum of DLs, ranging from
tractable ones (E L) to very expressive ones (SHIQ). In [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ], consistent query
answering and query answering under the ICons semantics for linear and guarded Datalog+/–
ontologies are studied. An alternative inconsistency-tolerant semantics, called the
klazy semantics, is also proposed. In [23], FO-rewritability is shown for query answering
under the ICons semantics for linear Datalog+/–.
      </p>
      <p>
        In this work, we analyze the (data) complexity of query answering of Boolean
conjunctive queries for a set of fragments of Datalog+/– under the three different recent
semantics consistent query answering (CQA) [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ], the intersection semantics (ICons ) [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ],
and the intersection of closed repairs (ICR) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. We focus on the Datalog+/– family of
ontology languages [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], particularly on several fragments of Datalog+/– that guarantee
termination of query answering procedures in polynomial time in the data complexity
or FO-rewritability. Datalog+/– enables a modular rule-based style of knowledge
representation, and it represents syntactical fragments of first-order logic so that answering
a BCQ Q under a set T of Datalog+/– rules for an input database D is equivalent to
the classical entailment check D [ T j= Q. The following example illustrates how
description logic (DL) knowledge bases are expressed in Datalog+/–.
      </p>
      <p>Example 1 A DL knowledge base consists of a TBox and an ABox. For example, the
knowledge that every conference paper is an article and that every scientist is the
author of at least one paper can be expressed by two TBox axioms: ConfPaper v
Article and Scientist v 9isAuthor . The fact that Mark is a scientist can be expressed
by the ABox axiom Scientist (Mark ). The TBox can be encoded in Datalog+/– rules
as follows: ConfPaper (X) ! Article(X) and Scientist (X) ! 9Y isAuthor (X; Y ).
The ABox is encoded by an identical set of facts in the database. The TBox axiom
ConfPaper v :JournalPaper saying that conference papers are not journal papers,
can be expressed by the following constraint ConfPaper (X)^JournalPaper (X) ! ?.
Finally, a simple Boolean conjunctive query (BCQ) asking if Mark authors a paper is
9XisAuthor (Mark ; X).</p>
      <p>Datalog+/–’s properties of decidability and data tractability of query answering,
along with its expressive power, make it very useful in many real-world application
areas, such as ontology querying, Web data extraction, data exchange, ontology-based
data access, and data integration. Studying the complexity of consistent query
answering for several semantics and languages can provide insights for finding tractable special
cases, average cases, and approximation algorithms for each of these combinations, or
even inspirations for inconsistency handling semantics with better computational
properties. Table 1 summarizes this paper’s data complexity results for BCQ answering in 11
fragments of Datalog+/– under the three different inconsistency-tolerant semantics.</p>
      <p>This paper is organized as follows. In Section 2, we recall the basic notions of
Datalog+/– ontologies. Section 3 provides the definitions for the three
inconsistencytolerant semantics and some results about their relationships. In Section 4, we
provide a complete data complexity analysis for 11 fragments of Datalog+/– and the three
inconsistency-tolerant semantics (proofs of all results are given in the extended version
of this paper). Section 5 summarizes the main results and gives an outlook on future
work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries on Datalog+/–</title>
      <p>
        In this Section, we briefly recall the basics on Datalog+/– [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], namely, on relational
databases, (Boolean) conjunctive queries ((B)CQs), tuple- and equality-generating
dependencies (TGDs and EGDs, respectively), negative constraints, and Datalog+/–
ontologies.
      </p>
      <p>Databases and Queries. We assume (i) an infinite universe of (data) constants
(which constitute the “normal” domain of a database), (ii) an infinite set of (labeled)
nulls N (used as “fresh” Skolem terms, which are placeholders for unknown
values, and can thus be seen as variables), and (iii) an infinite set of variables V (used
in queries, dependencies, and constraints). Different constants represent different
values (unique name assumption), while different nulls may represent the same value. We
denote by X sequences of variables X1; : : : ; Xk with k &gt; 0. We assume a relational
schema R, which is a finite set of predicate symbols (or simply predicates). A term t is
a constant, null, or variable. An atomic formula (or atom) a has the form P (t1; :::; tn),
where P is an n-ary predicate, and t1; :::; tn are terms.</p>
      <p>A database (instance) D for a relational schema R is a (possibly infinite) set of
atoms with predicates from R and arguments from . A conjunctive query (CQ) over
R has the form Q(X) = 9Y (X; Y), where (X; Y) is a conjunction of atoms
(possibly equalities, but not inequalities) with the variables X and Y, and possibly
constants, but without nulls. A Boolean CQ (BCQ) over R is a CQ of the form Q(),
often written as the set of all its atoms, without quantifiers. Answers to CQs and BCQs
are defined via homomorphisms, which are mappings : [ N [ V ! [ N [ V
such that (i) c 2 implies (c) = c, (ii) c 2 N implies (c) 2 [ N , and (iii) is
naturally extended to atoms, sets of atoms, and conjunctions of atoms. The set of all
answers to a CQ Q(X) = 9Y (X; Y) over a database D, denoted Q(D), is the set
of all tuples t over for which there exists a homomorphism : X [ Y ! [ N
such that ( (X; Y)) D and (X) = t. The answer to a BCQ Q() over a database D
is Yes, denoted D j= Q, iff Q(D) 6= ;.</p>
      <p>Given a relational schema R, a tuple-generating dependency (TGD) is a
firstorder formula of the form 8X8Y (X; Y) ! 9Z (X; Z), where (X; Y) and (X;
Z) are conjunctions of atoms over R (without nulls), called the body and the head of ,
denoted body ( ) and head ( ), respectively. Such is satisfied in a database D for R
iff, whenever there exists a homomorphism h that maps the atoms of (X; Y) to atoms
of D, there exists an extension h0 of h that maps the atoms of (X; Z) to atoms of D.
All sets of TGDs are finite here. Since TGDs can be reduced to TGDs with only single
atoms in their heads, in the sequel, every TGD has w.l.o.g. a single atom in its head.</p>
      <p>
        Query answering under TGDs, i.e., the evaluation of CQs and BCQs on databases
under a set of TGDs is defined as follows. For a database D for R, and a set of TGDs
on R, the set of models of D and , denoted mods(D; ), is the set of all (possibly
infinite) databases B such that (i) D B and (ii) every 2 is satisfied in B. The set
of answers for a CQ Q to D and , denoted ans(Q; D; ), is the set of all tuples a such
that a 2 Q(B) for all B 2 mods(D; ). The answer for a BCQ Q to D and is Yes,
denoted D [ j= Q, iff ans(Q; D; ) 6= ;. Note that query answering under general
TGDs is undecidable [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], even when the schema and TGDs are fixed [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Both problems
of CQ and BCQ evaluation under TGDs are LOGSPACE-equivalent [
        <xref ref-type="bibr" rid="ref16 ref17">17, 16</xref>
        ]. Moreover,
the query output tuple (QOT) problem (as a decision version of CQ evaluation) and
BCQ evaluation are AC0-reducible to each other. Henceforth, we focus only on BCQ
evaluation, and any complexity results carry over to the other problems.
      </p>
      <p>Negative constraints (or constraints) are first-order formulas 8X (X) ! ?, where
(X) (called the body of ) is a conjunction of atoms (without nulls). Under the
standard semantics of query answering of BCQs in Datalog+/– with TGDs for each
constraint 8X (X) ! ?, we only have to check that the BCQ (X) evaluates to false in
D under ; if one of these checks fails, then the answer to the original BCQ Q is false,
otherwise the constraints can simply be ignored when answering the BCQ Q.</p>
      <p>
        Equality-generating dependencies (or EGDs) , are first-order formulas 8X (X)
! Xi = Xj , where (X), called the body of , denoted body ( ), is a (without nulls)
conjunction of atoms, and Xi and Xj are variables from X. Such is satisfied in a
database D for R iff, whenever there exists a homomorphism h such that h( (X; Y))
D, it holds that h(Xi) = h(Xj ). In this work, we assume non-conflicting [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] EGDs;
this guarantees that EGDs have no impact on the chase with respect to query answering.
We usually omit the universal quantifiers in TGDs, negative constraints, and EGDs, and
assume that all sets of dependencies and/or constraints are finite.
      </p>
      <p>Datalog+/– Ontologies. A Datalog+/– ontology KB = (D; ), where = T [ E [
NC , consists of a finite database D, a set of TGDs T , a set of non-conflicting EGDs
E , and a set of negative constraints NC .
3</p>
    </sec>
    <sec id="sec-3">
      <title>Inconsistency-Tolerant Query Answering</title>
      <p>Different works on inconsistency handling in description logics (DLs) allow for
inconsistency to occur for different reasons. Depending on the expressive power of the
underlying formalism, some works allow for both terminological axioms (TBox) and
assertional axioms (ABox) to be inconsistent. In this work, following the idea from
database theory in which formulas in are interpreted as integrity constraints
expressing the semantics of the data contained in D, we assume that is itself consistent, and
inconsistencies can only arise when D and are considered together.
Definition 2 (Consistency) A Datalog+/– ontology KB = (D; ) is consistent iff
mods(D; ) 6= ;.</p>
      <p>
        We recall now the notion of data repairs of a Datalog+/– ontology from [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ];
intuitively these are minimal (in the set-inclusion sense) consistent subsets of D.
Definition 3 (Data Repair) A data repair of a Datalog+/– ontology KB = (D; ) is a
set D0 such that (i) D0 D, (ii) mods(D0; ) 6= ;, and (iii) there is no other set D00 D
such that D0 D00 and mods(D00; ) 6= ;. We denote by DRep(KB ) the set of all data
repairs for KB .
      </p>
      <p>Data repairs play a central role in consistent answers for a query to an ontology,
which are intuitively the answers relative to each ontology built from a data repair.
Definition 4 (Consistent Answers) Let KB = (D; ) be a Datalog+/– ontology, and
Q be a BCQ. Then, Yes is a consistent answer for Q to KB , denoted KB j=Cons Q, iff
it is an answer for Q to each KB 0 = (D0; ) with D0 2 DRep(KB ).</p>
      <p>
        The problem of determining if an answer is a consistent answer has been shown
to be hard even for simple ontological languages such as DL-LiteCore [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] even for
more restrictive sublanguages [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. To avoid intractability, approximations to consistent
answers have been developed. The first we consider only takes into account the atoms
that are in the intersection of all data repairs; it was presented as the IAR semantics
for DL-Lite in [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. The intersection semantics (or ICons semantics), as called in a
generalization for Datalog+/– ontologies in [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ], yields a unique way of repairing
inconsistency, and the consistent answers are intuitively the answers that can be obtained
from that unique set. This semantics is also called cautious query answering in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
Definition 5 (Intersection Semantics) Let KB = (D; ) be a Datalog+/– ontology,
and Q be a BCQ. Then, Yes is a consistent answer for Q to KB under the
intersection semantics, denoted KB j=ICons Q, iff it is an answer for Q to KB I = (DI ; ),
where DI = T fD0 j D0 2 DRep(KB )g.
      </p>
      <p>
        A finer approximation to consistent answers is proposed by [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] which, adapted to
Datalog+/– , corresponds to closing repairs with respect to T before intersecting them.
In the next definition, Cn(D0; T ) denotes the set of all ground atoms entailed by a set
of atoms D0 and a set of TGDs T . Note that even though the set of constants may be
infinite, we restrict the closure of D with respect to T to the active domain of D (i.e.,
the constants that appear in the database instance).
      </p>
      <p>Definition 6 (Intersection of Closed Repairs) Let KB = (D; ) be a Datalog+/–
ontology, and Q be a BCQ. Then, Yes is a consistent answer for Q to KB under the ICR
semantics, denoted KB j=ICR Q, iff it is an answer for Q to KB I = (DI ; ), where
DI = T fCn(D0; T ) j D0 2 DRep(KB )g.</p>
      <p>
        Soundness for this semantics is shown in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]; that is, for a given BCQ Q and
DLLitecore ontology KB , if KB j=ICR Q then KB j=Cons Q. The following proposition
shows the equivalence between the two semantics whenever Q is an atomic ground
BCQ. Note that the result holds for arbitrary Datalog+/– ontologies.
      </p>
      <p>Proposition 7 Let KB be a Datalog+/– ontology, and Q be a ground atomic BCQ. We
have that KB j=Cons Q iff KB j=ICR Q.</p>
      <p>Proof. We want to show that KB j=ICR Q iff KB j=Cons Q, that is the same as
showing that (Tr2DRep(KB) Cn(r; T )) j= Q iff for every r 2 DRep(KB ), (r; T ) j= Q.</p>
      <p>()) If (Tr2DRep(KB) Cn(r; T )) j= Q then for every data repair r, either Q 2
Tr2DRep(KB) Cn(r; T ) or there exists a set B Tr2DRep(KB) Cn(r; T ) such that
(B; T ) j= Q. This means that (r; T ) j= Q for every r 2 DRep(KB ).</p>
      <p>(() If for every r 2 DRep(KB ), we have that (r; T ) j= Q then, for every r,
Cn(r; T ) j= Q and therefore Q 2 Cn(r; T ), then Q 2 Tr2DRep(KB) Cn(r; T )
and thus KB j=ICR Q. 2</p>
      <p>In the next section we analyze the data complexity of query answering under the
three different inconsistency-tolerant semantics for a variety of fragments of Datalog+/–
for which classical query answering of BCQs has already been shown to be tractable.
The following proposition helps us prove some of the complexity results; in showing
the data complexity in some of the cases; it states that the property of FO-rewritability
for classical query answering of BCQs still holds under the intersection semantics.
Proposition 8 Let KB be a F -Datalog+/– ontology. If query answering is
FO-rewritable for the fragment F , then so is query answering under the ICons semantics.
Proof (sketch). The rewriting algorithm for linear ontologies from [23] can be used to
show FO-rewritability of any fragment of Datalog+/– for which query answering is
FOrewritable, since this is the only assumption made in the proofs of the results presented
in that paper. 2</p>
    </sec>
    <sec id="sec-4">
      <title>Landscape of Datalog+/– Classes</title>
      <p>
        The problem of entailment is known to be undecidable in the presence of general
TGDs [
        <xref ref-type="bibr" rid="ref13 ref5">5, 13</xref>
        ]. However, in the recent years several decidable and even tractable classes
have been defined based on different syntactic properties of the TGDs and abstract
properties related to the behavior of reasoning mechanisms [
        <xref ref-type="bibr" rid="ref10 ref12 ref2 ref3 ref4">3, 2, 12, 4, 10</xref>
        ]. In this Section
we recall several Datalog+/– sublanguages and analyze the data complexity of query
answering under the different inconsistency-tolerant semantics described in Section 3.
Figure 1 shows the summary of the results obtained in this section.
4.1
      </p>
      <sec id="sec-4-1">
        <title>Guarded Sets of TGDs</title>
        <p>
          We first recall the notion of guardedness from [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]. A TGD is said to be guarded iff it
contains an atom in its body that contains all universally quantified variables of . The
leftmost such atom is the guard atom (or guard) of .
        </p>
        <p>
          Computing the consisten answers and query answering under the ICons semantics
for guarded Datalog+/– was shown to be co-NP-complete in [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ]. To establish
membership in co-NP for consistent query answering, we can show a witness that consists
of a D0 2 DRep(KB ) for which (D0; T ) 6j= Q. Note that D0 can be verified to be a
repair in polynomial time, since atoms from D can be added in turn and verified to give
rise to an inconsistency, as can (D0; T ) 6j= Q be checked in polynomial time in the
guarded case.
        </p>
        <p>Theorem 9 Let KB be a guarded Datalog+/– ontology, and Q be a BCQ. Deciding if
KB j=ICR Q is co-NP-complete.</p>
        <p>Proof (sketch). Membership in co-NP for query answering under the ICR semantics
can be shown by guessing and verifying some D? Cn(D; T ) with (D?; T ) 6j= Q,
and, for every 2 Cn(D; T ) D?, some D0 DRep(KB ) such that 62Cn(D0 ; T ).
Note that the latter implies that TD02DRep(KB) Cn(D0; T ) D?. Hence, (D?; ) 6j= Q
implies KB 6j=ICR Q. The above guessing and verifying can be done in polynomial time
in the data complexity in the guarded case. Membership in co-NP for the ICons
semantics can be shown analogously (without computing the closure of the repairs).</p>
        <p>
          Finally, co-NP hardness for consistent query answering is shown in [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ] even for
ground atomic queries; by Proposition 7, this means that it is also hard for DL-Litecore
under the ICR semantics, and since this language is a subset of guarded Datalog+/– we
can conclude that query answering under the ICR semantics is also co-NP hard in the
guarded case. 2
        </p>
        <p>
          A TGD linear iff it contains only a single atom in its body. Furthermore, sets of
multi-linear TGDs correspond to TGDs whose bodies contain only guards. For
linear Datalog+/– co-NP completeness for consistent query answering was shown in [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ]
and FO-rewritability for linear Datalog+/– ontologies under the ICons semantics was
shown in [23]. For multi-linear sets of TGDs we have the following results.
Theorem 10 Let KB be a multi-linear Datalog+/– ontology, and Q be a BCQ.
Deciding if (a) KB j=Cons Q and if (b) KB j=ICR Q are both co-NP-complete. Also, (c)
query answering for BCQs under ICons is FO-rewritable.
        </p>
        <p>
          Proof (sketch). Since linear is a sublanguage of multi-linear Datalog+/– [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], we can
easily show that consistent query answering is co-NP-hard for the multi-linear case.
Membership in co-NP can be shown analogously to the linear/guarded case.
Furthermore, by Proposition 8 we now that query answering under the ICons semantics is also
FO-rewritable for the multi-linear case. Finally, following the same argument made for
guarded Datalog+/–, by Proposition 7 we conclude that query answering under the ICR
semantics is also co-NP hard in both the linear and multi-linear case. 2
4.2
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Frontier-Restricted Sets of TGDs</title>
        <p>The frontier of a TGD is the set of variables that occur both in the head and body of
. A TGD is frontier-one if its frontier is of size one.</p>
        <p>
          Theorem 11 Let KB be a frontier-one Datalog+/– ontology, and Q be a BCQ.
Deciding if (a) KB j=Cons Q, (b) KB j=ICons Q, and (c) KB j=ICR Q are co-NP-complete.
Proof (sketch). Since classical query answering can be performed in polynomial time
in the data complexity for frontier-one ontologies [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], membership in co-NP for the
three problems can be shown similar to the way it is done for the guarded case.
Hardness can be shown analogously to the hardness proof for the guarded case in [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ], with
a slight modification in the definition of the set of TGDs to ensure using frontier-one
TGDs. Query answering under the ICons semantics can be proved by reduction from
the k-clique problem of undirected graphs: the set of TGDs contains the
characterization of a clique of size k. Hardness in co-NP under the ICR semantics follows from the
fact that consistent query answering for frontier-one Datalog+/– is shown to be
co-NPhard even for ground atomic queries and Proposition 7. 2
        </p>
        <p>By noticing that the “shape” of derived facts depends only on how the frontier of
the TGDs is mapped (and not on how the whole body is mapped, since only the images
of the frontier are used to apply a TGD), one obtains a generalization of both fr1- and
guarded-rules: a TGD is frontier-guarded (fg) if there is an atom a in its body that
contains all variables in its frontier, i.e., vars(f r( )) vars(a).</p>
        <p>Theorem 12 Let KB be a frontier-guarded Datalog+/– ontology, and Q be a BCQ.
Deciding if (a) KB j=Cons Q, (b) KB j=ICons Q, and (c) KB j=ICR Q are
co-NPcomplete.</p>
        <p>
          Proof (sketch). Given that classical query answering can be performed in polynomial
time in the data complexity for frontier-guarded ontologies [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], membership in co-NP
for the three problems can easily be shown similarly to the guarded case. Furthermore,
hardness for the consistent query answering problem and query answering under the
ICons semantics can be proved by reduction from the corresponding problems for
frontier-one ontologies, whose data complexity was shown above. Hardness for query
answering under the ICR semantics follows from the fact that consistent query
answering for frontier-guarded is shown to be co-NP-hard even for ground atomic queries and
Proposition 7. 2
        </p>
      </sec>
      <sec id="sec-4-3">
        <title>Weakly- and Joint-Acyclic Sets of TGDs</title>
        <p>
          Other tractable cases are obtained by restricting possible interactions between TGDs.
These interactions have been encoded in different directed graphs that represent
encodings of variable sharing between positions in predicates or the encoding of dependencies
between TGDs. Here we briefly recall the notion of (position) dependency graph [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
The nodes in a dependency graph represent positions in predicates, i.e., the node (p; i)
represents a position i in predicate p. For each TGD and each variable X in body ( )
occurring in position i, edges with origin (p; i) are built as follows: if X is in the
frontier of , there is an edge from (p; i) to each position of X in head ( ); furthermore,
for each existential variable Y in head ( ) occurring in position (q; j), there is a special
edge from (p; i) to (q; j). A set of rules is said to be weakly-acyclic if its dependency
graph has no cycle passing through a special edge. Weakly-acyclic sets of TGDs strictly
include both sets of full TGDs and acyclic sets of inclusion dependencies [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
Theorem 13 Let KB be a weakly-acyclic Datalog+/– ontology, and Q be a BCQ.
Deciding if (a) KB j=Cons Q, (b) KB j=ICons Q, and (c) KB j=ICR Q are
co-NPcomplete.
        </p>
        <p>
          Proof (sketch). Membership in co-NP for the three problems can be obtained in the
same way that is done for the guarded case since query answering for weakly-acyclic
sets of TGDs is in PTIME [
          <xref ref-type="bibr" rid="ref15 ref17">15, 17</xref>
          ]. As for co-NP hardness for consistent query
answering, the reduction provided in [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ] to show co-NP hardness can be used in this case
since the set of TGDs generated in the reduction is trivially a set of weakly-acyclic
set of TGDs. Co-NP hardness can be shown for the ICons by slightly modifying the
reduction in Theorem 11. Finally, co-NP hardness for the ICR semantics follows
directly from the fact that consistent query answering for weakly-acyclic is shown to be
co-NP-hard even for ground atomic queries and Proposition 7. 2
Joint-acyclicity [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]. This class is obtained by simply shifting the focus from positions
to existential variables; that is, replacing the position dependency graph by the
existential dependency graph, where the nodes are the existential variables occurring in TGDs.
This yields a finer analysis of potentially infinite creations of existential variables.
Theorem 14 Let KB be a joint-acyclic Datalog+/– ontology, and Q be a BCQ.
Deciding if KB j=Cons Q, KB j=ICons Q, and KB j=ICR Q are co-NP-complete.
Proof (sketch). Membership in co-NP for all three problems can be obtained in the
same way that is done for the guarded Datalog+/– since classical query answering for
joint-acyclic sets of TGDs is in PTIME [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]. co-NP hardness for all three problems
follows directly from the fact that joint-acyclic sets of TGDs strictly generalize
weaklyacyclic sets of TGDs. 2
4.4
        </p>
      </sec>
      <sec id="sec-4-4">
        <title>Sticky Sets of TGDs</title>
        <p>
          The stickiness property restricts multiple occurrences of variables (in the same atom or
in distinct atoms, i.e., in joins) in the TGD bodies. The class of sticky sets of TGDs is
2
defined in [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] by a syntactic criterion that is easily testable, which is as follows. For
every database D, assume that during the chase (or forward chaining processing) of D
regarding a set of TGDs, we apply a TGD 2 which has a variable V appearing
more than once in its body. Assume also that V maps (via a homomorphism) on the
symbol z, and that by virtue of this application the atom a is generated. In this case, for
each atom b 2 body ( ) we say that a is derived from b. Then, z appears in a, and in
all atoms resulting from some derivation sequence starting from a, “sticking” to them
(hence the name “sticky” sets of TGDs). We mark the variables that occur in the body
of the TGDs of T according to the following marking procedure. First, for each TGD
2 T and for each variable V in body ( ), if there exists an atom a in head ( ) such
that V does not appear in a, then we mark each occurrence of V in body ( ). Now, we
apply exhaustively (i.e., until a fixpoint is reached) the following step: for each TGD
2 T , if a marked variable in body ( ) appears at position , then for every TGD
0 2 T (including the case = 0), we mark each occurrence of the variables in
body ( 0) that appear in head ( 0) at the same position . We say that T is sticky if
there is no TGD T such that a marked variable occurs in body ( ) more than once.
Theorem 15 Let KB be a sticky Datalog+/– ontology, and Q be a BCQ. Deciding if
(a) KB j=Cons Q and if (b) KB j=ICR Q are both co-NP-complete. Furthermore, (c)
query answering for BCQs under ICons is FO-rewritable.
        </p>
        <p>
          Proof (sketch). Hardness in co-NP for consistent query answering follows from the
fact that sticky Datalog+/– generalizes DL-Litecore (the translation of a DL-Litecore
TBox yields sticky sets of TGDs), a DL for which the problem is co-NP-complete [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ].
Membership can be shown analogously to the guarded case since query answering for
sticky sets of TGDs is in PTIME [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. FO-rewritability for the ICons semantics follows
from Proposition 8. Finally, consistent query answering is co-NP hard even for ground
atomic queries [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]; by Proposition 7, this means that it is also hard for DL-Litecore
under the ICR semantics. Therefore, query answering under the ICR semantics is also
co-NP hard in the sticky case. 2
        </p>
        <p>
          Finally, sticky sets of TGDs are not expressive enough to model simple cases such as
the following linear TGD p(X; Y; X) ! 9Zq(Y; Z); variable X is marked and
therefore the stickiness condition violated. The class of sticky-join TGDs extends both linear
and sticky TGDs preserving tractability (FO-rewritability) for query answering [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. As
in the case of sticky, sticky-join sets of TGDs are defined by a testable condition based
on variable-marking, though a more sophisticated one. For lack of space we omit the
formal definition of such marking (cf. [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] for more details on this class).
Theorem 16 Let KB be a sticky-join Datalog+/– ontology, and Q be a BCQ. Deciding
if (a) KB j=Cons Q and if (b) KB j=ICR Q are both co-NP-complete. Also, (c) query
answering for BCQs under ICons is FO-rewritable.
        </p>
        <p>
          Proof (sketch). Membership in co-NP for consistent query answering and query
answering under the ICR semantics can be shown analogously to the guarded case, since
query answering for weakly-sticky sets of TGDs is in PTIME [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. Hardness for
coNP in both cases follows directly from the fact that sticky-join Datalog+/– generalizes
linear Datalog+/–, a fragment for which it is already shown that the problems are
coNP-complete (cf. Theorem 10). FO-rewritability for the ICons semantics follows from
Proposition 8. 2
        </p>
        <p>
          The class of weakly-sticky [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] TGDs generalizes both weakly-acyclic and sticky
sets of TGDs. Intuitively, in a weakly-sticky set of TGDs, the variables that appear
more than once in the body of a TGD are either non-marked (as defined above for sticky
TGDs), or occur at positions where a finite number of distinct values can appear during
the chase. Lastly, we look at weakly-sticky-join [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] sets of TGDs, which generalize
both weakly-sticky sets and sticky-join sets.
        </p>
        <p>Theorem 17 Let KB be a weakly-sticky(-join) Datalog+/– ontology, and Q be a BCQ.
Deciding if (a) KB j=Cons Q, (b) KB j=ICons Q, and (c) KB j=ICR Q are
co-NPcomplete.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Summary and Outlook</title>
      <p>In this work, we have studied the problem of inconsistency-tolerant query answering of
BCQs for a wide range of tractable fragments of Datalog+/–. For each of the 11
languages chosen, we have determined the data complexity of consistent query answering
and of query answering under two of its approximations proposed recently in the
literature: ICons (intersection of repairs) and ICR (intersection of closed repairs) semantics.
As has been shown in previous work, the problem of computing consistent answers is a
hard problem even for very simple languages; therefore, the results obtained for this
semantics are not surprising, though the tractability of query answering in these languages
at least yields non-deterministic polynomial time upper bounds. On the other hand, we
see that for the ICons semantics, there is a large gap in the data complexity, when
going from FO-rewritable fragments of Datalog+/– to those for which classical query
answering is PTIME-complete. Finally, for the chosen languages, the ICR semantics
proved to be as hard as the consistent answers to compute. These results are suggestive,
showing that it is still necessary to look for alternative inconsistency-tolerant semantics
that provide a better tradeoff between quality of answers and efficiency.</p>
      <p>The present work can be continued along several lines. For instance, there are
several more inconsistency-tolerant semantics that would be interesting to analyze for this
set of languages. Furthermore, it would be very important for practical purposes to
search for other fragments of Datalog+/– that allow for tractable query answering
under any of the current semantics existing in the literature. The complexity results of this
paper provide us with a direction for this search.</p>
      <p>Acknowledgments. This work was supported by the Engineering and Physical Sciences
Research Council (EPSRC) grant EP/J008346/1 “PrOQAW: Probabilistic Ontological
Query Answering on the Web”, the European Research Council (FP7/2007-2013)/ERC
grant 246858 (“DIADEM”), and by a Yahoo! Research Fellowship.
23. Lukasiewicz, T., Martinez, M.V., Simari, G.I.: Inconsistency-tolerant query rewriting for
linear Datalog+/–. In: Proc. Datalog 2.0. LNCS, vol. 7494, pp. 123–134. Springer (2012)
24. Ma, Y., Hitzler, P.: Paraconsistent reasoning for OWL 2. In: Proc. RR-2009. LNCS, vol.</p>
      <p>5837, pp. 197–211. Springer (2009)
25. Parsia, B., Sirin, E., Kalyanpur, A.: Debugging OWL ontologies. In: Proc. WWW-2005. pp.</p>
      <p>633–640. ACM Press (2005)
26. Qi, G., Du, J.: Model-based revision operators for terminologies in description logics. In:</p>
      <p>Proc. IJCAI-2009. pp. 891–897 (2009)
27. Rosati, R.: On the complexity of dealing with inconsistency in description logic ontologies.</p>
      <p>In: Proc. IJCAI-2011. pp. 1057–1062. IJCAI/AAAI Press (2011)</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. PODS-1999</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>Baget</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          , Lecle`re,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Mugnier</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.L.</surname>
          </string-name>
          :
          <article-title>Walking the decidability line for rules with existential variables</article-title>
          .
          <source>In: Proc. KR-2010</source>
          . pp.
          <fpage>466</fpage>
          -
          <lpage>476</lpage>
          . AAAI Press (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          , Lecle`re,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Mugnier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.L.</given-names>
            ,
            <surname>Salvat</surname>
          </string-name>
          , E.:
          <article-title>Extending decidable cases for rules with existential variables</article-title>
          .
          <source>In: Proc. IJCAI-2009</source>
          . pp.
          <fpage>677</fpage>
          -
          <lpage>682</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thomazo</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Walking the complexity lines for generalized guarded existential rules</article-title>
          .
          <source>In: Proc. IJCAI-2011</source>
          . pp.
          <fpage>712</fpage>
          -
          <lpage>717</lpage>
          . IJCAI/AAAI Press (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Beeri</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vardi</surname>
          </string-name>
          , M.Y.:
          <article-title>The implication problem for data dependencies</article-title>
          .
          <source>In: Proc. ICALP1981. LNCS</source>
          , vol.
          <volume>115</volume>
          , pp.
          <fpage>73</fpage>
          -
          <lpage>85</lpage>
          . Springer (
          <year>1981</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>First-order expressibility results for queries over inconsistent DL-Lite knowledge bases</article-title>
          .
          <source>In: Proc. DL-2011. CEUR Workshop Proceedings</source>
          , vol.
          <volume>745</volume>
          .
          <string-name>
            <surname>CEUR-WS.org</surname>
          </string-name>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Inconsistency-tolerant conjunctive query answering for simple ontologies</article-title>
          .
          <source>In: Proc. DL-2012. CEUR Workshop Proceedings</source>
          , vol.
          <volume>846</volume>
          .
          <string-name>
            <surname>CEUR-WS.org</surname>
          </string-name>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <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. AAAI-2012</source>
          . pp.
          <fpage>705</fpage>
          -
          <lpage>711</lpage>
          . AAAI Press (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Cal`ı,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Kifer</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          :
          <article-title>Taming the infinite chase: Query answering under expressive relational constraints</article-title>
          .
          <source>In: Proc. KR-2008</source>
          . pp.
          <fpage>70</fpage>
          -
          <lpage>80</lpage>
          . AAAI Press (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Cal`ı,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Lukasiewicz</surname>
          </string-name>
          ,
          <string-name>
            <surname>T.</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="ref11">
        <mixed-citation>
          11. 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>Advanced processing for ontological queries</article-title>
          .
          <source>Proceedings of the VLDB Endowment</source>
          <volume>3</volume>
          (
          <issue>1</issue>
          /2),
          <fpage>554</fpage>
          -
          <lpage>565</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. 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>Query answering under non-guarded rules in Datalog+/-</article-title>
          .
          <source>In: Proc. RR-2010. LNCS</source>
          , vol.
          <volume>6333</volume>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>17</lpage>
          . Springer (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Chandra</surname>
            ,
            <given-names>A.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lewis</surname>
            ,
            <given-names>H.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Makowsky</surname>
            ,
            <given-names>J.A.</given-names>
          </string-name>
          :
          <article-title>Embedded implicational dependencies and their inference problem</article-title>
          .
          <source>In: Proc. STOC-1981</source>
          . pp.
          <fpage>342</fpage>
          -
          <lpage>354</lpage>
          . ACM Press (
          <year>1981</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Chomicki</surname>
          </string-name>
          , J.:
          <article-title>Consistent query answering: Five easy pieces</article-title>
          .
          <source>In: Proc. ICDT-2007. LNCS</source>
          , vol.
          <volume>4353</volume>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>17</lpage>
          . Springer (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Dantsin</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Voronkov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Complexity and expressive power of logic programming</article-title>
          .
          <source>ACM Comput. Surv</source>
          .
          <volume>33</volume>
          (
          <issue>3</issue>
          ),
          <fpage>374</fpage>
          -
          <lpage>425</lpage>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Deutsch</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nash</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Remmel</surname>
            ,
            <given-names>J.B.</given-names>
          </string-name>
          :
          <article-title>The chase revisited</article-title>
          .
          <source>In: Proc. PODS-2008</source>
          . pp.
          <fpage>149</fpage>
          -
          <lpage>158</lpage>
          . ACM Press (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Fagin</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolaitis</surname>
            ,
            <given-names>P.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miller</surname>
            ,
            <given-names>R.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Popa</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Data exchange: Semantics and query answering</article-title>
          .
          <source>Theor. Comp. Sci</source>
          .
          <volume>336</volume>
          (
          <issue>1</issue>
          ),
          <fpage>89</fpage>
          -
          <lpage>124</lpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>van Harmelen</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>ten Teije</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Reasoning with inconsistent ontologies</article-title>
          .
          <source>In: Proc. IJCAI-2005</source>
          . pp.
          <fpage>354</fpage>
          -
          <lpage>359</lpage>
          . Professional Book Center (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19. Kro¨ tzsch,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Rudolph</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.</surname>
          </string-name>
          :
          <article-title>Extending decidable existential rules by joining acyclicity and guardedness</article-title>
          .
          <source>In: Proc. IJCAI-2011</source>
          . pp.
          <fpage>963</fpage>
          -
          <lpage>968</lpage>
          . IJCAI/AAAI Press (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <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. RR-2010. LNCS</source>
          , vol.
          <volume>6333</volume>
          , pp.
          <fpage>103</fpage>
          -
          <lpage>117</lpage>
          . Springer (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <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. RR-2011. LNCS</source>
          , vol.
          <volume>6902</volume>
          , pp.
          <fpage>155</fpage>
          -
          <lpage>169</lpage>
          . Springer (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <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. ECAI-2012</source>
          . pp.
          <fpage>558</fpage>
          -
          <lpage>563</lpage>
          . IOS Press (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>