GlobalNamesArchitecture / gni

Global Names Index
http://wiki.github.com/GlobalNamesArchitecture/gni
22 stars 2 forks source link

As a user of API I receive results of of the name resolution in corresponding format #10

Closed dimus closed 12 years ago

dimus commented 12 years ago

I just broke returning results by changing what name resolver instance is returning. New results have to be sent only with following fields added to the result header:

1 context for all data sources 2 all names first in the following format: [ {id=>1, :name => 'Betula', :results => .....}, {...}....]

results should have the following fields:

  1. data_source_id
  2. gni uuid
  3. name_string
  4. canonical_form
  5. classification path (if exists)
  6. classification path ids (if exist)
  7. ds taxon id
  8. ds. guid (if exists)
  9. urls (if exist)
  10. current_name taxon id (if exist)
  11. current name string if (exist)
  12. match type id
  13. prescore in pipe delimited format
  14. score