This is a collection of scripts which compiles a list of marine datasets in GBIF. A file containing taxon lists for all datasets is required, but not incuded in this repository. Species profiles are retrieved from the GBIF API and checked for a WoRMS or IRMNG marine flag.
This creates a table occurrence
for the name_export.txt
file provided by GBIF.
This copies the name_export.txt
file to database.
This creates a names
table from the occurrence
table.
This queries the GBIF API for species profiles. The names
table gets populated with WoRMS and IRMNG marine flags.
This creates a table and copies the id_mapping.csv
file to database.
This creates a datasets
table from the occurrence
and names
tables. Only datasets with marine taxa are included.
This queries the GBIF API for dataset information.
This adds the total number of records to the datasets.
This creates a organizations
table from the datasets
table and queries the GBIF API for publishing organization information.
This creates a nodes
table from the organizations
table and queries the GBIF API for node information.
This creates a installations
table from the datasets
table and queries the GBIF API for installation information.
This marks OBIS datasets.
This outputs the datasets.csv and datasets_sample.csv tables.