Bare bones MeSH hierarchy from XML -> JSON per the MeSH documentation.
-
Download the MeSH terms here
-
Install either:
a. Bazelisk installed;
b. OR, for those wanting to put in less effort, VSCode with both Docker and devcontainer installed.
-
git clone
this repository. -
If you selected (b) in 1.1. Prerequisites:
i. Open both VSCode & Docker
ii. Open the project in the devcontainer per the instructions found here
-
You can now either build the project as an executable or run it from Bazel using the following commands:
[!NOTE]
- the
-i
arg selects the input file path - this should be the.xml
file you downloaded earlier; - the
-o
arg selects the outfile file path.
i. First, build the compile commands (debug mode; use
opt
for optimised build):bazel run :refresh_compile_commands -- -c dbg
ii. Now, to run the executable (debug mode; use
opt
for optimised build):bazel run //src:meshcodes -c dbg -- -i ./data/codes.xml -o ./data/outfile.json
- the