Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field "issue" not returned in species API #37

Open
damianooldoni opened this issue Jan 2, 2019 · 2 comments
Open

field "issue" not returned in species API #37

damianooldoni opened this issue Jan 2, 2019 · 2 comments

Comments

@damianooldoni
Copy link

damianooldoni commented Jan 2, 2019

Searching occurrences by issue via API returns field issues (see example with issue DEPTH_UNLIKELY) as expected. The same is not true while searching names/species (see example1 with issue NO_SPECIES and example2 with issue ORIGINAL_NAME_DERIVED). The data are clearly well filtered, but it would be nice to get the field issues as for occurrences as well.
Or am I missing something? Thanks.

@damianooldoni
Copy link
Author

Speaking more generally, all GBIF API except /species/ don't return issues. Example using Acidianus ambivalens (Zillig & Böck, 1987) Fuchs & al., 1996 with key = 1000048 and issue ORIGINAL_NAME_DERIVED:

  1. /species/: https://api.gbif.org/v1/species/1000048
  2. /species/match/: https://api.gbif.org/v1/species/match?name=Acidianus%20ambivalens%20(Zillig%20&%20B%C3%B6ck,%201987)%20Fuchs%20&%20al.,%201996
  3. /species/search/: https://api.gbif.org/v1/species/search?q=Acidianus%20ambivalens%20(Zillig%20&%20B%C3%B6ck,%201987)%20Fuchs%20&%20al.,%201996
  4. /species/suggest https://api.gbif.org/v1/species/suggest?q=Acidianus%20ambivalens%20(Zillig%20&%20B%C3%B6ck,%201987)%20Fuchs%20&%20al.,%201996

@MortenHofft
Copy link
Member

MortenHofft commented Jan 8, 2019

Thanks for noticing this. You are right, it isn't in the response and on the face of it, I would agree that is makes sense to have it there. For now, you would have to look up the individual keys to get the issue list (e.g. https://api.gbif.org/v1/species/1000041)

@mdoering you might well have an opinion on this?

damianooldoni added a commit to damianooldoni/rgbif that referenced this issue Jan 11, 2019
you can query based on issues via name_lookup() at the moment (see gbif/gbif-api#37) but you don't get any information about issues back. So, this part of documentation (copy from occ_issues) should be removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants