<!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>Temporal Query Answering in EL</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Stefan Borgwardt</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Veronika Thost</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Theoretical Computer Science</institution>
          ,
          <addr-line>TU Dresden</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Motivation Context-aware systems use data collected at runtime to recognize predefined situations and trigger adaptations; e.g., an operating system may use sensors to recognize that a video application is out of user focus, and then adapt application parameters to optimize the energy consumption. Using ontologybased data access [12, 19], the situations can be encoded into queries that are answered over an ABox containing the sensor data. In the TBox, we can encode background knowledge about the domain. For example, if the user has been working with another application on a second screen for a longer period, then we may assume that he does not need the video to be displayed in the highest resolution. In this paper, we focus on the lightweight DL EL. We can state static knowledge about applications (VideoApplication(app1)), dynamic knowledge about the current context (NotWatchingVideo(user1)), as well as background knowledge like VideoApplication u 9hasUser:NotWatchingVideo v 9hasState:OutOfFocus; saying that a video application whose user is currently not watching the video is out of user focus. Given such a knowledge base, we can use the conjunctive query (CQ) (x) := 9y:hasState(x; y) ^ OutOfFocus(y) to identify applications x that can potentially be assigned a lower priority. More complex situations typically depend also on the behavior of the environment in the past-the operating system should not switch configurations every time the user is not watching for one second, but only after this has been the case for a longer period. For that reason, we investigate temporal conjunctive queries (TCQs), originally proposed in [3, 4]. They combine conjunctive queries via the operators of the propositional linear temporal logic LTL [14, 18]. We can use the TCQ</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>to obtain all applications that were out of user focus during the three previous
(# ) moments of observation, were prioritized by the operating system at some
point in time, and the priority has not (:) changed since (S) then. The semantics
of TCQs is based on temporal knowledge bases (TKBs), which, in addition to the
TBox (which is assumed to hold globally, i.e., at every point in time), contains
a sequence of ABoxes A0; A1; : : : ; An, representing the data collected at specific</p>
      <p>Partially supported by the DFG in CRC 912 (HAEC).
points in time. We designate with n the most recent time of observation (the
current time point ), at which the situation recognition is performed. We also
investigate the related temporalized formalism EL-LTL, in which axioms, i.e.,
assertions or GCIs, are combined using LTL-operators.</p>
      <p>
        Related Work The axioms in a TKB do not explicitly refer to time, but are
written in a classical (atemporal) DL; only the query is temporalized. In contrast,
[
        <xref ref-type="bibr" rid="ref1 ref13 ref2">1,2,13,17</xref>
        ] extend classical DLs by temporal operators that occur within concepts
and axioms. However, most of these logics yield high reasoning complexities, even
if the underlying atemporal DL is tractable. Lower complexities are obtained by
considerably restricting either the temporal operators or the underlying DL.
      </p>
      <p>
        Regarding temporal properties formulated over atemporal DLs, ALC-LTL,
a variant of EL-LTL over the more expressive DL ALC, was first considered
in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. This was the basis for introducing TCQs over ALC-TKBs in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], which
was extended to SHQ in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. However, reasoning in ALC is not tractable, and
context-aware systems often need to deal with large quantities of data and adapt
fast. TCQs over several lightweight logics have been regarded in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], but only
over a fragment of LTL without negation. In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], the complexity of LTL over
axioms of several members of the DL-Lite family of DLs has been investigated.
However, nothing is known about TCQs over these logics.
      </p>
      <p>
        Results We investigate the combined and data complexity of the TCQ
