Author: moeller Date: 2017-01-18 11:19:44 +0000 (Wed, 18 Jan 2017) New Revision: 23640
Modified: trunk/community/edam/registry-tool-iterator.sh Log: Automated download of EDAM ontology Modified: trunk/community/edam/registry-tool-iterator.sh =================================================================== --- trunk/community/edam/registry-tool-iterator.sh 2017-01-18 11:11:38 UTC (rev 23639) +++ trunk/community/edam/registry-tool-iterator.sh 2017-01-18 11:19:44 UTC (rev 23640) @@ -27,6 +27,15 @@ JSONBUFFERDIR=/home/moeller/git/json-buffer JSONBUFFERSUBDIR=records +if [ ! -r EDAM.owl ]; then + echo "I: Retrieving current version of EDAM ontology" + wget http://www.edamontology.org/EDAM.owl + exit +fi +edamversion=$(grep doap:Version EDAM.owl | cut -f2 -d\> | cut -f1 -d\<) +echo "I: Comparing terms against EDAM version '$edamversion'" + + if [ ! -d "$GITDIR" ]; then echo "E: Directory '$GITDIR' is not existing. Expected a whole range of git repositories from Debian Med here. Please check." exit -1 _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
