Skip to content
This repository has been archived by the owner on Sep 22, 2019. It is now read-only.

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

Open
jimallman opened this issue Jan 29, 2015 · 1 comment
Open

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

jimallman opened this issue Jan 29, 2015 · 1 comment

Comments

@jimallman
Copy link
Member

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:

  • If a study has no tags, omit the ot:tags property (this is the status quo);
  • if it has multiple tags, an array of strings is best;
  • if it has a single tag, a string or a one-item array is fine.
@jimallman
Copy link
Member Author

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" : ""
},
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant