OpenTreeOfLife / germinator

miscellaneous scripts and data for concerns that span more than one of the Open Tree code repositories: integration tests, system statistics, etc.
BSD 2-Clause "Simplified" License
21 stars 7 forks source link

Searches on names are not working #167

Closed bomeara closed 1 year ago

bomeara commented 1 year ago

I noticed this in rotl, but it's actually in the base API, too.

For example, from https://github.com/OpenTreeOfLife/germinator/wiki/Studies-API-v3#find_studies, it says

Example command:

$ curl -X POST https://api.opentreeoflife.org/v3/studies/find_trees \
-H "content-type:application/json" -d \
'{"property":"ot:ottTaxonName","value":"Solifugae","verbose":true}'

Example result:

{
  "matched_studies" : [ {
    "ot:studyPublicationReference" : "Klompen H., Lekveishvili M., & Iv W. 2006. Phylogeny of parasitiform mites (Acari) based on rRNA. Molecular Phylogenetics and Evolution, null.",
    "ot:curatorName" : "Chris Owen",
    "ot:studyId" : "pg_1793",
    "matched_trees" : [ {
      "ot:studyId" : "pg_1793",
      "ot:branchLengthMode" : "ot:posteriorSupport",
      "oti_tree_id" : "pg_1793_tree3630",
      "ot:branchLengthDescription" : ""
    } ],
    "ot:studyYear" : 2006,
    "ot:focalClade" : 150786,
    "ot:focalCladeOTTTaxonName" : "Parasitiformes",
    "ot:dataDeposit" : "http://purl.org/phylo/treebase/phylows/study/TB2:S1707",
    "ot:studyPublication" : "http://dx.doi.org/10.1016/j.ympev.2006.10.024"
  } ]
}

But in reality, returns

<html>
 <head>
  <title>404 Not Found</title>
 </head>
 <body>
  <h1>404 Not Found</h1>
  The resource could not be found.<br/><br/>
Could not find ott id for taxon name &#x27;Solifugae&#x27;

 </body>
</html>
snacktavish commented 1 year ago

Fixed! Thanks for letting us know.