<!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>metagraph approach for complex domains description</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>© Valeriy M. Chernenkiy</string-name>
          <email>chernen@bmstu.ru</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>© Yuriy E. Gapanyuk</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>© Georgiy I. Revunkov</string-name>
          <email>revunkov@bmstu.ru</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>© Yuriy T. Kaganov</string-name>
          <email>kaganov.y.t@bmstu.ru</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>© Yuriy S. Fedorenko</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>© Svetlana V. Minakova</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bauman Moscow State Technical University</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Moscow</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Russia</string-name>
        </contrib>
      </contrib-group>
      <fpage>342</fpage>
      <lpage>349</lpage>
      <abstract>
        <p>This paper proposes an approach for complex domains description using complex network models with emergence. The advantages of metagraph approach are discussed. The formal definitions of the metagraph data model and metagraph agent model is given. The examples of data metagraph and metagraph rule agent are discussed. The metagraph and hypergraph models comparison is given. It is shown that the hypergraph model does not fully implement the emergence principle. The metagraph and hypernetwork models comparison is given. It is shown that the metagraph model is more flexible than hypernetwork model. Two examples of complex domains description using metagraph approach are discussed: neural network representation and modeling the polypeptide chain synthesis. The textual representation of metagraph model using predicate approach is given. chain, lambda architecture.</p>
      </abstract>
      <kwd-group>
        <kwd>metagraph</kwd>
        <kwd>metavertex</kwd>
        <kwd>metaedge</kwd>
        <kwd>hypergraph</kwd>
        <kwd>hypernetwork</kwd>
        <kwd>neural network</kwd>
        <kwd>polypeptide</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>Currently, models based on complex networks are
increasingly used in various fields of science from
mathematics and computer science to biology and
sociology. This is not surprising because the domains are
becoming more and more complex.</p>
      <p>Therefore, now it is important to offer not only a
model that is capable of storing and processing Big Data
but also a</p>
      <p>model that is capable of handling the
complexity of data. That is why the development of a
universal model for complex domains description is an
actual task.</p>
      <p>One of the varieties of such models is “complex
networks with emergence”. The emergent element means
a whole that cannot be separated into its component parts.</p>
      <p>As far as the authors know, currently there are two
“complex
networks
with
emergence”
models:
hypernetworks
and
metagraphs.</p>
      <p>The
hypernetwork
model is mature and it helps to understand many aspects
of complex networks with an emergence.</p>
      <p>But from the author's point of view, the metagraph
model is</p>
      <p>more flexible and convenient for use in
information systems.</p>
      <p>This paper discusses the metagraph
model and
compares it with other complex graph models.
2 Complex networks models comparison</p>
      <p>In this section, the metagraph model will be formally
described and it will be compared with hypergraph and
hypernetwork models.
2.1 Metagraph model formalization</p>
      <p>
        A metagraph is a kind of complex network model,
