Skip to content

Commit

Permalink
Merge pull request #65 from monarch-initiative/64-bring-ddpheno-in-th…
Browse files Browse the repository at this point in the history
…rough-upheno-instead-of-by-itself

Bring DDPHENO in through UPHENO
  • Loading branch information
caufieldjh authored Mar 12, 2024
2 parents ad38e07 + 5e4c3bf commit 7f809d9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 28 deletions.
1 change: 0 additions & 1 deletion docs/odk-workflows/RepositoryFileStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ These are the components in PHENIO
| Filename | URL |
| -------- | --- |
| bfo.owl | http://purl.obolibrary.org/obo/bfo.owl |
| ddpheno.owl | http://purl.obolibrary.org/obo/ddpheno.owl |
| emapa.owl | http://purl.obolibrary.org/obo/emapa.owl |
| fbbt.owl | http://purl.obolibrary.org/obo/fbbt.owl |
| go.owl | http://purl.obolibrary.org/obo/go.owl |
Expand Down
21 changes: 3 additions & 18 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# More information: https://github.com/INCATools/ontology-development-kit/

# Fingerprint of the configuration file when this Makefile was last generated
CONFIG_HASH= 1126eedd8e58276f7dc4423f54c5463ff19cc8d1c79755b1eb65763cea44fb0f
CONFIG_HASH= ff6f93caf8c93bf6c4c5c663944a984e193688503d790d719a90a5de2d147045


# ----------------------------------------
Expand Down Expand Up @@ -53,7 +53,7 @@ OBODATE ?= $(shell date +'%d:%m:%Y %H:%M')
VERSION= $(TODAY)
ANNOTATE_ONTOLOGY_VERSION = annotate -V $(ONTBASE)/releases/$(VERSION)/$@ --annotation owl:versionInfo $(VERSION)
ANNOTATE_CONVERT_FILE = annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) convert -f ofn --output $@.tmp.owl && mv $@.tmp.owl $@
OTHER_SRC = $(COMPONENTSDIR)/bfo.owl $(COMPONENTSDIR)/ddpheno.owl $(COMPONENTSDIR)/emapa.owl $(COMPONENTSDIR)/fbbt.owl $(COMPONENTSDIR)/go.owl $(COMPONENTSDIR)/hsapdv.owl $(COMPONENTSDIR)/mondo.owl $(COMPONENTSDIR)/mpath.owl $(COMPONENTSDIR)/nbo.owl $(COMPONENTSDIR)/ro.owl $(COMPONENTSDIR)/uberon.owl $(COMPONENTSDIR)/upheno.owl $(COMPONENTSDIR)/wbbt.owl $(COMPONENTSDIR)/zfa.owl
OTHER_SRC = $(COMPONENTSDIR)/bfo.owl $(COMPONENTSDIR)/emapa.owl $(COMPONENTSDIR)/fbbt.owl $(COMPONENTSDIR)/go.owl $(COMPONENTSDIR)/hsapdv.owl $(COMPONENTSDIR)/mondo.owl $(COMPONENTSDIR)/mpath.owl $(COMPONENTSDIR)/nbo.owl $(COMPONENTSDIR)/ro.owl $(COMPONENTSDIR)/uberon.owl $(COMPONENTSDIR)/upheno.owl $(COMPONENTSDIR)/wbbt.owl $(COMPONENTSDIR)/zfa.owl
ONTOLOGYTERMS = $(TMPDIR)/ontologyterms.txt
EDIT_PREPROCESSED = $(TMPDIR)/$(ONT)-preprocess.owl

Expand Down Expand Up @@ -454,21 +454,6 @@ $(COMPONENTSDIR)/bfo.owl: component-download-bfo.owl
.PRECIOUS: $(COMPONENTSDIR)/bfo.owl


.PHONY: component-download-ddpheno.owl
component-download-ddpheno.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I http://purl.obolibrary.org/obo/ddpheno.owl \
remove --base-iri http://purl.obolibrary.org/obo/ddpheno# --base-iri http://purl.obolibrary.org/obo/DDPHENO_ --axioms external --preserve-structure false --trim false \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/$@.owl; fi

