Skip to content

taxonKey does not include synonyms #86

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

Open
thomasstjerne opened this issue Aug 12, 2024 · 5 comments
Open

taxonKey does not include synonyms #86

thomasstjerne opened this issue Aug 12, 2024 · 5 comments
Assignees

Comments

@thomasstjerne
Copy link

When querying our occurrence search by taxonKey, synonym taxa are included.
Example: https://api.gbif.org/v1/occurrence/search?taxonKey=11704916
This gives 66 results, including 40 from Denmark from the Biowide dataset.
However, the map does not show any occurrences from Denmark:
https://www.gbif.org/species/11704916
And capabilities return only 10 occurrences: https://api.gbif.org/v2/map/occurrence/density/capabilities.json?taxonKey=11704916

I suspect the reason is, that the Biowide dataset uses a synonym (https://www.gbif.org/species/9691027) of https://www.gbif.org/species/11704916.

In order to produce reliable taxon distribution maps, I think this should be aligned with the occurrence search and include occurrence data from synonym taxa.

@ahakanzn
Copy link

@mdoering Hi Markus, could have a look at this one?

@MattBlissett
Copy link
Member

This is probably one for @timrobertson100 or me to look at.

Just changing to use acceptedTaxonKey instead of taxonKey would (I think) remove the points from the synonym taxon's map.

@timrobertson100
Copy link
Member

timrobertson100 commented Aug 20, 2024

This problem is specific to taxa that are at sub-generic ranks and their synonymy.

If you take the canonical Puma concolor example and set the year sliders on the map to be 1943-1943, and the same on the synonym Felis concolor you will find this record appears on both. This demonstrates the species / subspecies level is working as @thomasstjerne expected.

The reason this works is because we hold pointers to the major Linnean ranks (Kingdom, Phylum... Genus, Species) on all records and they are used in the maps here, and in small maps here and large maps here.

I believe adding acceptedTaxonKey to those 3 places will solve this problem bringing consistency to the intermediate ranks - @MattBlissett, can you please follow that and confirm my thinking?

@mdoering
Copy link
Member

Example: https://api.gbif.org/v1/occurrence/search?taxonKey=11704916

@thomasstjerne a different thing. But the occurrence record has a weird taxon property that should probably not be there:

"genericName":"SH1003366.09FU"

Something in pipelines probably adds this wrongly. The taxon itself does not have that:
https://api.gbif.org/v1/species/11704916

@mdoering
Copy link
Member

The reason this works is because we hold pointers to the major Linnean ranks (Kingdom, Phylum... Genus, Species) on all records and they are used in the maps here, and in small maps here and large maps here.

@djtfmartin this will be another problem to solve with the new taxonomy having unlimited ranks. And unranked can even exist multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants