<!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>Deciding FO-rewritability of Ontology-Mediated Queries in Linear Temporal Logic</article-title>
      </title-group>
      <contrib-group>
        <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>Yury Savateev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <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>Department of Computer Science</institution>
          ,
          <addr-line>Birkbeck</addr-line>
          ,
          <institution>University of London</institution>
          ,
          <country country="UK">U.K</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>National Research University Higher School of Economics</institution>
          ,
          <addr-line>Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Aiming at ontology-based data access to temporal data, we investigate the problems of determining the data complexity of answering an ontology-mediated query (OMQ) given in linear temporal logic LTL and deciding whether it is rewritable to an FO(&lt;)-formula, possibly with extra built-in predicates. Using known facts about the complexity of regular languages, we show that OMQ answering in AC0 coincides with FO(&lt;; N)-rewritiability, which admits unary predicates x 0 (mod n), and that deciding FO(&lt;)- and FO(&lt;; N)-rewritiability of LTL OMQs is ExpSpace-complete. We further observe that answering any OMQ is either in ACC0, in which case it is FO(&lt;; MOD)-rewritable, or NC1complete, and prove that distinguishing between these two cases can be done in ExpSpace. Finally, we identify fragments of LTL for which some of these decision problems become PSpace-, 2p- and coNP-complete.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Classical ontology-based data access (OBDA) [
        <xref ref-type="bibr" rid="ref20 ref8">8,20</xref>
        ] was launched by identifying
ontology and query languages that uniformly guarantee FO-rewritability of all
ontology-mediated queries (OMQs) given in those languages. Thus, by design,
OBDA ontologies are rather inexpressive. An alternative, non-uniform approach
to OBDA would be|at least in theory|to develop algorithms that, given any
OMQ in some expressive languages, could recognise the data complexity of
answering that OMQ and construct its rewriting of optimal type. The datalog
community has been investigating FO- and linear-datalog-rewritability (aka
boundedness and linearisability) of datalog programs since the 1980s [
        <xref ref-type="bibr" rid="ref11 ref19 ref25 ref26">26,25,11,19</xref>
        ]. The
data complexity and rewritability of individual OMQs in various description
logics have become an active research area in the past decade [
        <xref ref-type="bibr" rid="ref15 ref16 ref17 ref18 ref7">17,7,16,18,15</xref>
        ].
      </p>
      <p>
        Here we take rst steps towards extending the non-uniform analysis to OBDA
over temporal data (see [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] for a survey of results in uniform temporal OBDA).
We consider OMQs given in linear temporal logic LTL, which were uniformly
classi ed in [
        <xref ref-type="bibr" rid="ref2 ref4">2,4</xref>
        ] according to their data complexity and rewritability type.
Example 1. Let O be an LTL ontology with the following axioms containing the
temporal operators 3F (eventually) and F / P (next/previous minute):
      </p>
      <sec id="sec-1-1">
        <title>Malfunction ! 3F Fixed;</title>
      </sec>
      <sec id="sec-1-2">
        <title>Fixed !</title>
        <p>(1)
(2)
(3)</p>
        <sec id="sec-1-2-1">
          <title>We query temporal data, say the ABox</title>
          <p>A = fMalfunction(2); Malfunction(5); Malfunction(6); Fixed(6); Malfunction(7)g
