cd `dirname $0`
cd ../dstore

mkdir cache
if [ ! -f cache/datastore_bd.xml ]; then
   wget --ignore-length -O cache/datastore_bd.xml http://datastore.iatistandard.org/api/1/access/activity.xml?recipient-country=bd\&stream=True
fi

node js/cmd import "cache/datastore_bd.xml"
node js/cmd analyze
