Data model import/export

Purpose of import/export

Use import to upload .xml files with the description of the data model from Unidata. Import can be used for:

  • uploading backup copies of data model elements;
  • changing data model elements by importing the edited file.

Use export to download .xml files with the description of the data model from Unidata. Export can be used for:

  • creating backups for the data model, units of measurement, enumerations, or source systems;
  • subsequent editing of data model elements in .xml format;
  • using data model elements in other Unidata installations, or for integration with other systems.

How to import/export

To import data model files to the Unidata platform:

  • Go to the “Import/export” section, if it is not currently open.
  • Make sure that the Import tab (Figure 1) is open in the “Import/export” section.
  • Click “ Select .xml file” next to the required data model element. The following files are available for import/export:
    • Data sources: source-systems.xml. Data for this file is generated in the “Data Sources” section.
    • Units of measurement: measure.xml. Data for this file is generated in the “Measurement units” section.
    • Enumerations: enumerations.xml. Data for this file is generated in the “Enumerations” section.
    • Data model: model.xml. The file describes the data structure: entities/lookup entities and attributes in them. Data for this file is generated in the “Data model” section.
    • Качество данных: data-quality.xml. Файл описывает правила качества, наборы правил и назначения правил на реестры/справочники.
  • A browser window will open so you can choose a file.
  • Find the required file in the file system, select it, and click “Open”.
  • Wait for the download to complete.

To export data model files from the Unidata platform:

  • Go to the “Import/export” section, if it is not currently open.
  • Go to the “Export” tab (Figure 2).
  • Click the “Export” button next to the required data model element.
  • The selected data model element will be downloaded. The downloaded file will contain the date and time of download in its name.

Features of data model import/export

When deleting an entity, a lookup entity, or entity/lookup entity attribute, the platform only deletes the description of the deleted object. However, the data itself that has already been uploaded to the database is not affected.

When loading data to the user interface, only those entities, lookup entities, and their attributes that are described in the data model (which are present in the published data model) are read from the database. Deleted objects, respectively, are not loaded.

If you recreate a deleted object in the data model (for example, an entity with identical parameters), the data associated with this entity will be available again in the user interface. Thus, if you recreate an object with the same name and parameters in the data model, the data from the database associated with this object will be available again. Situations where the restored object has properties that differ from the previously created one lead to errors. For example, if an attribute was restored, but it was changed.

The specified behavior can be applied if the logical attribute name needs to be reused.

Import screen

Figure 1. Import screen

Export screen

Figure 2. Export screen

Section legend

Figure 3. Section legend