[Experimental] Replace OWLTools with ODK ROBOT plugin #3476
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR attempts to remove most of the remaining uses of OWLTools throughout the custom Makefile, using a proposed ODK ROBOT plugin where necessary.
One of the most important uses of OWLTools currently is for the production of ontology subsets, which is done using a variety of OWLTools commands:
1.
--extract-ontology-subset
Used to extract a subset defined by a
oboInOwl:inSubset
annotation within the ontology. What we can use to replace this command with ROBOT depends on whether the--fill-gaps
option is used:1.1. without
--fill-gaps
(e.g. for the “combo” subset)We can replace by the standard ROBOT command
robot extract --method subset
(after manually extracting the list of classes annotated as belonging to the desired subset). One difference is that the ROBOT command does not include relationships by default, we must explicitly specify the relationships we want to see in the subset.1.2. with
--fill-gaps
Cannot be reproduced by any standard ROBOT command, but can be replaced by the
odk:subset
command of the proposed ROBOT ODK plugin.2.
--reasoner-query [...] --make-ontology-from-results
Used to extract a subset defined by a DL query (e.g.
'part of' some 'renal system'
for therenal-minimal
subset). Cannot be reproduced by any standard ROBOT command, but can be replaced by theodk:subset
command (with the--query
option) of the proposed ROBOT ODK plugin.3.
--mingraph --make-subset-by-properties
Used to create the
-basic
versions of the composite ontologies (e.g.composite-metazoan-basic.owl
. Cannot be exactly reproduced by any standard ROBOT command, but can be reasonably approximated by a combination of severalfilter
/remove
operations (this is roughly similar to the standard ODK rule to create the ODK-defined-basic
release artefacts).