entailment problem over TKBs formulated in EL. Moreover, we determine the
complexity of satisfiability of EL-LTL-formulae, and additionally consider the
special case where only global GCIs are allowed [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. As usual, we consider rigid
concepts and roles, whose interpretation does not change over time. In this
regard, we distinguish three different settings, depending on whether concepts or
roles (or both) are allowed to be rigid. Since rigid concepts can be simulated by
rigid roles [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], only three cases need to be considered: (i) no symbols are allowed
to be rigid, (ii) only rigid concepts are allowed, and (iii) both concepts and roles
can be rigid. Tables 1 and 2 summarize our results and provide a comparison
to related work. The only previously known results that directly apply here are
P-hardness of CQ entailment in EL w.r.t. data complexity [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and
PSpacehardness of LTL [20]. Hence, we needed to prove three additional complexity
lower bounds.
      </p>
      <p>
        With a single exception, the complexity of TCQ entailment in EL turns out to
be lower than that in ALC (and SHQ) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Regarding satisfiability in EL-LTL,
Table 2 shows that rigid symbols lead to an increase in complexity that does
not affect DL-Litekrom-LTL [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], and even matches the complexity of ALC-LTL
and SHOQ-LTL in case (ii) [
        <xref ref-type="bibr" rid="ref15 ref6">6, 15</xref>
        ]. Thus, we partially confirm and refute the
conjecture of [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] that EL-LTL is as hard as ALC-LTL. In the following, we shortly
describe some of the ideas behind them. More details can be found in [
        <xref ref-type="bibr" rid="ref10 ref8 ref9">8–10</xref>
        ].
      </p>
      <p>
        The upper bounds are obtained by a combination of techniques that were
developed for ALC-LTL [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and refined for TCQs over SHQ-TKBs [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], methods
for checking LTL-satisfiability [
        <xref ref-type="bibr" rid="ref4">4, 20, 21</xref>
        ], and algorithms for atemporal reasoning
in EL [
        <xref ref-type="bibr" rid="ref16 ref5">5,16</xref>
        ]. However, considerable work was necessary to obtain tight complexity
bounds in all cases we considered. The main approach is to separate the temporal
operators from the CQs (or axioms), which leaves us to solve a variant of the
satisfiability problem for LTL (in P w.r.t. data complexity and in PSpace w.r.t.
combined complexity), as well as the following problem for the DL part.
Definition 1. Let K = hT ; (Ai)0 i ni be a TKB and 1; : : : ; m be CQs.1 A set
S = fX1; : : : ; Xkg 2f 1;:::; mg is r-satisfiable w.r.t. a mapping : f0; : : : ; ng !
f1; : : : ; kg and K if there are interpretations J1; : : : ; Jk and I0; : : : ; In such that
– they share the same domain and interpret all rigid symbols in the same way;
– each Ji is a model of T and i := V Xi ^ Vf: j j j 2= Xig; and
– each Ii is a model of hT ; Aii and (i).
      </p>
      <p>Individually, the satisfiability of the conjunctions i can be tested in P w.r.t. data
complexity and in PSpace w.r.t. combined complexity. However, the problem is
to ensure the first condition, namely that all rigid names are interpreted in the
same way by all relevant interpretations.</p>
      <p>In case (i), this restriction is obviously irrelevant. For case (iii), one can
answer an exponentially large UCQ over an exponentially large atemporal
knowledge base instead to obtain the upper bounds. The most difficult cases were
case (ii) for the combined complexity of TCQ entailment, and the case of global
GCIs in EL-LTL, where we needed to obtain PSpace upper bounds in the
presence of rigid names. For these cases, we proved that it suffices to guess additional
data of polynomial size that can be added to the knowledge bases in order to
separate the satisfiability tests in Definition 1. These tests can then be integrated
into a PSpace-Turing machine for LTL-satisfiability [20] without increasing the
complexity.</p>
      <p>Acknowledgements We want to thank Franz Baader, Marcel Lippmann, and
Carsten Lutz for fruitful discussions on the topic of this paper.
1 In the case of EL-LTL, these are axioms.
17. Lutz, C., Wolter, F., Zakharyaschev, M.: Temporal description logics: A survey.</p>
      <p>In: Proc. of the 15th Int. Symp. on Temporal Representation and Reasoning
(TIME’08). pp. 3–14. IEEE Press (2008)
18. Pnueli, A.: The temporal logic of programs. In: Proc. of the 18th Annual Symp.</p>
      <p>on Foundations of Computer Science (SFCS’77). pp. 46–57. IEEE Press (1977)
19. Poggi, A., Lembo, D., Calvanese, D., De Giacomo, G., Lenzerini, M., Rosati, R.:</p>
      <p>Linking data to ontologies. Journal of Data Semantics 10, 133–173 (2008)
20. Sistla, A.P., Clarke, E.M.: The complexity of propositional linear temporal logics.</p>
      <p>Journal of the ACM 32(3), 733–749 (1985)
21. Wolper, P., Vardi, M.Y., Sistla, A.P.: Reasoning about infinite computation
paths. In: Proc. of the 24th Annual Symp. on Foundations of Computer Science
(SFCS’83). pp. 185–194. IEEE Press (1983)</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>Kontchakov</surname>
            ,
            <given-names>R.</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>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Temporalising tractable description logics</article-title>
          .
          <source>In: Proc. of the 14th Int. Symp. on Temporal Representation and Reasoning (TIME'07)</source>
          , pp.
          <fpage>11</fpage>
          -
          <lpage>22</lpage>
          . IEEE Press (
          <year>2007</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>Ryzhikov</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>A cookbook for temporal conceptual data modelling with description logics</article-title>
          .
          <source>ACM Transactions on Computational Logic</source>
          <volume>15</volume>
          (
          <issue>3</issue>
          ),
          <volume>25</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>25</lpage>
          :
          <fpage>50</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Lippmann, M.:
          <article-title>Temporalizing ontology-based data access</article-title>
          .
          <source>In: Proc. of the 24th Int. Conf. on Automated Deduction (CADE'13)</source>
          . pp.
          <fpage>330</fpage>
          -
          <lpage>344</lpage>
          . Springer-Verlag (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Lippmann, M.:
          <article-title>Temporal query entailment in the description logic SHQ</article-title>
          .
          <source>Journal of Web Semantics</source>
          (
          <year>2015</year>
          ), doi:10.1016/j.websem.
          <year>2014</year>
          .
          <volume>11</volume>
          .008, in press.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brandt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Pushing the EL envelope</article-title>
          .
          <source>In: Proc. of the 19th Int. Joint Conf. on Artificial Intelligence (IJCAI'05)</source>
          . pp.
          <fpage>364</fpage>
          -
          <lpage>369</lpage>
          . Professional Book Center (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ghilardi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>LTL over description logic axioms</article-title>
          .
          <source>ACM Transactions on Computational Logic</source>
          <volume>13</volume>
          (
          <issue>3</issue>
          ),
          <volume>21</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>21</lpage>
          :
          <fpage>32</fpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Lippmann,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Thost</surname>
          </string-name>
          ,
          <string-name>
            <surname>V.</surname>
          </string-name>
          :
          <article-title>Temporalizing rewritable query languages over knowledge bases</article-title>
          .
          <source>Journal of Web Semantics</source>
          (
          <year>2015</year>
          ), doi:10.1016/j.websem.
          <year>2014</year>
          .
          <volume>11</volume>
          .007, in press.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thost</surname>
          </string-name>
          , V.:
          <article-title>LTL over EL axioms</article-title>
          .
          <source>LTCS-Report 15-07</source>
          ,
          <article-title>Chair for Automata Theory</article-title>
          , TU Dresden (
          <year>2015</year>
          ), see http://lat.inf.tu-dresden.de/ research/reports.html.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thost</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Temporal query answering in EL</article-title>
          .
          <source>LTCS-Report 15- 08</source>
          ,
          <article-title>Chair for Automata Theory</article-title>
          , TU Dresden (
          <year>2015</year>
          ), see http://lat.inf. tu-dresden.de/research/reports.html.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thost</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Temporal query answering in the description logic EL</article-title>
          . In: Yang,
          <string-name>
            <surname>Q</surname>
          </string-name>
          . (ed.)
          <source>Proc. of the 24th Int. Joint Conf. on Artificial Intelligence (IJCAI'15)</source>
          . AAAI Press (
          <year>2015</year>
          ), to appear.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <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>
          .
          <source>In: Proc. of the 10th Int. Conf. on Principles of Knowledge Representation and Reasoning (KR'06)</source>
          . pp.
          <fpage>260</fpage>
          -
          <lpage>270</lpage>
          . AAAI Press (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Decker</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Erdmann</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fensel</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Studer</surname>
          </string-name>
          , R.: Ontobroker:
          <article-title>Ontology based access to distributed and semi-structured information</article-title>
          .
          <source>In: Database Semantics: Semantic Issues in Multimedia Systems</source>
          . pp.
          <fpage>351</fpage>
          -
          <lpage>369</lpage>
          . Kluwer Academic Publisher (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Gutiérrez-Basulto</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jung</surname>
            ,
            <given-names>J.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schneider</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Lightweight description logics and branching time: A troublesome marriage</article-title>
          .
          <source>In: Proc. of the 14th Int. Conf. on Principles of Knowledge Representation and Reasoning (KR'14)</source>
          . AAAI Press (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Lichtenstein</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pnueli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zuck</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>The glory of the past</article-title>
          .
          <source>In: Proc. of the Workshop on Logics of Programs</source>
          . pp.
          <fpage>196</fpage>
          -
          <lpage>218</lpage>
          . Springer-Verlag (
          <year>1985</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15. Lippmann, M.:
          <article-title>Temporalised Description Logics for Monitoring Partially Observable Events</article-title>
          .
          <source>Ph.D. thesis</source>
          , TU Dresden, Germany (
          <year>2014</year>
          ), http://nbn-resolving. de/urn:nbn:de:bsz:
          <fpage>14</fpage>
          -qucosa-147977
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Toman</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Conjunctive query answering in the description logic EL using a relational database system</article-title>
          .
          <source>In: Proc. of the 21st Int. Joint Conf. on Artificial Intelligence (IJCAI'09)</source>
          . pp.
          <fpage>2070</fpage>
          -
          <lpage>2075</lpage>
          . AAAI Press (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>