proposed by A. Basu and R. Blanning [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and then
adapted for information systems description by the
authors [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. According to [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]: 
= 〈 , 
,  , 
〉,
where
      </p>
      <p>– metagraph; V – set of metagraph vertices;
MV – set of metagraph metavertices; E – set of metagraph
edges, ME – set of metagraph metaedges.</p>
      <p>A</p>
      <p>metagraph vertex is described by the set of
attributes:   = {</p>
      <p>},   ∈  , where   – metagraph
vertex;</p>
      <p>– attribute.</p>
      <p>A metagraph edge is described by the set of attributes,
the source and destination vertices and edge direction
flag: 
where</p>
      <p>= 〈  ,   ,</p>
      <p>, {
–
metagraph
 }〉,   ∈  , 
edge;  
(metavertex) of the edge;  
= 
vertex
(metavertex) of the edge; eo – edge direction flag
(eo=true – directed edge, eo=false – undirected edge);
atrk – attribute.</p>
      <p>The metagraph fragment: 
∪  ∪ 
), where</p>
      <p>= {  },   ∈ ( ∪
 – metagraph fragment;  
– an element that belongs to union of vertices,
metavertices, edges and metaedges.</p>
      <p>The
 },</p>
      <p>metagraph
 〉, 
 ∈ 
metavertex:</p>
      <p>=
, where 

–
metagraph
metavertex belongs to set of metagraph metavertices MV;
  – attribute,</p>
      <p>– metagraph fragment.</p>
      <p>Thus, a metavertex in addition to the attributes
includes a fragment of the metagraph. The presence of
private attributes and connections for a metavertex is
distinguishing feature of a metagraph. It makes the
definition of metagraph to be holonic – a metavertex may
include a number of lower-level elements and in turn,
may be included in a number of higher level elements.</p>
      <p>From the general system theory point of view, a
metavertex is a special case of the manifestation of the
emergence principle, which means that the metavertex
with its private attributes and connections becomes a
whole that cannot be separated into its component parts.
The example of metagraph is shown in figure 1.
|
mv1
e1
vv11
e3
e2
vv22
vv33
e7
e8
e4
e5
mv3
mv2
vv44
vv55
e6</p>
      <p>This example contains three metavertices: mv1, mv2,
and mv3. Metavertex mv1 contains vertices v1, v2, v3 and
connecting them edges e1, e2, e3. Metavertex mv2
contains vertices v4, v5 and connecting them edge e6.
Edges e4, e5 are examples of edges connecting vertices
v2-v4 and v3-v5 respectively and they are contained in
different metavertices mv1 and mv2. Edge e7 is an
example of an edge connecting metavertices mv1 and
mv2. Edge e8 is an example of an edge connecting vertex
v2 and metavertex mv2. Metavertex mv3 contains
metavertex mv2, vertices v2, v3 and edge e2 from
metavertex mv1 and also edges e4, e5, e8 showing the
holonic nature of the metagraph structure. Figure 1
shows that metagraph model allows describing complex
data structures and it is the metavertex that allows
implementing emergence principle in data structures.</p>
      <p>The vertices, edges, and metavertices are used for
data description and the metaedges are used for process
description.</p>
      <p>The metagraph metaedge:   =
〈  ,   ,  , {  },   〉,   ∈  ,   =  | ,
where   – metagraph metaedge belongs to set of
metagraph metaedges ME;   – source vertex
(metavertex) of the metaedge;   – destination vertex
(metavertex) of the metaedge; eo – metaedge direction
flag (eo=true – directed metaedge, eo=false – undirected
metaedge);   – attribute,   – metagraph fragment.
The example of directed metaedge is shown in figure 2.</p>
      <p>... ...
Proceedings of the XIX International Conference
“Data Analytics and Management in Data Intensive
Domains” (DAMDID/RCDL’2017), Moscow, Russia,
October 10–13, 2017
and metavertices are added. Thus, metaedge allows
binding the stages of nested metagraph fragment
development to the steps of the process described with
metaedge.
2.2 Metagraph and hypergraph models comparison</p>
      <p>
        In this section, the hypergraph model will be
examined and compared with metagraph model.
According to [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]:  = 〈 ,  〉,   ∈  , ℎ  ∈  ,
where  – hypergraph;  – set of hypergraph vertices;
 – set of non-empty subsets of  called hyperedges;
  – hypergraph vertex; ℎ  – hypergraph hyperedge.
      </p>
      <p>A hypergraph may be directed or undirected. A
hyperedge in an undirected hypergraph only includes
vertices whereas, in a directed hypergraph, a hyperedge
defines the order of traversal of vertices. The example of
an undirected hypergraph is shown in figure 3.</p>
      <p>This example contains three hyperedges: he1, he2, and
he3. Hyperedge he1 contains vertices v1, v2, v4, v5.
Hyperedge he2 contains vertices v2 and v3. Hyperedge he3
contains vertices v4 and v5. Hyperedges he1 and he2 have
a common vertex v2. All vertices of hyperedge he3 are
also vertices of hyperedge he1.</p>
      <p>Comparing metagraph and hypergraph models it
should be noted that the metagraph model is more
expressive then the hypergraph model. According to
figures 1 and 3 it is possible to note some similarities
between the metagraph metavertex and the hypergraph
hyperedge, but the metagraph offers more details and
clarity because the metavertex explicitly defines
metavertices, vertices and edges inclusion, whereas the
hyperedge does not. The inclusion of hyperedge he3 in
hyperedge he1 in fig. 3 is only graphical and informal,
because according to hypergraph definition a hyperedge
inclusion operation is not explicitly defined.</p>
      <p>v1
v4
v5
he3
he1
v2
v3
he2</p>
      <p>Thus the metagraph is a holonic graph model whereas
the hypergraph is a near flat graph model that does not
fully implement the emergence principle. Therefore,
hypergraph model doesn’t fit well for complex data
structures description.
2.3 Metagraph and hypernetwork models
comparison</p>
      <p>The amazing fact is that the hypernetwork model was
invented twice. The first time the hypernetwork model
was invented by Professor Vladimir Popkov with
colleagues in 1980s. Professor V. Popkov proposes
several kinds of hypernetwork models with complex
formalization and therefore
only
main ideas of
0, 
1, 
2, ⋯ 
 . The hypergraph 
≡ 
secondary network of order i. Also given the sequence of
mappings between networks of different orders: 
 is called a</p>
      <p>≡
0 is

Ф</p>
      <p>→</p>
      <p>−1 Ф→ −1
= 〈
, 
⋯ 
1, ⋯</p>
      <p>Ф1
1 →  . Then the hierarchical</p>
      <p>; Ф1, ⋯ Ф 〉. The emergence in
abstract hypernetwork of order K may be defined as
the layers of hypergraphs.
this model occurs because of the mappings Ф between</p>
      <p>
        The second time the hypernetwork model was
proposed by Professor Jeffrey Johnson in his monograph
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] in 2013. The main idea of Professor J. Johnson variant
of hypernetwork model is the idea of hypersimplex (the
term
is
adopted
from
polyhedral
combinatorics).
      </p>
      <p>
        According to [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], a hypersimplex is an ordered set of
