<!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>Query Answering over Fact Bases for Fuzzy Interval Ontologies</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Gerald S. Plesniewicz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vu Nguen Thi Min</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmitry Masherov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National Research University MPEI e-mail1:</institution>
        </aff>
      </contrib-group>
      <fpage>93</fpage>
      <lpage>100</lpage>
      <abstract>
        <p>Temporal ontologies contain events that are concepts and roles with references to temporal intervals. Therefore, a temporal ontology induces the interval ontology. We consider fuzzy interval ontologies written in a fuzzy Boolean extension of Allen's interval logic. Syntactically, the extended logic ELA is the set of all Boolean combinations of propositional variables and sentences of Allen's interval logic. Semantics of ELA is defined using fuzzy interpretations of propositional variables and atomic sentences of Allen's logic. An interval ontology in ELA is a finite set ELA sentences (formulas). A fact is an estimate of a formula i.e. an expression of the form r ≤ φ ≤ s where φ is a ELA formula and 0 ≤ r ≤ s ≤ 1. A fact base for an interval ontology is a finite set of facts with formulas from the ontology. We present a method of finding answers to queries addressed to fact bases for fuzzy interval ontologies. The method uses analytical tableaux.</p>
      </abstract>
      <kwd-group>
        <kwd>knowledge representation</kwd>
        <kwd>ontologies</kwd>
        <kwd>fuzzy ontologies</kwd>
        <kwd>temporal logics</kwd>
        <kwd>Allen's interval logic</kwd>
        <kwd>query answering</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Temporal ontologies contain events that are concepts and roles with references to
temporal intervals. Therefore, a temporal ontology induces the interval ontology.
Consider an example.</p>
      <p>Example 1. Suppose, we should define the structure of the concept Agent in some
ontology for a multi-agent system. Then we may write declarations such as
Agent[Name: String, Carry_out: Action(*)],</p>
      <p>Action[Name: String, Interval: (Integer,Integer), Procedure: Program].
The terms Agent(Name=rob07) and Agent(Name=rob07).Carry_out.Interval denote
the robot rob07 and the temporal intervals of the actions carrying out by rob07. Let
the robot rob07 is able to carry out the actions a, b and c, i.e.
Agent(Name=rob07).Carry_out = {a, b, c}. These actions spend certain time. Thus,
temporal intervals A, B and C are associated with the actions.</p>
      <p>
        Suppose, there is the following knowledge about the intervals:
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) If p is true then there is no time point at which both actions a and b are carried
out;
      </p>
      <p>Gerald S. Plesniewicz et al.</p>
      <p>
        (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) If q is true then the action b is carried out only when the action c is carried out.
Consider the question:
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) What Allen’s relations are impossible between the C and A if both conditions
p and q take place?
In Allen’s interval logic (see [1, 2]) with implication, the statements (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) and (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) can be
written as the interval ontology O ={p →A bb*B, q →B edfs C}(see further). The
query (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) is written as ?x – p ∧ q → C –x A.
      </p>
      <p>(End of Example 1.)</p>
      <p>In Allen’s interval logic LA, there are 7 basic relations between intervals: e
(equals), b (before), m (meets), o (overlaps), f (finishes), s (starts), d (during). (See
Table 1 for interpretation of these relations, where A– and A+ denote the left and the
right ends of the interval A). Let tr(A θ B) be the set of inequalities characterized
of the basic Allen’s relation θ (see the third column of Table 1). For example,
tr(A f B) = {A– &gt; B–, А+ ≥ В+, B+ ≥ A+}.</p>
      <p>The inverted relations are marked by asterisks: b* (after), m* (met-by), o*
(overlapped-by), f* (finished-by), s* (started-by), d* (contains); so, A α*B ó B α A.</p>
      <p>Let Ω0 = {e, b, m, o, f, s, d} and Ω = Ω0 U { b*, m*, o*, f*, s*, d*} = {e, b, m, o,
f, s, d, b*, m*, o*, f*, s*, d*}.</p>
      <p>A sentence (formula) of LA is an expression of the form A ω B where ω is any
subset of the set Ω and A, B are interval variables. If ω = {α}, then instead of A{α}B
we write simply A α B. If ω ={α1, α2,…, αk} then we write A α1α2…αk B instead of
A{α1, α2,…, αk}B. By definition, the formula A α1α2…αk B is true if it is true at least
one formula A αi B (1 ≤ i ≤ k). The sentences of the form A α B with α ∈ Ω0 are called
atomic.</p>
      <p>The fuzzy Boolean extension ELA Allen’s interval logic is defined as follows.
SYNTAX of ELA:
• propositional variables are ELA formulas;
• every LA formula belongs to ELA, i.e. LA ⊆ ELA;
• if φ and ψ are ELA formulas then ~φ, φ /\ ψ and φ \/ ψ are also ELA formulas,
and
φ → ψ is ELA formula considered as shorthand for ~φ \/ ψ.</p>
      <p>An (interval) ontology is a finite set of ELA formulas. Let P(O) be the set of all
