Caution
Still a work in progress.
Extracts & transforms MONDO ontological terms and their synonyms to generate a .ths file for use as a Postgres Full-Text Search (FtS) thesaurus configuration.
After installation of the Zondo executable, a thesaurus can be built for a given MONDO release by running the following command:
zondo build --input /path/to/mondo.json --outfile /path/to/en_ontology.ths Where --input describes the path to the MONDO JSON file and --outfile specifies the file path of the generated thesaurus.
Generate CSVs of minified ontological terms & their relationships to consume in a relational database by running the following command:
zondo extract --input /path/to/mondo.json --outdir /path/to/output/dir`Where --input describes the path to the MONDO JSON file and --outdir specifies where the thesaurus should be generated.
zondo
Extract & transform ontological terms for Postgres Full-Text Search.
Usage:
zondo {command} [flags]
Available Commands:
* build Build a PGXS thesaurus for a given MONDO release.
* extract Extract MONDO terms & relationships as RDBMS consumable CSV files.
* version Display the program version and exit.
Flags:
-h, --help Display this help text and exitWarning
Please ensure the compiler version matches the one used by this project, see .zigversion for more information.
-
Install 2.1. Prerequisites.
-
Clone this repository.
-
Run
zig build(or use the VSCodeBuild Debugtask if applicable).
| Type | Command |
|---|---|
| Build | zig build -Doptimize=ReleaseFast -Dstrip |
| Build & Run | zig build run -Doptimize=ReleaseFast -Dstrip -- version |
Temporary tracker:
- Consider generating PGXS extension install package via templating
- Add GH workflow for CI/CD/release & linting