File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11OBO =http://purl.obolibrary.org/obo
2+ SRC =ro-edit.owl
3+ ROBOT =robot
24
35ONTS = ro.obo ro.owl ro.json ro-base.owl ro-base.obo ro-base.json annotations.owl core.owl go-biotic.owl pato_import.owl temporal-intervals.owl bfo-axioms.owl bfo-classes-minimal.owl el-constraints.owl go_mf_import.owl go_cc_import.owl rohom.owl
46
@@ -61,16 +63,18 @@ ro-diff.html: ro-diff.md
6163# ========================================
6264# IMPORTS
6365# ========================================
64- seed.owl : ro-edit.owl
65- owltools --use-catalog $< --merge-imports-closure --remove-imports-declarations -o $@
66+ seed.txt : $( SRC )
67+ $( ROBOT ) query -f csv -i $< --query sparql/terms.sparql $@
6668
67- # TODO - have to manually remove OPs for now...
68- # pato_mirror.owl: ro-edit.owl
69- # owltools $(OBO)/pato.owl --extract-mingraph --make-subset-by-properties // --remove-dangling-annotations --set-ontology-id $(OBO)/pato.owl -o $@
70- # pato_import.owl: seed.owl pato_mirror.owl
71- # owltools --use-catalog $< pato_mirror.owl --add-imports-from-supports --extract-module -c -s $(OBO)/pato.owl --set-ontology-id $(OBO)/ro/$@ -o $@
72- # # owltools --use-catalog --map-ontology-iri $(OBO)/ro/pato_import.owl pato_mirror.owl ro-edit.owl --extract-module -s $(OBO)/pato.owl --set-ontology-id $(OBO)/ro/$@ -o $@
69+ imports/% _terms_combined.txt : seed.txt
70+ cat $< imports/$* _terms.txt | sort | uniq > $@
7371
72+ % _import.owl : mirror/% .owl imports/% _terms.txt
73+ $(ROBOT ) extract -i $< -T imports/$* _terms.txt --method BOT -O $(BASE ) /$@ -o $@
74+ .PRECIOUS : imports/% _import.owl
75+
76+ mirror/% .owl :
77+ wget --no-check-certificate $(OBO ) /$@ -O $@
7478
7579# ========================================
7680# MIREOT
You can’t perform that action at this time.
0 commit comments