<!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>A Note on DL-Lite with Boolean Role Inclusions</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Roman Kontchakov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vladislav Ryzhikov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Frank Wolter</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michael Zakharyaschev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Birkbeck, University of London</institution>
          ,
          <country country="UK">U.K</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Liverpool</institution>
          ,
          <country country="UK">U.K</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We discuss the complexity of reasoning and ontology-mediated query answering with the logics from the DL-Lite family extended by various types (Horn, Krom and Boolean) of role inclusions. We compare the expressive power of those logics with 1- and 2-variable fragments of first-order logic. Our most interesting findings show that binary disjunctions on roles do not change the complexity of satisfiability if disjunction is allowed on concepts, while still causing undecidability of UCQ answering.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        Concepts (unary predicates) and roles (binary predicates) are usually treated quite
differently in description logics (DLs). For example, the basic expressive DL ALC allows
statements about concepts in the form of arbitrary Boolean formulas but disallows any
statements about roles. A notable exception is DL-LiteR [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], also denoted DL-LitecHore
in the classification of [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], where concept and role inclusions take the form of binary
Horn (aka core) formulas #1 v #2 or #1 u #2 v ?, where the #i are either both
concepts or both roles. On the other hand, DL-LiteR;u [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], aka DL-LitehHorn [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], allows
arbitrary Horn concept inclusions #1 u u #k v #k+1 but only core role inclusions.
      </p>
      <p>
        To explore what happens if concepts and roles are treated equally, we introduce
