Skip to content

Commit

Permalink
Update mondo.Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Aug 16, 2023
1 parent d0658fb commit 7022da6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ontology/mondo.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,13 @@ tmp/orphanet-rare-subset.ttl: $(SRC)
$(ROBOT) merge -i $(SRC) reason \
query --format ttl --query ../sparql/construct/construct-orphanet-rare-subset.sparql $@


subsets/gard-subset.template.tsv:
wget "https://github.com/monarch-initiative/gard/releases/latest/download/mondo-gard-exact.robot.template.tsv" -O $@

# The complex part here is that we need to dynamically update the MONDO source code, i.e.
# MONDO:equivalentTo and MONDO:obsoleteEquivalentTo.
tmp/gard-rare-subset.ttl: $(SRC)
tmp/gard-rare-subset.ttl: $(SRC) subsets/gard-subset.template.tsv
$(ROBOT) template --template subsets/gard-subset.template.tsv convert -f ttl -o $@
$(ROBOT) remove -i $< --select imports merge -i $@ query -f ttl --query ../sparql/construct/construct-equivalent-obsolete-gard.sparql $@.source
$(ROBOT) merge -i $@ -i $@.source -o $@
Expand Down

0 comments on commit 7022da6

Please sign in to comment.