<!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>
      <journal-title-group>
        <journal-title>B. Nebel and H. J. Burckert. Reasoning about temporal
relations: A maximal tractable subclass of allen?s interval
algebra. Journal of the ACM</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>On an Ontological Modeling Language by a Non-Formal Example</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Proceedings of the XX International Conference “Data Analytics and Management in Data Intensive Domains” (DAMDID/RCDL'2018)</institution>
          ,
          <addr-line>Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Manuk G. Manukyan Yerevan State University</institution>
          ,
          <addr-line>Yerevan</addr-line>
          ,
          <country country="AM">Armenia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2012</year>
      </pub-date>
      <volume>42</volume>
      <issue>1</issue>
      <fpage>1</fpage>
      <lpage>13</lpage>
      <abstract>
        <p>Principles of an ontological modeling language construction are considered. The proposed modeling language is based on the OPENMath formalism, which is oriented to semantical representation of mathematical objects. We are basing on the concept of so-called content dictionaries of the OPENMath to represent knowledge. An ontology is constructed for Allen's interval temporal logic to show the ontological modeling possibilities of the proposed language. To support this ontology we are using the OPENMath content dictionaries, as well as developing new content dictionaries. Mapping rules from the considered ontology into Datalog are offered.</p>
      </abstract>
      <kwd-group>
        <kwd>ontology</kwd>
        <kwd>content dictionary</kwd>
        <kwd>knowledge base</kwd>
        <kwd>relative event</kwd>
        <kwd>temporal relation</kwd>
        <kwd>XML</kwd>
        <kwd>OPENMath</kwd>
        <kwd>Datalog language</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        The fourth paradigm of science generates necessity
to multidisciplinary research in order to support data
analysis and its management in various data intensive
sciences (such as astronomy and astrophysics, genomics,
human brain research, Earth sciences, etc.) [
        <xref ref-type="bibr" rid="ref18 ref6 ref8">6, 8, 18, 26</xref>
        ].
In connection with the appearance of this paradigm the
issues of ontological modeling of the subject domains
become actual. Ontologies offer means to represent high
level concepts, their properties, and their
interrelationships. In another words, ontologies are used
for formal representation of knowledge of the subject
domains. Such representations are used for reasoning
about entities of the subject domains, as well as for the
domains description.
      </p>
      <p>
        In this paper we are trying to develop an
XMLbased ontological modeling language by strengthening
the XML language by means of the OPENMath concept
[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. OPENMath is a standard to represent mathematical
concepts with their semantics on the Web. Usage of
OPENMath concept allows to extend the XML language
with computational and ontological constructs. The
abilities of ontological modeling of the proposed
language will be illustrated by a non-formal example.
Namely, we will construct ontology to support Allen's
interval temporal logic [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        We have certain experience of OPENMath usage in
our research. Particularly, we proposed a minor
extension of OPENMath formalism [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] and used it as
kernel of a canonical data model, which also has been
developed by us for heterogeneous databases integration
[
        <xref ref-type="bibr" rid="ref20 ref21 ref22">20-23</xref>
        ].
      </p>
      <p>The paper is organized as follows: A review of the
investigations to ontological modeling is presented in
Section 2. Formal bases of the proposed modeling
language and Allen's algebra are considered in Section 3.</p>
      <p>In Section 4 the principles of an ontological modeling
language construction are discussed by means of a
nonformal example. The mapping rules from XML-based
ontology into Datalog are offered in Section 5. The
conclusion is provided in Section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>2 Related Work</title>
      <p>
        Investigations to support ontology-based information
management are intensively developing (for instance, [
        <xref ref-type="bibr" rid="ref1 ref12 ref14 ref7">1,
7, 12, 14, 25</xref>
        ]). In [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] an overview of ontology-based
data access is provided: a specific paradigm for semantic
data integration. An approach to big data integration
based on a NoSQL database and modular ontologies is
proposed in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. A conceptual approach to solve the
astronomical problems is offered in [25]. An ontology
for Allen's temporal logic is proposed in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] to support
relative time in databases. The problems to support
ontological queries are studied in [
        <xref ref-type="bibr" rid="ref13 ref14">13, 14</xref>
        ]. Namely, two
important aspects of this problems: query rewriting and
query optimization are discussed.
      </p>
      <p>
        A good survey of the languages for efficient support
of access to the databases satisfying the ontological
dependencies can be found in [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. Particularly, in this
paper it is noted that ontological languages and systems
are frequently used for representation and support of
conceptual schemas over (relational) databases. Such
approach to support a concept of databases assumes to
use axioms of conceptual schemas and facilities of
ontological inference machines upon interpreting queries
to databases.
      </p>
      <p>
        There are different families of ontological
languages: graph languages, frame languages, logical
languages and rule languages [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. One of the advanced
representatives of ontological languages is OWL, which
is based on the description logic [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].
      </p>
      <p>In the context of fourth paradigm of science it is
important to provide a high level computationally
complete language for ontological modeling. The
necessity to develop such languages is connected with
the possibility to define the subject domains of research
and formulate solutions to scientific problems over
abstract specifications. Such approach allows to abstract
from resource structure when executing queries to
specific data resources. Existing languages are either not
computationally complete, or do not provide a high level
interface.</p>
    </sec>
    <sec id="sec-3">
      <title>3 Formal Bases</title>
      <p>In this section we will briefly consider the OPENMath
concept. Namely, formalism and constructions on which
that concept is based. Thereafter we will discuss Allen's
interval temporal logic, which is used to construct an
ontology on which the ontological modeling possibilities
of the proposed language will be shown.</p>
      <sec id="sec-3-1">
        <title>3.1 The OPENMath Concept</title>
        <p>OPENMath is a standard for representation of the
mathematical objects, allowing them to be exchanged
between computer programs, stored in databases, or
published on the Web. The considered formalism is
oriented to represent semantic information and is not
intended to be used directly for presentation. Any
mathematical concept or fact is an example of
mathematical object. OpenMath objects are such a
representation of mathematical objects which assumes an
XML interpretation.</p>
        <p>
          Formally, an OpenMath object is a labeled tree
whose leaves are the basic OpenMath objects. The
compound objects are defined in terms of binding and
application of -calculus [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. The type system is built
on the basis of types that are defined by themselves and
certain recursive rules, whereby the compound types are
built from simpler types. To build compound types the
following type constructors are used:
        </p>
        <p>Attribution. If v is a basic object variable and t is a
typed object, then attribution (v, type t) is a typed
object. It denotes a variable with type t.</p>
        <p>Abstraction. If v is a basic object variable and t, A
are typed objects, then binding (, attribution (v,
type t), A) is a typed object.</p>
        <p>Application. If F and A are typed objects, then
application (F, A) is a typed object.



Semantic Level. OPENMath is implemented as an XML
application. Its syntax is defined by syntactical rules of
XML, its grammar is partially defined by its own DTD.
Only syntactical validity of OPENMath objects
representation can be provided on the DTD level. To
check semantics, in addition to general rules inherited by
XML applications, the considered application defines
new syntactical rules. This is achieved by means of
introduction of signature files concept, in which these
rules are defined. Signature files contain the signatures
of basic concepts defined in some content dictionary and
are used to check the semantic validity of their
representations. A content dictionary is the most
important component of OPENMath concept
preservation of mathematical information. In other
words, content dictionaries are used to assign formal and
informal semantics to all symbols (concepts) used in
OPENMath objects. A content dictionary is a collection
of related symbols, encoded in XML format and fixing
the "meaning" of concepts independently of the
application.</p>
        <p>
          The formal framework for our example to
ontological modeling is based on Allen's interval
temporal logic (for more details see [
          <xref ref-type="bibr" rid="ref2 ref3 ref4 ref5">2-5</xref>
          ]) that enables
expression of all possible relations between intervals
while ensuring computational effectiveness. The basic
concepts of the considered formalism are one primitive
object, the time interval, and one primitive binary
relation: meets. A time interval intuitively is the time
associated with some event occurring or some property
holding in the world. Intuitively, two time intervals t1 and
t2 meet if and only if t1 precedes t2, yet there is no time
between t1 and t2, and t1 and t2 do not overlap. Every other
possible relation between two time intervals can be
defined in terms of meets. As argued in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] the considered
temporal model has several important advantages. In
particular, this model allows to represent relative events
(for instance, "John married after graduating from
school", where it is not known when John married or
when he graduated from school). In other words, the
considered formalism allows to fix in DB the basic
temporal relations of events with possibility to infer
implicitly given temporal relations between events.
Temporal Relations. Let t be a time interval, then t
and t denote the lesser and the greater endpoints of t
correspondingly. Let t1 and t2 be time intervals. The
following 13 pairwise disjoint basic temporal relations
are considered:
(t1 equals t2)  (t1 = t2)  (t1 = t2)
(t1 before t2)  (t2 after t1)  t1 &lt; t2
(t1 meets t2)  (t2 metBy t1)  t1 = t2
(t1 overlaps t2)  (t2 overlappedBy t1) 
        </p>
        <p>(t1 &lt; t2)  (t2 &lt; t1)  (t1 &lt; t2)
(t1 during t2)  (t2 contains t1) </p>
        <p>(t2 &lt; t1)  (t1 &lt; t2)
(t1 starts t2)  (t2 startedBy t1 </p>
        <p>(t1 = t2)  (t1 &lt; t2)
(t1 finishes t2)  (t2 finishedBy t1) </p>
        <p>(t2 &lt; t1)  (t1 =t2)
Here, after is the inverse of before, metBy is the inverse
of meets, overlapedBy is the inverse of overlaps,
contains is the inverse of during, startedBy is the inverse
of starts, finishedBy is the inverse of finishes, equals is
symmetric and transitive.
4 Ontological Modeling Language
The weakness of XML is the absence of data types
concept in conventional sense. To eliminate this
shortcoming and to support ontological dependencies on
the XML level, we expand the XML by means of the
OPENMath concept. The considered ontological
modeling language coincides with XML which was
strengthened by OPENMath concept. OPENMath is an
extensible formalism. Its extensibility is achieved by
defining new content dictionaries. We propose a minor
extension of OPENMath to support the built-in data
types concept of the XML Schema [27]. Namely, to
model the constants of built-in data types of the XML
Schema the corresponding basic objects were
introduced. In the context of the considered language we
consider three kinds of mechanisms to formalize subject
domains:

content dictionaries to define basic concepts of
subject domains;
signature files to define signatures of basic
concepts to check the semantic validity of their
representations;
files of reasoning to formalize knowledge of
subject domains. Defining a concept in terms of
known ones we introduce a new concept
(knowledge) within the considered subject
domain. Thus, these files are collections of
reasoning rules, which are defining the new
concepts in terms of known ones in the
considered subject domain.</p>
        <p>
          A content dictionary which contains representation of
basic concepts of the subject domain contains two types
of information: one which is common to all content
dictionaries, and one which is restricted to a particular
basic concept definition. Definition of a new basic
concept includes name and description of the basic
concept, and also some optional information about this
concept. Specific information pertaining to the basic
concept like the signature and the defining of a concept
in terms of known ones is defined in additional files
associated with content dictionaries. Content dictionaries
contain just one part of the information that can be
associated with a basic concept in order to stepwise
define its meaning and its functionality. Signature files
and files of reasoning are used to formalize the different
aspects of subject domains. Namely, to formalize the
basic concepts formats, and to define reasoning rules to
formalize knowledge of subject domains.
4.1 An Ontology for Allen’s Interval Temporal Logic
In [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] an algebra of binary temporal relations on time
intervals is proposed for representing qualitative
temporal information (i.e., using natural language
expressions such as before, after, during), and also the
problem of reasoning about such information is
considered. With the aim to construct an ontology for
Allen's interval temporal logic, we are basing on the
definition of Allen's algebra which is proposed in [24].
To express indefinite information, unions of the basic
temporal relations are used, which are written as set of
basic temporal relations leading to 213 binary temporal
relations, including the null relation  (also denoted by
). Let X, Y, Z be time intervals and R, S, T be set of basic
temporal relations. Among the considered algebra
operands are binary temporal relations, and the
operations unary inverse (), binary intersection (), and
binary composition (), which are defined as follows:
 X, Y : X R Y  Y R X
 X, Y : X (R  S) Y  X R Y  X S Y
 X, Y: X (R  S) Y   Z (X R Z  Z S Y)
It follows that the inverse of R = {B1, B2, ... ,Bn} can be
expressed by the set of basic temporal relations R= {B1,
B2, ... , Bn}. Further, the intersection of two relations (R
 S) can be expressed as the set-theoretic intersection of
the sets of basic relations that are used to describe the
temporal relations, i.e.,
(R  S) = {B  B| B  R  B  S}
Here, B is the set of thirteen basic temporal relations.
Finally, the composition of two temporal relations is
the union of the component-wise composition of basic
temporal relations:
R  S = {B  B'|B  R  B'  S}
In fact, inferring implied relations and detecting
inconsistencies in a set of asserted relations is an NP
hard problem, but tractable sets (i.e. solvable by
polynomial-time algorithms) are known to exist [24]. In
other words, tractable subsets of this set that are closed
under composition produced a relation also in this subset.
Thus, the compositions of triples of relations can be
computed from compositions of pairs of relations:
R  S  T  ((R  S)  T)
Inferring implied relations is based on the composition
operation. Namely, when a temporal relation R holds
between time intervals X and Y and a temporal relation
S holds between time intervals Y and Z, then the result of
the composition operation of these relations (R  S) is
a possible temporal relation (s), which holds between
time intervals X and Z. Let us note, that composition
operation is based on the composition table, which is
defined in [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. Finally, the construction of an ontology
for Allen's interval temporal logic is reduced to
modeling the considered algebra by the proposed
ontological language.
        </p>
        <p>Content Dictionary for Basic Temporal Relations.
The considered algebra is based on the basic temporal
relations. To formalize the basic temporal relations we
developed a new content dictionary named "TempRel"
(temporal relation), which contains formal definitions of
these relations. Below is the definition of one of them:
&lt;CD&gt;
&lt;CDName&gt; TempRel &lt;/CDName&gt;
&lt;CDUses&gt;
&lt;CDName&gt; logic1 &lt;CDName&gt;
&lt;CDName&gt; quant1 &lt;CDName&gt;
&lt;CDUses&gt;
&lt;Description&gt;</p>
        <p>This CD defines symbols for
temporal relations
&lt;/Description&gt;
&lt;CDDefinition&gt;
&lt;Name&gt; before &lt;/Name&gt;
&lt;Description&gt;</p>
        <p>A binary relation
&lt;/Description&gt;
&lt;CMP&gt; before(i,j)</p>
        <p>k(meets(i,k) meets(k,j))
&lt;/CMP&gt;
&lt;FMP&gt;
&lt;OMOBJ&gt;
&lt;OMA&gt;
&lt;OMS name = “equivalent”</p>
        <p>cd = “logic1”/&gt;
&lt;OMA&gt;
&lt;OMS name = “before”</p>
        <p>cd = “TempRel”/&gt;
&lt;OMV name = “i”/&gt;
&lt;OMV name = “j”/&gt;
&lt;/OMA&gt;
&lt;OMBIND&gt;
&lt;OMS name = "exists"</p>
        <p>cd = "quant1"/&gt;
&lt;OMBVAR&gt;</p>
        <p>&lt;OMV name = "k"&gt;
&lt;/OMBVAR&gt;
&lt;OMA&gt;
&lt;OMS name = “and”</p>
        <p>cd = “logic1”/&gt;
&lt;OMA&gt;
&lt;OMS name = "meets"</p>
        <p>cd = "TempRel”/&gt;
&lt;OMV name = "i"/&gt;
&lt;OMV name = "k"/&gt;
&lt;/OMA&gt;
&lt;OMA&gt;
&lt;OMS name = "meets"</p>
        <p>cd = "TempRel"/&gt;
&lt;OMV name = "k"/&gt;
&lt;OMV name = "j"/&gt;
&lt;/OMA&gt;
&lt;/OMA&gt;
&lt;/OMBIND&gt;
&lt;/OMA&gt;
&lt;OMOBJ&gt;
&lt;/FMP&gt;
&lt;/CDDefinition&gt;
Here, we used the OPENMath content dictionaries
"logic1" and "quant1". In the "logic1" content dictionary
the operations of Boolean algebra are defined, and in the
content dictionary "quant1" the universal and existential
quantifiers are defined. The above used XML elements
have obvious interpretations. Only note that the element
"CMP" contains the commented mathematical property
of the considered basic temporal relation, and the
element "FMP" contains the OPENMath representation
of this property.</p>
        <p>
          As is mentioned above, to check semantic
validity of the basic concepts representations we
associate extra information with content dictionaries,
namely signature files. A signature file contains the
definitions of all the basic concept signatures of the
considered content dictionary. Here we use Small
Type System [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] to formalize the basic concept
signatures. Below is the definition of the signature of
the basic temporal relation before:
&lt;CDSignatures type = "sts"
        </p>
        <p>cd = "TempRel”&gt;
&lt;Signature name = "before"&gt;
&lt;OMOBJ&gt;
&lt;OMA&gt;
&lt;OMS name = "mapsto" cd = "sts"/&gt;
&lt;OMV name = "string"/&gt;
&lt;OMV name = "string"/&gt;
&lt;OMS name = "boolean"</p>
        <p>cd = "logic1"/&gt;
&lt;/OMA&gt;
&lt;/OMOBJ&gt;
&lt;/Signature&gt;
Here, Signature introduces a symbol before and the
mapsto symbol is used to construct non-dependent
function spaces. The first n-1 children denote the types
of the arguments, the last one denotes the return type.
Reasoning rules. For modeling Allen's algebra, we
developed an XML DTD, the instance of which is an
XML file containing the reasoning rules of the
considered subject domain. Reasoning rules can be
embedded into the ontology based on the content
dictionary "logic1" of OPENMath. As we noted above
the reasoning rules to support ontology for Allen's
interval temporal logic are based on the algebra
operations and presented by means of element rdf (Rule
Definition Formalism). This element contains reasoning
rules, each of which defines one of the algebra operations
and has two required attributes: name and type. The
value of the attribute name is the name of the content
dictionary on which the reasoning rules are based. The
value of the attribute type is the name of the signature
file, in which the formats of basic temporal relations are
defined. A reasoning rule is defined by means of the
rule element, which is based on the OPENMath
application object and has one required attribute name.
The value of this attribute is the name of the reasoning
rule, which coincides with the name of the corresponding
algebra operation. Below, DTD for modeling Allen's
algebra operations is presented:
&lt;!-- include dtd for extended</p>
        <p>OPENMath objects --&gt;
&lt;!ELEMENT rdf (rule)*&gt;
&lt;!ELEMENT rule (OMA)&gt;
&lt;!ATTLIST rdf name #REQUIRED</p>
        <p>type #REQUIRED&gt;
&lt;!ATTLIST rule name(inverse|
intersection|composition)
"inverse"&gt;
In case when compositions of relations R and S generate
a single relation T, then they are formalized using the
"logic1" content dictionary of OPENMath by means of
the rules of the following types:
The following is an example of such a composition rule:
before(X, Y)  before(Y, Z)  before(X, Z)
Below, the XML encoding of this composition rule is
presented:
&lt;rdf name = "TemRel" type = "sts"&gt;
&lt;rule name = "composition"&gt;
&lt;OMA&gt;
&lt;OMS name = "implies"</p>
        <p>cd = "logic1"/&gt;
&lt;OMA&gt;
&lt;OMS name = "and" cd = "logic1"/&gt;
&lt;OMA&gt;
&lt;OMS name="before"</p>
        <p>cd = "TempRel"/&gt;
&lt;OMV name = "X"/&gt;
&lt;OMV name = "Y"/&gt;
&lt;/OMA&gt;
&lt;OMA&gt;
&lt;OMS name = "before"</p>
        <p>cd = "TempRel"/&gt;
&lt;OMV name = "Y"/&gt;
&lt;OMV name = "Z"/&gt;
&lt;/OMA&gt;
&lt;/OMA&gt;
&lt;OMA&gt;
&lt;OMS name = "before"</p>
        <p>
          cd = "TempRel"/&gt;
&lt;OMV name = "X"/&gt;
&lt;OMV name = "Z"/&gt;
&lt;/OMA&gt;
&lt;/OMA&gt;
&lt;/rule&gt;
In case, when compositions of relations R and S
generates a set of possible basic temporal relations {B1,
B2, ... ,Bk}, then they are formalized using the "logic1"
content dictionary of OPENMath by means of rules
of the following types:
R(X, Y)  S(Y, Z)  (B1(X, Z)  B2(X, Z) ... Bk(X, Z))
Below is an example of such a composition rule:
meets(X, Y)  during(Y, Z)  (overlaps(X, Z) 
during(X, Z)  starts(X, Z))
Supporting inverse basic temporal relations involves
introducing the following rules in the knowledge base:
B'(X, Y)  B(Y, X)
B(X, Y)  B'(Y, X)
Here B is a basic temporal relation, and B' is the inverse
relation of B. In this case, we should add to the
knowledge base the following reasoning rules for basic
temporal relation before.
after(X,Y)  before(Y, X)
before(X,Y)  after(Y, X)
In addition to the basic temporal relations, we introduce
new temporal relations (before_starts and before_ends)
to define the sequence arising of events. Below are the
formal definitions of these relations:
before_starts(X, Y)  ( Z,V)(meets(Z,X)  meets(Z,V) 
meets(V, Y))
before_ends(X,Y)  (Z,V)(meets(X, Z) meets(Z, V) 
meets(Y, V))
In the next section we will consider principles of
representation of XML-based ontology in Datalog, in
order to convert abstract representations of concepts and
their relationships in subject domain to the realization
level representations. The choice of Datalog language as
a language to support ontology is explained by the fact
that this language is one of the best logical formalism for
describing knowledge of subject domains.
5 XML-based Ontology Representation in
the Datalog
In fact, these two types of predicates are distinguished in
Datalog [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]:
        </p>
        <p>Extensional predicates, which are predicates
whose relations are stored in a database,
Intensional predicates, whose relations are
computed by applying one or more Datalog
rules.</p>
        <p>The following rules to represent XML-based ontology
in Datalog language are proposed:


1. The basic temporal relations are represented
by means of extensional predicates. In other
words, basic temporal relations are considered
as facts, are represented as relations between
events, and are stored in an extensional
database.
2. The reasoning rules are represented by means
of one or more Datalog rules. By means of
Datalog rules we are modeling Allen's interval
algebra operations. Namely, we model the
unary inverse, binary intersection and binary
composition operations. These Detalog rules
are stored in the intensional database.</p>
        <p>Thus, the basic temporal relations are predicates of
extensional databases, and the temporal relations are
predicates of intensional databases. The following is an
example of basic temporal relation: E1 is an event in
which John is married, and E2 is an event in which John
is graduated from school. Then by means of a predicate
after(E1, E2) we fix in the extensional database the
following fact: "John married after graduating from
school".</p>
        <p>We use Datalog rules to infer implicitly defined
information from extensional database. These rules are
represented in intensional database by means of a
Datalog program. As above mentioned, when
compositions of relations R and S generate a single
relation T, then we use the following reasoning rule on
the level of the ontological modeling language to model
such composition operation:
R(X, Y)  S(Y, Z)  T(X, Z)
The following Datalog representation of the considered
reasoning rule is proposed:
T(X, Z)  R(X, Y) AND S(Y, Z)
Below is an example of such Datalog rule:
before(X, Z)  before(X, Y) AND contains(Y, Z)
In case, when compositions of relations R and S generate
a set of possible basic temporal relations {B1, B2, ... ,Bk},
then it is proposed to use the following reasoning rule on
the level of the ontological modeling language to model
the considered composition operation:
R(X, Y)  S(Y, Z)  (B1(X, Z)  B2(X,Z) ... Bk(X, Z))
In this case, we cannot model the considered reasoning
rule by means of one Datalog rule, since in Datalog it is
not allowed to use disjunctions of atomic formulas as a
head of rule. Therefore, we introduce a new temporal
relation, which is represented as disjunctions of relations,
and whose compositions must also be defined and
asserted into the knowledge base. Let the relation D
represent the disjunctions of relations B1, B2, ... ,Bk, then
the composition of relations R and S can be represented
in the intensional database as follows:
D(X, Z)  R(X, Y) AND S(Y, Z)
The set of possible disjunctions over all basic temporal
relations contains 213 relations, but tractable subsets of
this set are closed under composition. Introduction of
relations of type D is generated by the problem to support
such relations. Namely, the set of Datalog rules defining
the result of intersection of relations holding between
two intervals is required to be introduced in the
knowledge base. In other words, all relations which
participate in the relations of type D must be represented
in the knowledge base by means of such Datalog rules in
which these relations are heads of such rules. Let DOS
represent the disjunctions of relations during, overlaps
and starts (see above considered example), then we
should add into knowledge base the following Datalog
rule:
DOS(X, Z) </p>
        <p>meets(X, Y) AND during(Y, Z)
In addition, we should define and add Datalog rules into
the knowledge base to support each relation, which
participate in DOS. Below is an example of such Datalog
rule:
during(X, Z) </p>
        <p>DOS(X, Z) AND before_starts(Z, X)</p>
      </sec>
      <sec id="sec-3-2">
        <title>Acknowledgments</title>
        <p>Let us note, that the result of the intersection of relation
DOS with relation during is relation during:
DOS(X, Y)  during(X, Y)  during(X,Y)
Finally, the intersection of relation meets with relation
during is an empty relation:
meets(X, Y)  during(X, Y)  
Supporting inverse relations is achieved by adding into
the knowledge base the considered Datalog rules below:
B'(X, Y)  B(Y, X)
B(X, Y)  B'(Y, X)
Here, B' and B are basic temporal relations. Below are
examples of such Datalog rules:
after(X, Y)  before(Y, X)
before(X, Y)  after(Y, X)
In this Section we considered the mapping rules from the
proposed ontology into Datalog. Let us note, that when a
composition operation is generated by a set of possible
basic temporal relations, then this composition operation
cannot be directly represented in the Datalog. In this case
a necessity to model such reasoning rule by means of a
Datalog program arises. In other cases, a direct
representation of the reasoning rule by means of a
Datalog rule is provided.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>6 Conclusion</title>
      <p>In this paper an XML-based ontological modeling
language is proposed. The proposed language is a result
of extension of the XML language with the OPENMath
concept. The choice of OPENMath as the basic
formalism is explained by the fact that the considered
formalism is oriented to semantic representation of
mathematical objects. Moreover, that formalism is
extensible and provides a rich mathematical apparatus
for formalizing the knowledge of the subject domains.
The extensibility is achieved by adding new content
dictionaries, in which the concepts and reasoning rules
for the considered subject domains are defined. Besides
the construction of new content dictionaries there is also
a possibility to use content dictionaries of OPENMath in
which different divisions of computational mathematics
are represented, as well as to use the content dictionaries
from different subject domains. It is essential that we use
a computationally complete language for formalization
and systematization of the subject domains knowledge.
Thus, a unified interface is provided for representation
and management of knowledge from different subject
domains.</p>
      <p>I am grateful to Professor Leonid Kalinichenko for scientific
support and collaboration in the field of databases for many
years. He represented a whole epoch in databases and his
contribution is indisputable and significant.
[26] Z. Szallasi. Development of genomic based diagnostics in
various application domains. CEUR-WS, 2022:3-4,
2017.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>H.</given-names>
            <surname>Abbes</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Gargouri</surname>
          </string-name>
          .
          <article-title>Big data integration: a mongodb database and modular ontologies-based approach</article-title>
          .
          <source>In 20th International Conference on Knowledge Based and Intelligent Information and Engineering Systems</source>
          , vol.
          <volume>96</volume>
          , pp.
          <fpage>446</fpage>
          -
          <lpage>455</lpage>
          . Elsevier,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Allen</surname>
          </string-name>
          .
          <article-title>An interval-based representation of temporal knowledge</article-title>
          .
          <source>In 7th International Joint Conference on Artificial Intelligence</source>
          , pp.
          <fpage>221</fpage>
          -
          <lpage>226</lpage>
          .
          <year>1981</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Allen</surname>
          </string-name>
          .
          <article-title>Maintaining knowledge about temporal intervals</article-title>
          .
          <source>Communications of the ACM</source>
          ,
          <volume>26</volume>
          (
          <issue>11</issue>
          ):
          <fpage>832</fpage>
          -
          <lpage>843</lpage>
          ,
          <year>1983</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Allen</surname>
          </string-name>
          .
          <article-title>Towards a general theory of action and time</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>23</volume>
          (
          <issue>2</issue>
          ):
          <fpage>123</fpage>
          -
          <lpage>154</lpage>
          ,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Allen</surname>
          </string-name>
          and
          <string-name>
            <given-names>P. J.</given-names>
            <surname>Hayes</surname>
          </string-name>
          .
          <article-title>A common-sense theory of time</article-title>
          .
          <source>In 9th International Joint Conference on Artificial Intelligence</source>
          , pp.
          <fpage>528</fpage>
          -
          <lpage>531</lpage>
          ,
          <year>1985</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>K.</given-names>
            <surname>Amunts</surname>
          </string-name>
          .
          <article-title>The eu's human brain project (hbp) agship - accelerating brain science discovery and collaboration</article-title>
          .
          <source>CEUR-WS</source>
          ,
          <year>2022</year>
          :
          <fpage>148</fpage>
          -
          <lpage>149</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Batsakis</surname>
          </string-name>
          , G. Antoniou,
          <string-name>
            <surname>and I. Tachmazidis.</surname>
          </string-name>
          <article-title>Integrated representation of temporal intervals and durations for the semantic web</article-title>
          .
          <source>In New Trends in Database and Information Systems II</source>
          , pp.
          <fpage>147</fpage>
          -
          <lpage>158</lpage>
          ,
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S.</given-names>
            <surname>Ceri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Canakoglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kaitoua</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Masseroli</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Pinoli</surname>
          </string-name>
          .
          <article-title>Data-driven genomic computing: Making sense of signals from the genome</article-title>
          .
          <source>CEUR-WS</source>
          ,
          <year>2022</year>
          :
          <fpage>1</fpage>
          -
          <lpage>2</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Davenport</surname>
          </string-name>
          .
          <article-title>S small openmath type system</article-title>
          .
          <source>ACM SIGSAM Bulletin</source>
          ,
          <volume>34</volume>
          (
          <issue>2</issue>
          ):
          <fpage>16</fpage>
          -
          <lpage>21</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Drawar</surname>
          </string-name>
          .
          <article-title>Openmath: An overview</article-title>
          .
          <source>ACM SIGSAM Bulletin</source>
          ,
          <volume>34</volume>
          (
          <issue>2</issue>
          ):
          <fpage>2</fpage>
          -
          <lpage>5</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>H.</given-names>
            <surname>Garcia-Molina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ullman</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Widom</surname>
          </string-name>
          .
          <source>Database Systems: The Complete Book. Prentice Hall</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>G. D.</given-names>
            <surname>Giacomo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Pogg</surname>
          </string-name>
          .
          <article-title>Using ontologies for semantic data integration</article-title>
          .
          <source>In A Comprehensive Guide Through the Italian Database Research Over the Last 25 Years</source>
          , pp.
          <fpage>187</fpage>
          -
          <lpage>202</lpage>
          . Springer,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>G.</given-names>
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Orsi, and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>Ontological queries rewriting and optimization</article-title>
          .
          <source>In ICDE</source>
          , pp.
          <fpage>2</fpage>
          -
          <lpage>13</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>G.</given-names>
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Orsi, and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>Ontological query answering via rewriting</article-title>
          .
          <source>LNCS</source>
          ,
          <volume>6909</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>18</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>J. R.</given-names>
            <surname>Hindley</surname>
          </string-name>
          and
          <string-name>
            <given-names>J. P.</given-names>
            <surname>Seldin</surname>
          </string-name>
          . Introduction to Combinators and -Calculus, Cambridge University Press,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>I.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. F.</given-names>
            <surname>Patel-Schneider</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and D. L.</given-names>
            <surname>McGuinness</surname>
          </string-name>
          .
          <article-title>Owl: A description logic based ontology language</article-title>
          .
          <source>LNCS</source>
          ,
          <volume>3709</volume>
          :
          <fpage>5</fpage>
          -
          <lpage>8</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>L. A.</given-names>
            <surname>Kalinichenko</surname>
          </string-name>
          .
          <article-title>Effective support of databases with ontological dependencies: Relational languages instead of description logics</article-title>
          .
          <source>Programming and Computer Software</source>
          ,
          <volume>38</volume>
          (
          <issue>6</issue>
          ):
          <fpage>315</fpage>
          -
          <lpage>326</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>G.</given-names>
            <surname>Longo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Brescia</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Cavuoti</surname>
          </string-name>
          .
          <article-title>The astronomical data deluge: the template case of photometric redshifts</article-title>
          .
          <source>CEUR-WS</source>
          ,
          <year>2022</year>
          :
          <fpage>27</fpage>
          -
          <lpage>29</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Manukyan</surname>
          </string-name>
          .
          <article-title>Extensible data model</article-title>
          .
          <source>In Advances in Databases and Information Systems</source>
          , pp.
          <fpage>42</fpage>
          -
          <lpage>57</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Manukyan</surname>
          </string-name>
          .
          <article-title>Canonical model: Construction principles</article-title>
          .
          <source>In iiWAS2014</source>
          , pp.
          <fpage>320</fpage>
          -
          <lpage>329</lpage>
          , ACM,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Manukyan</surname>
          </string-name>
          .
          <article-title>On an approach to data integration: Concept, formal foundations and data model</article-title>
          .
          <source>CEUR-WS</source>
          ,
          <year>2022</year>
          :
          <fpage>206</fpage>
          -
          <lpage>213</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Manukyan</surname>
          </string-name>
          and
          <string-name>
            <given-names>G. R.</given-names>
            <surname>Gevorgyan</surname>
          </string-name>
          .
          <article-title>An approach to information integration based on the AMN formalism</article-title>
          .
          <source>In First Workshop on Programming the Semantic Web</source>
          , [27]
          <string-name>
            <given-names>H.</given-names>
            <surname>Thompson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Beech</surname>
          </string-name>
          , and et al.
          <article-title>XML Schema Part1: Structures</article-title>
          . http://www.w3.org,
          <year>2001</year>
          ..
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>