Skip to content

Commit

Permalink
Handle mixed-case term prefix for WBbt mirror. (#29632)
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff authored Jan 30, 2025
1 parent 4f335ae commit 0935135
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,13 @@ imports/go-lego-chebi-import.owl: bio-chebi.owl ../biochebi/go-lego-chebi-import
mirror/eco.owl: mirror/eco-download.owl
cp $< $@

# WBbt must be special-cased due to the mixed-case prefix
# We are already downloading its base file, but there is still some duplicative RO content it it.
mirror/wbbt.owl: mirror/wbbt-download.owl
$(ROBOT) remove --input $< --base-iri 'http://purl.obolibrary.org/obo/WBbt_' --axioms external --preserve-structure false --trim false remove --select imports --trim false annotate --ontology-iri $(OBO)/$@ --output $@

mirror/%.owl: mirror/%-download.owl
$(ROBOT) remove --input $< --base-iri 'http://purl.obolibrary.org/obo/$(shell echo $* | tr '[:lower:]' '[:upper:]')_' --axioms external --preserve-structure false --trim false remove --select imports --trim false --output $@
$(ROBOT) remove --input $< --base-iri 'http://purl.obolibrary.org/obo/$(shell echo $* | tr '[:lower:]' '[:upper:]')_' --axioms external --preserve-structure false --trim false remove --select imports --trim false annotate --ontology-iri $(OBO)/$@ --output $@
# remove --term 'http://www.geneontology.org/formats/oboInOwl#hasDbXref' --trim false # need newer ROBOT version to do this without dropping definitions and synonyms
#remove --drop-axiom-annotations all # need newer ROBOT version
.PRECIOUS: mirror/%.owl
Expand Down

0 comments on commit 0935135

Please sign in to comment.