Entity Modelling

www.entitymodelling.org - entity modelling introduced from first principles - relational database design theory and practice - dependent type theory

In mathematics, a matrix is a rectangular array of numeric elements, as for example the matrix

23 | 15 | 29 | 22 |

31 | 6 | 9 | 8 |

-1 | 8 | 17 | 52 |

having 3 rows and 4 columns. Though, this is essentially 2 dimensional (we gave the two dimension model in figure 47) , the content can be communicated in a linear message either row by row as [23,15,29,22] followed by [31,6,9,8] then [-1,8,17,52] which we can describe by the message structure

matrix => row* row => element*

matrix => column* column => element*

As you see with this example, each element of any matrix is both part of a row and
part of a column and so,
as with the previous *marriage* entity, the *element* entity is
modelled as a subordinate to two others of different types as shown in figure 47.
The two ways of communicating the matrix correspond to the two branches of this entity
model.
The row by row communication is described by this model:

Whereas, matrix structure, as considered in the previous section, is essentially 2 dimensional, hierarchically structured information may be flattened into a linear i.e. 1 dimensional structure in which nesting of detail represents the hierarchy. XML is a language designed for this purpose.

In the XML language communication of a hierarchically structured entity, each type
*X* of entity is enclosed by its own parenthesis in the form
of character sequences
for start and
end element; this message that follows these
conventions^{1}: