Skip to content

Commit

Permalink
Add mp-international to ODK
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Oct 22, 2023
1 parent 1e9d771 commit 53a1ecd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ PATTERN_RELEASE_FILES= $(PATTERNDIR)/definitions.owl $(PATTERNDIR)/pattern.

FORMATS = $(sort owl obo json owl)
FORMATS_INCL_TSV = $(sort $(FORMATS) tsv)
RELEASE_ARTEFACTS = $(sort $(ONT)-base $(ONT)-simple-non-classified $(ONT)-full )
RELEASE_ARTEFACTS = $(sort $(ONT)-base $(ONT)-simple-non-classified $(ONT)-full mp-international )

# ----------------------------------------
# Top-level targets
Expand Down Expand Up @@ -601,6 +601,12 @@ $(ONT)-full.json: $(ONT)-full.owl
$(ROBOT) annotate --input $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
convert --check false -f json -o $@.tmp.json &&\
mv $@.tmp.json $@
mp-international.obo: mp-international.owl
$(ROBOT) convert --input $< --check false -f obo $(OBO_FORMAT_OPTIONS) -o $@.tmp.obo && grep -v ^owl-axioms $@.tmp.obo > $@ && rm $@.tmp.obo
mp-international.json: mp-international.owl
$(ROBOT) annotate --input $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
convert --check false -f json -o $@.tmp.json &&\
mv $@.tmp.json $@
# ----------------------------------------
# Release artefacts: main release artefacts
# ----------------------------------------
Expand Down Expand Up @@ -653,6 +659,9 @@ $(ONT)-simple-non-classified.owl: $(EDIT_PREPROCESSED) $(OTHER_SRC) $(SIMPLESEED
reduce -r ELK \
filter --select ontology --term-file $(SIMPLESEED) --trim false \
$(SHARED_ROBOT_COMMANDS) annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) --output $@.tmp.owl && mv $@.tmp.owl $@

mp-international.owl:
echo "ERROR: You have configured a custom release artefact ($@); this release artefact needs to be define in mp.Makefile!" && false
# ----------------------------------------
# Debugging Tools
# ----------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/ontology/mp-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ release_artefacts:
- base
- simple-non-classified
- full
- custom-mp-international
primary_release: simple-non-classified
export_formats:
- owl
Expand Down

0 comments on commit 53a1ecd

Please sign in to comment.