vertices with an explicit n-ary relation and hypernetwork
is a set of hypersimplices. In the hierarchical system, the
hypersimplex combines k elements at the N level (base)
with
      </p>
      <p>one element at the N+1 level (apex). Thus,
hypersimplex establishes an emergence between two
adjoining levels.</p>
      <p>The example of hypernetwork that combines the
ideas of two approaches is shown in figure 4.</p>
      <p>v5
v6
he3</p>
      <p>WS1
hypersimplex
he1
v4
v3
v1
Ф1
v2</p>
      <p>PS
he2
hypersimplex is emphasized with the dash-dotted line.
The hypersimplex is formed by the base (vertices  3 and
 4 of 
) and apex (vertex  5 of 
1).</p>
      <p>The
hypernetwork</p>
      <p>
        model became popular for
complex domains description. For example, Professor
Konstantin Anokhin [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] proposes a new fundamental
theory of the organization of higher brain functions.
According to this theory, biological neural networks
(connectomes)
are
organized
into
cognitive
hypernetworks (cognitomes).
      </p>
      <p>Vertices of cognitome
form</p>
      <p>COGs (Gognitive Groups). Each COG may be
represented as hypersimplex. The base of COG is a set of
the vertices of underlying neural networks, and its apex
is a vertex possessing a new quality at the macrolevel of
cognitive hypernetworks. Thus, apex combines the base
elements and emergence appears.</p>
      <p>It should be noted that unlike the relatively simple
The primary network 
is formed by the vertices of
model is more flexible than hypernetwork model.</p>
      <sec id="sec-1-1">
        <title>Hypernetwork</title>
        <p>“horizontal”
appears
hypersimplices.</p>
        <p>The
between
emergence
metavertices.
hypergraph model the hypernetwork model is a full
model with emergence. Consider the differences between
the hypernetwork and metagraph models.</p>
        <p>According to the definition of a hypernetwork it is a
a layered description of graphs. It is assumed that the
hypergraphs may be divided into homogeneous layers
and then
mapped with</p>
        <p>mappings or combined with
hypersimplices. Metagraph approach is more flexible. It
allows combining arbitrary elements that may be layered
or not using metavertices.</p>
        <p>Comparing the hypernetwork and metagraph models
we can make the following notes:
model</p>
        <p>may be considered as
or layer-oriented. The</p>
        <p>emergence
adjoining
metagraph
levels</p>
        <p>using
model
may
be
considered as “vertical” or aspect-oriented. The
appears</p>
        <p>between any levels using
• In hypernetwork model, the elements are organized
using hypergraphs inside layers and using mappings
or hypersimplices between layers. In
metagraph
model, metavertices are used for organizing elements
both inside layers and between layers. Hypersimplex
may be considered as a special case of metavertex.
Metagraph model allows organizing the results of
previous organizations. The fragments of the flat
graph</p>
        <p>may
metavertices
be
may
organized
into</p>
        <p>metavertices,
be</p>
        <p>organized in higher-level
metavertices and so on. The metavertex organization
is more flexible than hypersimplex organization
because hypersimplex assumes base and apex usage
and metavertex may include general form graph.
Metavertex may represent a separate aspect of the
organization. The same fragments of the flat graph
may be included in different metavertices whether
these metavertices are used for modeling different
aspects.</p>
        <p>Thus, we can draw a conclusion that metagraph
