2 GeoMTGM
33
(a)
(b)
t1'
t2'
.........
tj'
tj+1'
file_name
.........
Int_start
Int_end
[t1', t2') U ... U [tj', tj+1')>
SteamFile
[t1,t2) U ... U [tn, tn+1),
[Int_start, Int_end]>
file_name
Fig. 2.8. (a) The complex node and its stream node; (b) their translation into XML
Translation of a Geographical Complex Node with a Geographical Atomic
Node
Let us suppose we have a geographical complex node c i , with name name c i and VT
[t 1 , t 2 ) ∪ · · · ∪ [t i , t i+1 ). c i has a geographical atomic node with value formed by a set
of n coordinates (x i , y i ) ∪ · · · ∪ (x n , y n ). The edge between c i and a i has label
HasGeoProperty, [t1, t2) ∪ . . . ∪ [t i , t i+1 )
The translation of c i is shown in Fig. 2.9; in particular the edge between the
geographical complex node and its geographical atomic node is translated by nesting
the element representing the geoAtomic node within the element representing the
geoComplex node.
Translation of a Relational Edge Between Two Complex Nodes
Let us suppose we have two complex nodes c i and c j , with names name c i and
name c j , VT [t
1 , t
2 ) ∪ · · · ∪ [t
i , t
i+1 ) and [t
1 , t
2 ) ∪ · · · ∪ [t
j , t
j+1 ), respectively. The
edge from c i to c j has label
RelName, [t 1 , t 2 ) ∪ . . . ∪ [t n , t n+1 ).
The translation of c i and c j is shown in Fig. 2.10. In this case, the two complex
nodes are translated into XML elements as described above, and c j is not nested into
c i . Moreover, the relational edge between the two complex nodes is translated into
33
(a)
(b)
.........
file_name
.........
SteamFile
[Int_start, Int_end]>
file_name
Fig. 2.8. (a) The complex node and its stream node; (b) their translation into XML
Translation of a Geographical Complex Node with a Geographical Atomic
Node
Let us suppose we have a geographical complex node c i , with name name c i and VT
[t 1 , t 2 ) ∪ · · · ∪ [t i , t i+1 ). c i has a geographical atomic node with value formed by a set
of n coordinates (x i , y i ) ∪ · · · ∪ (x n , y n ). The edge between c i and a i has label
HasGeoProperty, [t1, t2) ∪ . . . ∪ [t i , t i+1 )
The translation of c i is shown in Fig. 2.9; in particular the edge between the
geographical complex node and its geographical atomic node is translated by nesting
the element representing the geoAtomic node within the element representing the
geoComplex node.
Translation of a Relational Edge Between Two Complex Nodes
Let us suppose we have two complex nodes c i and c j , with names name c i and
name c j , VT [t
1 , t
2 ) ∪ · · · ∪ [t
i , t
i+1 ) and [t
1 , t
2 ) ∪ · · · ∪ [t
j , t
j+1 ), respectively. The
edge from c i to c j has label
RelName, [t 1 , t 2 ) ∪ . . . ∪ [t n , t n+1 ).
The translation of c i and c j is shown in Fig. 2.10. In this case, the two complex
nodes are translated into XML elements as described above, and c j is not nested into
c i . Moreover, the relational edge between the two complex nodes is translated into