propositional variables entering the formulas from O, and A(O) be the set of all
atomic sentences entering the formulas from O. Let В(О) = U{tr(β) | β ∈ А(О)}. For
example, if О = {A o B → (B mf C) /\ p, q → A s C, C o*A} then Р(О) = {p, q} and
А(О) = {B m C, B f C, A s C, A o C}, and B(O) = {B+ ≥ C–, C– ≥ B+, B– &gt; C–, B+ ≥
C+, C+ ≥ B+, A– ≥ C–, C– ≥ A–, C+ &gt; A+, C– &gt;A–, A+ &gt; C–, C+ &gt;A+ }.</p>
      <p>SEMANTICS of ELA is defined using fuzzy interpretations.</p>
      <p>A fuzzy interpretation of an ontology O is any function “...” from Р(О) ∪ B(О) to
[0,1] = {x | 0 ≤ x ≤ 1} with the following constraints:
(a) If X &lt;Y and Y ≤ X belong to В(О) then “X &lt;Y” + “Y ≤ X” = 1;
(b) If X =Y, X &lt;Y and Y &lt;X belong to В(О) then “X=Y”+ max{“X &lt;Y”, “Y
&lt;X”}=1;
(c) If X &lt;Y, Y &lt;Z and X &lt;Z belong to В(О) then “X &lt;Z” ≥ min{“X &lt;Y” ,“Y &lt;Z”},
and the similar constraints which are obtained by replacing signs “&lt;” by
signs “≤” or “=”.</p>
      <p>We expand the function “...” to А(О) by “A θ B”= min{“V” | V ∈ tr(A θ B)}.
Further, we expand “...” to formulas by the usual rules of Zadeh’s fuzzy logic: “~ φ” = 1
–“φ”, “φ /\ ψ” = min{“φ”,“ψ”}, “φ \/ ψ” = max{“φ”,“ψ”} [3].</p>
      <p>Let r and s be numbers from [0,1] and φ be a ELA formula. Expressions of the
forms φ &gt; r, φ ≥ r, φ &lt; r and φ ≤ r are called estimates of the formula φ, and
expressions of the form r ≤ φ ≤ s (where 0 ≤ r ≤ s ≤ 1) are called bilateral estimates
of φ. The estimates are interpreted naturally. Let “...” be any interpretation of the
ontology {φ}. Then “φ &gt; r” ódf “φ” &gt; r, “φ ≥ r” ódf “φ” ≥ r, “φ &lt; r” ódf “φ” &lt; r,
“φ ≤ r” ódf “φ” ≤ r, “r ≤ φ ≤ s” ódf r ≤ “φ” ≤ s.</p>
      <p>The set EST of all estimates for ELA formulas can be considered as a crisp logic
with fuzzy interpretations. As every logic, EST has the relation ‘|=” of logical
consequence. Let E ⊆ EST and σ ∈ EST. We state E |= σ when there is no fuzzy
interpretation “...”: E → [0,1] such that all estimates from E are true but the estimate σ is false.</p>
      <p>We consider estimates with the relation “≤” as facts. For any interval
ontology O = {φ1, φ2,…, φn} (φi ∈ ELA), any set Fb = {r1 ≤ φ1 ≤ s1, r2 ≤ φ2 ≤ s2,…, rn ≤ φn ≤
sn} (0 ≤ ri, si ≤ 1) of bilateral estimates is called a fact base for the ontology O.</p>
      <p>We can query a fact base and get the appropriate answers. Let ψ = ψ[x1, x2,…, xn]
be an ELA formula in which some of its Allen’s connectives are replaced with
variables x1, x2,…, xn whose values are in Ω. A query is an expression of the form
? (x1, x2,…, xm) – ψ[ x1, x2,…, xm],
(1.1)
where ψ = ψ[x1, x2,…, xn] is an ELA formula in which some of its Allen’s connectives
are replaced with variables x1, x2,…, xn whose values are in Ω. (For example, the
expression ?(x1, x2) – (p \/ A bs B) → B x1od C /\ ~A x2 D is a query.)</p>
      <p>The answer to query (1.1), addressed to the fact base Kb, is the set of all tuples
(g, h; α1, α2,…, αm) with αi ∈ Ω and g, h ∈ [0,1] such that Kb |= g ≤ ψ[α1, α2,…, αm] ≤
h with maximal g and minimal h. So, we have g = max{r | Kb |= r ≤ ψ[α1, α2,…,
αm]}and g = min{s | Kb |= ψ[α1, α2,…, αm] ≤ s}.</p>
      <p>Remarks. 1) It is easy to prove that the maximum and the minimum exist. 2) Since