However,
it
must
be
emphasized
that
the
hypernetwork and metagraph models are only different
formal descriptions of the same processes that occur in
the networking with the emergence.</p>
        <p>From the historical point of view, the hypernetwork
model was the first complex network with an emergence
model and it helps to understand
many aspects of
complex networks with an emergence.
3 Metagraph model processing</p>
        <p>The metagraph model is designed for complex data
and process description. But it is not intended for data
transformation. To solve this issue, the metagraph agent
(</p>
        <p>) designed for data transformation is proposed.
There are two kinds of metagraph agents: the metagraph
 ) and the metagraph rule agent (
 ).
function agent (
Thus 

= 
 |</p>
        <p>.</p>
        <p>The metagraph function agent serves as a function
with input and output parameter in form of metagraph:
  = 〈
 , 

, 
〉,
(1)
where   – metagraph function agent;   – input
parameter metagraph;   – output parameter
metagraph;  – abstract syntax tree of metagraph
function agent in form of metagraph.</p>
        <p>The metagraph rule agent is rule-based: agR =
〈MG, R, AGST〉, R = {ri}, ri: MGj → OPMG, where   –
metagraph rule agent;  – working metagraph, a
metagraph on the basis of which the rules of agent are
performed;  – set of rules   ;   – start condition
(metagraph fragment for start rule check or start rule);
  – a metagraph fragment on the basis of which the
rule is performed;   – set of actions performed on
metagraph.</p>
        <p>The antecedent of the rule is a condition over
metagraph fragment, the consequent of the rule is a set of
actions performed on metagraph. Rules can be divided
into open and closed.</p>
        <p>The consequent of the open rule is not permitted to
change metagraph fragment occurring in rule antecedent.
In this case, the input and output metagraph fragments
may be separated. The open rule is similar to the template
that generates the output metagraph based on the input
metagraph.</p>
        <p>The consequent of the closed rule is permitted to
change metagraph fragment occurring in rule antecedent.
The metagraph fragment changing in rule consequent
cause to trigger the antecedents of other rules bound to
the same metagraph fragment. But incorrectly designed
closed rules system can lead to an infinite loop of
metagraph rule agent.</p>
        <p>If the agent contains only open rules it is called an
open agent. If the agent contains only closed rules it is
called a closed agent.</p>
        <p>Thus, metagraph rule agent can generate the output
metagraph based on the input metagraph (using open
rules) or can modify the single metagraph (using closed
rules). The example of metagraph rule agent is shown in
figure 5.</p>
        <p>The metagraph rule agent “metagraph rule agent 1” is
represented as a metagraph metavertex. According to the
definition it is bound to the working metagraph MG1 – a
metagraph on the basis of which the rules of the agent are
performed. This binding is shown with edge e4.</p>
        <p>The metagraph rule agent description contains inner
metavertices corresponds to agent rules (rule 1 … rule
N). Each rule metavertex contains antecedent and
consequent inner vertices. In given example mv2
metavertex bound with antecedent which is shown with
edge e2 and mv3 metavertex bound with consequent
which is shown with edge e3. Antecedent conditions and
consequent actions are defined in form of attributes
bound to antecedent and consequent corresponding
vertices.</p>
        <p>The start condition is given in form of attribute
“start=true”. If the start condition is defined as a start
metagraph fragment then the edge bound start metagraph
fragment to agent metavertex (edge e1 in given example)
is annotated with attribute “start=true”. If the start
condition is defined as a start rule than the rule
metavertex is annotated with attribute “start=true” (rule
1 in given example). Figure 5 shows both cases
corresponding to the start metagraph fragment and to the
start rule.</p>
        <p>mv1</p>
        <p>The distinguishing feature of metagraph agent is its
homoiconicity which means that it can be a data structure
for itself. This is due to the fact that according to
definition metagraph agent may be represented as a set
of metagraph fragments and this set can be combined in
a single metagraph. Thus, the metagraph agent can
change the structure of other metagraph agents.
4 The examples of complex domains
description using metagraph approach</p>
        <p>In this section, we give two examples of complex
domains description using metagraph approach.
4.1 Using metagraph approach for neural network
representation</p>
        <p>
          This subsection is based on our paper [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. We begin
with simple perceptron representation using metagraph
model. According to the Rosenblatt perceptron model
[
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], a conventional perceptron consists of three elements:
S, A and R.
        </p>
        <p>The layer of sensors (S) is an array of input signals.
The associative layer (A) is a collection of intermediate
elements which are triggered if a particular set of input
signals is activated at the same time. The adder (R) is
started when a particular collection of A-elements is
activated concurrently.</p>
        <p>
          According to the notation adopted in the M. Minsky
and S. Papert perceptron model [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], the value of a signal
on an A-element can be represented as a boolean
predicate φ(S), and the value of a signal in the adder layer
as a predicate ψ(A, W). According to [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], a function that
takes either 0 or 1 is regarded as a boolean predicate.
        </p>
        <p>Depending on the particular type of perceptron, the
form of predicates φ(S) and ψ(A, W) can be different.
Usually, predicate φ(S) is used to check whether the total
input signal from sensors exceeds a certain threshold or
not. Also predicate ψ(A, W) (where W is a weight vector)
is used to see if the weighted sum from A-elements
exceeds a particular threshold.</p>
        <p>In our case, the actual form of predicates is not
important. What is important is that the structure of φ(S)
and ψ(A, W) can be represented as an abstract syntactic
tree. Then we can represent the perceptron structure as a
combination of metagraph function agents. Each
predicate can be represented as a kind of the formula 1:
  = 〈S, A,   〉,   = 〈〈{  },  〉, R,   〉. This
representation is shown in figure 6.</p>
        <p>S
{-1;0;1}</p>
        <p>Φ
ASTΦ
Ψ</p>
        <p>W
A</p>
        <p>ASTΨ</p>
        <p>R</p>
        <p>An A-element can be represented as a function agent
  . The input parameter is the value vector S, the output
parameter is the value vector A. The description of the
perceptron is similar to the description of the function
agent   . The input parameter is a the metagraph
representation of a tuple holding the description of
Aelements as agent-functions   and vector W. The output
parameter is the amplitude of output signal R.</p>
        <p>The description of functions can contain other
parameters, e.g., threshold values, but we assume that
these parameters are included in the description of the
abstract syntactic tree.</p>
        <p>Thus, we can describe the perceptron structure as a
combination of metagraph function agents. Now we
describe neural network operation using metagraph rule
agents which are shown in figure 7.</p>
        <p>agMO
aaggMMCC
agML</p>
        <p>agMR
The metagraph
representation
of a neural network</p>
        <p>The metagraph representation of neural network may
be created similarly to the previously reviewed
perceptron approach. Such a representation is a separate
task that depends on neural network topology.</p>
        <p>In order to provide a neural network operation the
following agents are used:
•   – the agent responsible for the creation of the
network;
•   – the agent responsible for the modification of
the network;
•   – the agent responsible for the learning of the
network;
•   – the agent responsible for the execution of the
network.</p>
        <p>In figure 7 the agents are shown as metavertices by
dotted-line ovals.</p>
        <p>The network-creating agent   implements the
rules of creating an original neural network topology.
The agent holds both the rules of creating separate
neurons and rules of connecting neurons into a network.
In particular, the agent generates abstract syntactic trees
of metagraph function agents   and   .</p>
        <p>The network-modification agent   holds the
rules of modification the network topology in process of
operation. It is especially important for neural networks
with variable topology such as HyperNEAT and SOINN.</p>
        <p>The network-learning agent   implements a
particular learning algorithm. As a result of learning the
changed weights are written in the metagraph
representation of the neural network. It is possible to
implement a few learning algorithms by using different
sets of rules for agent   .</p>
        <p>The network-executing agent   is responsible for
the start and operation of the trained neural network.</p>
        <p>The agents can work separately or jointly which may
be especially important in the case of variable topologies.
For example when a HyperNEAT or SOINN network is
trained, agent   can call the rules of agent   to
change the network topology in the process of learning.</p>
        <p>In fact, each agent uses its rules to implement a
specific program “machine”. The use of the metagraph
approach allows us to implement the “multi-machine”
principle: a few agents having different goals implement
different operations on the same data structure.</p>
        <p>Thus, we can draw a conclusion that metagraph
approach helps to describe both the structure of separate
neurons and the structure of neural network operation.
4.2 Using metagraph approach for modeling the
polypeptide chain synthesis
Molecular biology is considered to be one of the most
difficult to study topics of biological science. It's hard to
believe that the complexity of functioning of the
biological cell invisible to the human eye exceeds the
complexity of functioning of a large ERP-system, which
can contain thousands of business processes. The
difficulty of studying biological processes is also due to
the fact that in studying it is impossible to abstract from
the physical and chemical features that accompany these
processes. Therefore, the development of learning
software that helps to better understand even one
complex process is a valid task.</p>
        <p>We will review the process of synthesis of a
polypeptide chain which is also called “translation” in
molecular biology. Translation is an essential part of the
protein biosynthesis. This process is very valid from an
educational point of view because protein biosynthesis is
considered in almost all textbooks of molecular biology.</p>
        <p>The translation process is very complicated and in
this section, we review it in a simplified way.</p>
        <p>The first main actor of the translation process is
messenger RNA or mRNA, which may be represented as
a chain of codons. The second main actor of the
translation process is ribosome consisting of the large
subunit and the small subunit. The small subunit is
responsible for reading information from
mRNA and
large subunit is responsible for generating fragments of
the polypeptide chain.
three stages.</p>
        <p>
          According to [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] the translation process consists of
The first stage is initiation. At this stage, the ribosome
assembles around the target mRNA. The small subunit is
attached at the start codon.
        </p>
        <p>The second stage is elongation. The small subunit
reads information from the current codon. Using this
information, the large subunit generates the fragment of
the
polypeptide chain.</p>
        <p>After that ribosome
moves
(translocates) to the next mRNA codon.</p>
        <p>The third stage is termination. When the stop codon
is reached, the ribosome releases the synthesized
polypeptide chain. Under some conditions, the ribosome
may be disassembled.</p>
        <p>In this section, we use metagraph approach for
translation</p>
        <p>process modeling. The representation is
shown in figure 8.</p>
        <p>meRNA СSTART
e1 ... eK-1</p>
        <p>CK
eK+1 ...</p>
        <p>eN
MGP</p>
        <p>PSTART
agM
agM</p>
        <p>CSTOP
agM</p>
        <p>MGP
PSTART
...</p>
        <p>PK
...</p>
        <p>PSTOP
MGP
PSTART
...</p>
        <p>PK
fragment, containing inner codons of mRNA (  ) linked

–
attribute, 
–
metagraph</p>
        <p>The codon (shown in figure 8 as an elementary
vertex)
may
also
be represented
as
metavertex,
containing inner vertices and edges according to the</p>
        <p>Ribosome may be represented as metagraph rule
required level of detail.
agent agRB = 〈meRNA, R,  
where</p>
        <p>working metagraph; 
– mRNA metaedge representation used as
– set of rules   ;  
– start
fragment of polypeptide chain.
codon used as start agent condition;  
– codon on the
basis of which the rule is performed;   – the added</p>
        <p>The antecedent of the rule approximately corresponds
to the small subunit of ribosome
modeling. The
consequent of the rule approximately corresponds to the
large subunit of ribosome modeling.
input and output metagraph fragments don’t contain
common elements.
with undirected edges.</p>
        <p>While processing codons of mRNA agent agRB
sequentially adds fragments of the polypeptide chain PK
to the output metagraph MGP. Vertices PK are connected</p>
        <p>The process represented in figure 8 is very high-level.
But metagraph approach allows representing related
processes with different levels of abstraction.</p>
        <p>For example, for each codon or peptide, we can link
metavertex with its inner representation. And we can
modify this representation during translation process
using metagraph agents.</p>
        <p>Thus, the metagraph approach allows us to represent
a model of polypeptide chain synthesis which can be the
basis for the learning software.
5 The textual representation of metagraph
model</p>
        <p>In previous sections, the formal definition and
graphical examples of metagraph model were defined.
But to successfully operate with metagraph model we
also
need
textual
representation.</p>
        <p>As
such
a
representation, we use a logical predicate model that is
close to logical programming languages e.g. Prolog.
Logical predicates used in this section and boolean
predicates used in subsection 4.1 should not be confused.</p>
        <p>The
classical</p>
        <p>Prolog
uses following form
of
predicate: 
(

used an extended form of predicate where along with
atoms predicate can also include key-value pairs and
2, ⋯ , 
 ). We
nested predicates: 
⋯ ,   
in Table 1.</p>
        <p>(⋯ ), ⋯ ). The mapping of metagraph
model fragments into predicate representation is shown
, ⋯ , 
=</p>
        <p>Metagraph representation</p>
        <p>Textual representation</p>
        <p>Metavertex(Name=mv1, v1,
v2, v3)
Edge(Name=e1, v1, v2)
Edge(Name=e1, v1, v2,
eo=false)
1. Edge(Name=e1, v1, v2,
eo=true)
2. Edge(Name=e1, vS=v1,
vE=v2, eo=true)
Metavertex(Name=mv2, v1,
v2, v3,
Edge (Name=e1, v1, v2),
Edge(Name=e2, v2, v3),
Edge(Name=e3, v1, v3))
The mRNA is shown in figure 8 as metaedge</p>
        <p>Case 1 shows the example of metavertex mv1 which
contains three nested disjoint vertices v1, v2, and v3. The
predicate corresponds to metavertex, nested vertices are
isomorphic to atoms that are parameters of the predicate.
As the name of the predicate, “Metavertex” is used as the
corresponding element of metagraph model. Key-value
parameter “Name” is used to set the name of metavertex.
This case is the simplest, since nested vertices are
disjoint, and metavertex in this case is isomorphic to the
hypergraph hyperedge.</p>
        <p>Case 2 shows metagraph edge which may be
represented as a special case of metavertex containing
source and destination vertices. This case is also
isomorphic to the hypergraph hyperedge. The metagraph
edge is represented as a predicate with the name “Edge”.
The source and destination vertices are represented as
predicate atom parameters.</p>
        <p>Case 3 also shows metagraph edge which fully
complies with the formal definition of undirected edge
including direction flag parameter.</p>
        <p>Case 4 shows an example of directed edge. Direction
flag parameter is also used. The source and destination
vertices may be represented as predicate atom parameters
(case 4.1) or as predicate key-value parameters (case
4.2).</p>
        <p>Case 5 shows an example of metavertex mv1 which
contains three nested vertices v1, v2 and v3 joined with
undirected edges e1, e2, and e3. Edges are represented
with separate predicates that are nested to the metavertex
predicate. Case 6 is similar to case 5 unless edges e1, e2,
and e3 are directed.</p>
        <p>Case 7 shows an example of directed metaedge me1
which joins vertex v2 and metavertex mv3 and contains
metavertex mv4. The metaedge is represented as a
predicate with the name “Metaedge”.</p>
        <p>Case 8 shows an example of metagraph fragment mg0
which contains vertex v2, metavertices mv3 and mv5 and
metaedge me1 which joins vertex v2 and metavertex mv3
and contains metavertex mv4. The metagraph fragment
is represented as a predicate with the name “Metagraph”,
the vertex as a predicate with the name “Vertex”.</p>
        <p>The attribute may be represented as a special case of
metavertex containing name and value. Case 9 shows
simple numeric attribute representation. Case 10 shows
an example of vertex v1 containing numeric attribute and
reference attribute that refers to the metavertex mv2. The
attribute is represented as a predicate with the name
“Attribute”.</p>
        <p>Case 11 shows an example of metagraph rule agent
“metagraph agent 1” representation (the predicate with
the name “Agent” is used). As a work metagraph mg1 is
used (parameter “WorkMetagraph”). The “Rules”
predicate contains rules definition (nested predicate
“Rule” is used). As a start rule “rule 1” is used which is
defined by “start=true” parameter. Predicate “Condition”
corresponds to the rule condition. Parameter
“WorkMetagraph” contains a reference to the tested
metavertex mv1. The condition tests that metavertex mv1
contains vertices v1 and v2 with attribute k. Founded
values of k attribute of vertices v1 and v2 are assigned to
the $k1 and $k2 variables. Vertices v1 and v2 should be
joined with edge containing attribute “flag=main”. If
condition holds and metagraph fragment is found then
actions are performed (actions are defined by predicate
“Action”). Parameter “WorkMetagraph” contains a
reference to the result metavertex mv2. The example
action contains adding new elements (that is defined by
predicate “Add”). The vertex “Sum” is added containing
attribute “k=$k1+$k2”. Predicate “Eval” is used to
define the calculated expression.</p>
        <p>Thus, we defined a predicate description of all the
main elements of metagraph data model.</p>
        <p>The proposed predicate model is homoiconic. Since
predicate approach is used both for metagraph data
model definition and for metagraph agents definition
then high-level metagraph agents may change the
structure of low-level metagraph agents by modifying
their predicate definition.</p>
        <p>The textual representation of metagraph model may
be used for storing metagraph model elements in
relational or NoSQL databases.</p>
        <p>
          It should be noted that metagraph model is well
compatible with the Big Data approach. Nowadays the
lambda architecture described in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] is considered to be
a classic approach.
        </p>
        <p>The textual representation of metagraph model is the
