- Install mdbtools
$ brew install mdbtools
- Install poetry
curl -sSL https://install.python-poetry.org | python3 -
- Install the environment
$ poetry shell $ poetry install
- Convert the output location (general EAPX)
- With an expanded EAPX file (see below)
$ poetry run expand input/usdm output
- With a QEA file
$ poetry run expand input/usdm.qea output
- With an expanded EAPX file (see below)
- Convert the output location (USDM EAPX/QEA)
- For the USDM content we can merge (depending on formatting issues, etc) the definitions/codelists from the CT
$ poetry run expand --usdm --usdm-ct input/USDM_CT.xlsx input/usdm_main
- For the USDM content we can merge (depending on formatting issues, etc) the definitions/codelists from the CT
A Excel formatted spreadsheet will be generated for the model, normalising the entities and attributes into a tabular format.
A LinkML formatted YAML file will be generated for the model (Still a WIP).
To pull a version of the USDM EAP file (and CT)
It takes an optional argument to point at the branch; if not specified it will pull the main
branch; for example to retrieve the current version for sprint-9
run it as follows:
$ /bin/bash scripts/pull_usdm.bash sprint-9
Use the following script to expand an eapx file
shell $ scripts/expand.bash USDM_UML.eapx usdm
It will generate a folder in the input
directory named usdm
with the expanded content (JSON files)