<!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>Towards Temporal Fuzzy Query Answering on Stream-based Data?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anni-Yasmin Turhan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Erik Zenker</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of Oxford</institution>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute for Theoretical Computer Science, Technische Universitat Dresden</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>For reasoning over streams of data ontology-based data access is a common approach. The method for answering conjunctive queries (CQs) over DL-Lite ontologies in this setting is by rewritings of the query and evaluation of the resulting query by a data base engine. For streambased applications the classical expressivity of DL-Lite lacks means to handle fuzzy and temporal information. In this paper we report on a combination of a recently proposed pragmatic approach for answering CQs over fuzzy DL-Lite ontologies with answering of CQs over sequences of ABoxes, resulting in a system that supplies rewritings for query answering over temporal fuzzy DL-Lite-ontologies.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>We report in this paper on work in progress regarding answering queries for
extensions of the lightweight ontology language DL-Lite by fuzzy and also by
temporal information, which are tailored towards the use in ontology-based
situation recognition.</p>
      <p>
        The main task in context-aware or self-adaptive systems is to recognize
situations that might invoke an adaptation of the system to new conditions in their
surroundings. To this end data is collected from multiple sources, often times
sensors and stored in a data base system. A description of situations that might
invoke an adaptation is matched against the data to detect the occurrence of
a critical situation in the data. The ontology-based approach to such situation
recognition enriches the observations made by sensors semantically and thus
offers a higher-level view on the data collected. In the ontology-based approach
the critical situations are captured by queries that are evaluated over the data
enriched by the background knowledge captured in the ontology. Now, since
potentially a huge amount of such preprocessed data has to be queried, e cient
algorithms are expedient. In our case we employ the ontology language DL-Lite
and answering of conjunctive queries (CQs), which are a simple form of rst
order queries, to recognize critical situations. It is well-known that DL-Lite-family
of allows for answering of CQs in LogSpace [
        <xref ref-type="bibr" rid="ref2 ref6 ref7">2, 7, 6</xref>
        ], which is the same complexity
as answering database queries. This good complexity is achieved by the so-called
rewriting approach, where the CQ is rst enriched by the (relevant) information
from the TBox and then this rewritten query is evaluated over a data base. The
rewriting approach for answering CQs is implemented in optimized systems as
QuOnto2 [
        <xref ref-type="bibr" rid="ref1 ref11">1, 11</xref>
        ], Ontop [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], Owlgres [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], and IQAROS [20] which perform
well in practice.
      </p>
      <p>Now, in context-aware systems that employ streams of sensor data, the
expressivity of standard ontology languages often might be too limited. For
instance, the numerical values obtained from the sensors are mapped to coarser
logical categories such as high, medium or low. For such categories the concept
membership of a particular measurement is rather vague calling for the use of
fuzzy ontology languages that allow for membership degrees expressing that a
particular measurement belongs to a category only to a certain extent. Another
short-coming of standard ontology languages is the lack of modeling temporal
information. Now, each of these two extensions are known to make reasoning
in ontology languages undecidable, if allowed for modeling concepts. Thus, we
chose combinations that allow for fuzzy or temporal information only in the data
and in the query.</p>
      <p>In our pragmatic approach to answering of (fuzzy) CQs, a crisp DL-Lite
reasoner is used as a black box to obtain an initial rewriting of the CQ
(without degrees). The obtained query gets extended in a second rewriting step by
(1) fuzzy atoms, (2) degree variables that capture membership degrees, and
(3) numerical predicates that realize the fuzzy operators. The resulting query
can then be evaluated by a SQL engine. We have implemented this rewriting
procedure in our reasoner FLite and report on its performance in this paper.</p>
      <p>
        A similar extension of the classical rewriting approach has recently been