“φ ≤ r” ó “φ” ≤ r ó 1–“φ” ≥ 1 – r ó “~ φ” ≥ r ó “~ φ ≥ 1– r” and “r ≤ φ ≤ s” ó r
≤ “φ” ≤ s ó r ≤ “φ”, “φ” ≤ s ó “φ ≥ r”, “~ φ ≥ 1– s”, then any fact base with
bilateral estimates is equivalent to a fact base with lower estimates i.e. of the form φi ≥ ri.
We will consider further only fact bases with lower estimates.</p>
      <p>Example 3. Consider the ontology O from Example 1 as a fuzzy ontology with the
fact base Fb = {р → А bb*В ≥ 0.6, q →В edfs С ≥ 0.9}. In the next section we show
that the set {(0.6, d), (0.6, e), (0.6, f), {(0.6, s)} is the answer to the query ?x – p ∧ q
→ ~ C x A.</p>
      <p>(End of Example 3.)</p>
      <p>Generally, we can associate with any fuzzy logic the crisp logic of estimates whose
sentences are expressions of the form r ≤ φ ≤ s where φ are formulas of the fuzzy
logic and 0 ≤ r ≤ s ≤ 1. Umberto Straccia have studied a fuzzy description logic
which are the logics of estimates for description logics [4, 5]. The logic of estimates
for propositional logic was considered in [6] where the method of query answering
over fact bases was described.</p>
      <p>In the paper, we present the method (based on analytical tableaux [6]) for finding
the answers to queries addressed a fact base for an interval ontology.
2</p>
      <p>Finding Answers to Queries Addressed to a Fact Base</p>
      <p>The method of analytical tableaux can be applied to the problem of finding
answers to queries addressed to fact bases for fuzzy interval ontologies. We show, by
example, how to do this.</p>
      <p>Example 3. Consider again the interval ontology O and the its fact base from
Example 2: Fb = {р → А bb*В ≥ 0.6, q →В edfs С ≥ 0.9}. In Fig.1, it is shown the
deduction tree constructed step by step from Fb and the estimate p ∧ q → ~ C x A &lt; g
which is corresponded to the body of the query ?x – p ∧ q → ~ C x A.</p>
      <p>
        Constructing the deduction tree, we start with the initial branch containing the
formulas р → А bb*В ≥ 0.6, q →В edfs С ≥ 0.9. At the first step we apply the rule from
Table 2 in the fourth row and second column (denote by T2(
        <xref ref-type="bibr" rid="ref2 ref4">4,2</xref>
        ) this rule) to the
formula р → А bb*В ≥ 0.6 and we put the label “[1]” on the right of the formula. As a
result of the application of the rule T2(
        <xref ref-type="bibr" rid="ref2 ref4">4,2</xref>
        ), the “fork” with the estimates p ≤ 0.4 and
А bb*В ≥ 0.6 are added to the initial branch and the label “1:” is put on the left of
each of the estimates. At the step 2, the rule T2(
        <xref ref-type="bibr" rid="ref2 ref4">4,2</xref>
        ) is applied to q →В edfs С ≥ 0.9.
As a result, the “fork” with the estimates q ≤ 0.1 and В edfs С ≥ 0.9 are added to each
of two current branches. At the step 8, the rule T8(
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ) is applied to the estimates q ≤
0.1 and q &gt;1– g. As a result, we get the inequality g ≤ 0.9 that means the estimates q ≤
0.1 and q ≥ 1– g are inconsistent (and therefore, the first branch is inconsistent) if
and if g ≤ 0.9. At step 9, the rule T8(
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ) is applied to the estimates p ≤ 0.4 and p &gt;1–
g. As a result, we obtain that the second branch is inconsistent if and only if g ≤ 0.6.
At step 10, the rule T8(
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ) is applied to the estimates q ≤ 0.1 and q ≥ 1– g. As a
result, we obtain that the third branch is inconsistent if and only if g ≤ 0.9. Thus, the
first, second and third branch are inconsistent if and only if g ≤ min{0.9, 0.6, 0.9} =
0.6.
      </p>
      <p>
        At step 12, the rule T4(
        <xref ref-type="bibr" rid="ref1 ref1">1,1</xref>
        ) is applied to the estimates В edfs С ≥ 0.9 and В edfs С
≥ 0.9, and as result, the estimate А bb*dfmm*oo*s C ≥ 0.6 is obtained. Indeed, using
Table 4 which is a fragment of the Allen’s table of compositions (see [2]), we have
bb* ᵒ edfs = b ᵒ e U b ᵒ d U b ᵒ f U b ᵒ s U b* ᵒ e U b* ᵒd U b* ᵒ f U b* ᵒ s =
b U bdmos U bdmos U b U b* U b*dfm*o* U b* U b*dfm*o* =
bb*dfmm*oo*s.
      </p>
      <p>
        At step 13, the rule T4(
        <xref ref-type="bibr" rid="ref1 ref3">1,3</xref>
        ) is applied to the estimate А bb*dfmm*oo*s C ≥ 0.6,
and we have C b*bd*f*m*mo*os*A ≥ 0.6. At step 14, the substitution {x := defs, g :=
0.6} is applied to the estimate C –x A &lt; g, and we have C b*bd*f*m*mo*os* A &lt;
0.6. Finally, at step15 we obtain the contradiction: C b*bd*f*m*mo*os* A ≥ 0.6 and
C b*bd*f*m*mo*os* A &lt; 0.6. From the substitution we obtain the following answer
to the query ?x – p ∧ q → ~ C x A: {(0.6, d), (0.6, e), (0.6, f), {(0.6, s)}.
      </p>
      <p>(End of Example 3.)</p>
      <p>Fig. 1. Deduction tree for Example 2</p>
      <p>Remark. In Example 2, the Tables 2, 3 and 4 were used to construct the deduction
tree in Fig. 1. Generally, the Tables 5, 6, 7 may be needed. The inference rules
entering all these tables are formed a complete system for query answering over fact bases
for ontologies written in the language ELA.
Fragment of Allen’s table of compositions
b
b*
b
b
Ω</p>
      <p>d
bdmos
b*dfm*o*
f
b
b*
s
b
b*dfm*o*
(A– ≥ X) &lt; t
-------------(A– ≥ X) &lt; t
(A– ≥ X) ≤ t
-------------(A– ≥ X) ≤ t
(A– ≥ X) &lt; t
-------------(A– ≥ X) &lt; t</p>
      <p>X ∈{B+, B–}</p>
      <p>V ∈ {X ≥ Y, X &gt; Y})
3</p>
    </sec>
    <sec id="sec-2">
      <title>Conclusion</title>
      <p>We have defined the fuzzy Boolean extension of Allen’s interval logic and
considered ontologies written in the extension. Fact bases for such ontologies consist of
bilateral estimates for formulas from the ontologies. We have considered the problem
of query answering over fact bases. For decision of this problem the analytical
tableaux method was applied.</p>
    </sec>
    <sec id="sec-3">
      <title>Acknowledgement</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Allen</surname>
            <given-names>J.A.</given-names>
          </string-name>
          :
          <article-title>Maintaining Knowledge about Temporal Intervals</article-title>
          .
          <source>Communications of the ACM</source>
          ,
          <volume>20</volume>
          (
          <issue>11</issue>
          ),
          <fpage>832</fpage>
          -
          <lpage>843</lpage>
          (
          <year>1983</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Allen</surname>
            <given-names>J.W.</given-names>
          </string-name>
          , Ferguson G.:
          <article-title>Actions and Events in Interval Temporal Logic</article-title>
          .
          <source>Journal of Logic and Computation</source>
          ,
          <volume>4</volume>
          (
          <issue>5</issue>
          ),
          <fpage>531</fpage>
          -
          <lpage>579</lpage>
          (
          <year>1994</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Perfilieva</surname>
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mockor</surname>
            <given-names>I.</given-names>
          </string-name>
          : Mathematical Principles of Fuzzy Logic, Kluwer Academic Publishers, Dordrecht,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Straccia</surname>
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>A fuzzy Description Logic:</article-title>
          <source>Proceedings of the National Conference on Artificial Intelligence</source>
          ,
          <fpage>594</fpage>
          -
          <lpage>599</lpage>
          (
          <year>1988</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Straccia</surname>
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>Reasoning within Fuzzy Description Logics</article-title>
          .
          <source>Journal of Artificial Intelligence Research Proceedings of the National Conference on Artificial Intelligence</source>
          ,
          <volume>14</volume>
          (
          <issue>1</issue>
          ),
          <fpage>147</fpage>
          -
          <lpage>176</lpage>
          (
          <year>2001</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>D</given-names>
            <surname>'Aggostino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Gabbay</surname>
          </string-name>
          <string-name>
            <given-names>D.</given-names>
            ,
            <surname>Hahnle</surname>
          </string-name>
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Possega</surname>
          </string-name>
          <string-name>
            <surname>J</surname>
          </string-name>
          . (eds.):
          <source>Handbook of Tableaux Methods</source>
          , Kluwer Academic Publishers, Dordrecht,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Plesniewicz</surname>
            <given-names>G.S.</given-names>
          </string-name>
          :
          <article-title>Query Answering over Fact Bases in Fuzzy Propositional Logic. 2013 IFSA Congress and</article-title>
          NAFIPS Annual Meeting, Edmonton, Canada, June 24-28,
          <fpage>1252</fpage>
          -
          <lpage>1255</lpage>
          (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>