date small=~/.pybel/data/small_corpus.bel if [ ! -f $small ]; then curl http://resource.belframework.org/belframework/1.0/knowledge/small_corpus.bel > $small fi head $small virtualenv_name="pybel_comparison_$(date +%s)" mkvirtualenv $virtualenv_name --python=python3 which pip pip install pybel pybel --version pybel convert --help time pybel convert --path $small --pickle ~/Downloads/test.gpickle -v deactivate rm -rf "~/.virtualenvs/$virtualenv_name" rbenv --version eval "$(rbenv init -)" rbenv install "2.3.0" --skip-existing rbenv local "2.3.0" which ruby rbenv which ruby ruby --version which gem rbenv which gem gem --version dir=$(mktemp -d) cd $dir echo $dir git clone --branch=master https://github.com/OpenBEL/bel.rb.git OpenBEL/bel.rb cd OpenBEL/bel.rb scripts/gem-install-devdeps.sh gem build bel.gemspec time gem install bel-0.7.0.gem which bel rbenv which bel bel --version bel summarize --help bel summarize -b $small bel parse --help bel parse -b $small bel bel2rdf --help bel bel2rdf -b $small > small_corpus.rdf cd rm -rf $dir unset dir # download from git openbel_url="https://github.com/OpenBEL/openbel-framework/releases/download/3.0.0_build20150728/OpenBEL_Framework-3.0.0.zip" sh ~/dev/openbel/belc.sh --help time sh ~/dev/openbel/belc.sh -f $small -k "Small_Corpus" -d "Testing the Small Corpus" -v --no-preserve