Sign inSign up

gnames/resolver

By gnames

•Updated about 9 years ago

Resolver of scientific names

Image
0

3.6K

gnames/resolver repository overview

⁠Global Names Index v.2

Continuous Integration Status Dependency Status

Indexes occurances of biological scientific names in the world, normalizes and reconsiles lexical and taxonomic variants of the name strings.

⁠Dependencies

Install Ruby (see version in .ruby-version) Install bundle gem Install Java JDK 6-8 Install Redis

Run

bundle install

⁠Testing

rake db:drop:all
rake db:create:all
rake db:migrate
rake db:migrate RAILS_ENV=test
rake db:seed
rake db:seed RAILS_ENV=test
rake solr:start ( or rake solr:run in a separate terminal window)
rake solr:build
rspec

Also see .travis.yml org as an example

⁠Working with seed data

Use rake "db:seed RAILS_ENV=your_env" to populate tables in development, test and production environments. Different environments differ in how and which tables are populated. To add more data for testing/development purposes use

rake db:addnames

the command reads data from spec/files/addnames.csv to add more records to the system.

⁠Resolver worker

RAILS_ENV=production RAKE_ENV=production QUEUE=name_resolver rake resque:work

⁠Assets precompiling

bundle exec rake assets:precompile

⁠Rebuilding canonical names index for production

from the machine with solr go to gni dir and run

rake db:solr:build RAILS_ENV=production

Authors: Dmitry Mozzherin, David Shorthouse

Copyright (c) 2012-2013 Marine Biological Laboratory. See LICENSE.txt for further details.

Tag summary

Content type

Image

Digest

Size

252 MB

Last updated

about 9 years ago

docker pull gnames/resolver