a few new members to the DL-Lite family (which could be qualified as distant
relatives or illegitimate children) and denote the logics in the extended ‘clan’ by DL-Litecr,
where the parameters r; c 2 fbool; horn; krom; coreg define the allowed structure of
role and, respectively, concept inclusions. We present our observations on the
complexity of checking satisfiability of DL-Litecr knowledge bases and answering (unions
of) conjunctive queries mediated by DL-Litecr ontologies. It turns out that the
resulting languages provide a new way of classifying some fundamental fragments of
firstorder logic (FO). Consider first DL-Litebbooooll, which is easily seen to be contained in
the two-variable fragment FO2 of FO. Using the fact that ALC&gt;;id;\;:; , the
extension of ALCI with Boolean operations on roles and the identity role, has exactly the
same expressive power as FO2 [16], we show that DL-Litebbooooll almost captures FO2:
it corresponds to ALC&gt;;\;:; , the language ALC&gt;;id;\;:; without the identity role.
DL-Litebbooooll inherits from these languages NEXPTIME-completeness of satisfiability
and undecidability of CQ-answering [17, 15]. Note that DL-Litebbooooll also almost
captures the class of linear existential disjunctive rules with two variables [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. On the other
hand, we show that satisfiability of DL-Litecr knowledge bases with r 2 fhorn; kromg
      </p>
      <p>aCaIs a aRIas</p>
      <p>Bool
Horn
Krom
core</p>
      <p>Bool</p>
      <p>guarded Bool
NEXPTIME (Th. 3)</p>
      <p>EXPTIME (Th. 3)</p>
      <p>Horn
NP (Th. 6)
P (Th. 6)
P (Th. 6)</p>
      <p>Krom
NP (Th. 4)
NP (Th. 4)
NL (Th. 4)
core
and c 2 fbool; horn; krom; coreg can be encoded in propositional logic (or in the
onevariable fragment of FO), with the complexity of satisfiability checking ranging from
NL to P and NP; see Table 1. Our most interesting findings demonstrate that binary
disjunctions on roles do not change the complexity of satisfiability if disjunction is allowed
on concepts, while still causing undecidability of UCQ answering. Thus, satisfiability
of DL-Litekkrroomm knowledge bases is NL-complete, while answering UCQs mediated by
DL-Litekkrroomm ontologies is undecidable.</p>
      <p>The logics introduced above leave a huge gap between those having Boolean role
inclusions and those that only admit Horn or Krom role inclusions. To ‘complete’ the
picture, we add DL-Litegc-bool, the fragment of DL-Litebcool in which Boolean role
inclusions are guarded. It turns out that DL-Litegc-bool approximates the two-variable guarded
fragment GF2 of FO, from which it inherits EXPTIME-completeness of satisfiability
and 2EXPTIME-completeness of UCQ-answering.</p>
      <p>
        Our motivation to investigate the complexity of the family of languages DL-Litecr
with r; c 2 fbool; horn; krom; coreg stems from the observation that in the context of
answering queries mediated by temporal DL-Lite ontologies [
        <xref ref-type="bibr" rid="ref2 ref3">3, 2</xref>
        ] in some cases
admitting the same type of concept and role inclusions does not affect the data complexity
of query answering, while in others the effect is dramatic.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>DL-Lite with Complex Role Inclusions</title>
      <p>Let a0; a1; : : : be individual names, A0; A1; : : : concept names, and P0; P1; : : : role
names. We define roles S and basic concepts B as usual in DL-Lite:</p>
      <p>S ::= Pi j Pi ;</p>
      <p>B ::=</p>
      <p>Ai j 9S:
A concept or role inclusion (CI or, respectively, RI) takes the form
#1 u
u #k v #k+1 t
t #k+m;
k; m
0;
(1)
where the #i are all basic concepts or, respectively, roles. As usual, we denote the
empty u by &gt; and the empty t by ?. When it does not matter whether we talk about
concepts or roles, we refer to the #i as terms. A TBox T and an RBox R are finite sets of
concept and, respectively, role inclusions; their union O = T [ R is called an ontology.</p>
      <p>We classify ontologies according to the form of their concept and role inclusions.
Let r; c 2 fbool; horn; krom; coreg. We denote by DL-Litecr the description logic whose
ontologies contain concept and role inclusions of the form (1) satisfying the following
constraints for c and r, respectively:
(horn) m 1,
(krom) k + m 2,
(core) m 1 and k + m
(bool) k; m 0.</p>
      <p>2,
Note that all of our logics allow (disjointness) inclusions of the form #1 u #2 v ?.</p>
      <p>
        When defining our DL-Lite logics, we treat concept and role inclusions in a uniform
way, which is usually not the case in standard DLs. In particular, the DL-Lite logics [
        <xref ref-type="bibr" rid="ref1 ref9">9,
1</xref>
        ] only allow core role inclusions of the form S1 v S2 and S1 u S2 v ?. Also,
standard DL-Lite logics often do not admit CIs and RIs with &gt; on the left-hand side,
which are mostly harmless and do not affect the complexity of reasoning and query
answering. Modulo the latter insignificant difference, the logic DL-Liteccoorree is known
under the names DL-LiteR [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and DL-LitecHore [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], where the subscript core refers
to concept inclusions and the superscript H stands for ‘role hierarchies’, DL-Litechoorren
goes by the names DL-LiteR;u [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and DL-LitehHorn [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], DL-Litekcroorme = DL-LitekHrom
and DL-Litecbooroel = DL-LitebHool [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Note also that the logic DL-Litekcrom is DL-LitecH
extended with ‘covering’ role inclusions &gt; v S1 t S2 and, in particular, the
inclusions &gt; v P saying that P is the universal role. Finally, in the logic DL-Litebgo-boolol,
we disallow role inclusions of the form &gt; t Sn for n 1 (g stands for
‘guarded’). While DL-Litebbooooll and DL-Litebgvo-booloSl 1tutrn out to behave radically different,
for DL-Litehhoorrnn and DL-Liteccoorree the restriction to guarded RIs (i.e., excluding universal
roles) would have no effect on the problems we consider.
      </p>
      <p>As usual, an ABox, A, is a finite set of assertions of the form Ai(aj ) and Pi(aj ; ak).
A DL-Litecr knowledge base (KB, for short) is a pair K = (O; A), where O is a
DL-Litecr ontology and A an ABox. Interpretations are also standard, taking the form
I = ( I ; I ), where I 6= ;, aiI 2 I , AiI I and PiI I I . We call I
a model of a KB K and write I j= K if all of the assertions in A and inclusions in O
are true in I. If a KB has a model, it is called consistent or satisfiable. The
computational (combined) complexity of satisfiability checking for DL-Litecr KBs is one of our
concerns in this paper.</p>
      <p>The other is the (combined and data) complexity of answering conjunctive queries
(CQs) and unions of CQs (UCQs) mediated by DL-Litecr ontologies. A CQ is a
firstorder (FO) formula of the form q(x) = 9y '(x; y), where ' is a conjunction of
unary or binary atoms Q(z) with z x [ y. A UCQ is a disjunction of CQs with
the same answer variables x. A DL-Litecr ontology-mediated query (OMQ) is a pair
Q = (O; q(x)), where O is a DL-Litecr ontology and q a (U)CQ.</p>
      <p>Given an ABox A, we denote by ind(A) the set of individual names that occur in A.
A tuple a in ind(A) is a certain answer to an OMQ Q = (O; q(x)) if x and a are of
the same length and I j= q(a), for every model I of (O; A); in this case we write
O; A j= q(a). If the set x of answer variables is empty (that is, q is Boolean), a certain
answer to Q over A is ‘yes’ if I j= q, for every model I of (O; A), and ‘no’ otherwise.
The OMQ answering problem for DL-Litecr is to check, given an OMQ Q = (O; q(x))
with a DL-Litecr ontology O, an ABox A and a tuple a in ind(A), whether a is a certain
answer to Q over A.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Relationship to Other Fragments of FO</title>
      <p>Every DL-Litebbooooll ontology is easily seen to be equivalent to a sentence in the
twovariable fragment of FO, and every DL-Litebgo-boolol ontology is equivalent to a sentence
in the two-variable guarded fragment of FO. The converse directions do not hold. We
show, however, that both languages can be equivalently captured by natural description
logics with Boolean operators on roles (and no role inclusions). We give a concise
description of the expressivity of both DL-Litebbooooll and DL-Litebgo-boolol ontologies within
those more familiar description logics.</p>
      <p>
        Denote by FO2 the fragment of first-order logic with unary and binary relation
symbols, the equality symbol, no function symbols, and the individual variables x and y
only. FO2 is well understood [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], in particular, it is known to have the finite model
property, and the satisfiability problem for FO2-formulas is NEXPTIME-complete. It is
straightforward to show that DL-Litebbooooll is a fragment of FO2 in the sense that every
DL-Litebbooooll CI and RI is equivalent to a sentence in FO2. Moreover, the translation is
linear, and so the satisfiability problem for DL-Litebbooooll KBs is in NEXPTIME. To
answer the question how much of FO2 is captured by DL-Litebbooooll, we consider another
description logic in which roles have a similar status to concepts.
      </p>
      <p>Denote by ALCid;&gt;;\;:; the DL whose roles are built according to the rule
S; S1; S2 ::=</p>
      <p>&gt; j id j Pi j S1 u S2 j :S j S ;
and whose concepts are built according to the rule</p>
      <p>C; C1; C2 ::=</p>
      <p>
        &gt; j Ai j 9S:C j C1 u C2 j :C;
where S is an ALCid;&gt;;\;:; -role. An ALCid;&gt;;\;:; -CI takes the form C1 v C2,
where C1; C2 are ALCid;&gt;;\;:; -concepts. The semantics of ALCid;&gt;;\;:; is as
expected, with id interpreted in any interpretation I as the relation f(d; d) j d 2 I g.
ALCid;&gt;;\;:; was introduced in [16], various fragments had been considered
before [
        <xref ref-type="bibr" rid="ref11">15, 11</xref>
        ]. It is easy to see that every ALCid;&gt;;\;:; -CI is equivalent to a sentence in
FO2, and the translation is linear. The converse inclusion holds as well: every sentence
in FO2 is equivalent to an ALCid;&gt;;\;:; -CI, but the known translation introduces an
exponential blow-up [16]. In fact, despite having exactly the same expressive power,
ALCid;&gt;;\;:; behaves differently from FO2 in that satisfiability is still
NEXPTIMEcomplete but becomes, in contrast to FO2, EXPTIME-complete if the signature of unary
and binary relation symbols is fixed.
      </p>
      <p>The relationship between ALCid;&gt;;\;:; and DL-Litebbooooll can be stated in a
precise way: DL-Litebbooooll is ALCid;&gt;;\;:; without the relation id. Observe that we clearly
cannot express ALCid;&gt;;\;:; -CIs such as A v 9:id:A in DL-Litebbooooll. Denote by
ALC&gt;;\;:; the language ALCid;&gt;;\;:; without the relation id. We say that an
ontology O is a model conservative extension of an ontology O0 if O j= O0, the signature
of O0 is contained in the signature of O, and every model of O0 can be expanded to
a model of O by providing interpretations of the fresh symbols of O and leaving the
domain and the interpretation of the symbols in O0 unchanged.</p>
      <p>Theorem 1. (i) For every DL-Litebbooooll ontology, one can compute in linear time an
equivalent ALC&gt;;\;:; ontology.</p>
      <p>(ii) For every ALC&gt;;\;:; ontology, one can compute in polynomial time a model
conservative extension in DL-Litebbooooll.</p>
      <p>Proof. Clearly, every CI in DL-Litebbooooll is also in ALC&gt;;\;:; (9S abbreviates 9S:&gt;).
Every role inclusion S1 u u Sk v Sk+1 t t Sk+m in DL-Litebbooooll is equivalent
to the ALC&gt;;\;:; -CI 9(S1 u &gt;;u\;:S;k u :(Sk+1 t t Sk+m)):&gt; v ?.</p>
      <p>Conversely, assume an ALC ontology O is given. Using standard
normalisation one can construct in linear time an ALC&gt;;\;:; ontology with CIs of the form
A v 8S:B;
8S:B v A;</p>
      <p>A1 u A2 v B;</p>
      <p>A v :B;
:A v B;
where A; B; A1; A2 range over concept names and &gt;, which is a model conservative
extension of O. Now we can replace any CI A v 8S:B by</p>
      <p>S v Q t R;
9Q
v B;</p>
      <p>A v :9R;
where Q and R are fresh role names, and any CI 8S:B v A by
:A v 9R;</p>
      <p>R v S;
9R
v :B;
where R is a fresh role name. It remains to observe that we can replace the Boolean
role S by a role name and DL-Litebbooooll role inclusions to obtain a model conservative
extension.</p>
      <p>The two-variable guarded fragment of FO, denoted GF2, is the fragment of FO2
defined as follows:
– every atomic formula in FO2 is in GF2;
– GF2 is closed under ^ and :;
– if v 2 fx; y; xyg, is in GF2, and G is in atomic formula in FO2 containing all
free variables in , then 9v (G ^ ) is in GF2.</p>
      <p>It is not difficult to see that GF2 corresponds to the fragment ALCigdu;a&gt;rd;e\d;:; of the DL
ALCid;&gt;;\;:; in which every role expression is either &gt; or contains a guard: a
toplevel conjunct that is either id, a role name, or the inverse of a role name. The fragment
DL-Litebgo-boolol clearly lies within ALCg\u;a:rd;ed, the fragment of ALCigdu;a&gt;rd;e\d;:; without the
roles id and &gt;. In fact, similarly to the proof of Theorem 1, one can show the following:
Theorem 2. (i) For every DL-Litebgo-boolol ontology, one can compute in linear time an
\;:; \;:;
equivalent ALCguarded ontology. (ii) For every ALCguarded ontology, one can compute
in polynomial time a model conservative extension in DL-Litebgo-boolol.</p>
    </sec>
    <sec id="sec-4">
      <title>Complexity of Satisfiability</title>
      <p>
        It is known [
        <xref ref-type="bibr" rid="ref1 ref9">9, 1</xref>
        ] that satisfiability checking is NP-complete for DL-Litecbooroel KBs,
Pcomplete for DL-Litechoorren KBs, and NL-complete for DL-Litekcroorme and DL-Liteccoorree KBs.
Theorem 3. Satisfiability checking is NEXPTIME-complete for DL-Litebbooooll KBs and
EXPTIME-complete for DL-Litebg-oboolol KBs.
      </p>
      <p>
        Proof. For DL-Litebbooooll, NEXPTIME-completeness follows from Theorem 1 and [15,
Theorem 14]. For DL-Litebg-oboolol, the EXPTIME upper bound follows from the fact that
satisfiability of DL-Litebg-oboolol KBs is reducible to satisfiability of guarded FO-formulas
with at most binary predicates, which is known to be in EXPTIME [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. The matching
lower bound can be established using the encoding of A v 8S:B given in the proof of
Theorem 1 and the proof of [4, Theorem 3.27].
      </p>
      <p>Now we consider ontologies with Krom and Horn role inclusions. For an
ontology O, let role (O) = fP; P j P is a role name in Og. We also set (P ) = P .
Suppose J = ( J ; J ) is an interpretation. Denote by tJ (x) the concept type of
x 2 J in J , which comprises all B with x 2 BJ and all :B with x 2= BJ , for basic
concepts B of the form A, for concept names in O, and 9S, for S 2 role (O).
Similarly, we denote by rJ (x; y) the role type of (x; y) 2 J J in J , which comprises
all S with (x; y) 2 SJ and all :S with (x; y) 2= SJ , for S 2 role (O).
Lemma 1. For every satisfiable DL-Litekbroooml KB K = (O; A), there exists a model
I = ( I ; I ) of K such that
– I = ind(A) [ fwSi j S 2 role (O) and 0 i &lt; 3g,
– if a 2 (9S)I , then (a; wS0 ) 2 SI , for any a 2 ind(A) and any S 2 role (O),
– if wRi 2 (9S)I , then (wRi; wSi 1) 2 SI , for any R; S 2 role (O) and 0 i &lt; 3,
where denotes addition modulo 3. In particular, DL-Litekbroooml enjoys the linear model
property: j I j = jind(A)j + 3jrole (O)j.</p>
      <p>Proof. Suppose DL-Litekbroooml KB K = (O; A) is satisfied in J = ( J ; J ). We
construct the required model I as follows. For a role literal L (that is, a role or its negation),
we denote by cl(L) the set of all role literals L0 such that O j= L v L0.</p>
      <p>For each role S in O with SJ 6= ;, we pick wS 2 J with 9S 2 tJ (wS ); for S
with SJ = ;, we pick an arbitrary wS . Without loss of generality, we can assume that
all the selected wS are pairwise distinct. The set comprising three copies wS0 ; wS1 ; wS2
of all those wS together with ind(A) is denoted by I (this technique with three copies
is similar to the one used in the proof of [7, Proposition 8.1.4] establishing the finite
model property of FO2). Define a function f by taking f (a) = a, for all a 2 ind(A),
and f (wSi ) = wS , for all S and i. We then set tI (w) = tJ (f (w)), for all w 2 J .</p>
      <p>We now show how to define rI (w; w0) for w; w0 2 I . The following three cases
need consideration.</p>
      <p>– If w = a, w0 = wS0 and 9S 2 tJ (w), then we define rI (w; w0) by first
taking cl(S). Suppose now that &gt; v Sj t Sj0 , for 1 j n, are all disjunctions in O
such that Sj , Sj0 and their negations are not in cl(S). As J is a model of O, for each
j, either Sj or Sj0 must be in rJ (f (w); f (w0)). Suppose for definiteness that it is
Sj . Then we add cl(Sj ) to rI (w; w0). Using the main property of Krom formulas
(if a contradiction is derivable, then it is derivable from two literals), we can show
that the resulting rI (w; w0) is consistent with O and respects tI (w) and tI (w0) in
the sense that R 2 riI (1wa;nwd09) Sim2pltieJs(9wR), 2thetnI (wwe)daenfidn9eRrI (w; w0) as above.
2 tI (w0).
– If w = wRi, w0 = wS
– For any other w, w0 not covered above (in particular, if w = a, w0 = wSi and either
i &gt; 0 or 9S 2= tJ (a)), we set rI (w; w0) = rJ (f (w); f (w0)).</p>
      <p>It is readily checked that the constructed concept types tI (w) and role types rI (w; w0),
for w; w0 2 I , define a model of K.</p>
      <p>The existence of a model specified in Lemma 1 can be encoded by an essentially
propositional formula 'K with atomic propositions of the form By(x), for x 2 I
and basic concepts B from O, saying that B holds on x in I, and P y(x; x0), for a role
name P in O, saying that P holds on (x; x0) in I. The formula 'K is a conjunction of
the following sentences, for all x; x0 2 I :
B1y(x) ^
^ Bky(x) ! Bky+1(x) _</p>
      <p>_ Bky+m(x);
for each CI B1 u
u Bk v Bk+1 t
t Bk+m in O;
S1y(x; x0) ^
^ Sky(x; x0) ! Sky+1(x; x0) _
_ Sky+m(x; x0);
Ay(a);</p>
      <p>for each A(a) 2 A;
(9S)y(a) ! Sy(a; wS0 )
Sy(x; x0) ! (9S)y(x);</p>
      <p>for each S:
for each RI S1 u
u Sk v Sk+1 t</p>
      <p>t Sk+m in O;
and</p>
      <p>P y(a; b);</p>
      <p>for each P (a; b) 2 A;
and
(9S)y(wRi) ! Sy(x; wSi 1);
for each S and i;
where (Pi )y(x; x0) = Piy(x0; x). Note that, if K is a DL-Litekkrroomm KB, then 'K is
a Krom formula, which can be constructed by a logspace transducer. It can now be
straightforwardly shown that:
Lemma 2. A DL-Litekbroooml KB K is satisfiable iff 'K is satisfiable.</p>
      <p>As a consequence, and using the fact that DL-Litekhroormn can express DL-Litekbroooml (as
Krom RIs can simulate Krom CIs, and the latter can express the complements of
concepts), we obtain the following complexity results:
Theorem 4. Satisfiability checking is NP-complete for DL-Litekbroooml and DL-Litekhroormn
KBs, and NL-complete for DL-Litekkrroomm KBs.</p>
      <p>Next, we consider DL-Litebhooronl and DL-Litehhoorrnn KBs. Note that universal roles
defined by RIs such as &gt; v S can be trivially omitted from KBs, so in what follows we
assume that our KBs do not contain universal roles. The next lemma is proved by a more
or less standard unravelling construction. We need an unravelled infinite forest-shaped
model rather than a finite one similar to that in Lemma 1 in order to obtain Theorem 12
on the data complexity of OMQ answering with DL-Litehhoorrnn.</p>
      <p>Lemma 3. Let K = (O; A) be a satisfiable DL-Litebhooronl KB. Then there is a model
I = ( I ; I ) such that
– I ind(A) [ faw j a 2 ind(A); w is a word over wS ; for S 2 role (O)g,
– tI (w1wS ) = tI (w2wS ), for any w1wS and w2wS in I ,
– if w1 and w2 are not both in ind(A), then (w1; w2) 2 RI iff there is 9S 2 tI (w1)
such that R 2 rS , S is minimal with this property w.r.t. v, and w2 = w1wS , where
rS = fR j O j= S v Rg.</p>
      <p>If K is a DL-Litehhoorrnn KB, then B 2 tI (wwS ) iff O j= 9S
concept B.
v B, for any basic
Proof. First, we can show that if K is satisfied in a model I0, then it is satisfied in a
model J with minimal role types where, for all w; w0 2 J with fw; w0g 6 ind(A),
we have</p>
      <p>rJ (w; w0) = rS ; for some role S:
Indeed, suppose (w; w0) violates this property and w0 2= ind(A). Let rI0 (w; w0) =
fS1; : : : ; Skg. Then we replace w0 by k copies w10; : : : ; wk0 with the same concept types
as w0, and connect w to each wi0 by the roles in rSi only. In the resulting interpretation,
the pairs (w; wi0) are as required, but the wi0 may not satisfy CIs in O due to missing
witnesses for existential concepts 9R. To fix each of these wi0, we create k 1 copies wij
of w for j 6= i (again, the wij belong to the same concepts as w) and connect each wij
to wi0 by all roles in rSj . It can be seen that, in the resulting interpretation, the pairs
(wij ; w0) satisfy the required property, but now the wij may not satisfy CIs in O (again,
i
due to some 9R). To fix these new elements, we create copies of w0, and so on.</p>
      <p>Second, for each role name P such that P J 6 ind(A) ind(A), we can fix two
‘witnesses’ by arbitrarily choosing wP and wP such that fwP ; wP g 6 ind(A) and
rJ (wP ; wP ) = rP . Now we can unravel J into the required forest-shaped model I
of K by using only witnesses of the form wP and wP .</p>
      <p>
        Using Lemma 3, we now define translations of DL-Lite KBs with Horn RIs into
universal sentences in FO1 (FO-sentences with one variable), Horn-FO1 and Krom-FO1,
the satisfiability problems for which are known to be NP-, P- and NL-complete [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
Theorem 5. (i) DL-Litebhooronl satisfiability is poly-time-reducible to FO1-satisfiability.
(ii) DL-Litehhoorrnn satisfiability is poly-time-reducible to Horn-FO1-satisfiability.
(iii) DL-Litekhroormn satisfiability is poly-time-reducible to Krom-FO1-satisfiability.
Proof. (i) Let K = (O; A) be a DL-Litebhooronl KB. We assume without loss of generality
that together with RIs of the form S1 u u Sk v Sk+1 the TBox also contains
S1 u u Sk v Sk+1, and similarly for S1 u u Sk v ?. For each concept A,
fix a unary predicate A and, for each role name P , fix a binary predicate P , two unary
predicates EP and EP , and two constants wP and wP . Intuitively, the two constants
are representatives of the range and domain of the role, respectively (if it is non-empty);
the unary predicates of the form A, EP and EP encode the unary types; the binary
predicate P encodes the binary types of pairs of ABox elements. For a concept C, let
Cy(x) be
      </p>
      <p>A(x) if C = A;</p>
      <p>EP (x) if C = 9P;</p>
      <p>EP (x) if C = 9P :
A CI C1 u
u Ck v Ck+1 t</p>
      <p>t Ck+m is then naturally translated into
8x C1y(x) ^
^ Cky(x) ! Cky+1(x) _
_ Cky+m(x) :
We also include the following sentences, for all roles S:</p>
      <p>8x (9S)y(x) ! (9S )y(wS ) :
Since we assume that the binary types for (w1; w2) with fw1; w2g 6 ind(A) are
minimal, that is, generated by a single role, RIs are translated into the the following
sentences:
8x (9S)y(x) ! (9R)y(x) ;
8x (9S)y(x) ! ? ;
for all roles S and R with O j= S v R;
for all roles S with O j= S v ?:
Assertions of the form A(ai) are translated into A(ai) and of the form P (ai; aj ) into
P (ai; aj ). We also add</p>
      <p>P (ai; aj ) ! (9P )y(ai) ^ (9P )y(aj )
for all pairs ai; aj 2 ind(A) and all role names P , and</p>
      <p>S1(ai; aj ) ^
^ Sk(ai; aj ) ! Sk+1(ai; aj );
(2)
for all pairs ai; aj 2 ind(A) and RIs S1 u u Sk v Sk+1 and similarly for RIs
S1 u u Sk v ?, with ? in the conclusion, where P (ai; aj ) is a shortcut for
P (aj ; ai). It can easily be seen that K is satisfiable iff the translation is consistent.
(ii) We observe that the translation above is in Horn-FO1 if K is in DL-Litehhoorrnn.
(iii) The translation in (i) for DL-Litekhroormn is not in Krom-FO1. However, since the
translation works in polynomial time, we can modify it so that instead of (2) it produces
all S(ai; aj ) such that R; A j= S(ai; aj ) or ? if R; A j= ?, where R is the RBox of O.</p>
      <p>As a consequence, we obtain the following complexity results:
Theorem 6. Satisfiability checking is NP-complete for DL-Litebhooronl KBs, and
P-complete for DL-Litehhoorrnn and DL-Litekhroormn KBs.
5</p>
    </sec>
    <sec id="sec-5">
      <title>The Complexity of (U)CQ-Answering</title>
      <p>In this section, we give a brief survey of results on the combined and data complexity
of answering OMQs with DL-Litecr ontologies and (U)CQs, which can mostly be
obtained in a rather straightforward way from existing results. We start with undecidability
results, which show that the language DL-Litebbooooll behaves again similarly to the
twovariable fragment of FO and that even in DL-Litekkrroomm UCQ answering is undecidable.
The following can be shown using [17, Theorem 1] and the encoding of 8R:C given in
the proof of Theorem 1:
Theorem 7. Answering OMQs with DL-Litebbooooll ontologies and CQs is undecidable for
combined complexity.</p>
      <p>The next result follows from [17, Theorem 3]:
Theorem 8. Answering OMQs with DL-Litekkrroomm ontologies and UCQs is undecidable
for combined complexity.</p>
      <p>
        It remains open whether answering OMQs with DL-Litekkrroomm ontologies and CQs is
undecidable. The language DL-Litebgo-boolol can be regarded as a fragment of the guarded
fragment, GF, of FO. Query evaluation for GF was first investigated in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], where it
was proved that (U)CQ evaluation in GF is in 2EXPTIME for combined complexity. It
follows directly from the results in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] that a matching lower bound holds already for
DL-Litecbooroel. Thus, we obtain the following:
Theorem 9. Answering OMQs with DL-Litebgo-boolol ontologies and (U)CQs can be done
in 2EXPTIME for combined complexity. It is 2EXPTIME-hard for DL-Litecbooroel
ontologies.
      </p>
      <p>
        We now sketch the results on data complexity. A coNP-upper bound for (U)CQ
evaluation in GF for data complexity is proved in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Thus, UCQ answering is in CONP
for DL-Litebgo-boolol. A fine-grained analysis of the data complexity at the TBox and even
OMQ level can be obtained from [
        <xref ref-type="bibr" rid="ref14 ref6">6, 14</xref>
        ]. While the structure of the space of
possible complexity of answering OMQs over GF ontologies and UCQs is wide open (it
corresponds to the complexity of MMSNP2 [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]) and an active area of research in the
constraint satisfaction community, it has recently been proved in the extended version
of [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] that there is a P/CONP dichotomy for OMQs over the two-variable fragment
GF2 of GF and UCQs (i.e., every such OMQ is either in P or CONP-complete). As
DL-Litebgo-boolol is clearly contained in GF2, we obtain the following:
Theorem 10. Answering any OMQ with a DL-Litebgo-boolol ontology and a UCQ is either
in P or CONP-complete for data complexity.
      </p>
      <p>
        We conjecture that important properties such as datalog rewritability and first-order
rewritability of such OMQs are decidable as well, but this remains open. In many
applications of ontology-mediated query answering, only the TBox is known in advance, but
not the relevant queries. In this case, investigating the complexity at the level of OMQs
is not appropriate, but instead one is interested in an upper bound for the complexity of
query evaluation for all OMQs based on the given TBox. As DL-Litebgo-boolol lies within
the fragment uGF2 (1; =) of GF introduced in [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], we obtain the following analysis
from that paper:
Theorem 11. For every ontology O in DL-Litebgo-boolol, either every OMQ using O and a
UCQ is datalog-rewritable or there exists such an OMQ for which query answering is
CONP-hard. Moreover, datalog-rewritability is decidable in NEXPTIME.
      </p>
      <p>
        We note that a dichotomy between datalog-rewritable and CONP is quite rare. There
are, for example, ALC TBoxes for which not all OMQs are datalog rewritable but still
in P [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Finally, the following (probably folklore) theorem is proved using Lemma 3:
Theorem 12. Every OMQ with a DL-Litehhoorrnn ontology and a UCQ is FO-rewritable,
and so answering it is in AC0 for data complexity.
The work was supported by the EPSRC UK grants EP/S032282/1 and EP/S032207/1.
15. Lutz, C., Sattler, U.: The complexity of reasoning with boolean modal logics. In: Wolter, F.,
Wansing, H., de Rijke, M., Zakharyaschev, M. (eds.) Advances in Modal Logic 3, papers
from the third conference on “Advances in Modal logic,” held in Leipzig, Germany, 4-7
October 2000. pp. 329–348. World Scientific (2000)
16. Lutz, C., Sattler, U., Wolter, F.: Modal logic and the two-variable fragment. In: Fribourg, L.
(ed.) Computer Science Logic, 15th International Workshop, CSL 2001. 10th Annual
Conference of the EACSL, Paris, France, September 10-13, 2001, Proceedings. Lecture Notes
in Computer Science, vol. 2142, pp. 247–261. Springer (2001), https://doi.org/10.
1007/3-540-44802-0\_18
17. Rosati, R.: The limits of querying ontologies. In: Database Theory - ICDT 2007, 11th
International Conference, Barcelona, Spain, January 10-12, 2007, Proceedings. pp. 164–178
(2007), https://doi.org/10.1007/11965893_12
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Artale</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>The DL-Lite family and relations</article-title>
          .
          <source>Journal of Artificial Intelligence Research (JAIR) 36</source>
          ,
          <fpage>1</fpage>
          -
          <lpage>69</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Artale</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kovtunova</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ryzhikov</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>First-order rewritability of temporal ontology-mediated queries</article-title>
          . In: Yang,
          <string-name>
            <given-names>Q.</given-names>
            ,
            <surname>Wooldridge</surname>
          </string-name>
          , M. (eds.)
          <source>Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence, IJCAI</source>
          <year>2015</year>
          ,
          <string-name>
            <given-names>Buenos</given-names>
            <surname>Aires</surname>
          </string-name>
          , Argentina,
          <source>July 25-31</source>
          ,
          <year>2015</year>
          . pp.
          <fpage>2706</fpage>
          -
          <lpage>2712</lpage>
          . AAAI Press (
          <year>2015</year>
          ), http://ijcai.org/Abstract/15/383
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Artale</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Temporal description logic for ontology-based data access</article-title>
          . In: Rossi,
          <string-name>
            <surname>F</surname>
          </string-name>
          . (ed.)
          <source>IJCAI</source>
          <year>2013</year>
          ,
          <source>Proceedings of the 23rd International Joint Conference on Artificial Intelligence</source>
          , Beijing, China,
          <source>August 3-9</source>
          ,
          <year>2013</year>
          . pp.
          <fpage>711</fpage>
          -
          <lpage>717</lpage>
          . IJCAI/AAAI (
          <year>2013</year>
          ), http://www.aaai.org/ocs/index.php/IJCAI/ IJCAI13/paper/view/6824
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McGuinness</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nardi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patel-Schneider</surname>
            ,
            <given-names>P</given-names>
          </string-name>
          . (eds.):
          <source>The Description Logic Handbook: Theory, Implementation and Applications</source>
          . Cambridge University Press (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. Ba´ra´ny, V.,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Otto</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Querying the guarded fragment</article-title>
          .
          <source>Logical Methods in Computer Science</source>
          <volume>10</volume>
          (
          <issue>2</issue>
          ) (
          <year>2014</year>
          ), https://doi.org/10.2168/LMCS-
          <volume>10</volume>
          (
          <issue>2</issue>
          :3)
          <fpage>2014</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>ten Cate</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Ontology-based data access: A study through disjunctive datalog, CSP, and MMSNP</article-title>
          .
          <source>ACM Transactions on Database Systems</source>
          <volume>39</volume>
          (
          <issue>4</issue>
          ),
          <volume>33</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>44</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. Bo¨rger, E., Gra¨del,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Gurevich</surname>
          </string-name>
          ,
          <string-name>
            <surname>Y.</surname>
          </string-name>
          :
          <article-title>The Classical Decision Problem</article-title>
          .
          <source>Perspectives in Mathematical Logic</source>
          , Springer (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Bourhis</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Manna</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morak</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pieris</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Guarded-based disjunctive tuple-generating dependencies</article-title>
          .
          <source>ACM Trans. Database Syst</source>
          .
          <volume>41</volume>
          (
          <issue>4</issue>
          ),
          <volume>27</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>27</lpage>
          :
          <fpage>45</fpage>
          (
          <year>2016</year>
          ), https://doi. org/10.1145/2976736
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable reasoning and efficient query answering in description logics: the DL-Lite family</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>39</volume>
          (
          <issue>3</issue>
          ),
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Data complexity of query answering in description logics</article-title>
          . In: Doherty,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Mylopoulos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Welty</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.A</surname>
          </string-name>
          . (eds.)
          <source>Proceedings, Tenth International Conference on Principles of Knowledge Representation and Reasoning</source>
          ,
          <source>Lake District of the United Kingdom, June 2-5</source>
          ,
          <year>2006</year>
          . pp.
          <fpage>260</fpage>
          -
          <lpage>270</lpage>
          . AAAI Press (
          <year>2006</year>
          ), http://www.aaai.org/Library/KR/2006/kr06-
          <fpage>028</fpage>
          .php
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Gargov</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Passy</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>A note on boolean modal logic</article-title>
          . In: Petkov,
          <string-name>
            <surname>P</surname>
          </string-name>
          . (ed.)
          <source>Mathematical Logic</source>
          . Springer, Boston, MA (
          <year>1990</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. Gra¨del, E.:
          <article-title>On the restraining power of guards</article-title>
          .
          <source>J. Symb. Log</source>
          .
          <volume>64</volume>
          (
          <issue>4</issue>
          ),
          <fpage>1719</fpage>
          -
          <lpage>1742</lpage>
          (
          <year>1999</year>
          ), https://doi.org/10.2307/2586808
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. Gra¨del,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Kolaitis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.G.</given-names>
            ,
            <surname>Vardi</surname>
          </string-name>
          , M.Y.:
          <article-title>On the decision problem for two-variable first-order logic</article-title>
          .
          <source>Bulletin of Symbolic Logic</source>
          <volume>3</volume>
          (
          <issue>1</issue>
          ),
          <fpage>53</fpage>
          -
          <lpage>69</lpage>
          (
          <year>1997</year>
          ), http://www.math.ucla.edu/ \%7Easl/bsl/0301/0301-
          <fpage>003</fpage>
          .ps
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Hernich</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Papacchini</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Dichotomies in ontology-mediated querying with the guarded fragment</article-title>
          .
          <source>In: Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS</source>
          <year>2017</year>
          , Chicago, IL, USA, May
          <volume>14</volume>
          -19,
          <year>2017</year>
          . pp.
          <fpage>185</fpage>
          -
          <lpage>199</lpage>
          (
          <year>2017</year>
          ), https://doi.org/10.1145/3034786.3056108
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>