Skip to content

GlobalNamesArchitecture/gni

 
 

Repository files navigation

Global Names Index v.2

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

Citing for Global Names Index v1

DOI

Citing for Global Names Index v2 (Global Names Resolver)

DOI

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

Copyright

Authors: Dmitry Mozzherin, David Shorthouse

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

Packages

No packages published

Languages

  • Ruby 42.0%
  • Java 26.8%
  • XSLT 13.8%
  • Haml 5.5%
  • JavaScript 5.3%
  • HTML 3.2%
  • Other 3.4%