-
Notifications
You must be signed in to change notification settings - Fork 4
The taxon function has no method to pass a taxon ID directly #17
Comments
@tpoisot Let's see if I can do this in half an hour! |
🎉 make your PR on |
I don't have much experience with querying a database:
sp_s_url = gbifurl * "species/match" should then be sp_s_url = gbifurl * "species" This is how I understand it from the API, though the body which is collected always matches Can you point me in the right direction? |
@MichielStock the taxa informations are stored as a taxon(t::Pair) = taxon(t.second)
function taxon(id::Int)
# general case with only the ID
end And I think that in your example query, |
OK, seems to work, though the result of such a query does not have the keys I can either
|
@MichielStock can you open a pull request? I'll have a look at what the changes were, and can give better advice on By the way, please also add your name to the |
Currently,
taxon
performs only text search, but sometimes the ID of the taxon is known (for example, when we want the genus of a given species). This would require a second method.The
taxon
function is defined here: https://github.com/EcoJulia/GBIF.jl/blob/master/src/taxon.jlThe GBIF API endpoint for taxa by ID is here: http://api.gbif.org/v1/species/216
The text was updated successfully, but these errors were encountered: