diff --git a/src/ontology/mondo.Makefile b/src/ontology/mondo.Makefile index 45aa1db667..4f3123d3ad 100644 --- a/src/ontology/mondo.Makefile +++ b/src/ontology/mondo.Makefile @@ -638,6 +638,35 @@ release_diff: reports/mondo_release_diff.md all: reports/mondo_release_diff.md all: reports/mondo_obsoletioncandidates.tsv +################## +### KGCL Diff #### +################## + +KGCL_ONTOLOGY=mondo-base.obo + +all: kgcl-diff + +.PHONY: kgcl-diff +kgcl-diff: kgcl-diff-release-base + +.PHONY: kgcl-diff-release-base +kgcl-diff-release-base: reports/difference_release_base.yaml \ + reports/difference_release_base.tsv \ + reports/difference_release_base.md + +tmp/mondo-released.obo: .FORCE + wget http://purl.obolibrary.org/obo/mondo/$(KGCL_ONTOLOGY) -O $@ + +reports/difference_release_base.md: tmp/mondo-released.obo $(KGCL_ONTOLOGY) + runoak -i simpleobo:tmp/mondo-released.obo diff -X simpleobo:$(KGCL_ONTOLOGY) -o $@ --output-type md + +reports/difference_release_base.tsv: tmp/mondo-released.obo $(KGCL_ONTOLOGY) + runoak -i simpleobo:tmp/mondo-released.obo diff -X simpleobo:$(KGCL_ONTOLOGY) \ + -o $@ --output-type csv --statistics --group-by-property oio:hasOBONamespace + +reports/difference_release_base.yaml: tmp/mondo-released.obo $(KGCL_ONTOLOGY) + runoak -i simpleobo:tmp/mondo-released.obo diff -X simpleobo:$(KGCL_ONTOLOGY) -o $@ --output-type yaml + ########################### ## MONDO VIEW GENERATION ## ###########################