forked from geneontology/go-ontology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (21 loc) · 1.04 KB
/
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
25
26
27
28
29
30
31
SCHEMA := util/DOSDP_schema_full.yaml
test: $(SCHEMA)
python3 util/test_schema.py *.yaml
clean:
rm $(SCHEMA)
$(SCHEMA):
wget --no-check-certificate https://raw.githubusercontent.com/dosumis/dead_simple_owl_design_patterns/master/spec/DOSDP_schema_full.yaml -O $@ && touch $@
pattern-files = $(shell ls *.yaml)
tsv-files = $(patsubst %.yaml, %.tsv, $(pattern-files))
all_tsv: $(tsv-files)
#query: $(pattern-files)
query: $(pattern-files)
.PHONY: query $(pattern-files)
#$(pattern-files): ../ontology/go-edit.obo
# dosdp-tools --prefixes=prefixes.yaml --ontology=$< --reasoner=elk --obo-prefixes=true --template=$@ --outfile=$(basename $@).tsv query
go-edit-merged.ttl: ../ontology/go-edit.obo
owltools --catalog-xml ../ontology/catalog-v001.xml $< --merge-imports-closure -o [email protected] && mv [email protected] $@
SRC=go-edit-merged.ttl
# https://github.com/INCATools/dosdp-tools/issues/20
%.tsv: %.yaml $(SRC)
dosdp-tools --prefixes=prefixes.yaml --ontology=$(SRC) --reasoner=elk --obo-prefixes=true --template=$< [email protected] query && ./util/fix-tsvs.pl [email protected] > $@