using LTL-formulas such as
{ = Malfunction ^</p>
          <p>Fi Fixed ^</p>
          <p>: Fj InOperation ;
_
1 i 5</p>
          <p>_
1 j 5
which can be understood as a Boolean query asking whether there was a
malfunction that was xed in 5m but within the next 5m the equipment went out
of operation again. The certain answer to the OMQ (O; {) over A is yes.</p>
          <p>
            Our aim in this paper is to understand the complexity of deciding whether
a given LTL OMQ is rewritable to an FO(&lt;)-formula with the order relation &lt;
over timestamps and possibly other built-in predicates. As shown in [
            <xref ref-type="bibr" rid="ref4">4</xref>
            ], every
LTL OMQ is rewritable to an FO(&lt;)-formula extended with relational
primitive recursion (or to a monadic second-order formula), whose evaluation over
data instances is in the complexity class NC1. Here, we rst establish a
connection between LTL OMQs and regular languages, and then use it to prove
that deciding FO(&lt;)-rewritability of such OMQs is ExpSpace-complete, with
the lower bound shown for Horn LTL ontologies with the next-time operator F
and atomic queries, and also for Krom ontologies with positive LTL queries. For
atomic OMQs (OMAQs, for short) with linear Horn LTL ontologies that
contain P only, deciding FO(&lt;)-rewritability turns out to be PSpace-complete; the
complexity goes down to coNP for OMAQs with Krom ontologies and the
nextand previous-time operators. On the other hand, deciding FO(&lt;)-rewritability
becomes 2p-complete for core (that is, both Horn and Krom) ontologies and
positive existential temporal queries, which do not contain negation and the
operators always in the future/past, since and until. OMQs with such queries are
referred to as OMPEQs.
          </p>
          <p>
            Using the connection with regular languages and the seminal results of [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ], we
show that OMQ answering in AC0 coincides with rewritability to FO(&lt;;
N)formulas, which admit unary predicates x 0 (mod n), and that deciding FO(&lt;
; N)-rewritiability of LTL OMQs is ExpSpace-complete. We further observe
that answering any OMQ is either in ACC0, in which case it is FO(&lt;;
MOD)rewritable, or NC1-complete, and prove that distinguishing between these two
cases can be done in ExpSpace. For OMAQs with linear Horn LTL ontologies
with P only, these problems become decidable in PSpace. All our complexity
results for circuit complexity and rewritability of OMQs are summarised below:
class of OMQs in AC0
          </p>
          <p>FO(&lt;)</p>
          <p>FO(&lt;; N)
in ACC0 / NC1-comp.</p>
          <p>FO(&lt;; MOD)/FO(RPR)</p>
          <p>LTL OMQs
LTLhoPrn OMAQs
LTLkrom OMPEQs
lin. LTLhorn OMAQs</p>
          <p>P
LTLkrom OMAQs
LTLcore OMPEQs</p>
          <p>ExpSpace [Th.1,5,6] ExpSpace [Th.4,5,6]
ExpSpace [Th.4]
PSpace [Th. 7]
coNP [Th. 8]
2p [Th. 9]</p>
          <p>
            PSpace [Th. 7]
all in AC0 [
            <xref ref-type="bibr" rid="ref4">4</xref>
            ]
all in AC0 [
            <xref ref-type="bibr" rid="ref4">4</xref>
            ]
          </p>
          <p>PSpace [Th. 7]
{
{</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>In our setting, the alphabet of linear temporal logic LTL comprises a set of atomic
concepts Ai, i &lt; !. Basic temporal concepts, C, are de ned by the grammar
C ::=</p>
      <p>Ai j
2F C
j
2P C
j</p>
      <p>F C
j</p>
      <p>P C
with the operators 2F /2P (always in the future/past) and F / P (at the next/
previous moment). A temporal ontology, O, is a nite set of axioms of the form
C1 ^
^ Ck !</p>
      <p>
        Ck+1 _
_ Ck+m;
(4)
where k; m 0, the Ci are basic temporal concepts, the empty ^ is &gt;, and the
empty _ is ?. Following the DL-Lite convention [
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ], we classify ontologies by
the shape of their axioms and the temporal operators that can occur in them.
Suppose c 2 fhorn; krom; core; boolg and o 2 f2; ; 2 g. The axioms of an
LTLco-ontology may only contain occurrences of the (future and past) temporal
operators in o and satisfy the following restrictions on k and m in (4) indicated
by c: horn requires m 1, krom requires k + m 2, core both k + m 2
and m 1, while bool imposes no restrictions. For example, axiom (2) from
Example 1 is allowed in all of these fragments, (3) is equivalent to a horn axiom
(with ? on the right-hand side), and (1) can be expressed in krom as explained
in Remark 1. A basic concept is called an IDB (intensional database) concept in
an ontology O if its atomic concept occurs on the right-hand side of an axiom
o
in O. The set of IDB atomic concepts in O is denoted by idb(O). An
LTLhornontology is called linear if each of its axioms C1 ^ ^ Ck ! B is such that B
is either ? or atomic and at most one Ci, 1 i k, is an IDB concept.
      </p>
      <p>An ABox is a nite set A of atoms Ai(`), for ` 2 Z, together with a nite
interval tem(A) = [min A; max A] of integers such that min A &lt; max A and
whenever Ai(`) 2 A then min A ` max A. Without loss of generality, we
always assume that min A = 0. The interval tem(A) is called the active domain
of A. If tem(A) is not speci ed explicitly, it is assumed to be [0; m], where m is
the maximal timestamp in A. By a signature, , we mean any nite set of atomic
concepts. An ABox A is said to be a -ABox if Ai(`) 2 A implies Ai 2 .</p>
      <p>We query ABoxes by means of temporal concepts, {, which are LTL-formulas
built from the atoms Ai, Booleans ^, _, :, temporal operators F , 2F , 3F
(eventually), U (until), and their past-time counterparts P , 2P , 3P (some time
in the past) and S (since). If { does not contain :, 2F , 2P , U and S, we call it
a positive existential temporal concept.</p>
      <p>
        A (temporal) interpretation is a structure I = (Z; A0I ; A1I ; : : : ) with AiI Z,
for every i &lt; !. The extension {I of a temporal concept { in I is de ned
inductively as usual in LTL under the `strict semantics' [
        <xref ref-type="bibr" rid="ref12 ref14">14,12</xref>
        ]:
( F {)I =
(3F {)I =
n 2 Z j n + 1 2 {I ;
(2F {)I =
      </p>
      <p>n 2 Z j k 2 {I ; for all k &gt; n ;
n 2 Z j there is k &gt; n with k 2 {I ;
({1 U {2)I =</p>
      <p>n 2 Z j there is k &gt; n with k 2 {2I and m 2 {1I for n &lt; m &lt; k ;
and symmetrically for the past operators. An axiom (4) is true in I if we have
C1I \ \ CkI CkI+1 [ [ CkI+m. An interpretation I is a model of O if all
axioms of O are true in I; it is a model of A if Ai(`) 2 A implies ` 2 AI .
i</p>
      <p>An LTLco ontology-mediated query (OMQ) is a pair of the form q = (O; {),
where O is an LTLco ontology and { a temporal concept. If { is a positive
existential temporal concept, we call q a positive existential OMQ (OMPEQ),
and if { is an atomic concept, we call q atomic (OMAQ). The set of atomic
concepts occurring in an OMQ q is denoted by sig(q). We can treat q as a Boolean
OMQ, which returns yes/no as an answer, or as a speci c OMQ, which returns
timestamps from the ABox in question assigned to the free variable, say x, in
the standard FO-translation of {. In the latter case, we write q(x) = (O; {(x)).</p>
      <p>More precisely, a certain answer to a Boolean OMQ q = (O; {) over an ABox
A is yes if, for every model I of O and A, there is k 2 Z such that k 2 {I , in
which case we write (O; A) j= 9x{(x). If (O; A) 6j= 9x{(x), the certain answer
to q over A is no. We write (O; A) j= {(k), for k 2 Z, if k 2 {I in all models
I of O and A. A certain answer to a speci c OMQ q(x) = (O; {(x)) over A is
any k 2 tem(A) with (O; A) j= {(k). By the evaluation (or answering ) problems
for q and q(x) we understand the decision problems `(O; A) j=? 9x{(x)' and
`(O; A) j=? {(k)' with input A and, resp., A and k 2 tem(A). We say that q or
q(x) is in a complexity class C if the corresponding evaluation problem is in C.
Example 2. (i) Let q1 = (O1; C ^ D) with O1 = f3P A ! B; 2F B ! Cg.
The certain answer to q1 over A1 = fD(0); B(1); A(1)g is yes, but over A2 =
fD(0); A(1)g it is no. The only answer to q1(x) = O1; (C ^ D)(x) over A1 is 0.
(ii) Let O2 = f P A ! B; P B ! A; A ^ B ! ? g. The answer to q2 = (O2; C)
over A1 = fA(0)g is no, but over A2 = fA(0); A(1)g it is yes. There are no
answers to q2(x) = (O1; C(x)) over A1, while over A2 there are two of them: 0
and 1. (iii) Let O3 = f P Bk ^ A0 ! Bk; P B1 k ^ A1 ! Bk j k = 0; 1g. For any
word e = e1 : : : en 2 f0; 1gn, let Ae = fB0(0)g [ fAei (i) j 0 &lt; i ng [ fE(n)g.
The answer to q3 = (O3; B0 ^ E) over Ae is yes i the number of 1s in e is
even. (iv) Let O4 = fA ! F Bg and q4 = (O4; B). Then, the answer to q4 over
A = fA(0)g is yes; however, there are no certain answers to q4(x) = (O4; B(x))
over A. (v) Let O5 = fA ! B _ F Bg. The certain answer to q5 = (O5; B) over
A = fA(0); C(1)g is yes; however, there are no certain answers to q5(x) over A.
Remark 1. Let O be as in Example 1 and let O0 be the result of replacing (1) in
O by Malfunction ^ 2F X ! ? and &gt; ! X _ Fixed, for a fresh concept name X.
Then the OMQ q = (O; {) in Example 1 is `equivalent' to q0 = (O0; {) in the
sense that q and q0 have the same certain answers over any sig(q)-ABox A.</p>
      <p>Let L be a class of FO-formulas that can be interpreted over nite linear
orders. A Boolean OMQ q is L-rewritable over -ABoxes if there is an L-sentence
Q such that, for any -ABox A, the certain answer to q over A is yes i SA j= Q.
Here, SA is a structure with domain tem(A) ordered by &lt;, in which SA j= Ai(`)
i Ai(`) 2 A. A speci c OMQ q(x) is L-rewritable over -ABoxes if there is
an L-formula Q(x) with one free variable x such that, for any -ABox A, k is
a certain answer to q over A i SA j= Q(k). The sentence Q and the formula
Q(x) are called L-rewritings of the Boolean and speci c OMQ q, respectively.</p>
      <p>
        We require four languages L for rewriting LTL OMQs:
FO(&lt;) (monadic) rst-order formulas with the built-in predicate &lt; for order;
FO(&lt;; N) FO(&lt;)-formulas with predicates x
0 (mod N ), for any N &gt; 1;
FO(&lt;; MOD) FO(&lt;)-formulas with quanti ers 9N , for N &gt; 1, de ned by taking
dSiAvisj=ibl9eNbxy N(x()xi t0he(mcoarddNina)lcitaynoofbtvhieousselty fbne 2detenme(dAa)sj9SNAy(jy=&lt; (xn)))g; is
FO(RPR) FO(&lt;) with relational primitive recursion [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>
        Example 3. (i) An FO(&lt;)-rewriting of q01(x) is
'1(x) = D(x) ^ [C(x) _ 9y(A(y) ^ 8z ((x &lt; z
y) ! B(z)))];
9x'1(x) is an FO(&lt;)-rewriting of q1. (ii) An FO(&lt;; N)-rewriting of q2(x) is
'2(x) = C(x) _ 9x; y [(A(x) ^ A(y) ^ odd(x; y)) _ (B(x) ^ B(y) ^ odd(x; y)) _
(A(x) ^ B(y) ^ :odd(x; y))];
where odd(x; y) = x 0 (mod 2) $ y 6 0 (mod 2) implies that the distance
between x and y is odd, and an FO(&lt;; N)-rewriting of q2 is 9x'2(x). (iii) The
OMQ q3 is not rewritable to an FO-formula with any numeric predicates as
PARITY is not in AC0 [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]; the following is an FO(&lt;; MOD)-rewriting of q3:
'3 = 9x; y E(x) ^ (x
y) ^ 8z((y &lt; z
x) ! (A0(z) _ A1(z))) ^
((B0(y) ^ 92z ((y &lt; z
x) ^ A1(z))) _ (B1(y) ^ :92z ((y &lt; z
x) ^ A1(z)))):
(iv) An FO(&lt;)-rewriting of q4(x) is '4(x) = B(x)_A(x 1); an FO(&lt;)-rewriting
of q4 is '4 = 9x(A(x) _ B(x)). (v) The same '4 is an FO(&lt;)-rewriting of q5,
and B(x) is a rewriting of q5(x).
      </p>
      <p>
        A uniform classi cation of speci c LTL OMQs by their rewritability type has
been obtained in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Here, we only mention in passing that all (Boolean and
speci c) LTL OMQs are FO(RPR)-rewritable and can be answered in NC1. In this
paper, we take a non-uniform approach to rewritability, aiming to understand
how (complex it is) to decide the optimal type of FO-rewritability for a given
LTL OMQ q over -ABoxes. Clearly, we can always assume that sig(q).
      </p>
      <p>For any q and sig(q), we regard the set = 2 as an alphabet. A
-ABox A can be given as a -word wA = a0 : : : an with ai = fA j A(i) 2 Ag.
Conversely, any -word w = a0 : : : an can be understood as an ABox Aw with
tem(Aw) = [0; n] and A(i) 2 Aw i A 2 ai. The language L (q) of the Boolean
OMQ q is the set of -words wA such that the certain answer to q over A
is yes. For a speci c q(x), we take = [ 0 , for a disjoint copy 0 of
, and represent a pair (A; i) with a -ABox A and i 2 tem(A) as a
word wA;i = a0 : : : a0i : : : an, where aj = fA j A(j) 2 Ag 2 for j 6= i, and
a0i = fA j A(i) 2 Ag 2 0 . The language L (q(x)) is the set of -words wA;i
such that i is a certain answer to q(x) over A.</p>
      <p>Proposition 1. Let L be one of the classes of FO-formulas introduced above.
(i) A Boolean OMQ q = (O; {) is L-rewritable over -ABoxes i L (q) is
Lde nable. (ii) A speci c OMQ q(x) = (O; {(x)) is L-rewritable over -ABoxes
i L (q(x)) is L-de nable. Both L (q) and L (q(x)) are regular for any .
Proof. We only show that L (q) is regular. Let subq be the set of temporal
concepts in q and their negations. A type is any maximal subset of subq that
is consistent with O. The set of all types is denoted by T . We de ne an NFA
A over whose language is n L (q). The states in A comprise the set
Q:{ = f 2 T j :{ 2 g. The transition relation !a, for a 2 , is de ned by
setting 1 !a 2 if the following conditions hold (assuming that the temporal
operators are expressed via U and S): a 2, C1 U C2 2 1 i C2 2 2 or
C1 U C2 2 2 and C1 2 2, and symmetrically for S. The set of initial states
comprises 2 Q:{ with [ f2P :{g is consistent with O; the set of accepting
states comprises those 2 Q:{ for which [ f2F :{g is consistent with O. It
is readily seen that, for every a 2 we have a 2 L(A) i (O; Aa) 6j= 9x{(x).
The number of states in A does not exceed O(2jqj). Since LTL-satis ability is in
PSpace, the NFA A can be constructed in exponential time in jqj.</p>
      <p>
        The following table summarises known results connecting de nability of
regular languages L with properties of their syntactic monoids M (L) and syntactic
morphisms L (see Section 3 and [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] for details) and with their circuit
complexity (under a reasonable binary encoding of L's alphabet):
de nability of L
FO(&lt;)
FO(&lt;; N)
FO(&lt;; MOD)
FO(RPR)
{
algebraic characterisation of L
M (L) is aperiodic
L is quasi-aperiodic in AC0
all groups in M (L) are solvable in ACC0
arbitrary M (L) in NC1
M (L) contains unsolvable group NC1-hard
circuit complexity
The statement in the table that all groups in M (L) are solvable i L is in ACC0
holds unless ACC0 = NC1. Using Proposition 1, these results can be extended
to rewritability and data complexity of Boolean and speci c LTL OMQs: (a) an
OMQ is FO(&lt;; N)-rewritable i it can be answered in AC0, (b) an OMQ is
FO(&lt;; MOD)-rewritable i it can be answered in ACC0 (unless ACC0 = NC1),
(c) an OMQ is FO(&lt;; RPR)-rewritable i it can be answered in NC1.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Deciding FO-Rewritability: Upper Bounds</title>
      <p>
        Since deciding FO(&lt;)-de nability of regular languages given by NFAs is
PSpacecomplete [
        <xref ref-type="bibr" rid="ref6 ref9">9,6</xref>
        ], we obtain by Proposition 1:
Theorem 1. Deciding FO(&lt;)-rewritability of LTLb2ool OMQs over
in ExpSpace.
-ABoxes is
      </p>
      <p>
        The exact complexity of deciding FO(&lt;; N)-de nability and NC1-hardness
of regular languages seems to be open (their decidability was shown in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].) So
our rst aim is to settle these issues. Given an NFA A = (Q; ; ; Q0; F ), states
q; q0 2 Q, and w = a0 : : : an 2 , we write q !w q0 if there is a run of A
on w that starts with (q0; 0) and ends with (q0; n + 1). We say that a state
q 2 Q is accessible if q0 !w q, for some q0 2 Q0 and w 2 . Two states
q1; q2 2 Q are equivalent if, for each w 2 , we have q1 !w q0 for some q0 2 F
i q2 !w q00 for some q00 2 F . A DFA is minimal if each of its states is accessible
and it has no distinct equivalent states. Every DFA A = (Q; ; ; q0; F ) can
be converted to a minimal DFA A0 = (Q0; ; 0; q00; F 0) with L(A) = L(A0) in
the following way [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ]. Let R = fq 2 Q j q is accessible in Ag and let be a
relation on R de ned by taking q q0 i q and q0 are equivalent. Clearly,
is an equivalence relation; we denote by q= the equivalence class of q 2 R.
Now, we set Q0 = fq= j q 2 Rg and de ne 0 by taking q= !a q0= , where
fq0g = (a; q), for all q 2 R and a 2 (which is obviously well-de ned). Finally,
we set q00 = q0= and F 0 = fq= j q 2 R \ F g. It is known that, for any regular
language L, all minimal DFAs A0 with L(A0) = L are isomorphic; we call each
such A0 a minimal DFA of L.
      </p>
      <p>A monoid M = (B; ; e) has an associative binary operation and an identity
e with a e = e a = a, for all a 2 B. We shorten a b to ab. Given a DFA A =
(Q; ; ; q0; F ) and w 2 , de ne a map fwA : Q ! Q by setting fwA(q) = q0 i
q !w q0. The transition monoid of A takes the form M = (ffwA j w 2 g; ; f"A),
where " is the empty word and fwAfvA = fwAv, for any fwA, fvA. The syntactic
monoid M (L) of a regular language L is isomorphic to the transition monoid of
a minimal DFA accepting L [23, Chaprter V.1]. A monoid is aperiodic if it does
not contain non-trivial groups (with the monoid operation). Let A be a minimal
automaton of L and B the domain of M (L). The map L : ! B de ned by
L(w) = fwA is called a syntactic morphism of L. Given a set W , we set
L(W ) = f L(w) j w 2 W g. The syntactic morphism L is quasi-aperiodic if,
for any t &gt; 0, the set L( t) does not contain non-trivial groups.
Theorem 2. Deciding FO(&lt;; N)-de nability of L(A), A an NFA, is in PSpace.
Proof. First, we show the theorem for a minimal DFA A, then extend it to an
arbitrary DFA and, nally, to an NFA. Let A = (Q; ; ; q0; F ) be minimal. We
use the following criterion: L(A) is not FO(&lt;; N)-de nable i there are w and
n 2 N such that fwA 6= fwA2 , fwA = fwAn , and fwA = fvA, fwA2 = fuA, for some u and v
with jvj = juj. Indeed, let L = L(A). ()) In this case, L is quasi-aperiodic, and
so there is t such that L( t) contains a non-trivial group G. Let e be the identity
element of G and let a 6= e, a 2 G. We have ajGj = e, ajGj+1 = ae = a and, since
a; e 2 L( t), there are w; u 2 t such that a = fwA and e = fwAjGj = fuA. (()
Observe that fwAi = fwAiwn(n i) = fuAivn i , for 1 i n. Therefore, fwA; : : : ; fwAn
form a group in L( juj n), and so L is not FO(&lt;; N)-de nable.</p>
      <p>
        To check this criterion, we can use the known PSpace algorithms [
        <xref ref-type="bibr" rid="ref6 ref9">9,6</xref>
        ] for
checking FO(&lt;)-de nability of L(A). We now show how to extend this result to
any DFA A. Let Qr be the set of accessible states in A. We call words w; v 2
equivalent in A and write w A v if whenever q !w q0 then there is q00 2 Qr
such that q00 q0 and q !v q00, and the other way round. Let A be a minimal
DFA of L(A). One can show that w A v i fwA = fvA . This implies that, in the
criterion above, we can replace every fxA = fyA by x A y and obtain the same
criterion for an arbitrary DFA, which is checkable in PSpace. We can nally
obtain a criterion of FO(&lt;; N)-de nability of a language given by an NFA by
replacing every fxA = fyA by x A0 y, where A0 is the powerset automaton of A.
To show that the latter criterion can be checked in PSpace, we observe that each
state of A0 can be stored using polynomial space and then adjust the algorithm
for DFAs without increasing its complexity.
      </p>
      <p>Theorem 3. NC1-hardness of L(A), for an NFA A, can be decided in PSpace.
Proof. We follows that steps of the proof above, using the following criterion.
The language L(A), for a minimal DFA A, is NC1-hard i there are u; v; w 2
such that, for x 2 fu; v; wg, fxA = fxAfuAvw, fxA 6= fxA2 and fuAvw = fxAix , for some
iu; iv; iw 2 N that are pairwise coprime. Indeed, L(A) is NC1-hard i there is a
non-solvable group in M (L(A)). By [24, Corollary 3], a group is non-solvable i
there are 3 elements with pairwise coprime orders whose product is the identity.</p>
      <p>In the PSpace algorithm checking this criterion, we need to compute iu; iv; iw
and check that they are pairwise coprime. It is readily seen that those numbers
(if exist) are jQjjQj and can be dealt with in PSpace.</p>
      <sec id="sec-3-1">
        <title>Using Theorems 2, 3 and Proposition 1, we obtain:</title>
        <p>Theorem 4. Both FO(&lt;; N)-rewritability and NC1-completeness (in data
complexity ) of LTLb2ool OMQs over -ABoxes are decidable in ExpSpace.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Deciding FO-Rewritability: Lower Bounds</title>
      <p>Theorem 5. Deciding FO(&lt;)- and FO(&lt;; N)-rewritability of LTLhorn OMAQs
over -ABoxes is ExpSpace-hard.</p>
      <p>
        Proof. The idea of the proof is as follows. Given a Turing machine M with
exponential tape and an input word x, we construct|in a way similar to [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]|
two DFAs A and A0 of exponential size whose language is FO(&lt;)-de nable
(starfree) and, respectively, FO(&lt;; N)-de nable (in AC0) i M rejects x. Then we
simulate those DFAs by LTLhorn ontologies of polynomial size.
      </p>
      <p>Let x be a word and M a Turing machine requiring N = 2nc tape cells
on an input of size n. Let N 0 be the rst prime after N + 1. We construct a
family fAig0 i&lt;N0 of simple star-free minimal DFAs whose intersection
represents accepting computations of M on x. We encode computations as words over
[ f]; [g of the form ] c1 ] c2 ] : : : ] ck 1 ] ck[, where the ci are con gurations.</p>
      <p>The DFA A0 checks that an input starts with an initial and ends with an
accepting con guration of M on x. The Ai, for 0 &lt; i N , check that the ith
symbol in a con guration `follows' from the (i 1)th, ith, and (i + 1)th symbols
in the previous con guration (if A1 is constructed, Ai can skip the rst i 1
symbols and run A1). The rest of the family just accept all the words with the
only [ at the very end. We then have TiN=00 L(Ai) = ; i M rejects x. We next
construct minimal DFAs A and A0 with the languages (L(A0) : : : L(AN0 1))
and ((L(A0) [ f[g) : : : (L(AN0 1) [ f[g)) . Thus, we obtain: (i) L(A) is star-free
i TiN=00 L(Ai) = ; (i M rejects x); (ii) L(A0) is in AC0 i TiN=00 L(Ai) = ;.</p>
      <p>Now we de ne LTLhorn ontologies O and O0 simulating A and A0. We name
the states in A by triples (i; t; j), where i indicates Ai the state `came from', t
is a `type' of the state (say, where the DFA skips the rst i 1 symbols), and
j is a counter in t (e.g., saying how many symbols still are to be skipped). The
number of types is constant, while i; j 2k, for k = dlog2 N 0e.</p>
      <p>The ontology O uses the concepts Aij and Lij, where i = 0; 1 and j = 1; : : : ; k,
the symbols in [ f]; [g, Qt, for a type t, X, Y and F . Let 0 = [ f]; [; X; Y g.
For any w = w1 : : : wm 2 ( [f]; [g) , let Aw = fX(0); w1(1); : : : wm(m); Y (m+
1)g: For a binary word c = bk : : : b1, set
Ac = Ab1
1 ^
^ Abkk ;</p>
      <p>A&lt;c = _
bi=1</p>
      <p>Ai0 ^ ^ Ajbj ;
j&gt;i</p>
      <p>A&gt;c = _
bi=0</p>
      <p>Ai1 ^ ^ Ajbj
j&gt;i
and let Lc, L&lt;c, and L&gt;c be similar concepts for Li . We represent each triple
j
(i; t; j) as the conjunction Ai ^ Qt ^ Lj. We de ne O so that, having read a pre x
w1 : : : wl of w, the DFA A is in state (i; t; j) i O; Aw j= (Ai ^ Qt ^ Lj)(l + 1).
To achieve this, for every transition (i1; t1; j1) !a (i2; t2; j2) of A, we need</p>
      <p>O j= Ai1 ^ Qt1 ^ Lj1 ^ a ! F Ai2 ^ F Qt2 ^ F Lj2 :
As the structure of A is repetitive, we can ensure this without writing axioms
for all transitions. For example, consider the fragment of A corresponding to
the part of A0 that, after reading x, checks that the rest of the tape is blank
b. All the states in this part have the same type t with a counter j. So, for
n + 1 &lt; j &lt; N + 1, there is a transition (0; t; j) !b (0; t; j + 1). We capture all
these transitions by one formula</p>
      <p>A0 ^ Q0 ^ L&gt;n ^ L&lt;N+1 ^ b ! F A0 ^ F Q0 ^ iL;</p>
      <p>k
iL = ^</p>
      <p>Ll0 ^ Ll1 1 ^ : : : ^ L11 ! F Ll1 ^ F Ll0 1 ^ : : : ^ F L10 ^
where
l=1
^
l1&lt;l2
(Ll01 ^ Ll2 ! F Ll02 ) ^ (Ll01 ^ Ll2 ! F Ll12 ) :
0 1
As a result, O j= (iL ^ Li) ! F Li+1. Similarly, we de ne iA, dL, hA, and LA so
that O j= (dL ^ Li) ! F Li 1, O j= (hA ^ Ai) ! F Ai, O j= (LA ^ Ai) ! F Li.
This gives us polynomially many horn axioms in O, to which we add
a ^ b ! ?; for a; b 2</p>
      <p>0; X ! F A0 ^ F Q0 ^ F L0; A0 ^ Q0 ^ L0 ^ Y ! F:
The ontology O0 is de ned in the same way for the DFA A0. It follows that the
certain answer to (O; F ) over Aw is yes i w 2 L(A), and similarly for (O0; F ).
Lemma 1. The LTLhorn OMAQs (O; F ) and (O; F (x)) are FO(&lt;)-rewritable
over 0-ABoxes i L(A) is star-free; (O0; F ) and (O0; F (x)) are FO(&lt;;
N)rewritable over 0-ABoxes i L(A0) is in AC0.</p>
      <p>Proof. We only sketch the proof of the former claim, where ()) is clear. (()
Suppose L(A) is star-free and A is a 0-ABox. Then O; A j= F (k) only if (O; A)
is inconsistent, and so there are a(i); b(i) 2 A for some a 6= b, or A contains
a subset of the form fX(i 1); a1(i); a2(i + 1); a3(i + 2); : : : ; ak i(k 1); Y (k)g
such that a1a2 : : : ak i 2 L(A). As L(A) is star-free, it is de nable by an
FO(&lt;)sentence [23, Ch. VI], and so (O; F ) and (O; F (x)) are FO(&lt;)-rewritable.
Theorem 6. Deciding FO(&lt;)- or FO(&lt;; N)-rewritability of LTLkrom OMPEQs
over -ABoxes is ExpSpace-hard.</p>
      <p>Proof. Take an LTLhorn OMAQ q = (O; A) and sig(q), assuming that the
axioms in O are of the form C ! ? or C ! B, for some C = C1 ^ ^ Cn and
atomic B. We construct an LTLkrom OMPEQ q0 = (O0; {) with atomic concepts
fB; B j B 2 sig(q)g. Let O0 = fB ^ B ! ?; &gt; ! B _ B j B 2 sig(q)g and
{ = A
_
_</p>
      <p>3F 3P C
C!? in O</p>
      <p>_
_</p>
      <p>3F 3P (C ^ B):
C!B in O
For any -ABox A, the certain answers to q and q0 (and to q(x) and q0(x)) over
A coincide. It follows that q0 and q0(x) are FO(&lt;)- or FO(&lt;; N)-rewritable over
-ABoxes i q and q(x) are FO(&lt;)- or FO(&lt;; N)-rewritable, respectively.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Linear, Krom and core OMAQs and OMPEQs</title>
      <p>Theorem 7. Deciding FO(&lt;)- or FO(&lt;; N)-rewritability of linear LTLhoPrn
OMAQs over -ABoxes is PSpace-complete; NC1-completeness is in PSpace.
Proof. One can reduce L-rewritability of linear speci c OMAQs to L-rewritability
of linear Boolean OMAQs. Let q = (O; A1) be a linear OMAQ. We transform q to
q0 = (O0; A01) such that q0 is L-rewritable over -ABoxes i q is and A 2 idb(O0)
only occurs in axioms of the form P`1 C1 ^ ^ P`k Ak ^ P A ! B. For example,
O = f P X ! A2; P3Y ^ P A2 ! A1; Z ^ P A1 ! A2; P4W ^ A2 ! A3,
V ^ P A3 ! ? g is transformed to an ontology O0 with the following axioms:
Let edb(O) = sig(q)nidb(O) and let ext(O) be the set of (maximal) basic concepts</p>
      <p>P` A with A 2 edb(O) that occur on the left-hand side of an axiom in O. Thus,
ext(O0) = f P X; P3Y; Z; P4W; V; P5W; A1; A2; A3g in the example above.</p>
      <p>Let ext (O0) = ext(O0) . De ne an NFA Bq0 over q0 = 2ext (O0), which
we illustrate below for the OMAQ q0 = (O0; A01) in our example, assuming that
= fX; Y; Z; W; V; A1; A2; A3g and S !e S0 implies S !e0 S0 for all e0 e:
f P Xg; fA2g</p>
      <p>A02
start
;</p>
      <p>A00
f P3Y g; fV; P5W g
fZg
fA1g</p>
      <p>A01
We show that L(q0) is L-de nable over -ABoxes i L(Bq0 ) is L-de nable. The
proof uses an FO(&lt;)-reduction maping a 2 to e 2 q0 with a 2 L(q0) i
e 2 L(Bq0 ), and the other way round. To show that deciding FO(&lt;)-, FO(&lt;
; N)-de nability, or NC1-completeness of L(Bq0 ) can be done in PSpace is
not immediate as neither q0 nor Bq0 is polynomial in jqj. However, the number
of states in Bq0 is polynomial in q and one can check whether q !e q0 by a
PSpace algorithm, which allows us to use Theorems 2 and 3 for Bq0 without
explicitly constructing it. The lower bounds are proved by reduction of
FO(&lt;)and FO(&lt;; N)-de nability for regular languages.</p>
      <p>Theorem 8. Deciding FO(&lt;)-rewritability of LTLkrom OMAQs q = (O; A)
over -ABoxes is coNP-complete.</p>
      <p>Proof. Let q0 = (O0; Y ) with O0 = O [ fA ! ?g and fresh Y , and q00 = (O00; Y )
with O00 = O [ fX ^ A ! ?g and fresh X; Y . For any (X; Y -free) ABox A,
(O; A) j= 9xA(x) i (O0; A) j= 9x Y (x) i A is inconsistent with O0; similarly,
(O; A) j= A(k) i (O00; A[fX(k)g) j= 9xA(x) i A[fX(k)g is inconsistent with
O00, for k 2 tem(A). So we only need to consider Boolean OMAQs q = (O; A)
with the yes-answer only for ABoxes inconsistent with O.</p>
      <p>
        As O is krom, A is inconsistent with O i (i) there are A(i); B(i) 2 A with
O j= B ^ A ! ?, or (ii) there exist k1 k2, B(k1) 2 A and C(k2) 2nA+1:wCithg
O j= B ! Fk2 k1 :C; cf. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. So if all LBC = f;n j O j= B ! F
are FO(&lt;)-de nable for any B; C 2 , then L (q) is FO(&lt;)-de nable and q
is FO(&lt;)-rewritable over -ABoxes. For any B; C, we construct an NFA ABC
over the alphabet f;g of size O(jqj) that accepts LBC [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Using [22, Theorem
6.1], we show that deciding FO(&lt;)-rewritability of the language of a unary NFA
is coNP-complete, obtaining the required upper bound. To show the matching
lower bound, for any unary NFA A = (Q; fag; ; I; F ), we de ne an LTLcore
ontology OA with the axioms X ! I, q ^ Y ! ? and p ! F r, for all q 2 F
and transitions p !a r in . The OMAQ (OA; A) is FO(&lt;)-rewritable over
fX; Y g-ABoxes i L(A) is FO(&lt;)-de nable, as the answer to the OMAQ over an
fX; Y g-ABox A can only be yes i there are X(i); Y (j) 2 A with aj i 1 2 L(A).
Theorem 9. Deciding FO(&lt;)-rewritability of LTLcore OMPEQs q = (O; {)
over -ABoxes is 2p-complete.
      </p>
      <p>Proof. We assume that O does not contain disjointness axioms B ^ C ! ? as
they can be removed from O and { replaced by { _ WOj=B^C!? 3F 3P (B ^ C);
giving an equivalent OMQ. We further assume that all of the other rules have the
following forms: A ! B, A ! F B, or A ! P B. As in the proof of Theorem 7,
rewritability of speci c OMQs can be reduced to rewritability of Boolean OMQs.</p>
      <p>Given O, A, B and k, one can check in polytime whether O; A j= B(k),
which, by structural induction, implies that checking O; A j= 9x{(x) is in NP.</p>
      <p>Let B = fw1 : : : wk 2 j 8i jw(i)j &gt; 0; Pi jw(i)j &lt; j{jg. With every w 2 B
we associate the language Lw = L(; w1; : : : ; wk; ) \ L (q). For -words v
and v0, we write v0 v if they are of the same length and vi0 vi, for all i.</p>
      <p>
        As q is an LTLcore OMPEQ, we have O; A j= q i O; A0 j= q, for some
A0 A, jA0j j{j. Then, for every v 2 , we have v 2 L (q) i there is v0 v
such that v0 2 Lw for some w 2 B. It follows that the language L (q) is
FO(&lt;)de nable i Lw is FO(&lt;)-de nable, for every w 2 B. For w = w1 : : : wk 2 B and
I = (i0; : : : ; ik), let vw;I = ;i0 w1;i1 : : : wk;ik . For c 2 N, let I c be I with all
ij &gt; c replaced with c. If Lw is FO(&lt;)-de nable, there is c with vw;I 2 Lw i
vw;I&lt;c 2 Lw. By the properties of the canonical models [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], there is a suitable c
with c &lt; 2jsig(q)j+j{j + 1.
      </p>
      <p>
        Now, q is not FO(&lt;)-rewritable i we can guess w 2 B and I such that
max(I) &lt; 2c and only one of vw;I and vw;I&lt;c is in Lw. We can check membership
in Lw using an NP-oracle, so FO(&lt;)-rewritability is in coNPNP = 2p. The
matching lower bound is shown by reduction of 893CNF [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ]. Given a QBF
8X9Y ' with a 3CNF ', X = fx1; : : : ; xng and Y = fy1; : : : ; ymg, we construct
an LTLcore OMPEQ q' = (O'; {') that is FO(&lt;)-rewritable i 8X9Y '(X; Y )
is true. We use atomic concepts xi0 and xi1 for xi 2 X, yij for yi 2 Y and
0 j &lt; pi, where pi is the i-th prime number, A and B. O' has the axioms
A ! yi ; yi ! F yi(j+1) mod pi ; xi ! F xi ; xi ! F xi ;
0 j 0 0 1 1
B ! F F B:
Let '0 result from ' by replacing all xi with x1, all :xi with x0, and similarly
for the yj. We set {' = A ^ Vin=0(xi0 _ xi1) ^ (B _i 3F '0): Supposei 8X9Y '(X; Y )
is true. Consider an ABox A, for which there is t with O'; A j= {'(t). Then
A(t) 2 A and O'; A j= Vin=0(xi0 _ xi1)(t), and so, for every i, there is xi0(s)
or xi1(s) in A, for some s t. There is an assignment a1 2 2X such that
O'; A j= xia1(i)(s) for all s &gt; t. Take a corresponding assignment a2 2 2Y that
makes ' true. There exists a number r such that r mod pi = a2(i) for all i m.
Therefore O'; A j= '0(t + r), and so O'; A j= 3F '0(t). Thus, the sentence
n
9t A(t) ^ ^ 9s (s 6 t) ^ (xi0(s) _ xi1(s))
      </p>
      <p>i=0
is a rewriting of q'. If 8X9Y '(X; Y ) is false, then there is a 2 2X such that ' is
false for any assignment to Y . For w = fBgXa, Xa = fA; x1a(0); : : : ; xan(n)g, the
language Lw is L(; fBg(;;) Xa; ), and so q' cannot be FO(&lt;)-rewritable.
Acknowledgements This work was supported by EPSRC U.K. EP/S032282.</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 Arti cial Intelligence Research (JAIR) 36</source>
          ,
          <issue>1</issue>
          {
          <fpage>69</fpage>
          (
          <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 Arti cial Intelligence</source>
          ,
          <source>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.
          <volume>2706</volume>
          {
          <fpage>2712</fpage>
          . 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>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>Ontology-mediated query answering over temporal data: A survey (invited talk)</article-title>
          . In: Schewe,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Schneider</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Wijsen</surname>
          </string-name>
          ,
          <string-name>
            <surname>J</surname>
          </string-name>
          . (eds.) 24th
          <source>International Symposium on Temporal Representation and Reasoning</source>
          ,
          <source>TIME 2017, October 16- 18</source>
          ,
          <year>2017</year>
          , Mons, Belgium.
          <source>LIPIcs</source>
          , vol.
          <volume>90</volume>
          , pp.
          <volume>1</volume>
          :
          <issue>1</issue>
          {1:
          <fpage>37</fpage>
          .
          <string-name>
            <surname>Schloss</surname>
          </string-name>
          Dagstuhl - LeibnizZentrum fur Informatik (
          <year>2017</year>
          ), https://doi.org/10.4230/LIPIcs.TIME.
          <year>2017</year>
          .1
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <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 ontology-mediated queries in linear temporal logic</article-title>
          . CoRR abs/
          <year>2004</year>
          .07221 (
          <year>2020</year>
          ), https://arxiv.org/abs/
          <year>2004</year>
          . 07221
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Barrington</surname>
            ,
            <given-names>D.A.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Compton</surname>
            ,
            <given-names>K.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Straubing</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Therien</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Regular languages in NC1</article-title>
          .
          <source>J. Comput. Syst. Sci</source>
          .
          <volume>44</volume>
          (
          <issue>3</issue>
          ),
          <volume>478</volume>
          {
          <fpage>499</fpage>
          (
          <year>1992</year>
          ), https://doi.org/10.1016/
          <fpage>0022</fpage>
          -
          <lpage>0000</lpage>
          (
          <issue>92</issue>
          )
          <fpage>90014</fpage>
          -
          <lpage>A</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Bernatsky</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Regular expression star-freeness is PSPACE-complete</article-title>
          .
          <source>Acta Cybern</source>
          .
          <volume>13</volume>
          (
          <issue>1</issue>
          ),
          <volume>1</volume>
          {
          <fpage>21</fpage>
          (
          <year>1997</year>
          ), http://www.inf.u-szeged.hu/actacybernetica/edb/ vol13n1/Bernatsky_1997_
          <article-title>ActaCybernetica</article-title>
          .xml
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <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>
          :1{
          <issue>44</issue>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable reasoning and e cient query answering in description logics: the DL-Lite family</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>39</volume>
          (
          <issue>3</issue>
          ),
          <volume>385</volume>
          {
          <fpage>429</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Cho</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huynh</surname>
          </string-name>
          , D.T.:
          <article-title>Finite-automaton aperiodicity is PSPACE-complete</article-title>
          .
          <source>Theor. Comp. Sci</source>
          .
          <volume>88</volume>
          (
          <issue>1</issue>
          ),
          <volume>99</volume>
          {
          <fpage>116</fpage>
          (
          <year>1991</year>
          ), https://core.ac.uk/download/pdf/82662203. pdf
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Compton</surname>
            ,
            <given-names>K.J.</given-names>
          </string-name>
          , La amme,
          <string-name>
            <surname>C.</surname>
          </string-name>
          :
          <article-title>An algebra and a logic for NC1</article-title>
          .
          <source>Inf. Comput</source>
          .
          <volume>87</volume>
          (
          <issue>1</issue>
          /2),
          <volume>240</volume>
          {
          <fpage>262</fpage>
          (
          <year>1990</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Cosmadakis</surname>
            ,
            <given-names>S.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gaifman</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kanellakis</surname>
            ,
            <given-names>P.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vardi</surname>
          </string-name>
          , M.Y.:
          <article-title>Decidable optimization problems for database logic programs (preliminary report)</article-title>
          .
          <source>In: STOC</source>
          . pp.
          <volume>477</volume>
          {
          <issue>490</issue>
          (
          <year>1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Demri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goranko</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lange</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Temporal Logics in Computer Science</article-title>
          . Cambridge Tracts in Theoretical Computer Science, Cambridge University Press (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Furst</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saxe</surname>
            ,
            <given-names>J.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sipser</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Parity, circuits, and the polynomial-time hierarchy</article-title>
          .
          <source>Mathematical Systems Theory</source>
          <volume>17</volume>
          (
          <issue>1</issue>
          ),
          <volume>13</volume>
          {
          <fpage>27</fpage>
          (
          <year>1984</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Gabbay</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kurucz</surname>
            ,
            <given-names>A.</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>
          :
          <string-name>
            <surname>Many-Dimensional Modal</surname>
            <given-names>Logics</given-names>
          </string-name>
          :
          <article-title>Theory and Applications</article-title>
          , Studies in Logic, vol.
          <volume>148</volume>
          .
          <string-name>
            <surname>Elsevier</surname>
          </string-name>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Gerasimova</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kikot</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kurucz</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Podolskii</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>A data complexity and rewritability tetrachotomy of ontology-mediated queries with a covering axiom</article-title>
          .
          <source>In: Proceedings of KR</source>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <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>Ozaki</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Schema.org as a description logic</article-title>
          . In: Yang,
          <string-name>
            <given-names>Q.</given-names>
            ,
            <surname>Wooldridge</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.J</surname>
          </string-name>
          . (eds.)
          <source>Proceedings of the Twenty-Fourth International Joint Conference on Arti cial Intelligence</source>
          ,
          <source>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.
          <volume>3048</volume>
          {
          <fpage>3054</fpage>
          . AAAI Press (
          <year>2015</year>
          ), http://ijcai. org/Abstract/15/430
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <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>Non-uniform data complexity of query answering in description logics</article-title>
          .
          <source>In: Proc. of the 13th Int. Conference on Principles of Knowledge Representation and Reasoning (KR</source>
          <year>2012</year>
          ). pp.
          <volume>297</volume>
          {
          <fpage>307</fpage>
          .
          <string-name>
            <surname>AAAI</surname>
          </string-name>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sabellek</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Ontology-mediated querying with the description logic EL: trichotomy and linear datalog rewritability</article-title>
          . In: Sierra,
          <string-name>
            <surname>C</surname>
          </string-name>
          . (ed.)
          <source>Proceedings of the Twenty-Sixth International Joint Conference on Arti cial Intelligence</source>
          ,
          <source>IJCAI</source>
          <year>2017</year>
          , Melbourne, Australia,
          <source>August 19-25</source>
          ,
          <year>2017</year>
          . pp.
          <volume>1181</volume>
          {
          <fpage>1187</fpage>
          . ijcai.
          <source>org</source>
          (
          <year>2017</year>
          ), https://doi.org/10.24963/ijcai.
          <year>2017</year>
          /164
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Marcinkowski</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>DATALOG sirups uniform boundedness is undecidable</article-title>
          .
          <source>In: Proceedings, 11th Annual IEEE Symposium on Logic in Computer Science</source>
          , New Brunswick, New Jersey, USA, July
          <volume>27</volume>
          -
          <issue>30</issue>
          ,
          <year>1996</year>
          . pp.
          <volume>13</volume>
          {
          <fpage>24</fpage>
          . IEEE Computer Society (
          <year>1996</year>
          ), https://doi.org/10.1109/LICS.
          <year>1996</year>
          .561299
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Poggi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>Linking data to ontologies</article-title>
          .
          <source>Journal on Data Semantics X</source>
          ,
          <volume>133</volume>
          {
          <fpage>173</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Stockmeyer</surname>
            ,
            <given-names>L.J.:</given-names>
          </string-name>
          <article-title>The polynomial-time hierarchy</article-title>
          .
          <source>Theor. Comput. Sci. 3</source>
          (
          <issue>1</issue>
          ),
          <volume>1</volume>
          {
          <fpage>22</fpage>
          (
          <year>1976</year>
          ), https://doi.org/10.1016/
          <fpage>0304</fpage>
          -
          <lpage>3975</lpage>
          (
          <issue>76</issue>
          )
          <fpage>90061</fpage>
          -X
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Stockmeyer</surname>
            , L.J., Meyer,
            <given-names>A.R.</given-names>
          </string-name>
          :
          <article-title>Word problems requiring exponential time: Preliminary report</article-title>
          . In: Aho,
          <string-name>
            <given-names>A.V.</given-names>
            ,
            <surname>Borodin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Constable</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.L.</given-names>
            ,
            <surname>Floyd</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.W.</given-names>
            ,
            <surname>Harrison</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.A.</given-names>
            ,
            <surname>Karp</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.M.</given-names>
            ,
            <surname>Strong</surname>
          </string-name>
          ,
          <string-name>
            <surname>H.R</surname>
          </string-name>
          . (eds.)
          <source>Proceedings of the 5th Annual ACM Symposium on Theory of Computing, April 30 - May 2</source>
          ,
          <year>1973</year>
          , Austin, Texas, USA. pp.
          <volume>1</volume>
          {
          <issue>9</issue>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>1973</year>
          ), https://doi.org/10.1145/800125.804029
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <surname>Straubing</surname>
          </string-name>
          , H.:
          <article-title>Finite Automata, Formal Logic,</article-title>
          and
          <string-name>
            <given-names>Circuit</given-names>
            <surname>Complexity</surname>
          </string-name>
          . Birkhauser Verlag (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Thompson</surname>
            ,
            <given-names>J.G.</given-names>
          </string-name>
          :
          <article-title>Nonsolvable nite groups all of whose local subgroups are solvable</article-title>
          .
          <source>Bull. Amer. Math. Soc</source>
          .
          <volume>74</volume>
          (
          <issue>3</issue>
          ),
          <volume>383</volume>
          {
          <volume>437</volume>
          (05
          <year>1968</year>
          ), https://projecteuclid. org:443/euclid.bams/1183529612
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25.
          <string-name>
            <surname>Ullman</surname>
            ,
            <given-names>J.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gelder</surname>
            ,
            <given-names>A.V.</given-names>
          </string-name>
          :
          <article-title>Parallel complexity of logical query programs</article-title>
          .
          <source>Algorithmica 3</source>
          ,
          <issue>5</issue>
          {
          <fpage>42</fpage>
          (
          <year>1988</year>
          ), https://doi.org/10.1007/BF01762108
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          26.
          <string-name>
            <surname>Vardi</surname>
          </string-name>
          , M.Y.:
          <article-title>Decidability and undecidability results for boundedness of linear recursive queries</article-title>
          . In:
          <string-name>
            <surname>Edmondson-Yurkanan</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yannakakis</surname>
          </string-name>
          , M. (eds.)
          <source>Proceedings of the Seventh ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, March 21-23</source>
          ,
          <year>1988</year>
          , Austin, Texas, USA. pp.
          <volume>341</volume>
          {
          <fpage>351</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>1988</year>
          ), http://doi.acm.
          <source>org/10</source>
          .1145/308386.308470
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>