OpenTreeOfLife / oti

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

ot:originalLabel search for tree failing, when (I think) it should not be #28

Open mtholder opened 10 years ago

mtholder commented 10 years ago
$ curl -X POST -H "Content-Type":"application/json" -H "Accept":"application/json" http://api.opentreeoflife.org/oti/ext/QueryServices/graphdb/singlePropertySearchForTrees --data '{"property": "ot:originalLabel", "exact": true, "verbose": true, "value": "Aponogeoton ulvaceus 1 2"}'

returns { "matched_studies" : [ ]}

despite the fact that study pg_104 is in the index:

$ curl -X POST -H "Content-Type":"application/json" -H "Accept":"application/json" http://api.opentreeoflife.org/oti/ext/QueryServices/graphdb/singlePropertySearchForStudies --data '{"property": "ot:studyId", "exact": true, "verbose": true, "value": "pg_104"}'

{ "matched_studies" : [ { "ot:studyPublicationReference" : "Les, D. H., Moody, M. L., & Jacobs, S. W. (2005). Phylogeny and systematics of Aponogeton (Aponogetonaceae): the Australian species. Systematic botany, 30(3), 503-519.", "is_deprecated" : false, "ot:focalCladeOTTTaxonName" : "Aponogeton", "ot:studyYear" : 2005, "ot:tag" : "ingroup added;", "ot:studyPublication" : "http://dx.doi.org/10.1600/0363644054782215", "ot:curatorName" : "William Wysocki", "ot:focalClade" : 881391, "ot:dataDeposit" : "http://purl.org/phylo/treebase/phylows/study/TB2:S1322", "ot:studyId" : "pg_104" } ]

and I am finding the name "Aponogeoton ulvaceus 1 2" as an originalLabel of otu otu373713 in https://github.com/OpenTreeOfLife/phylesystem-1/blob/master/study/pg_04/pg_104/pg_104.json

perhaps I have a silly typo in my original curl command. But I can't see it. searching for the ottId returns that study.