base for processing metagraph data on all layers of the
lambda architecture. On the batch layer, the textual
representation is used for storing in master dataset. On
the serving layer, the textual representation helps to
construct the batch views. On the speed layer, the textual
representation helps to construct the real-time views.
Batch and real-time views may be constructed using
metagraph agents.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>6 Conclusion</title>
      <p>Nowadays complex network models have become
popular for complex domains description.</p>
      <p>The metagraph model is a kind of complex network
model. The emergence in metagraph model is established
using metavertices and metaedges.</p>
      <p>The hypergraph model does not fully implement the
emergence principle.</p>
      <p>The hypernetwork model fully implements the
emergence principle using hypersimplices. The
metagraph model is more flexible than hypernetwork
model.</p>
      <p>For metagraph model processing, the metagraph
function agents and the metagraph rule agents are used.</p>
      <p>Two examples of complex domains description using
metagraph approach are discussed: neural network
representation and modeling the polypeptide chain
synthesis. Metagraph approach helps to describe
complex domains in a unified way.</p>
      <p>The textual representation of metagraph model may
be used for storing metagraph model elements in
relational or NoSQL databases.</p>
      <p>The metagraph model is well compatible with the Big</p>
      <sec id="sec-2-1">
        <title>Data approach, in architecture.</title>
        <p>particular
