@@ -672,6 +672,7 @@ $(ONT).json: $(ONT)-{{ project.primary_release }}.owl
672672# -----------------------------------------------------
673673# Release artefacts: variants (base, full, simple, etc)
674674# -----------------------------------------------------
675+ SHARED_ROBOT_COMMANDS = {% if project .remove_owl_nothing -%} remove --term owl:Nothing{% endif %}
675676
676677$(ONTOLOGYTERMS): $(SRC) $(OTHER_SRC)
677678 touch $(ONTOLOGYTERMS) && \
@@ -696,7 +697,7 @@ $(ONT).owl: $(ONT)-{{ project.primary_release }}.owl
696697$(ONT)-base.owl: $(SRC) $(OTHER_SRC)
697698 $(ROBOT) remove --input $< --select imports --trim false \
698699 {% if project .use_dosdps or project .components is defined %} merge $(patsubst %, -i %, $(OTHER_SRC)) \
699- {% endif %} annotate --link-annotation http://purl.org/dc/elements/1.1/type http://purl.obolibrary.org/obo/IAO_8000001 \
700+ {% endif %} $(SHARED_ROBOT_COMMANDS) annotate --link-annotation http://purl.org/dc/elements/1.1/type http://purl.obolibrary.org/obo/IAO_8000001 \
700701 --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
701702 {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
702703
@@ -706,13 +707,13 @@ $(ONT)-full.owl: $(SRC) $(OTHER_SRC)
706707 reason --reasoner {{ project.reasoner }} --equivalent-classes-allowed {{ project.allow_equivalents }} --exclude-tautologies {{ project.exclude_tautologies }} \
707708 relax \
708709 reduce -r {{ project.reasoner }} \
709- annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
710+ $(SHARED_ROBOT_COMMANDS) annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
710711
711712{% if 'non-classified' in project .release_artefacts or project .primary_release == 'non-classified' -%}
712713# foo-non-classified: (edit->imports-merged)
713714$(ONT)-non-classified.owl: $(SRC) $(OTHER_SRC)
714715 $(ROBOT) merge --input $< \
715- annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
716+ $(SHARED_ROBOT_COMMANDS) annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
716717{% endif -%}
717718
718719{% if 'simple' in project .release_artefacts or project .primary_release == 'simple' -%}
@@ -729,7 +730,7 @@ $(ONT)-simple.owl: $(SRC) $(OTHER_SRC) $(SIMPLESEED)
729730 filter --term-file $(SIMPLESEED) --select "annotations ontology anonymous self" --trim true --signature true \
730731 reduce -r {{ project.reasoner }} \
731732 query --update ../sparql/inject-subset-declaration.ru \
732- annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
733+ $(SHARED_ROBOT_COMMANDS) annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
733734{% endif -%}
734735
735736{% if 'simple-non-classified' in project .release_artefacts or project .primary_release == 'simple-non-classified' -%}
@@ -743,7 +744,7 @@ $(ONT)-simple-non-classified.owl: $(SRC) $(OTHER_SRC) $(ONTOLOGYTERMS)
743744 remove --axioms equivalent \
744745 reduce -r {{ project.reasoner }} \
745746 filter --select ontology --term-file $(ONTOLOGYTERMS) --trim false \
746- annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
747+ $(SHARED_ROBOT_COMMANDS) annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
747748{% endif -%}
748749
749750{% if 'basic' in project .release_artefacts or project .primary_release == 'basic' -%}
@@ -760,7 +761,7 @@ $(ONT)-basic.owl: $(SRC) $(OTHER_SRC) $(SIMPLESEED) $(KEEPRELATIONS)
760761 relax \
761762 filter --term-file $(SIMPLESEED) --select "annotations ontology anonymous self" --trim true --signature true \
762763 reduce -r {{ project.reasoner }} \
763- annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
764+ $(SHARED_ROBOT_COMMANDS) annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) {% if project .release_date -%} --annotation oboInOwl:date "$(OBODATE)" {% endif -%} --output $@.tmp.owl && mv $@.tmp.owl $@
764765{% endif -%}
765766{% for r in project .release_artefacts %}
766767{% - if r .startswith ('custom-' ) %}
0 commit comments