Skip to content

Commit

Permalink
Make a distinct rule to annotate composite-lifestages.owl.
Browse files Browse the repository at this point in the history
As for composite-vertebrate.owl and composite-metazoan.owl, we need a
separate rule to create the composite-lifestages.owl product. The
generic rule 'composite-%.owl' is not enough because the standard
ODK-generated Makefile already contains a more specific rule, than can
only be overriden by an equally specific rule.
  • Loading branch information
gouttegd committed Dec 9, 2024
1 parent d8386c6 commit 644f2ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ontology/uberon.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1170,15 +1170,17 @@ $(TMPDIR)/composite-%.owl: $(TMPDIR)/collected-%.owl config/tax-merges.tsv | all
reduce -r ELK -o $@

# Step 3: Annotate the result of step 2. This is a separate step only so
# that we can have explicit rules for composite-metazoan and
# composite-vertebrate, because the ODK-generated Makefile already
# defines a non-implicit rules with those targets.
# that we can have explicit rules for composite-metazoan, -vertebrate,
# and -lifestages, because the ODK-generated Makefile already defines a
# non-implicit rules with those targets.
composite-%.owl: $(TMPDIR)/composite-%.owl
$(ROBOT) annotate -i $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@
composite-metazoan.owl: $(TMPDIR)/composite-metazoan.owl
$(ROBOT) annotate -i $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@
composite-vertebrate.owl: $(TMPDIR)/composite-vertebrate.owl
$(ROBOT) annotate -i $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@
composite-lifestages.owl: $(TMPDIR)/composite-lifestages.owl
$(ROBOT) annotate -i $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@


# Some special products derived from the products generated above
Expand Down

0 comments on commit 644f2ec

Please sign in to comment.