Updating imports is needed whenever logical axioms that reference external ontologies are added but the classes being referenced have no labels or other logical definitions. Updating an import for those classes will bring in the labels, annotations, and logical axioms into the import file, and therefore into the Mondo ontology.
Regenerate import file¶
See the imports/ folder.
See Design Pattern section for more details on patterns that reference external ontologies and how these are used.
If you have Docker installed (note - you may need to increase your memory in Docker to 24GB):
- Navigate to your local ontology directory, for example:
- Create a git branch, e.g.
git checkout -b iss-GH_ISSUE_NUMBER
- Run command:
sh run.sh make refresh-merged
git statusto see what files have been updated
- Commit the updated files:
git add <PATH-TO-FILE>
git status- only the updated files should be added and ready to be committed. There will be some untracked files as well, which should not be added or committed.
- Once the new imports are generated, it could contain newly deprecated classes from the source ontology and this could affect the Mondo ontology by creating danglers/obsolete references. To fix this, follow the instructions in Repair axioms pointing to deprecated classes.
Increase memory in Docker (Mac specific instructions)¶
- Open Docker preferences
- Click Resources
- Increase memory to 24 GB