Skip to content

Commit

Permalink
Fix ncbitaxon
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Feb 25, 2023
1 parent 54bd007 commit 60282a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ mirror-chebi: | $(TMPDIR)
mirror-ncbitaxon: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(IMP) = true ] && [ $(IMP_LARGE) = true ]; then curl -L $(OBOBASE)/ncbitaxon.owl.gz --create-dirs -o $(MIRRORDIR)/ncbitaxon.owl.gz --retry 4 --max-time 200 &&\
$(ROBOT) convert -i $(MIRRORDIR)/ncbitaxon.owl.gz -o $@.tmp.owl && \
$(ROBOT) remove -i $@.tmp.owl --base-iri $(URIBASE)/NCBITAXON --axioms external --preserve-structure false --trim false -o $@.tmp.owl &&\
$(ROBOT) remove -i $@.tmp.owl --base-iri http://purl.obolibrary.org/obo/NCBITaxon_ --axioms external --preserve-structure false --trim false -o $@.tmp.owl &&\
mv $@.tmp.owl $(TMPDIR)/$@.owl; fi


Expand Down
2 changes: 2 additions & 0 deletions src/ontology/bero-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ import_group:
is_large: TRUE
use_gzipped: TRUE
make_base: TRUE
base_iris:
- http://purl.obolibrary.org/obo/NCBITaxon_
- id: envo
use_base: TRUE
- id: go
Expand Down
7 changes: 5 additions & 2 deletions src/ontology/bero.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ $(IMPORTDIR)/obi_import.owl: $(MIRRORDIR)/obi.owl $(IMPORTDIR)/obi_terms_combine
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) --output $@.tmp.owl && mv $@.tmp.owl $@; fi

$(IMPORTDIR)/ncbitaxon_import.owl: $(MIRRORDIR)/ncbitaxon.owl $(IMPORTDIR)/ncbitaxon_terms_combined.txt
if [ $(IMP) = true ] && [ $(IMP_LARGE) = true ]; then $(ROBOT) merge -i $< \
remove --term "http://purl.obolibrary.org/obo/ncbitaxon#genbank_common_name" --term "http://purl.obolibrary.org/obo/ncbitaxon#common_name" --term "oboInOwl:hasOBONamespace" --term "oboInOwl:hasDbXref" --term "ncbitaxon:has_rank" \
if [ $(IMP) = true ] && [ $(IMP_LARGE) = true ]; then $(ROBOT) merge -i $(MIRRORDIR)/ncbitaxon.owl \
remove --term "oboInOwl:hasOBONamespace" \
--term "oboInOwl:hasDbXref" \
--term "http://www.geneontology.org/formats/oboInOwl#hasAlternativeId" \
--term "http://purl.obolibrary.org/obo/ncbitaxon#has_rank" \
$(ANNOTATE_CONVERT_FILE); fi

deploy_release:
Expand Down

0 comments on commit 60282a2

Please sign in to comment.