OpenTreeOfLife / taxomachine

taxonomy graphdb
Other
7 stars 4 forks source link

Implement id aliases #148

Closed jar398 closed 7 years ago

jar398 commented 7 years ago

When loading a taxonomy into neo4j, the forwads.tsv file is now processed.

(I have yet to push a new taxomachine db to devapi; have only tested locally.)

E.g. in the below, note the difference between the ott_id parameter and the ott_id in the result.

curl -X "POST" -H "Content-type: application/json" -d '{"ott_id": "5507701"}' "http://localhost:7476/db/data/ext/taxonomy_v3/graphdb/taxon_info"
{
  "is_suppressed" : false,
  "tax_sources" : [ "ncbi:457703", "gbif:3089318" ],
  "unique_name" : "Adenanthellum",
  "synonyms" : [ "Adenanthemum" ],
  "name" : "Adenanthellum",
  "flags" : [ ],
  "ott_id" : 10914,
  "rank" : "genus"
}
jar398 commented 7 years ago

addresses #136

jar398 commented 7 years ago

Piggybacking on this PR: 3 tiny fixes ( #138, #139, #146 )