-
Notifications
You must be signed in to change notification settings - Fork 15
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
GRSciColl - A request for API that links occurrences to a collection based on parent institution (institution code) and catalog number #534
Comments
@marcos-lg we have some cases where the data comes from PLAZI (digitised paper made automatically into datasets). Slaza is trying to map those occurrences to collections. She would like to be able to specify that the occurrences from this "entomology" dataset with the institutionCode XXX map to the entomological collection under XXX institution. Do you think something like that could be implemented? |
It's not possible right now but I think it could be incorporated to the occurrence mappings that we have now. Because with these mappings we can do things like mapping all occurrences from a dataset XX with (optionally) a code Y or identifier Z to an specific collection but we can't specify the institution code for the collections. But I think it shouldn't be complicated to adapt it to cover this case too. |
Thank you. That is great news. |
I deployed to production a change in occurrence mappings to specify the institution code for collections. The new field in the occurrence mapping is called
|
Thanks, can't wait to see the result. I already added a mapping with the new field here: http://api.gbif.org/v1/grscicoll/collection/84f3bb13-d11c-4926-bced-040e8c38bddc/occurrenceMappings/152. |
@marcos-lg about @spalp other comment. I don't think we should use any prefix for mapping. However, I think we could imagine using the Ideally:
What do you think? let me know if you think that could be workable. We could also put the idea on hold until we get more users interested. |
@spalp keep in mind that this |
I think it could be done with the occurrence mappings containing a list of catalogue numbers yeah. But I don't think the lookup has to prioritize these mappings, it would just find any mapping that matches. The result would be the same, the I think the change could be easily done but it requires to do changes in pipelines too in order to use the catalog number in the lookup. |
Hello, @marcos-lg, I used the |
@spalp It should be working. I don't see any errors in the logs, could you share the request that you do to create the mapping? |
What makes me wonder whether this mapping works is the fact that I do not see the parentCode here: |
Sorry @spalp there is a bug and that's why it doesn't work. I'll try to deploy it tomorrow and I'll let you know so you can create the mapping again. Thanks for reporting it! |
@spalp it is now fixed. |
Thanks, @marcos-lg. I am now able to see the parentCode in the last 4 occurrence mappings here: https://api.gbif.org/v1/grscicoll/collection/84f3bb13-d11c-4926-bced-040e8c38bddc/occurrenceMapping |
Can I ask if the following API: https://github.com/ManonGros/Small-scripts-using-GBIF-API/blob/master/map_occ_to_grscicoll.ipyn can be modified to link occurrences from a selected dataset to a selected collection given an Institution Code and not on CollectionCode?
An example: I have a dataset with Coleoptera species, in which all occurrences with Institution code = 'NMNHS' (https://www.gbif.org/occurrence/search?dataset_key=ee639eb0-bf6f-410b-a903-21665b3bdb85&institution_code=nmnhs) correspond to the collection Coleoptera | Code: BG-NMNHS-ENT (https://registry.gbif.org/collection/84f3bb13-d11c-4926-bced-040e8c38bddc). I cannot link using the above-mentioned API because the dataset has no Collection Code but the Institution Code is sufficient to link uniquely to the collection.
The text was updated successfully, but these errors were encountered: