<!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>Reasoning with Temporal aboxes: Combining dl-litecore with ctl</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Universita Politecnica delle Marche</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>via Brecce Bianche</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ancona</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Italy.</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>pagliarecci</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>spalazzi</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>g.taccari}@dii.univpm.it</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>The work shows the combination of standard description logics (DLs) with standard temporal logics (TLs). Indeed, the introduction of DLs as logic-based knowledge representation formalisms has emerged in many elds and many applications have taken advantage from it. Although that, in many of these applications also temporal aspects play an important role. It follows that a new formalism is needed in order to represent both terminological and temporal knowledge. At this aim, the majority of research works proposed the combination of DLs and TLs producing a new formalism to knowledge representation: temporal description logics (TDLs). This work illustrates the combination of the dl-litecore description logic with the temporal logic ctl. It de nes a temporal knowledge base with time-invariant tbox and time-variant abox. Furthermore an algorithm based on semantic model checking is proposed in order to query the knowledge base.</p>
      </abstract>
      <kwd-group>
        <kwd>Description Logics</kwd>
        <kwd>Temporal Logics</kwd>
        <kwd>Semantic Web</kwd>
        <kwd>dl-lite</kwd>
        <kwd>ctl</kwd>
        <kwd>Model Checking</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Recent work in service oriented architectures, business processes, databases
focused on the need of dealing both with facts and processes [1{10]. In particular,
the Temporal Description Logic is becoming more and more used for such a
kind of problems [1, 4, 8{10]. Nevertheless, reasoning and query answering for a
Temporal Description Logic is, in general, untractable or even undecidable
(depending on which kind of Descrption Logic and which kind of Temporal Logic
are considered [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]). This is due to the fact that in general a temporal
knowledge base consists of a time-variant tbox and a time-variant abox, the abox
is de ned according to an intensional de nition, with a time-variant domain,
under the Open World Assumption. As a consequence, several authors studied
how complexity can be reduced for speci c types of Temporal Description Logics
where some of the above assumptions are dropped [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>This paper presents a minimalistic approach based on a temporal knowledge
base where the tbox is time invariant, the abox is de ned in an extensional
fashion, the domain is constant, and the Closed World Assumption is adopted.
The above choices allows us to obtain a tractable query answering algorithm
that can be still used in several problems of practical interest, e.g. selection
and composition of semantic web services, veri cation of business processes,
management of e-learning processes.</p>
      <p>The paper is structured as follows. Section 2 shows works that deal with
temporal description logics. Section 3 depicts the temporal knowledge base proposed
in this work. Section 4 illustrates the syntax and the semantics of temporal
conjunctive queries used to query the temporal knowledge base. In 5 is shown the
temporal conjunctive query answering algorithm based on propositional model
checking. Finally, Section 6 closes the paper discussing the obtained results and
some comparisons with other works are given. Finally, it will be proposed the
future work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        In the recent years many works focused on Temporal Description Logics [
        <xref ref-type="bibr" rid="ref11 ref12">12,
11</xref>
        ]. They mostly inspect how terminological aspects can be combined with
temporal ones and evaluate the complexity of reasoning with such logics based on
two-dimensional semantics [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. Furthermore, other works introduce temporal
description logics in order to deal with particular knowledge base query
problems in several application elds.
      </p>
      <p>
        Some works deal with web services specially for discovery, selection and
composition[1, 14{16, 4]. Agarwal [
        <xref ref-type="bibr" rid="ref1 ref14">1, 14</xref>
        ] integrates the description logics SHIQ(D)
and SHOIN (D) with the temporal description logic -calculus. The goal of
the work is the de nition of a speci cation language for discovery, selection and
composition of web services. The works proposed by Pistore et al. [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] and Di
Pietro et al. [
        <xref ref-type="bibr" rid="ref16 ref4">16, 4</xref>
        ] deal with semantic web services selection using semantic
model checking over the behavior description of services.
      </p>
      <p>
        Weitl et al. [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] integrate the description logic ALC with the temporal logic
ctl. in order to automate the veri cation of semi-structured documents. In that
work, each proposition that appears in a ctl formula is a description logic axiom,
i.e. a tbox statement. In a further work [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], they deal also with the generation of
a more precise and comprehensible couterexample than the previous algorithm.
      </p>
      <p>
        Hariri et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] introduce the so-called Knowledge and Action Bases (KABs).
A KAB is a knowledge base composed by a time invariant tbox expressed in
dl-lite and a variable abox. Starting from an initial state of the knowledge
base abox, its consecutive states are determined by executing conditioned
actions over the abox. KAB properties veri cation is done using the -calculus
temporal logic enriched with conjunctive queries. Baader et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] develop a
mechanism to temporalizing Ontology-Based Data Access (OBDA). They de ne
a temporal knowledge base composed by a time invariant tbox and a sequence
of aboxes that describes the observations about the state of a system of interest.
Such knowledge base can be interrogated with temporal speci cations based on
conjunctive queries and LTL temporal logic.
      </p>
      <p>Temporal Knowledge Base Representation
In general, a temporal knowledge base can be de ned as follows:
De nition 1 (Temporal Knowledge Base). A Temporal Knowledge Base
K = hTi; Aiii 0 consists of a sequence of tuples hTi; Aii which vary in respect
to time instants i 0, where: Ti and Ai are respectively the terminological part
( tbox) and the assertional part ( abox) of the knowledge base at instant i.</p>
      <p>
        In literature [
        <xref ref-type="bibr" rid="ref11 ref12">12, 11</xref>
        ] many approaches are proposed in order to specialize the
general de nition of temporal knowledge base. Several of them focus on the
definition of temporal description logics and, consequently, accomplish specialized
knowledge bases suitable for the logics. The main elements that can be vary in
order to realize di erent temporal knowledge bases are the following. The domain
      </p>
      <p>I of the interpretation I = ( I ; I ) may be constant or vary over the time.
The closed or open world assumption which determines whether the information
available is complete or not. Furthermore both tboxes and aboxes may vary
over the time. Finally, concerning the assertional part of the knowledge base,
aboxes evolution can be intesionally or extensionally de ned. Those temporal
knowledge base design choices in uence the knowledge base expressiveness and
complexity. In the following are shown and explained the choices taken for this
work.</p>
      <p>
        First of all, it is supposed to have a constant (constant domain assumption
[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]) and nite domain and the knowledge base makes use of the closed world
assumption. This means that the domain does not depend on time instant and
that the available information is complete. The above assumptions make feasible
model checking as described in section 5.
      </p>
      <p>According to De nition 1, a temporal knowledge base is formed by two
components: tbox (the terminological part, i.e. a set of concepts) and abox (the
assertional part, i.e. a set of facts). For the purpose of this work, it is taken
account of dl-litecore [19{21].</p>
      <p>In this description logic tbox statements are restricted only to inclusion
statements (see Table 1.b). Intuitively, we can model an ontology only by means
of subsumption between concepts, i.e. Cl v Cr. Notice that the tbox statement
Cl1 t Cl2 v Cr is equivalent to the pair of statements Cl1 v Cr and Cl2 v Cr,
and that Cl v Cr1 u Cr2 is equivalent to Cl v Cr1 and Cl v Cr2. In this very
simple but still expressive logic, concepts and roles are de ned as follows:
Cl ! A j 9R
Cr ! A j 9R j :A j :9R</p>
      <p>R ! P j P</p>
      <p>Concerning an abox, intuitively it may represent the data of a knowledge
base. An abox contains statements (or assertions) as described in Table 1.c.
Intuitively, a concept assertion a:A (or A(a)) means that the individual denoted
by constant a is an instance of concept A. A role assertion a:P = b (or P (a; b))
means that the pair of individuals (a; b) is an instance of role P , in other words
a given individual b is a value for the role P of a.</p>
      <p>
        The conjunctive query answering problem has a polynomial time complexity
with this kind of description logic [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ].
      </p>
      <p>
        Concerning the representation of temporal aspects, the knowledge base
presented here uses temporal aboxes (according to the de nition in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]), i.e. a
time-invariant tbox and a time-variant abox. Therefore an abox represents the
state of a temporal knowledge base in a precise temporal instant. A time-variant
abox can be represented according to either an intensional de nition (e.g. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]) or
an estensional de nition. In order to make feasible the query answering problem,
in the work proposed in this paper, an estensional de nition is adopted.
      </p>
      <p>
        Borrowing the notions of state and state transitions from the formal methods
eld [
        <xref ref-type="bibr" rid="ref22 ref23">22, 23</xref>
        ], the temporal aspect of the knowledge base can be modeled as a state
transition system on which, for each state, an abox is de ned. Indeed, the state
of a system can usually be described by the values of a set of variables. These
values change in the course of time and the changes are called state transitions.
Some states are marked as initial states in order to represent the values that the
system variables may have at the beginning (at time zero). These models usually
assume that each state contains su cient information to allow future behavior
to be determined only by the current state, and not by its past history; this
is an example of the so-called Markovian process. In this work, a kind of state
transition system is proposed which is called an annotated state transition system
(asts). A transition relation describes how the state can evolve, therefore which
aboxes at instant (t + 1) can be reached from an abox at instant t. Formally
speaking:
De nition 2 (Annotated State Transition System). Let T be the
terminological part ( tbox) of a description logic. An annotated state transition system
A de ned over a state transition system is a tuple hT ; ; i where:
T is the terminological part ( tbox) of a description logic,
      </p>
      <p>= hS; S0; Ri is the state transition system,
S is the nite set of states;
S0 S is the set of initial states;
R S S is the transition relation;</p>
      <p>: S ! 2AT is the annotation function, where AT is the set of all the concept
assertions and role assertions de ned over T .</p>
      <p>As a result of the formalization of the temporal aspects of the temporal
knowledge base follows the following de nition which details De nition 1:
De nition 3 (Temporal aboxes Knowledge Base). Let A = hT ; ; i be
an asts. Let K = hTi; Aiii 0 a temporal knowledge base. Then K is a Temporal
aboxes Knowledge Base if and only if:
8i Ti = T ,
8i 9 si 2 S such that Ai = (si).</p>
      <p>The temporal knowledge base evolution can be seen as (potentially unlimited)
sequences of tuples hT ; (si)i where (si) is the abox on the state si at time
instant i of the state transition system = hS; S0; Ri.
4</p>
    </sec>
    <sec id="sec-3">
      <title>Integrating dl-lite with ctl</title>
      <p>
        As proposed by Baader et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and extending the de nition of conjunctive
query of description logics, the Temporal Conjunctive Query can be formally
de ned as follows:
De nition 4 (Temporal Conjunctive Query). Let A be an asts. Let K
be a temporal aboxes knowledge base de ned over A. Then, a temporal
conjunctive query which refers to K is recursively de ned as follows:
= q j ^ j _ j : j
      </p>
      <p>AF j AG j EF j EG
!</p>
      <p>j
j AX
A ( U
) j E ( U
) j A (</p>
      <p>R
j EX
) j E (
j
R )
where q is a conjunctive query.</p>
      <p>
        Intuitively, the temporal conjunctive query is a combination of conjunctive
queries tied together by means of both propositional and temporal operators.
Each conjunctive query q has the form q = ^ipi(xi), where: pi(xi) is either xi : Ci
or xi;1:Ri = xi;2; and xi; xi;1; xi;2 are variables or individuals. Assuming that
V(q) denotes the set of variables of q and C(q) denotes the set of individuals
of q, then VC(q) = V(q) [ C(q) denotes the set of variables and individuals of
q. When V(q) = ;, q is a ground conjunctive query, i.e. it is a conjunction of
assertions. The de nition of V is extended to temporal conjunctive queries as
follows: V( (q1; : : : ; qm)) = V(q1) [ V(q2) [ : : : V(qm). The de nition of C and
VC can be extended in a similar way. When V( (q1; : : : ; qm)) = ;, (q1; : : : ; qm)
is a ground temporal conjunctive query. Obviously, it is possible to annotate
other temporal languages (e.g. ltl [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ], or -calculus [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ]), but for the sake of
complexity, the annotation of ctl formulas is enough.
      </p>
      <p>The semantics of a temporal conjunctive query is inductively de ned in two
steps:
| rst, the semantics of a conjunctive query is the base case;
| second, the semantics of a temporal conjunctive query is the inductive step
based on the semantics of ctl.</p>
      <p>
        The semantics of a conjunctive query is based on the semantics of the
underlying description logic, as reported in [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ]. This means that the semantics of a
conjunctive query can be viewed in terms of tables of a relational database. q(x)
is the schema of the table (i.e. the relation schema) and I(q(x); s) is an instance
of the table (i.e. a relation instance), in other words a set of tuples that hold
in state s. Each tuple a is an assignment to x that answers to query q in the
abox (s).
      </p>
      <p>
        ctl is a propositional, branching-time, temporal logic that has Kripke
semantics [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ]. Intuitively, a temporal condition must be veri ed along all possible
computation paths (state sequences) starting from the current state. Formally:
a computation path is an in nite sequence hs0; s1; s2; : : : ; i of states in S such
that 8i:9 : si ! si+1 2 R: Concerning the temporal operators (i.e., AF, EF,
AX, and so on), they maintain the same intuitive meaning that they have in
standard ctl. Here, the only di erence is that there are conjunctive queries instead
of propositions.
      </p>
      <p>As a consequence, the semantics of a temporal conjunctive query can be
de ned as follows:
De nition 5 (Semantics of a Temporal Conjunctive Query). Let K be
a temporal aboxes knowledge base de ned over A. Let q[x] be a conjunctive
query over K such that x = fx1; : : : ; xng. Let and be temporal conjunctive
queries. Then:</p>
      <p>K; s j= q[x] i 9 a:I(a) 2 ( I )n and hT ; (s)i j= q[x=a]
K; s j= ^ i K; s j= and K; s j=
K; s j= : i K; s 6j=
K; s j= EX i 9hsi; s(i+1); s(i+2); : : : ; i such that s = si and K; s(i+1) j=
K; s j= EG i 9hsi; s(i+1); s(i+2); : : : ; i such that s = si and
8j 0 . K; s(i+j) j=
K; s j= E ( U ) i 9hsi; s(i+1); s(i+2); : : : ; i such that s = si and
9j:(K; s(i+j) j= and 8k &lt; j:K; s(i+k) j= )</p>
      <p>
        Notice that the constant domain assumption has been adopted, i.e.
individuals are never destroyed or created over time [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] ( I is always the same for each
state). The semantics of the other operators (i.e. _, !, EF, AF AG, EG, AX, EX,
E(.R.), A(.U .), A(.R.)) can easily be derived from the semantics of the minimal
set of operators by means of the following equivalences:
      </p>
      <p>A( U ) :E(: U (: ^ : )) ^ :EG:
AF :EG: EF E(true U )
AG :EF: E( R ) :A(: U : )</p>
      <p>AX :EX: A( R ) :E(: U : )
5</p>
    </sec>
    <sec id="sec-4">
      <title>Temporal Conjunctive Query Answering</title>
      <p>The temporal conjunctive query answering involves two problems: the entailment
problem and the answering problem.</p>
      <p>Regarding the rst problem, the following de nition is given:
De nition 6 (Entailment Problem). Let be a temporal conjunctive query.
Let K be a temporal aboxes knowledge base de ned over A. The Entailment
Problem consists in deciding whether the temporal aboxes knowledge base K
satis es the temporal conjunctive query . Formally:
In other words, the entailment problem aims at checking whether a temporal
knowledge base verify a given temporal speci cation or not. As a consequence,
the result of this problem is a boolean value: true or false. The entailment
problem does not give information about the temporal knowledge base data. Indeed,
in most of the cases the goal of querying a knowledge base is to retrieve data
that satisfy a given query. This problem can be de ned as follows:
De nition 7 (Answering Problem). Let be a temporal conjunctive query.
Let K be a temporal aboxes knowledge base de ned over A. The Answering
Problem aims at searching all the individuals in the temporal knowledge base K
which satis es the temporal conjunctive query . Formally:</p>
      <p>Ans(K; [x]) = fa j I(a) 2 ( I )n and 9 s 2 S0; K; s j= [x=a]g
where: x is an n-tuple denoting the variables of the temporal conjunctive query
and a is an n-tuple of individuals that can be assigned to x.</p>
      <p>It is clear that the Answering Problem (De nition 7) is tied with the
Entailment Problem (De nition 6): the former checks whether a temporal conjuctive
query models or not a temporal aboxes knowledge base and the latter gives the
instances tuples which satis es the query. It follows the proposition:
Proposition 1 (Temporal Conjunctive Query Answering). Let K be a
temporal aboxes knowledge base de ned over A. Let be a temporal conjunctive
query. Let Ans(K; [x]) be the outcome of the answering problem resulting by
querying the temporal knowledge base K with the temporal conjunctive query .
Then:</p>
      <p>K j=
i</p>
      <p>Ans(K; [x]) 6= ;</p>
      <p>
        In order to deal with both the problems de ned above, this work takes
advantage of the work by Di Pietro et al. [
        <xref ref-type="bibr" rid="ref16 ref4">16, 4</xref>
        ] regarding semantic model checking
for the semantic web service selection. They proposed four steps in order to
verify whether a temporal speci cation matches a service process or not. Their
algorithm can be used to deal with the temporal knowledge base proposed in
this work.
      </p>
      <p>De nition 8 (Semantic Model Checking Result). Let A be an asts. Let
s 2 S be an asts state. Let [x] be a temporal conjunctive query and [x=a] be
the related formula obtained by assigning a to x. Let A; s ` [x=a] denote that,
according to the semantic model checker, [x=a] is true which refers to A and
state s. Then, the outcome of the semantic model checker is de ned as follows:
smc( A; [x]) = fa j I(a) 2 ( I )n and 9 s 2 S0;
A; s ` [x=a]g</p>
      <p>The fact that there exists at least an assignment (i.e. smc( A; [x]) 6= ;) is
denoted as: A ` .</p>
      <p>
        For the sake of space, here it is reported only a short introduction to such
an algorithm. The reader may refer to [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for a more detailed description and
to Appendix A for the pseudocode of the semantic model checking algorithm.
The steps of the algorithm are the following. First, a given temporal conjunctive
query is translated into its positive normal form (temporal conjunctive query
normalization), a more convenient form for the semantic model checking algorithm.
The normal form can be obtained by pushing negations inward as far as possible.
Then, temporal knowledge base grounding consists in applying to each abox in
      </p>
      <p>A, each conjunctive query in . This step aims at mapping conjunctive queries
in into propositions in order to obtain a nite sts. According to the closed
world assumption, when a conjunctive query has a non-empty answer in a given
state (abox), the corresponding proposition is set to true in that state, to false
otherwise. All the assignments, that represent an answer for any conjunctive
query, are joined in a table called Asser in the algorithms in Appendix A.
Regarding the query, temporal conjunctive query grounding is performed to obtain
a set of propositional queries containing conditions on state propositions in place
of queries of the original formula . Considering the closed world assumption,
this step generates a set of propositional (ground) temporal speci cations, one
for each tuple in table Asser. At this point, the entailment problem has been
reduced into a propositional model checking problem. Therefore, propositional
model checking aims at verifying for each tuple in Asser whether the related
propositional temporal speci cation is satis ed. If so, the tuple is inserted in
smc( A; ). At the end, smc( A; ) contains all the answers to the temporal
conjunctive query.</p>
      <p>Now it is possible to state the following theorem about the soundness and
completeness of the proposed approach.</p>
      <p>Theorem 1 (Soundness &amp; Completeness).</p>
      <p>A; s `</p>
      <p>A
`
i
i</p>
      <p>
        K; s j=
Proof. [Hint] The proof of (1) is reported in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. From (1) it follows that
smc( A; [x]) = Ans(K; [x]). Hence, it follows (2)
      </p>
      <p>Given that the entailment and answering problems (De nitions 6 and 7) are
solved using semantic model checking, their complexities can be evaluated with
the complexity of the semantic model checking algorithm. It follows:
Theorem 2 (Complexity). The semantic model checking algorithm is
decidable in time</p>
      <p>max(O(j Aj j j jCQAj) ; O(j Aj jM Cj))
where j Aj is proportional to the number and size of the states, j j is proportional
to the length of , jCQAj is the complexity of conjunctive query answering, and
jM Cj is the complexity of propositional temporal logic model checking.
Proof. [Hint] The semantic model checking algorithm calls the conjunctive query
answering algorithm n j S j times, where n is the number of conjunctive queries
in the temporal speci cation (proportional to j j) and j S j is the number of
states (it is proportional to j Aj). The result of conjunctive query answering
is used to build a set of propositions whose number is less than or equal to
m j ( I )h j. The algorithm builds a join table in polynomial time. From this
table, a set of propositional temporal speci cations is built in polynomial time.
Finally, the semantic model checking algorithm performs a traditional
propositional temporal logic model checking a number of times that is proportional to
the size of the join table. The size of the join table depends on the number of
individuals in I and, thus, on j Aj.
6</p>
    </sec>
    <sec id="sec-5">
      <title>Discussion and Conclusion</title>
      <p>In this paper is presented a minimalistic approach to the problem of query
answering in temporal knowledge bases.</p>
      <p>
        Results reported in Section 5 show how temporal reasoning with a temporal
knowledge base, under the minimalistic approach (i.e. the assumptions
introduced in Section 3: dl-litecore, ctl, time invariant tbox, time variant abox,
constant and nite domain, closed-world assumption) is tractable. Up to now,
such an approach has been con rmed to be useful to solve several veri cation
(entailment) problems: semantic web service identi cation [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ], selection [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ],
composition [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], and security [
        <xref ref-type="bibr" rid="ref28">28</xref>
        ]. Furthermore, its application to entailment
problems ranges from business processes [
        <xref ref-type="bibr" rid="ref29">29</xref>
        ] to e-learning processes [
        <xref ref-type="bibr" rid="ref30">30</xref>
        ]. The
original contribution of this paper consists in proposing to apply the minimalistic
approach to query-answering problems as well, maintaining the same complexity
and the same assumptions. As a matter of fact, it is still possible to use the same
semantic model checking algorithm (as discussed in Section 5). Some practical
experiments in real world applications of the proposed approach to temporal
query-answering has been planned as future work.
      </p>
    </sec>
    <sec id="sec-6">
      <title>Algorithms</title>
      <p>tcq normalization(in: ; out: 0);
tkb grounding (in: A; 0; out: ; Asser);
tcq grounding (in: 0; Asser; out: )
b := f alse;
smc( A; ) := ;
for each '(r) 2 do
f
if prop model checking (in: ; '(r)) then
b := true
smc( A; ) := smc( A; ) [ frg</p>
      <p>Fig. 1. The semantic model checking algorithm.
Algorithm 2: tkb grounding
input : A = hhS; S0; Ri; T ; i /* asts */</p>
      <p>0 = 0(q1; : : : ; qm) /* Temporal conjunctive query */
output: = hhS; S0; Ri; P; X i /* Finite sts */</p>
      <p>Asser /* Join of all the tables */
:= ;;
P := ;
for each qi (1 i
for each s 2 S do f
for each a : C 2 (s) do
for each a:R = b 2 (s) do
g
for each s 2 S do f</p>
      <p>X (s) := ; ;
for each qi (1 i m) do f</p>
      <p>I(qi; s) := cq answering(qi; hT ; (s)i);
if :qi 2 0 then</p>
      <p>I(qi; s) := h n I(qi; s);
Asser(qi) := Asser(qi) [ I(qi; s);
for each pj (xj ) 2 qi do
for each r 2 xj (I(qi; s)) do f
:=
:=
[ fag;</p>
      <p>[ fa; bg;
P := P [ fP ROP (pj (r))g;
if not (:qi 2 0) then</p>
      <p>X (s) := X (s) [ fP ROP (pj (r))g;
else if hT ; (s)i ` pj (r)</p>
      <p>X (s) := X (s) [ fP ROP (pj (r))g;</p>
      <p>:= ;;
for each r 2 Asser do f
'(r) := 0;
for each x 2 V( 0) do
/* substitute each occurence of x with x(r) */
'(r) := '[x= x(r)];
:= [ f'(r)g;</p>
      <p>Fig. 3. The temporal conjunctive query grounding algorithm.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>S.</given-names>
            <surname>Agarwal</surname>
          </string-name>
          .
          <article-title>A goal speci cation language for automated discovery and composition of web services</article-title>
          .
          <source>In International Conference on Web Intelligence</source>
          , Silicon Valley, USA,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>A.</given-names>
            <surname>Deutsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Sui</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Vianu</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          .
          <article-title>Veri cation of communicating datadriven web services</article-title>
          .
          <source>In PODS '06: Proceedings of the twenty- fth ACM SIGMODSIGACT-SIGART symposium on Principles of database systems</source>
          , pages
          <volume>90</volume>
          {
          <fpage>99</fpage>
          , New York, NY, USA,
          <year>2006</year>
          . ACM.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Victor</given-names>
            <surname>Vianu</surname>
          </string-name>
          .
          <article-title>Automatic veri cation of database-driven systems: a new frontier</article-title>
          .
          <source>In Proceedings of the 12th International Conference on Database Theory</source>
          , pages
          <volume>1</volume>
          {
          <fpage>13</fpage>
          . ACM,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>I. Di</given-names>
            <surname>Pietro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pagliarecci</surname>
          </string-name>
          , and
          <string-name>
            <given-names>L.</given-names>
            <surname>Spalazzi</surname>
          </string-name>
          .
          <article-title>Model checking semantically annotated services</article-title>
          .
          <source>Software Engineering</source>
          , IEEE Transactions on,
          <volume>38</volume>
          (
          <issue>3</issue>
          ):
          <volume>592</volume>
          {
          <fpage>608</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>S.</given-names>
            <surname>Halle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Villemaire</surname>
          </string-name>
          , and
          <string-name>
            <given-names>O.</given-names>
            <surname>Cherkaoui</surname>
          </string-name>
          .
          <article-title>Specifying and validating data-aware temporal web service properties</article-title>
          .
          <source>IEEE Trans. on Software Engineering</source>
          ,
          <volume>99</volume>
          (
          <issue>2</issue>
          ):
          <volume>669</volume>
          {
          <fpage>683</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Daniela</given-names>
            <surname>Grigori</surname>
          </string-name>
          , Juan Carlos Corrales, Mokrane Bouzeghoub, and
          <string-name>
            <given-names>Ahmed</given-names>
            <surname>Gater</surname>
          </string-name>
          .
          <article-title>Ranking bpel processes for service discovery</article-title>
          .
          <source>Services Computing</source>
          , IEEE Transactions on,
          <volume>3</volume>
          (
          <issue>3</issue>
          ):
          <volume>178</volume>
          {
          <fpage>192</fpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Ahmed</given-names>
            <surname>Awad</surname>
          </string-name>
          , Artem Polyvyanyy, and
          <string-name>
            <given-names>Mathias</given-names>
            <surname>Weske</surname>
          </string-name>
          .
          <article-title>Semantic querying of business process models</article-title>
          .
          <source>In Enterprise Distributed Object Computing Conference</source>
          ,
          <year>2008</year>
          . EDOC'
          <volume>08</volume>
          . 12th International IEEE, pages
          <volume>85</volume>
          {
          <fpage>94</fpage>
          . IEEE,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Babak</given-names>
            <surname>Bagheri</surname>
          </string-name>
          <string-name>
            <surname>Hariri</surname>
          </string-name>
          , Diego Calvanese, Giuseppe De Giacomo, Riccardo De Masellis, Paolo Felli, and
          <string-name>
            <given-names>Marco</given-names>
            <surname>Montali</surname>
          </string-name>
          .
          <article-title>Veri cation of description logic knowledge and action bases</article-title>
          .
          <source>In Proc. of the 20th Eur. Conf. on Arti cial Intelligence (ECAI</source>
          <year>2012</year>
          ),
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Franz</given-names>
            <surname>Baader</surname>
          </string-name>
          , Stefan Borgwardt, and Marcel Lippmann.
          <article-title>Temporalizing ontologybased data access</article-title>
          .
          <source>In Proceedings of the 24th International Conference on Automated Deduction (CADE-24), Lecture Notes in Arti cial Intelligence</source>
          , Lake Placid,
          <string-name>
            <surname>NY</surname>
          </string-name>
          , USA,
          <year>2013</year>
          . Springer-Verlag. To appear.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Feng</surname>
            <given-names>Yang</given-names>
          </string-name>
          , JiuWei
          <string-name>
            <surname>Wang</surname>
            , and
            <given-names>Hemin</given-names>
          </string-name>
          <string-name>
            <surname>Jin</surname>
          </string-name>
          .
          <article-title>A study on the customer behavior tracking model based on temporal description logic in the process of e-commerce</article-title>
          .
          <source>In Systems and Informatics (ICSAI)</source>
          , 2012 International Conference on, pages
          <volume>2289</volume>
          {
          <fpage>2293</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>C. Lutz</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Wolter</surname>
            , and
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Temporal description logics: A survey</article-title>
          . In S. Demri and C.S. Jensen, editors,
          <source>15th International Symposium on Temporal Representation and Reasoning</source>
          ,
          <source>TIME 2008</source>
          , pages
          <fpage>3</fpage>
          <lpage>{</lpage>
          14. IEEE Computer Society,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>A.</given-names>
            <surname>Artale</surname>
          </string-name>
          and
          <string-name>
            <given-names>E.</given-names>
            <surname>Franconi</surname>
          </string-name>
          .
          <article-title>A survey of temporal extensions of description logics</article-title>
          . Ann. Math. Artif. Intell.,
          <volume>30</volume>
          (
          <issue>1-4</issue>
          ):
          <volume>171</volume>
          {
          <fpage>210</fpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>Klaus</given-names>
            <surname>Schild</surname>
          </string-name>
          .
          <article-title>Combining terminological logics with tense logic</article-title>
          .
          <source>In Miguel Filgueiras and Lus Damas</source>
          , editors,
          <source>Progress in Arti cial Intelligence</source>
          , volume
          <volume>727</volume>
          of Lecture Notes in Computer Science, pages
          <volume>105</volume>
          {
          <fpage>120</fpage>
          . Springer Berlin Heidelberg,
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>S.</given-names>
            <surname>Agarwal</surname>
          </string-name>
          .
          <article-title>Formal Description of Web Services for Expressive Matchmaking</article-title>
          .
          <source>PhD thesis</source>
          , Universitat
          <source>Karlsruhe (TH)</source>
          ,
          <source>Fakultat fur Wirtschaftswissenschaften</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>M. Pistore</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Spalazzi</surname>
            , and
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Traverso</surname>
          </string-name>
          .
          <article-title>A minimalist approach to semantic annotations for web processes compositions</article-title>
          .
          <source>In Proc. of the 3rd European Semantic Web Conference (ESWC</source>
          <year>2006</year>
          ). Springer{Verlag, Berlin, Germany,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <given-names>I. Di</given-names>
            <surname>Pietro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pagliarecci</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Spalazzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Marconi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Pistore</surname>
          </string-name>
          .
          <article-title>Semantic Web Service Selection at the Process-Level: The eBay/Amazon/PayPal Case Study</article-title>
          .
          <source>In Web Intelligence</source>
          , pages
          <fpage>605</fpage>
          {
          <fpage>611</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <given-names>F.</given-names>
            <surname>Weitl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Jaksic</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Freitag</surname>
          </string-name>
          .
          <article-title>Towards the automated veri cation of semistructured documents</article-title>
          .
          <source>Journal of Data &amp; Knowledge Engineering</source>
          ,
          <volume>68</volume>
          :
          <fpage>292</fpage>
          {
          <fpage>317</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <given-names>F.</given-names>
            <surname>Weitl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Nakajima</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Freitag</surname>
          </string-name>
          .
          <article-title>Structured counterexamples for the temporal description logic alcctl</article-title>
          .
          <source>In Software Engineering and Formal Methods (SEFM)</source>
          ,
          <year>2010</year>
          8th IEEE International Conference on, pages
          <volume>232</volume>
          {
          <fpage>243</fpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <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>Data Complexity of Query Answering in Description Logics</article-title>
          .
          <source>In Tenth International Conference on Principles of Knowledge Representation and Reasoning</source>
          . AAAI Press,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Alessandro</surname>
            <given-names>Artale</given-names>
          </string-name>
          , Diego Calvanese, Roman Kontchakov, and
          <string-name>
            <given-names>Michael</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="ref21">
        <mixed-citation>
          21.
          <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>Data complexity of query answering in description logics</article-title>
          .
          <source>Arti cial Intelligence</source>
          ,
          <year>2012</year>
          . cited By (since
          <year>1996</year>
          )
          <article-title>1</article-title>
          ; Article in Press.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <given-names>S. S.</given-names>
            <surname>Lam</surname>
          </string-name>
          and
          <string-name>
            <given-names>A. U.</given-names>
            <surname>Shankar</surname>
          </string-name>
          .
          <article-title>A relational notation for state transition systems</article-title>
          .
          <source>IEEE Trans. on Softw. Eng.</source>
          ,
          <volume>16</volume>
          (
          <issue>7</issue>
          ):
          <fpage>755</fpage>
          ,
          <year>July 1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <given-names>E. M.</given-names>
            <surname>Clarke</surname>
          </string-name>
          and
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Wing</surname>
          </string-name>
          .
          <article-title>Formal methods: State of the art and future directions</article-title>
          .
          <source>ACM Computing Surveys</source>
          ,
          <volume>28</volume>
          (
          <issue>4</issue>
          ):
          <volume>626</volume>
          {
          <fpage>643</fpage>
          ,
          <year>December 1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <given-names>E. A.</given-names>
            <surname>Emerson</surname>
          </string-name>
          .
          <article-title>Temporal and modal logic</article-title>
          . In J. van Leeuwen, editor,
          <source>Handbook of Theoretical Computer Science</source>
          , volume B:
          <article-title>Formal Models and Semantics</article-title>
          , chapter
          <volume>14</volume>
          , pages
          <fpage>996</fpage>
          {
          <fpage>1072</fpage>
          . Elsevier Science Publishers B.V.: Amsterdam, The Netherlands, New York, N.Y.,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25. E. Allen Emerson.
          <article-title>Model checking and the mu-calculus</article-title>
          . In Neil Immerman and Phokion G. Kolaitis, editors,
          <source>Descriptive Complexity and Finite Models, Proceedings of a DIMACS Workshop</source>
          , January 14-
          <issue>17</issue>
          ,
          <year>1996</year>
          , Princeton University, volume
          <volume>31</volume>
          <source>of DIMACS Series in Discrete Mathematics and Theoretical Computer Science</source>
          , pages
          <volume>185</volume>
          {
          <fpage>214</fpage>
          . American Mathematical Society,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          26.
          <string-name>
            <surname>M. Ortiz</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Calvanese</surname>
            , and
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Eiter</surname>
          </string-name>
          .
          <article-title>Characterizing Data Complexity for Conjunctive Query Answering in Expressive Description Logics</article-title>
          .
          <source>In 21st AAAI Conference on Arti cial Intelligence</source>
          , pages
          <fpage>275</fpage>
          {
          <fpage>280</fpage>
          . AAAI Press,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          27.
          <string-name>
            <given-names>D.</given-names>
            <surname>Bianchini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pagliarecci</surname>
          </string-name>
          , and
          <string-name>
            <given-names>L.</given-names>
            <surname>Spalazzi</surname>
          </string-name>
          .
          <article-title>From Service Identi cation to Service Selection: An Interleaved Perspective</article-title>
          . In G. Agha,
          <string-name>
            <given-names>O.</given-names>
            <surname>Danvy</surname>
          </string-name>
          , and J. Meseguer, editors,
          <source>Formal Modeling: Actors</source>
          , Open Systems, Biological Systems - Essays Dedicated to Carolyn
          <source>Talcott on the Occasion of Her 70th Birthday</source>
          , volume
          <volume>7000</volume>
          of Lecture Notes in Computer Science, pages
          <volume>223</volume>
          {
          <fpage>240</fpage>
          . Springer,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          28. L.
          <string-name>
            <surname>Boaro</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Glorio</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Pagliarecci</surname>
            , and
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Spalazzi</surname>
          </string-name>
          .
          <article-title>Model Checking Security Requirements for Web Services</article-title>
          .
          <source>In International Conference on High Performance Computing Simulation (HPCS '10)</source>
          ,
          <year>june 2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          29. L.
          <string-name>
            <surname>Boaro</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Glorio</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Pagliarecci</surname>
            , and
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Spalazzi</surname>
          </string-name>
          .
          <article-title>Business process design framework for B2B collaboration</article-title>
          . In W. Smari and G. Fox, editors,
          <source>2011 International Conference on Collaboration Technologies and Systems (CTS</source>
          <year>2011</year>
          ), pages
          <fpage>633</fpage>
          {
          <fpage>635</fpage>
          , Philadelphia, Pennsylvania, USA, May
          <volume>23</volume>
          -27,
          <year>2011</year>
          . IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          30.
          <string-name>
            <given-names>T.</given-names>
            <surname>Leo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pagliarecci</surname>
          </string-name>
          , and
          <string-name>
            <given-names>L.</given-names>
            <surname>Spalazzi</surname>
          </string-name>
          .
          <article-title>eLearning for Complex System Professionals: Material Knowledge Representation, Retrieval, and Building</article-title>
          .
          <source>In 4th International Forum on Knowledge Asset Dynamics (IFKAD 09)</source>
          , Glasgow, United Kingdom,
          <source>February</source>
          <volume>17</volume>
          {
          <fpage>18</fpage>
          2009.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>