44# changes here rather than in the main Makefile
55
66MESH_TERMS_FILE = imports/mesh_terms.txt
7+ NCIT_TERMS_FILE = imports/ncit_terms.txt
78MAIN_FILES_RELEASE = $(foreach n,$(MAIN_FILES ) , ../../$(n ) )
89
910$(ONT ) -full.owl : $(SRC ) $(OTHER_SRC ) $(IMPORT_FILES )
@@ -21,7 +22,10 @@ $(IMPORTDIR)/chebi_import.owl: $(MIRRORDIR)/chebi.owl $(IMPORTDIR)/chebi_terms_c
2122
2223
2324$(IMPORTDIR ) /ncit_import.owl : $(MIRRORDIR ) /ncit.owl $(IMPORTDIR ) /ncit_terms_combined.txt
24- if [ $( IMP) = true ]; then $( ROBOT) remove -i $< \
25+ if [ $( IMP) = true ]; then $( ROBOT) extract -i $< \
26+ --method MIREOT \
27+ --branch-from-terms $(NCIT_TERMS_FILE ) \
28+ remove \
2529 --term oboInOwl :hasExactSynonym \
2630 query --update ../sparql/preprocess-module.ru --update ../sparql/inject-subset-declaration.ru --update ../sparql/postprocess-module.ru \
2731 annotate --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) --output $@ .tmp.owl && mv $@ .tmp.owl $@ ; fi
@@ -58,6 +62,15 @@ $(IMPORTDIR)/mesh_import.owl: $(MIRRORDIR)/mesh.owl
5862 query --update ../sparql/preprocess-module.ru --update ../sparql/inject-subset-declaration.ru --update ../sparql/postprocess-module.ru \
5963 annotate --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) --output $@ .tmp.owl && mv $@ .tmp.owl $@ ; fi
6064
65+ $(IMPORTDIR ) /obi_import.owl : $(MIRRORDIR ) /obi.owl $(IMPORTDIR ) /obi_terms_combined.txt
66+ if [ $( IMP) = true ]; then $( ROBOT) remove -i $< \
67+ --term OBI:0000011 \
68+ --select " self descendants" \
69+ --select " owl:deprecated='true'^^xsd:boolean" \
70+ --signature true \
71+ query --update ../sparql/preprocess-module.ru --update ../sparql/inject-subset-declaration.ru --update ../sparql/postprocess-module.ru \
72+ annotate --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) --output $@ .tmp.owl && mv $@ .tmp.owl $@ ; fi
73+
6174deploy_release :
6275 @test $(GHVERSION )
6376 ls -alt $(MAIN_FILES_RELEASE )
0 commit comments