Skip to content

VTUL/VIVOHarvester

Repository files navigation

VIVO Harvester for Symplectic Elements

A modern, full or incremental harvester to collect data from Symplectic Elements for import into VIVO

Installation

pip install VIVOHarvester

or

git clone [email protected]:VTUL/VIVOHarvester.git
python setup.py install

Configuation

  • The local.yml example file is here
  • The logging_config.ini example file is here
  • The upload folder structre
vivouploads/
├── rdf
│   ├── photos
│   ├── publications
│   ├── relations
│   └── users
└── xml
    ├── photos
    ├── publications
    ├── relations
    ├── temp
    └── users
  • The photo folder structure
harvestedImages/
├── fullImages
└── thumbnails
    └── userphoto.jpeg

Place the userphoto.jpeg to harvestedImages/thumbnails/

Usage

  • Harvest data from Elements (Default)
vivotool -f local.yml -t harvest -d 0
  • Harvest data from Elements a day ago (Current time -1 day)
vivotool -f local.yml -t harvest -d 1
  • Import RDF data into a VIVO instance
vivotool -f local.yml -t ingest
  • Fetch user_map.csv
vivotool -f local.yml -t getuser

or

vivotool -f local.yml -t getuser -o yourpath/yourfilename

Database creation

  • Create require database
vivotool -f local.yml -t db

Upgrade to newer version

pip uninstall VIVOHarvester
pip install VIVOHarvester==0.1.2 (e.g.)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Testing

py.test --cov=vivotool test/
coverage report -m
coverage report

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Releases

No releases published

Packages

No packages published

Languages