forked from Planteome/plant-ontology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## OBO Library prefix
OBO=http://purl.obolibrary.org/obo
BASE=$(OBO)/$(ONT)
CAT=
SRC=plant-ontology.obo
ONT=po
ROBOT=robot
all: po.obo po.owl
test: subsets/po-basic.obo
release: all
echo "build successful. Now commit and push the derived files and make a release here: "
$(ONT).owl: $(SRC)
$(ROBOT) reason -i $< -r ELK relax reduce -r ELK annotate -V $(BASE)/releases/`date +%Y-%m-%d`/$(ONT).owl -o $@
$(ONT).obo: $(ONT).owl
$(ROBOT) convert -i $< -f obo -o $(ONT).obo.tmp && grep -v '^owl-axioms:' $(ONT).obo.tmp > $@ && rm $(ONT).obo.tmp
reasoner-report.txt: plant-ontology.obo
owltools $(CAT) $< --run-reasoner -r elk -u > [email protected] && egrep '(INFERENCE|UNSAT)' [email protected] > $@
# TODO: switch to using robot
subsets/po-basic.obo: po.obo
owltools $(CAT) $< --make-subset-by-properties BFO:0000050 // --set-ontology-id $(OBO)/po/subsets/po-basic.owl -o -f obo $@