ropensci / rgbif

Interface to the Global Biodiversity Information Facility API
https://docs.ropensci.org/rgbif
Other
155 stars 50 forks source link

name_backbone fails to find usagekey of valid species. #760

Open thesnakeguy opened 3 hours ago

thesnakeguy commented 3 hours ago

Hi,

I've been using rgbif::name_backbone to fetch usagekeys of a list of species. The output is as expected in all cases but one. When I try to fetch the usagekey for "Coronella austriaca", which totally is a valid species I get no match. Demonstration:

rgbif::name_backbone(name = "Coronella girondica") 1 5959645 Coronella giron… Coronella gi… SPEC… ACCEP… 99 EXACT Animal… Chord… Colub… Coro… Corone… 1 44 11592253 6172

rgbif::name_backbone(name = "Coronella austriaca")
1 100 NONE FALSE Coronella austriaca

Also the using occ_data with the scientific name as input does not find a hit.

occ_data(scientificName = "Coronella austriaca") Records found [0] Records returned [0] Args [occurrenceStatus=PRESENT, limit=500, offset=0, scientificName=Coronella austriaca]

I really can't find the issue here. Could this be a bugged species?

Best regards

thesnakeguy commented 3 hours ago

When I set verbose to TRUE I get this output:

name_backbone(name = "Coronella austriaca", rank = "species", verbose = TRUE) confidence matchType synonym usageKey scientificName canonicalName rank status kingdom phylum family genus species kingdomKey phylumKey classKey 1 100 NONE FALSE NA NA NA NA NA NA NA NA NA NA NA NA NA 2 115 EXACT FALSE 5959617 Coronella austria… Coronella au… SPEC… ACCEP… Animal… Chord… Colub… Coro… Corone… 1 44 11592253 3 114 EXACT TRUE 9318093 Coronella austria… Coronella au… SPEC… SYNON… Chromi… Foram… Troch… Coro… Coroni… 4 8376456 NA 4 79 FUZZY TRUE 5823210 Coronilla austria… Coronilla au… SPEC… SYNON… Plantae Trach… Fabac… Hipp… Hippoc… 6 7707728 220

It seems like the second row has the right usagekey. Still, I find this weird behaviour.