biopragmatics / bioontologies

🏷️ Unified access to biomedical ontologies
https://bioontologies.readthedocs.io
MIT License
8 stars 1 forks source link

Enable passing `--check=false` to ROBOT #12

Closed cthoyt closed 1 year ago

cthoyt commented 1 year ago

The documentation for robot convert says:

By default, the OBO writer strictly enforces document structure rules. If an ontology violates these, the convert to OBO operation will fail. These checks can be ignored by including --check false.

This PR enables passing this check flag through functions in bioontologies that wrap the robot convert command.

Unfortunately, this doesn't solve the issue with VO - it appears that ROBOT creates some metadata elements that are unexpectedly none. Additionally, this PR implements some processing for raw graph documents before loading int Pydantic to remove invalid fields that might get introduced when using --check=false, ultimately allowing VO to get loaded.