活体收获机
VIVOHarvester的Python项目详细描述
VIVOHarvester
安装
pip install VIVOHarvester
或
git clone git@github.com:VTUL/VIVOHarvester.git
python setup.py install
用法:
- 从元素中获取数据(默认值)
vivotool -f local.yml -t harvest -d 0
- 一天前从元素中获取数据(当前时间-1天)
vivotool -f local.yml -t harvest -d 1
- 将rdf数据导入vivo实例
vivotool -f local.yml -t ingest
- 获取用户地图.csv
vivotool -f local.yml -t getuser
或
vivotool -f local.yml -t getuser -o yourpath/yourfilename
数据库创建
- 创建所需数据库
vivotool -f local.yml -t db
升级到新版本
pip uninstall VIVOHarvester
pip install VIVOHarvester==0.1.2 (e.g.)
测试
py.test --cov=vivotool test/
coverage report -m
coverage report