IESR Data Load from Templates


Note: These instructions have now been superseded by the IESR Editor and should no longer be followed. They have been kept for historical reasons.

Initial data supply to IESR is by templates, either XML or Excel. These instructions detail data load into IESR using data supplied according to these templates. These instructions will be superseded by a Webform data entry editor.

This data supply method is temporary. All data entry into IESR and updating of records in IESR is currently performed by Ann Apps. These instructions are documented as a backup in case someone else has to perform the task.

Note: these instructions are for loading data into IESR. However it is a good idea to load data into IESR-DEV first in case of unexpected problems.

Checking and Registering Supplied XML Records

Data Load Directory

Create a directory for data load under /home/zzieradm/dbs/metadata_src/editor/load/ (eg. using supplier name) and copy supplied XML files into it. [.../loaddev/ for IESR-DEV]

Check XML Records

Check XML records by running scripts in the load directory, separately for each entity type (assuming files are named appropriately):

These scripts append to a dated log file in the current directory.

Check log file. If XML errors are shown correct them and re-run scripts (delete log file fisrt).

[Scripts for IESR-DEV are: devchk_colls; devchk_svcs; devchk_agts.]

Register XML Records

When there are no errors in the XML records, register them in the Meta-Registry. It is prudent, before registration, to check that all local identifiers in the supplied records corespond.

Register entities by running scripts in the load directory, separately for each entity type (assuming files are named appropriately):

where <supplier> is a 3-letter code for the data supplier (see below).

For example: register_agts mim *agt*.xml

[Scripts for IESR-DEV are: devreg_colls; devreg_svcs; devreg_agts.]

Registration Results

These scripts:

Checking and Registering Supplied Excel Records

Data Load Directory

Create a directory for data load under /home/zzieradm/dbs/metadata_src/editor/load/ (eg. using supplier name). [.../loaddev/ for IESR-DEV]. Convert Excel files to CSV files and copy .csv files to load directory.

Convert and Check CSV Records

Convert and check XML records by running scripts in the load directory, separately for each entity type (assuming files are named appropriately):

These scripts create and check XML files corresponding to the CSV files, and append to a dated log file in the current directory.

Check log file. If convert or XML errors are shown correct them and re-run scripts (delete log file first).

[Scripts for IESR-DEV are: devcvt_colls; devcvt_svcs; devcvt_agts.]

When there are no errors in the CSV or the generated XML files, register the XML entities using the instructions above.

Index IESR

After registering new entities, load them into IESR and index by:
indexiesrnow
[IESR-DEV: indexdevnow]

[It is possible to perform an interim composition of the data by: makereg . This logs to the editlogs directory.]

Indexing IESR:

Updating IESR Records

To update an IESR entity the IESR identifier must be included in the XML record on registration. Thus the best way to update a record is to edit the XML entity file in the load directory. Then check this XML and register as above.

New Supplier

Currently IESR has registered the following suppliers and their codes:

SupplierCode
AHDSahd
EDINAedi
MIMASmim
RDNrdn
UKDAukd
UKMirrorukm

To add a new supplier:


20 June 2006, ann.apps@man.ac.uk          [Valid XHTML 1.0!]