employed for the temporal setting [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and implemented [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. In this setting the
incoming information is modeled as a sequence of fact bases, one for each moment
in time in which the system has been observed and thus realizing the sliding
window approach. To describe situations, operators of the temporal logic LTL
are admitted in the query. Such temporal operators can, for instance, express
for a property that it is true at the next point in time or to be satis ed at some
point in future. In this rewriting approach the temporal information queried
for is treated by an additional rewriting step of the temporal query and the
information is also retrieved by a query over the temporal database. Now, as it
turns out both two-step rewriting methods can be combined in a straightforward,
but elegant way. Yielding a method that is capable to answer CQs over temporal
sequences that model data in a fuzzy way.
      </p>
      <p>The rest of the paper is structured as follows: While in the next section we
give the preliminaries on fuzzy DL-Lite and fuzzy ontologies, we describe the
extension of the classical rewriting procedure to fuzzy information in Section 3
and its implementation in the FLite system. Section 4 gives results on a
performance evaluation of FLite on a situation recognition use-case. Conclusions
and future work end the paper in Section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>We start with the concept language of DL-LiteR and then introduce our fuzzy
variant of ABoxes. The information in a DL-knowledge base is described by
means of the following atomic types: concept names form the set NC, role names
from the set NR, individual names from the set NI and for the queries also from
the set of variables NV. From these elements the complex DL-LiteR-concepts,
-roles and -queries are constructed. DL-LiteR-concepts and -roles are de ned
according to the following grammar:</p>
      <p>B !A j 9Q</p>
      <p>C !&gt; j B j :B</p>
      <p>Q !P j P</p>
      <p>R !Q j :Q;
where &gt; is the top concept, A 2 NC, P 2 NR. Based on these kinds of complex
concepts and roles, a DL-LiteR TBox T is a nite set of axioms of the form:
B v C, Q v R or f unct(Q). Let a; b 2 NI and d 2 [0; 1] a fuzzy degree. A fuzzy
assertion is of the form: hB(a); &gt; di or hP (a; b); &gt; di: An ABox A is a nite
set of fuzzy assertions. A fuzzy DL-Lite-ontology O = (T ; A) consists of a TBox
T and an ABox A. Please note that the TBoxes are crisp in our setting. Crisp
DL-LiteR-ontologies are a special case of fuzzy ones, where only degrees 1 and
0 are admitted.</p>
      <p>The reasoning problem we address here is answering of (unions of)
conjunctive queries. Let t1; t2 2 NI [ NV be terms, an atom is an expression of the form:
C(t1) or P (t1; t2). Let x and y be vectors over NV, then (x; y) is a
conjunction of atoms of the forms A(t1) and P (t1; t2). A conjunctive query (CQ) q(x)
over an ontology O is a rst-order formula 9y: (x; y), where x are the answer
variables, y are existentially quanti ed variables and the concepts and roles in
(x; y) appear in O. Observe, that the atoms in a CQ do not contain degrees.
Now, a union of conjunctive queries (UCQ) is simply a nite set of conjunctive
queries that have the same number of answer variables.</p>
      <p>The semantics of fuzzy DL-LiteR is provided an interpretation with an
interpretation domain and a mapping function that assigns values from the
unit interval, instead of just 0 and 1 as in the classical case. More precisely, an
interpretation for fuzzy DL-LiteR is a pair I = ( I ; I ), where I is as usual,
but I is an interpretation function mapping every
{ a 2 NI to some element aI 2 I ,
{ A 2 NC to a concept membership function AI : I ! [0; 1],
{ P 2 NR to a role membership function P I : I I ! [0; 1].</p>
      <p>The semantics of the complex concepts in fuzzy DL-LiteR is provided via the
di erent families of fuzzy logic operators depicted in Table 1 and interpretations.
Let ; 0 denote elements of I and denote fuzzy negation (Table 1), then the
semantics of concepts and roles are inductively de ned as follows:
(9Q)I ( ) = sup 02 I QI ( ; 0)
P I ( ; 0) = P I ( 0; )</p>
      <p>(:B)I ( ) =
(:Q)I ( ; 0) =</p>
      <p>BI ( )
An interpretation I satis es B v C i BI ( ) 6 CI ( ) for every 2 I , Q v R
i QI ( ; 0) 6 RI ( ; 0) for every ; 0 2 I , and func(Q) i for every 2 I
there is a unique 0 2 I such that QI ( ; 0) &gt; 0. An interpretation I is a model
of a TBox T , i.e. I j= T , i it satis es all axioms in T . I satis es hB(a); &gt; di
i BI (aI ) &gt; d, and hP (a; b); &gt; di i P I (aI ; bI ) &gt; d. I is a model of an ABox
A, i.e. I j= A, i it satis es all assertions in A. Finally an interpretation I is a
model of an ontology O = (T ; A) i it is a model of A and T .</p>
      <p>Given a CQ q(x) = 9y: (x; y), an interpretation I, a vector of individuals
with the same arity as x, we de ne the mapping that maps: i) each individual
a to aI , ii) each variable in x to an element of I , and iii) each variable in y
to an element 2 I . Suppose that for an interpretation I, is the set of
mappings that comply to these three conditions. Computing the t-norm of
all atoms: AI ( (t1)) and P I ( (t1); (t2)) yields the degree of I ( I ; (y)). A
tuple of individuals is a certain answer to q(x), over O, with a degree greater
or equal than d (denoted O j= q( ) &gt; d), if for every model I of O:
qI ( I ) = sup 2 f I ( ; (y))g &gt; d:
We denote the set of certain answers along with degrees, to a query q(x) w.r.t.
an ontology O with ans(q(x); O):
ans(q(x); O) = f( ; d) j O j= q( ) &gt; d ^ 6 9d0:d0 &gt; d ^ O j= q( ) &gt; d0g:
To illustrate the use of the fuzzy DL-LiteR language and queries, we provide
an example from our application domain.</p>
      <p>Example 1. The ontology Oex for our running example consists of:
Tex := fServer v 9hasCPU; 9hasCPU
v CPU; func(hasCPU )g
Aex := fhServer(server1); &gt; 1i; hhasCPU(server1; cpu1); &gt; 1i;
hOverUsed(cpu1); &gt; 0:6i; hhasCPU(server1; cpu2); &gt; 1i;
hOverUsed(cpu2); &gt; 0:8i
g
The rst two axioms in Tex state that each server has a part that is a CPU. The
third one states that no CPU can belong to more than one server. Aex provides
information about the connections between servers and CPUs and each CPU's
degree of overuse. To query the ontology Oex we can formulate the queries:
q1(x; y) = hasCPU(x; y) ^ OverUsed(y)</p>
      <p>q2(x) = 9y hasCPU(x; y) ^ OverUsed(y)
The query q1 asks for pairs of Servers and CPUs with an overused CPU. The
query q2 asks for Servers, where the Server's CPU is overused. If conjunction and
negation are interpreted as the Godel family of operators, the certain answers
w.r.t. Oex are:
ans(q1(x; y); Oex) = f(server1; cpu1; 0:6); (server2; cpu2; 0:8)g</p>
      <p>ans(q2(x); Oex) = f(server1; 0:8)g:
3</p>
    </sec>
    <sec id="sec-3">
      <title>Fuzzy Query Answering by Extended Crisp Rewritings</title>
      <p>
        In the following we are interested in answering the CQ q(x), which is formulated
over the vocabulary of the DL-LiteR ontology O = (T ; A). The main idea
underlying the classic DL-LiteR query answering algorithm is to rewrite the query
q(x) with the information from the TBox T into a UCQ qT (x) and then apply
this UCQ to the ABox A alone [
        <xref ref-type="bibr" rid="ref2 ref7">7, 2</xref>
        ]. For fuzzy DLs we extend this approach to
handle degrees of ABox assertions. The main idea is depicted in Figure 1.
      </p>
      <p>To explain the algorithm we
anneedd t h.eIntpurietidvieclayt,eseacAhf b,inParfy, TBox Fuzz?yQuery Fuzzy ABox
predicate Af is an extension of
the concept A such that the fuzzy
concept assertion hA(a); &gt; di is Query rewriting
equivalent to the predicate asser- by
tion Af (a; d) (similarly for Pf ). Query
The n-ary predicate is needed FLite evabluyaation
to realize the semantics of the Reasoner SQL query
fuzzy conjunction within a CQ. engine
More precisely, it 'combines' the Query rewriting
membership degrees obtained for tocotrnenaetcftuozrzsy
the conjuncts to yield the
membership degree of the
conjunction. Thus, for each tuple of de- Answers
grees d1; : : : ; dn 2 [0; 1] such that
d1 = (d2; : : : ; dn), we have that Fig. 1. The FLite rewriting procedure.
(d1; : : : ; dn) 2 .</p>
      <p>For the CQ q(x) to be answered, the two-step rewriting algorithm proceeds
as follows:
1. The crisp DL-LiteR algorithm rewrites q(x) to qT (x) using the information
from the TBox.
2. The fuzzy query qT ;f (x; xd) is computed from qT (x) by replacing atoms
of the form A(t1) and P (t1; t2) by Af (t1; yd) and Pf (t1; t2; yd), where the
variable yd is a degree variable. Its purpose is to retrieve the degree of an
assertion. The degree value for fuzzy conjunction is retrieved by the
predicate and (to be) stored in the additional degree variable xd. Thus, the
conjunction degree of a new atom qT ;f (x; xd) is obtained by the predicate
(xd; y1; : : : ; yn), where yi is a degree variable in the ith atom of the CQ.
3. The query is evaluated over the ABox and the actual computation of the
degree values takes place. Now, for a tuple of individuals and degrees
d1; d2 2 [0; 1], if ( ; d1) and ( ; d2) are both answers to the query, only the
answer with the higher degree is returned.</p>
      <p>
        Note that this description abstracts from the ABox A being implemented by a
relational database D and a mapping M. We see in Section 3.1 how this mapping
is extended to incorporate fuzzy information. For a detailed presentation of the
algorithms, the reader may refer to [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>Example 2. We return to Example 1 and illustrate the application of the
algorithm to the queries. Initially, q1 and q2 are rewritten to the following UCQs:
q1Tex (x; y) =fhasCPU(x; y) ^ OverUsed(y)g</p>
      <p>q2Tex (x) =f9y:hasCPU(x; y) ^ OverUsed(y)g
In the next step, the algorithm extends the queries with degree variables and
atoms, so that the corresponding degrees can be returned:
q1fTex (x; y; xd) =fhasCPU(x; y; yd1 ) ^ OverUsed(y; yd2 ) ^
q2fTex (x; xd) =f9y:hasCPU(x; y; yd1 ) ^ OverUsed(y; yd2 ) ^
(xd; yd1 ; yd2 )g
(xd; yd1 ; yd2 )g
For the ABox Aex the following set of answers to each of the queries are returned:
ans(q1fTex (x; xd); Aex) =f(server1; cpu1; 0:6); (server1; cpu2; 0:8)g
ans(q2fTex (x; xd); Aex) =f(server1; 0:8)g:</p>
      <p>
        The limitations of our pragmatic approach are explained in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. To sum up,
this pragmatic approach yields sound and complete results for fuzzy semantics
based on idempotent operators such as the Godel family of operators.
Nonidempotent operators may be simpli ed by highly optimized implementations
such as Ontop. Consider qT (x) := A(x) ^ A(x) is simpli ed to qT (x) := A(x),
which is correct for crisp, but not for every fuzzy semantics. The correctness for
the case of the Godel family of operators can be derived from the crisp DL-LiteR
proof along with the following points: (1) only crisp TBox axioms are allowed,
(2) conjunctions only appear in conjunctive query expressions, (3) Ontop
optimizations do not a ect the correctness of the algorithm due to the properties
of the min operator. The latter does not apply for all other t-norms. The
proposed methodology is complete but not sound for the Lukasiewicz and Godel
families of operators. Nevertheless, in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], we devised a method by which each
unsound answer can be identi ed and its correct degree estimated by an interval
of membership values.
FLite3 (Fuzzy DL-LiteR query engine) implements the above query answering
algorithm and builds on the Ontop framework [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. Implementation-wise, the
rewriting procedure is a little more involved if a reasoner such as Ontop is
deployed, since it operates on relational databases directly. Thus the queries
qT (x) and qT ;f (x; xd) in Figure 1 are SQL queries, while the ABox A is only
virtual and implemented by a partial mapping:
      </p>
      <p>M : SQL SELECT Statements ! ABox assertions:
In order to embed fuzzy information into mappings we adopt a rei cation
approach sketched in the following example.</p>
      <p>
        Example 3. We consider a fuzzy mapping described in the Quest syntax [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ].
In this mapping, for the concept popularVideo each id of the table videos is
annotated with a popularity, i.e. a fuzzy degree:
t a r g e t h a e c : v i d e o f p o p u l a r i t y d e g r e e g a h a e c : P o p u l a r V i d e o .
s o u r c e SELECT f u z z y ( i d , p o p u l a r i t y )
      </p>
      <p>AS p o p u l a r i t y d e g r e e</p>
      <p>FROM v i d e o s
Now, a video with an id of 12 and a popularity of 0:8 in the database corresponds
to hPopularVideo(videos12); &gt; 0:8i stated in the ontology.</p>
      <p>The function fuzzy(column, degree) is a marker for the FLite parser to recognize
such fuzzy statements. It indicates that each element of the particular column
(or SQL expression) is associated with a membership degree. Such a degree is
either a column with values from [0; 1], or an SQL expression corresponding to a
fuzzy membership function. SQL expressions that contain the fuzzy marker
function appear in the initial mapping M and in qT (x) queries, while in qT ;f (x; xd)
queries these markers are converted to SQL expressions that return the
membership degrees.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Performance Test of FLite</title>
      <p>A Situation Recognition Application. The project \Highly Adaptive
Energye cient Computing" (HAEC) investigates complex computing environments
that are highly energy-e cient while compromising utility of services as little
as possible. In order to be adaptive, the system needs to trigger adaptations
(of hard- or software components), if the quality of the requested services or
their number changes. To provide such a trigger mechanism we investigate an
ontology-based situation recognition. The situations to be recognized are
modelled as conjunctive queries. The background information on the system is
captured in the TBox and the current system's state is captured by an ABox. Such
3 The FLite reasoner is available from the following Git:
https://iccl-share.inf.tudresden.de/ ite-developer/ ite.git</p>
      <p>ABoxes are automatically generated from sensor data and other systems
information and the conjunctive queries for the situations are evaluated. In such a
setting the numerical sensor data need to be mapped to coarser, symbolic
categories and membership degrees. Similarly, the query needs to be able to retrieve
individuals that ful ll the conditions of the query to a degree. We have built a
TBox and a collection of ABoxes and queries for this application.</p>
      <p>We took this application to conduct a study of the performance of FLite.
The background knowledge on hard- and software components of the HAEC
system is modeled in a TBox which consists of 197 GCIs, 168 named classes and
38 roles (415 axioms in total). Each state of the HAEC system is stored in tables
of a relational database, which store the information on the soft- and hardware
of the HAEC system. The tables contain numerical values for boards, processes,
requests, etc.4 Our test compares the run-time to answer (fuzzy) conjunctive
queries over TBox and ABox by Ontop and FLite. In contrast to Ontop
which requires a crisp mapping, FLite is using a partially fuzzy mapping.</p>
      <p>
        FLite was evaluated over a series of databases of increasing size, i.e., scaled
by a factor k. The initial database with a size of 768.0 KiB was scaled by k
in the range of 100 to 105 to about 13 GiB by the Virtual Instance Generator
(VIG) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. For each of these scaled databases, a query with 13 atoms (2 crisp
concepts, 7 fuzzy concepts, 4 crisp roles) in total was evaluated. The system
on which the benchmark was performed on is powered by an Intel Core i7 2.6
GHz processor and was equipped with 8 GB DDR 1600 main memory. ABox
information was stored in a MySQL 5.6.23 database. FLite and Ontop are
executed on Oracle the JVM 1.7.
      </p>
      <p>Figure 2 shows the query execution time for increasing database size of
Ontop with a crisp mapping compared to three variants of FLite (with Godel
t-norms and with fuzzy mapping): naive, optimization SR and optimization PD.
Where SR means self join removal from the SQL statement and PD the
precomputation of membership degrees in the database.</p>
      <p>Optimization SR shows run-time reduction up to a linear factor of about
thousand, afterwards it converges with the naive FLite implementation. Thus,
4 The les necessary to perform this benchmark can be found here:
https://icclshare.inf.tu-dresden.de/erikzenker/ ite-benchmark.git
optimizations for larger databases are necessary. Optimization PD in Figure 2
shows opposite behavior, resulting in a run-time reduction from a scale factor of
thousand. Finally, a combination of both reduces the run-time on all scale factors
and is even on the same level with Ontop up to a scale factor of thousand.
Thus, a query execution time with a at linear run-time overhead with respect
to Ontop is possible when the fuzzy rewriting is optimized and fuzzy translation
functions are replaced by fuzzy computed columns.</p>
      <p>
        Instead of comparing FLite with Ontop, a comparison with other fuzzy
DL reasoners would have been desirable. However, reasoners such as LiFR [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ],
FuzzyDL [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], FiRE [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], and DeLorean [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] support only instance queries instead
of conjunctive queries. Others such as the DL-Lite reasoner Ontosearch2 [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] or
SoftFacts [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] could either not be obtained or installed.
5
      </p>
    </sec>
    <sec id="sec-5">
      <title>Towards Temporal Fuzzy Query Answering on Streams</title>
      <p>In temporal OBDA, one is not restricted to the knowledge about a single moment
in time in a single ABox, but a sequence of ABoxes A0; : : : ; An. A stream of data
can be transformed into such a sequence by sampling the stream periodically and
storing data together with a timestamp in a database. Such a complex entry in
the database corresponds to an assertion in the ABox Ai. This data can be
used to recognize global contexts, through temporal fuzzy conjunctive queries
(TFCQs), which refer to several point in time as well as to fuzzy information. A
context-aware system is then able to subscribe and to transform data streams
into a sequence of ABoxes and to evaluate a set of TFCQs periodically.
5.1</p>
      <sec id="sec-5-1">
        <title>Introducing Temporal Query Answering</title>
        <p>To accommodate the new information, we extend the notions of knowledge base,
interpretation, and CQ to the temporal case. A temporal knowledge base (TKB)
K = hO; (Ai)0 i ni consists of an ontology O and a nite sequence of ABoxes Ai.
Let I = (Ii)i 0 be an in nite sequence of interpretations Ii = ( ; Ii ) over a
non-empty domain that is xed (constant domain assumption). Then, I is a
model of K (written I j= K) if
{ for all i
{ for all i, 0
0, we have Ii j= O; and</p>
        <p>i n, we have Ii j= Ai.</p>
        <p>We next describe our query language, which allows to place LTL operators
`around' classical conjunctive queries. Temporal conjunctive queries (TCQs) are
built from CQs as follows: (1) Every CQ is a TCQ and (2) If 1 and 2 are
TCQs, then the following are also TCQs:
{ 1 ^ 2 (conjunction), 1 _ 2 (disjunction),
{ # 1 (next), # 1 (previous),
{ 1 U&lt; 2 (until), 1 S 2(since),
{ 2 1 (always), and 2 1 (always in the past).</p>
        <p>(a( ))I;i</p>
        <p>As usual, we use the abbreviation 3 1 (eventually) for true U 1; and,
analogously for the past, 3 1, for true S 1.</p>
        <p>The answers to TCQs are mappings from the variables and individual names
occurring in the query to elements of the domain of a given interpretation. We
start by de ning the semantics of CQs for Boolean queries as usual, through the
notion of homomorphisms. Let (x) = 9y: 0(x; y) be a CQ, a = (a1; : : : ; am)
be a tuple of individual names, of same arity as the tuple x, and I = ( I ; I )
be an interpretation. A mapping from the variables and individual names that
occur in to the elements of I is a homomorphism of (a1; : : : ; am) into I if
{ (xi) = (ai), for all 1 i m;
{ (a) = aI , for all individual names a occurring in ;
{ (t) 2 AI , for all concept atoms A(t) in ; and
{ ( (t1); (t2)) 2 RI , for all role atoms R(t1; t2) in .</p>
        <p>Let now be a TCQ, a be a mapping from the distinguished variables in
to individual names, and I = (Ii)i 0 be an in nite sequence of interpretations.
We de ne the satisfaction relation I; i j= a( ) by induction on the structure
of based on Table 5.1; that is, I; i modelsha( ); di i (a( ))I;i d. Given a
TKB K, we say that a is a certain answer to w.r.t. K at time point i, written
K; i j= a( ), if we have I; i j= a( ), for all models I of K.
5.2</p>
      </sec>
      <sec id="sec-5-2">
        <title>An Algorithm for Answering TFCQs</title>
        <p>Our algorithm to answer a TFCQ on fuzzy and temporal data is again a modi ed
OBDA approach, which rewrites the given query into a standard database query.
Here the rewritten query encodes the relevant ontological knowledge, the
temporal conditions, and the membership variables, but addresses a general database.
The algorithm to rewrite TFCQs is based on the following rewriting approach:</p>
        <p>Assume, a TFCQ t in TSPARQL is given, then the procedure SQLif y( t)
rewrites t into a SQL query (see Algorithm 1). First the algorithm stores the
nested list of LTL-operators as they appear in the input TFCQ t. Then the
algorithm is applied to each sub-TFCQ in t recursively until the considered
subquery is a plain CQ. This CQ then undergoes the two-step rewriting procedure
described in Section 3: rst the CQ is extended by information from the
ontology and then fuzzi ed by adding the membership degrees and degree variables
to generate the corresponding membership degrees from the data. Subsequently,
the extended and fuzzi ed CQs are recombined according to the nested list of
temporal operators stored in the beginning.</p>
        <p>Algorithm 1 TFCQ to SQL rewriting</p>
        <p>
          Consider the query: t = (# 1 ^(# # 2)) S 3. Recall that the function
SQLif y separates the temporal operators and thus splits the given query. As an
example, we regard the rewriting SQLif y(# 1). Since 1 is a plain CQ, it is
extended and fuzzi ed as outlined above. The nal rewriting obtained from the
call SQLif y( t; T ) can then be evaluated over a common relational database,
and the obtained answers represent the answers to the query t w.r.t. T , with
respect to fuzzy data.
The idea for an implementation is to reuse existing tools to provide fast and e
cient query answering even over large datasets. Techniques developed in FLite
for fast query answering on fuzzy ontologies and in QuAnTOn [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ] for temporal
OBDA need to be combined in a single application, which allows for temporal
OBDA over fuzzy data. Furthermore, an ABox generator needs to transform
streaming data into the sequence of ABoxes, each with fuzzy information. An
overview of the idea of such a system is given in Figure 3. The system input
consists of (i) (possibly fuzzy) data referencing di erent time points, (ii) a pair
( t; d) containing a TFCQ t and a degree d, and (iii) an ontology. The
system then rewrites the query as described in the previous section and evaluates
the rewritten query, fT;t, over a MySQL database. This evaluation yields a set
of answer tuples with corresponding degrees. The system then returns those of
these answers whose degree is d.
        </p>
        <p>0 1 1 0
0 0 1 1
1 0 0 0
10 S01tream01s 01
1 0 0 0
1 1 1 1
0 1 1 1
0ABo0x gen1erato0r
Sequence of ABoxes</p>
        <p>TCQ
+</p>
        <p>Degree
Ontology</p>
        <p>Timestamp</p>
        <p>Separate Temporal</p>
        <p>Operators from</p>
        <p>Query
We have presented a pragmatic approach for answering (temporal) fuzzy
conjunctive queries over (sequences of) fuzzy ABoxes and with respect to
DL-LiteRontologies. Our approach uses separate rewriting steps to incorporate
ontological, fuzzy and temporal information. This allows to make use of standard query
rewriting engines for the rst step. Although described here for DL-LiteR, our
approach can be extended to other DLs that enjoy FOL rewritability. We have
implemented our approach in the FLite system and evaluated it against the
Ontop reasoner for ABoxes of varying size. Our evaluation gave evidence that
there is a substantial, albeit almost only linear increase of run-time for large
ABoxes, when fuzzy information is queried. Furthermore, we presented an
approach for temporal fuzzy query answering, which combines two rewriting-based
query answering algorithms. A thorough investigation of this subject remains
future work.
20. T. Venetis, G. Stoilos, and G. Stamou. Query Extensions and Incremental Query
Rewriting for OWL 2 QL Ontologies. Journal on Data Semantics, pages 1{23,
2014.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Acciarri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Palmieri</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          . QUONTO:
          <article-title>Querying Ontologies</article-title>
          .
          <source>In AAAI</source>
          , pages
          <volume>1670</volume>
          {
          <fpage>1671</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>A.</given-names>
            <surname>Artale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>The DL-Lite Family and Relations</article-title>
          .
          <source>Journal of arti cial intelligence research</source>
          ,
          <volume>36</volume>
          (
          <issue>1</issue>
          ):1{
          <fpage>69</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>F.</given-names>
            <surname>Bobillo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Delgado</surname>
          </string-name>
          , and J.
          <string-name>
            <surname>Gomez-Romero</surname>
          </string-name>
          .
          <article-title>Reasoning in Fuzzy OWL 2 with DeLorean</article-title>
          .
          <source>In Uncertainty Reasoning for the Semantic Web II</source>
          , pages
          <volume>119</volume>
          {
          <fpage>138</fpage>
          .
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>F.</given-names>
            <surname>Bobillo</surname>
          </string-name>
          and
          <string-name>
            <given-names>U.</given-names>
            <surname>Straccia</surname>
          </string-name>
          . fuzzyDL:
          <article-title>An Expressive Fuzzy Description logic Reasoner</article-title>
          .
          <source>In FUZZ-IEEE</source>
          , pages
          <volume>923</volume>
          {
          <fpage>930</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>S.</given-names>
            <surname>Borgwardt</surname>
          </string-name>
          , M. Lippmann, and
          <string-name>
            <given-names>V.</given-names>
            <surname>Thost</surname>
          </string-name>
          .
          <article-title>Temporalizing rewritable query languages over knowledge bases</article-title>
          .
          <source>Journal of Web Semantics</source>
          ,
          <year>2015</year>
          . In press.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>RodriguezMuro, and</article-title>
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          . Ontologies and
          <string-name>
            <surname>Databases: The DL-Lite Approach</surname>
          </string-name>
          .
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </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, 39</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>D.</given-names>
            <surname>Lanti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rezk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Slusnys</surname>
          </string-name>
          , G. Xiao, and
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          .
          <article-title>The NPD Benchmark for OBDA Systems</article-title>
          .
          <source>In 10th International Workshop on Scalable Semantic Web Knowledge Base Systems (SSWS</source>
          <year>2014</year>
          ), page 3,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>T.</given-names>
            <surname>Mailis</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.-Y.</given-names>
            <surname>Turhan</surname>
          </string-name>
          .
          <article-title>Employing DL-LiteR-Reasoners for Fuzzy Query Answering</article-title>
          .
          <source>In Proceedings of the 4th Joint International Semantic Technology Conference (JIST2014)</source>
          , LNCS,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>J. Z. Pan</surname>
            , E. Thomas, and
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Sleeman</surname>
          </string-name>
          .
          <article-title>Ontosearch2: Searching and querying web ontologies</article-title>
          .
          <source>Proc. of WWW/Internet</source>
          ,
          <year>2006</year>
          :
          <volume>211</volume>
          {
          <fpage>218</fpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rodriguez</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Ruzzi</surname>
          </string-name>
          .
          <article-title>Ontology-based database access with DIGMastro and the OBDA Plugin for Protege</article-title>
          .
          <source>In Proc. of OWLED</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. M.
          <string-name>
            <surname>Rodriguez-Muro</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Hardi</surname>
            , and
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Calvanese</surname>
          </string-name>
          . Quest:
          <article-title>E cient SPARQL-to-SQL for RDF and OWL</article-title>
          .
          <source>In 11th International Semantic Web Conference ISWC</source>
          <year>2012</year>
          , page
          <volume>53</volume>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. M.
          <string-name>
            <surname>Rodriguez-Muro</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Kontchakov</surname>
            , and
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Ontology-Based Data Access: Ontop of Databases</article-title>
          .
          <source>In International Semantic Web Conference (1)</source>
          , volume
          <volume>8218</volume>
          <source>of LNCS</source>
          , pages
          <volume>558</volume>
          {
          <fpage>573</fpage>
          . Springer,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>M.</given-names>
            <surname>Stocker</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Smith. Owlgres: A Scalable OWL</surname>
          </string-name>
          <article-title>Reasoner</article-title>
          .
          <source>In OWLED</source>
          , volume
          <volume>432</volume>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15. G. Stoilos,
          <string-name>
            <given-names>N.</given-names>
            <surname>Simou</surname>
          </string-name>
          , G. Stamou, and
          <string-name>
            <given-names>S.</given-names>
            <surname>Kollias</surname>
          </string-name>
          .
          <article-title>Uncertainty and the Semantic Web</article-title>
          .
          <source>Intelligent Systems</source>
          ,
          <volume>21</volume>
          (
          <issue>5</issue>
          ):
          <volume>84</volume>
          {
          <fpage>87</fpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16. U. Straccia.
          <article-title>SoftFacts: A Top-k Retrieval Engine for Ontology Mediated Access to Relational Databases</article-title>
          .
          <source>In Systems Man and Cybernetics</source>
          (SMC),
          <year>2010</year>
          IEEE International Conference on, pages
          <volume>4115</volume>
          {
          <fpage>4122</fpage>
          . IEEE,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <given-names>V.</given-names>
            <surname>Thost</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Holste</surname>
          </string-name>
          , and
          <string-name>
            <surname>O.</surname>
          </string-name>
          <article-title>Ozcep</article-title>
          .
          <article-title>On implementing temporal query answering in dl-lite (extended abstract)</article-title>
          .
          <source>In Proceedings of the 28th International Workshop on Description Logics (DL-2015)</source>
          , Athens, Greece,
          <year>2015</year>
          . CEUR Workshop Proceedings.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <given-names>V.</given-names>
            <surname>Thost</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Holste</surname>
          </string-name>
          , and
          <string-name>
            <surname>O</surname>
          </string-name>
          <article-title>zgur Ozcep</article-title>
          .
          <article-title>On implementing temporal query answering in DL-Lite</article-title>
          .
          <source>LTCS-Report 15-12</source>
          ,
          <article-title>Chair for Automata Theory</article-title>
          , TU Dresden, Germany,
          <year>2015</year>
          . See http://lat.inf.tu-dresden.de/research/reports.html.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <given-names>D.</given-names>
            <surname>Tsatsou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Dasiopoulou</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Kompatsiaris</surname>
          </string-name>
          , and
          <string-name>
            <given-names>V.</given-names>
            <surname>Mezaris</surname>
          </string-name>
          .
          <article-title>LiFR: A Lightweight Fuzzy DL Reasoner</article-title>
          . In The Semantic Web:
          <article-title>ESWC 2014 Satellite Events</article-title>
          , pages
          <volume>263</volume>
          {
          <fpage>267</fpage>
          .
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>