diff --git a/src/ontology/Makefile b/src/ontology/Makefile index 5553f03878..e12fc30707 100644 --- a/src/ontology/Makefile +++ b/src/ontology/Makefile @@ -202,7 +202,9 @@ filtered.obo: $(SRC) --update ../sparql/update/delete-axiom-annotations-by-prefix.ru \ --update ../sparql/update/inject-cross-species-analog.ru \ remove --term-file config/remove-annotations-before-release.txt \ - convert -f obo --check false -o $@.obo && mv $@.obo $@; fi + convert -f obo --check false -o $@.obo \ + perl -ne 'print unless (m@^xref: (Orphanet|OMIM|OMIMPS|DOID|EFO|NCIT):@ && !(m@(obsoleteEquivalent|equivalentObsolete|equivalentTo)@i))' $@.obo > $@.tmp && mv $@.tmp $@; fi + #egrep -v 'MONDO:(subClassOf|superClassOf|relatedTo)' $< > $@ skos.ttl: filtered.obo