$(COMPONENTSDIR)/ddpheno.owl: component-download-ddpheno.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-ddpheno.owl.owl $(TMPDIR)/component-download-ddpheno.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-ddpheno.owl.owl $(TMPDIR)/component-download-ddpheno.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-ddpheno.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/ddpheno.owl


.PHONY: component-download-emapa.owl
component-download-emapa.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I http://purl.obolibrary.org/obo/emapa.owl \
Expand Down Expand Up @@ -606,7 +591,7 @@ $(COMPONENTSDIR)/uberon.owl: component-download-uberon.owl
.PHONY: component-download-upheno.owl
component-download-upheno.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I http://purl.obolibrary.org/obo/upheno/v2/upheno.owl \
remove --base-iri http://purl.obolibrary.org/obo/UPHENO_ --base-iri http://purl.obolibrary.org/obo/HP_ --base-iri http://purl.obolibrary.org/obo/MP_ --base-iri http://purl.obolibrary.org/obo/WBPhenotype_ --base-iri http://purl.obolibrary.org/obo/XPO_ --base-iri http://purl.obolibrary.org/obo/ZP_ --base-iri http://purl.obolibrary.org/obo/FYPO_ --axioms external --preserve-structure false --trim false \
remove --base-iri http://purl.obolibrary.org/obo/UPHENO_ --base-iri http://purl.obolibrary.org/obo/HP_ --base-iri http://purl.obolibrary.org/obo/MP_ --base-iri http://purl.obolibrary.org/obo/WBPhenotype_ --base-iri http://purl.obolibrary.org/obo/XPO_ --base-iri http://purl.obolibrary.org/obo/ZP_ --base-iri http://purl.obolibrary.org/obo/FYPO_ --base-iri http://purl.obolibrary.org/obo/DDPHENO_ --base-iri http://purl.obolibrary.org/obo/DDANAT_ --axioms external --preserve-structure false --trim false \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/$@.owl; fi

$(COMPONENTSDIR)/upheno.owl: component-download-upheno.owl
Expand Down
2 changes: 0 additions & 2 deletions src/ontology/catalog-v001.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@


<uri name="http://purl.obolibrary.org/obo/phenio/components/bfo.owl" uri="components/bfo.owl"/>

<uri name="http://purl.obolibrary.org/obo/phenio/components/ddpheno.owl" uri="components/ddpheno.owl"/>

<uri name="http://purl.obolibrary.org/obo/phenio/components/emapa.owl" uri="components/emapa.owl"/>

Expand Down
1 change: 0 additions & 1 deletion src/ontology/phenio-edit.owl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Prefix(dcterms:=<http://purl.org/dc/terms/>)
Ontology(<http://purl.obolibrary.org/obo/phenio.owl>

Import(<http://purl.obolibrary.org/obo/phenio/components/bfo.owl>)
Import(<http://purl.obolibrary.org/obo/phenio/components/ddpheno.owl>)
Import(<http://purl.obolibrary.org/obo/phenio/components/emapa.owl>)
#Import(<http://purl.obolibrary.org/obo/phenio/components/fao.owl>)
Import(<http://purl.obolibrary.org/obo/phenio/components/fbbt.owl>)
Expand Down
8 changes: 2 additions & 6 deletions src/ontology/phenio-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ components:
# make_base: TRUE
# base_iris:
# - http://purl.obolibrary.org/obo/FAO_
- filename: ddpheno.owl
source: http://purl.obolibrary.org/obo/ddpheno.owl
make_base: TRUE
base_iris:
- http://purl.obolibrary.org/obo/ddpheno#
- http://purl.obolibrary.org/obo/DDPHENO_
- filename: emapa.owl
source: http://purl.obolibrary.org/obo/emapa.owl
make_base: TRUE
Expand Down Expand Up @@ -140,6 +134,8 @@ components:
- http://purl.obolibrary.org/obo/XPO_
- http://purl.obolibrary.org/obo/ZP_
- http://purl.obolibrary.org/obo/FYPO_
- http://purl.obolibrary.org/obo/DDPHENO_
- http://purl.obolibrary.org/obo/DDANAT_
- filename: wbbt.owl
source: http://purl.obolibrary.org/obo/wbbt.owl
make_base: TRUE
Expand Down

0 comments on commit 7f809d9

Please sign in to comment.