which is important for the maintenance during
the exploitation of the solution.
Analysis of certain structure-independent
database models with applying relational technology
(Paley, 2002, Tenzer, 2001, Bannikov, 2010,
Polishchuk and Thcernykh, 2009) reveals that the
models meet the declared application requirements.
Consequently the realized implementation depends
on project and/or developer’s purposes. This allows
the formulation of an approach for the development
of flexible structure-independent database models
based on relational technologies according to the
project purposes. (Provided that developer follows
exact the project purposes and owns the professional
skill for its adequate translations into the database to
be realized.)
3 APPROACH OF STRUCTURE-
INDEPENDENT DATABASE
CONSTRUCTION
Irrespective of the developer's professional skill the
sequence of steps leading to the reception of a
necessary set of connected relational tables can be
formulated. This sequence meets the requirements
stated above and is described in detail below. The
given set of tables is a physical level of the
structure-independent database. The sequence of
steps represents an approach of structure-
independent databases construction based on
relational technology.
3.1 The Approach Formulation
It's most convenient to formulate an approach,
through its division into some steps with respect to
defined above requirements to be complied. To
meet the both first requirements it is necessary:
1. To define a set of the metadata necessary for the
description of logic structure of a database;
2. To define structure of metadata and to realize
them in the form of a fixed set of the connected
relational tables which make a subschema of
the metadata. The given step includes:
division of the figured out metadata set into the
groups based on accessory (for example,
describing entity and the attributes, describing
communications between entities etc.);
creating a separate relational table for each
group;
specification of links between tables (for
example, between the table of
communications and description tables of
entities and attributes);
To fulfill the following two requirements it is
necessary:
3. To define types of data which will be used for
storage of attributes' values;
4. To develop a subschema of data, in the form of
a final set of the same relational tables not
connected among themselves for storage of
attributes' values. The quantity of tables
corresponds to the quantity of used types of
data. It is expedient to store values in the form
of the triplet "entity-attribute-instance", where
the first two elements represent the reference
links to records in tables of the metadata. It
allows to present data structure in the form of
sparse matrixes;
To construct a structure-independent database
finally it is necessary:
5. To implement the database physical structure
based on definition and specification of the
communications between tables of metadata
subschema and a data subschema;
Fulfillment of the third and fourth requirements is
a consequence of fulfillment of the both first:
Representation of the stored data structure in
the form of sparse matrixes is realized due to
the storage of values in the form of the triplets
(the sparse matrix of instances) and storage of
metadata in a database (the sparse matrixes of
entities and attributes);
Independence between physical and logic level
is realized due to storage of the metadata in
the same database.
This sequence of the realization steps anticipates
working out of user's (logic) structures of data,
executed according to the technology defined by the
developer of a database.
3.2 Utilization of the Approach
The described approach supports the construction of
flexible structure-independent database based on
relational technologies depending on particular
purpose to be achieved in the project. For the
validation of the proposed approach we will consider
an example with known data structure on its basis
and also we will result own variant.
PURPOSE-DRIVEN APPROACH FOR FLEXIBLE STRUCTURE-INDEPENDENT DATABASE DESIGN
359