Skip to content

Commit

Permalink
Build go context from yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Apr 19, 2018
1 parent bad66e0 commit 6997cc2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ COMMONS_SOURCES = semweb idot_nr monarch obo
registry/commons_context.jsonld: $(patsubst %, registry/%_context.jsonld, $(COMMONS_SOURCES))
python3 ./bin/concat-context.py $^ > $@.tmp && mv $@.tmp $@

GO_SOURCES = semweb goxrefs obo
registry/go_context.jsonld: $(patsubst %, registry/%_context.jsonld, $(COMMONS_SOURCES))
python3 ./bin/concat-context.py $^ > $@.tmp && mv $@.tmp $@

SUPERSET_SOURCES = goxrefs idot semweb monarch semweb_vocab ro_vocab obo
reports/clashes.txt: $(patsubst %, registry/%_context.jsonld, $(SUPERSET_SOURCES))
(python3 ./bin/concat-context.py $^ > registry/superset.jsonld) >& $@
Expand All @@ -89,7 +93,10 @@ reports/clashes-$(A)-$(B)-$(C).txt: $(patsubst %, registry/%_context.jsonld, $(A
(python3 ./bin/concat-context.py $^ > registry/superset.jsonld) >& $@

## GO
registry/go-db-xrefs.json: ../go-site/metadata/db-xrefs.yaml
## TODO
registry/go-db-xrefs.yaml:
wget --no-check-certificate https://raw.githubusercontent.com/geneontology/go-site/master/metadata/db-xrefs.yaml -O $@
registry/go-db-xrefs.json: registry/go-db-xrefs.yaml
./bin/yaml2json.pl $< > $@


0 comments on commit 6997cc2

Please sign in to comment.