with the lambda</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Basu</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blanning</surname>
            <given-names>R</given-names>
          </string-name>
          .
          <article-title>Metagraphs and their applications</article-title>
          . Springer, New York (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>E.</given-names>
            <surname>Samohvalov</surname>
          </string-name>
          , G. Revunkov, Yu. Gapanyuk, “
          <article-title>Metagraphs for describing semantics and pragmatics of information systems</article-title>
          ,” in Herald of Bauman Moscow State Technical University, vol.
          <volume>1</volume>
          (
          <issue>100</issue>
          ), pp.
          <fpage>83</fpage>
          -
          <lpage>99</lpage>
          , (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Vitaly</surname>
            <given-names>I. Voloshin.</given-names>
          </string-name>
          <article-title>Introduction to Graph and Hypergraph Theory</article-title>
          . Nova Science Publishers, Inc., (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Akhmediyarova</surname>
            ,
            <given-names>A.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuandykova</surname>
            ,
            <given-names>J.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kubekov</surname>
            ,
            <given-names>B.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Utepbergenov</surname>
            ,
            <given-names>I.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Popkov</surname>
            ,
            <given-names>V.K.</given-names>
          </string-name>
          :
          <article-title>Objective of Modeling and Computation of City Electric Transportation Networks Properties</article-title>
          .
          <source>In: International Conference on Information Science and Management Engineering (Icisme</source>
          <year>2015</year>
          ), pp.
          <fpage>106</fpage>
          -
          <lpage>111</lpage>
          ,
          <string-name>
            <surname>Destech</surname>
            <given-names>Publications</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Phuket</surname>
          </string-name>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Johnson</surname>
          </string-name>
          , J.:
          <article-title>Hypernetworks in the Science of Complex Systems</article-title>
          . Imperial College Press, London (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Anokhin</surname>
            ,
            <given-names>K.V.</given-names>
          </string-name>
          :
          <article-title>Cognitom: theory of realized degrees of freedom in the brain</article-title>
          .
          <source>In: The Report Given at Fifth International Conference on Cognitive Science</source>
          ,
          <string-name>
            <surname>Kaliningrad</surname>
          </string-name>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Fedorenko</surname>
            ,
            <given-names>Yu.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gapanyuk</surname>
            ,
            <given-names>Yu.E.</given-names>
          </string-name>
          <article-title>Multilevel neural net adaptive models using the metagraph approach</article-title>
          .
          <source>Optical Memory and Neural Networks</source>
          . Volume
          <volume>25</volume>
          , Issue 4, pp.
          <fpage>228</fpage>
          -
          <lpage>235</lpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Minsky</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Papert</surname>
            ,
            <given-names>S.A.</given-names>
          </string-name>
          <string-name>
            <surname>Perceptrons</surname>
          </string-name>
          . The MIT Press (
          <year>1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Samish</surname>
            ,
            <given-names>I. Computational Protein</given-names>
          </string-name>
          <string-name>
            <surname>Design</surname>
          </string-name>
          . Springer Science+Business Media, New York (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Marz</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Warren</surname>
            ,
            <given-names>J. Big</given-names>
          </string-name>
          <string-name>
            <surname>Data</surname>
          </string-name>
          .
          <article-title>Principles and best practices of scalable realtime data systems</article-title>
          . Manning, New York (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>