[API-users] Using GBIF api for a global insect family website
mdoering at gbif.org
Mon Jun 12 10:00:35 CEST 2017
the GBIF Backbone only has the major Linnean ranks, i.e. a genus is attached to the family directly and there is no subfamily, tribe or subgenus. As we assemble the taxonomy by code from lots of different sources this would yield a very inconsistent taxonomy otherwise.
On 11. Jun 2017, at 10:13, Bastiaan Wakkie <bwakkie at syrphidae.com<mailto:bwakkie at syrphidae.com>> wrote:
Thank you for the information!
I got the backbone and was fiddling around. Is SUBFAMILY, TRIBUS AND GUBGENUS etc. left out on purpose? I presumed actually this was in de db so created a recursive sql:
WITH RECURSIVE fulltree(id,parent_key,is_synonym,level,rank,scientific_name,path) AS (
SELECT id, parent_key, is_synonym, 1 as level,rank, scientific_name, scientific_name||'' as path from backbone where parent_key = 6920
SELECT b.id, b.parent_key, b.is_synonym, ft.level+1 as level,b.rank, b.scientific_name, ft.path||' / '||b.scientific_name as path
from backbone b, fulltree ft where b.parent_key = ft.id
SELECT * from fulltree order by path
But as GENUS falls directly under FAMILY I received just an alphabetic list. Am I doing something wrong here? I might just miss the db concept... or is there a more detailed db which includes more ranks between Family and Genus/Specie?
On 05/31/2017 01:44 PM, Markus Döring wrote:
the GBIF page for Syrphidae is
or here in a preview of our upcoming new portal:
GBIF does not provide a software to setup your website, but you can surely use our API to build your own Syrphidae portal.
The GBIF portals above both exclusively use our own API, so all the information is openly accessible to you:
If you need help with the API please let us know what you try to achieve.
This call for example lists all accepted genera in that family:
This lists children of the genus imosyrphus Bigot, 1882:
... or the family wth 10 records per page and an offset of 20:
The images you see on our upcoming portal are occurrence images which you can retrieve with such a call knowing the gbif taxon key (Syrphidae in this case):
Hope this helps and gives inspirations.
You can also download the entire backbone if you want to:
We try to update it 3-4 times a year.
Global Biodiversity Information Facility (GBIF)
mdoering at gbif.org<mailto:mdoering at gbif.org> <mailto:mdoering at gbif.org>
On 28. May 2017, at 20:03, Bastiaan Wakkie <bwakkie at syrphidae.com<mailto:bwakkie at syrphidae.com> <mailto:bwakkie at syrphidae.com>> wrote:
From 1999 onwards I have created and maintained a insect family website about Syrphidae ( http://www.syrphidae.com<http://www.syrphidae.com/>)
Main goal is a centralised meeting point for Syrpidologists around the world. My plan is to use the gbif backbone in the future but have no idea where to start.
Basically I used national checklists to update the data in the pastbut never reached the whole world (Europe and Africa where partly done). What is the best option for me? I know in the past there was the gibf-npt which was very suitable for my case but was discontinued.
Are there examples I can reusefor my purpose? Would it be best to use only api calls all over my website ot receive speciedata and occurences?
API-users mailing list
API-users at lists.gbif.org<mailto:API-users at lists.gbif.org> <mailto:API-users at lists.gbif.org>
Digital signature: https://wakkie.org/FA3DED4C.asc
fingerprint: 376B 6035 CD31 6437 A0FD 3165 C255 CD3D FA3D ED4C
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the API-users