OpenTreeOfLife / oti

indexing service for the OpenTreeOfLife nexson repository
Other
1 stars 0 forks source link

For studies that have multiple tags, oti only captures one #35

Open jimallman opened 9 years ago

jimallman commented 9 years ago

At least that's my assumption, since the response to oti/v1/findAllStudies never shows more than one tag per study.

For what it's worth, the client-side code is expecting JSON as follows:

jimallman commented 9 years ago

This also seems to be true for curator names. See for example this study on devtree, which has two listed curators. In the main study list, only one is shown (because oti stores just one, perhaps the last in the list?). Here's its entry in the response to https://devapi.opentreeoflife.org/oti/v1/findAllStudies:

...,
{
  "ot:studyPublicationReference" : "Pasquet,  Eric, F. Keith Barker, Jochen Martens, Annie Tillier, Corinne Cruaud, Alice Cibois. 2014.  Evolution within the nuthatches (Sittidae: Aves, Passeriformes): molecular phylogeny, biogeography, and ecological perspectives. Journal of Ornithology",
  "is_deprecated" : false,
  "ot:focalCladeOTTTaxonName" : "Sittidae",
  "ot:studyYear" : 2014,
  "ot:tag" : "test tag",
  "ot:curatorName" : "Jim Allman",
  "ot:studyPublication" : "http://dx.doi.org/10.1007/s10336-014-1063-7",
  "ot:comment" : "",
  "ot:focalClade" : 603925,
  "ot:studyId" : "2845",
  "ot:dataDeposit" : ""
},
...