PHP GBIF
PHP GBIF client
|
Inherits Gbif.
Public Member Functions | |
nameUsage (array $args=[], $data='all', $key=NULL, $uuid=NULL, $short_name=NULL) | |
nameUsageByKey ($key) | |
nameBackbone (array $args) | |
nameLookup (array $args) | |
nameSuggest (array $args) | |
Public Member Functions inherited from Gbif | |
__construct () | |
Additional Inherited Members | |
Data Fields inherited from Gbif | |
const | GBIF_BASEURL = 'https://api.gbif.org/v1/' |
Protected Member Functions inherited from Gbif | |
gbifGet ($uri, array $args=[]) | |
formatQueryString (array $args) | |
bool2str (bool $val) | |
Protected Attributes inherited from Gbif | |
$gbifClient | |
GBIF: species.
nameBackbone | ( | array | $args | ) |
Lookup names in the GBIF backbone taxonomy.
If you are looking for behavior similar to the GBIF website when you search for a name, name_backbone
may be what you want. For example, a search for Lantanophaga pusillidactyla on the GBIF website and with name_backbone
will give back as a first result the correct name Lantanophaga pusillidactylus.
A list for a single taxon with many slots (with verbose=FALSE
- default), or a list of length two, first element for the suggested taxon match, and a data.frame with alternative name suggestions resulting from fuzzy matching (with verbose=TRUE
).
If you don't get a match GBIF gives back a list of length 3 with slots synonym, confidence, and matchType='NONE'
.
Usage:
array | $args | An associative array, with the following elements:
|
nameLookup | ( | array | $args | ) |
Lookup names in all taxonomies in GBIF.
This service uses fuzzy lookup so that you can put in partial names and you should get back those things that match. See examples below.
Usage:
array | $args | An associative array, with the following elements:
|
nameSuggest | ( | array | $args | ) |
Autocomplete service.
A quick and simple autocomplete service that returns up to 20 name usages by doing prefix matching against the scientific name. Results are ordered by relevance.
Usage:
array | $args | An associative array, with the following elements:
|
nameUsage | ( | array | $args = [] , |
$data = 'all' , |
|||
$key = NULL , |
|||
$uuid = NULL , |
|||
$short_name = NULL |
|||
) |
Lookup details for specific names in all taxonomies in GBIF.
Usage:
array | $args | An associative array, with the following elements:
|
string | $data | The type of data to get. Default: 'all'. Options: 'all', 'verbatim', 'name', 'parents', 'children', 'related', 'synonyms', 'descriptions', 'distributions', 'media', 'references', 'speciesProfiles', 'vernacularNames', 'typeSpecimens', 'root'. |
int | $key | A GBIF key for a taxon. |
string | $uuid | A uuid for a dataset. Should give exact same results as datasetKey. Only relevant when $data is 'root'. |
string | $short_name | A short name. Only relevant when data is 'root', in which case either $uuid or $short_name must be set. Taken into account if $uuid is NULL. |
ResTelae\Gbif\GbifException When some arguments are wrong.
nameUsageByKey | ( | $key | ) |
Lookup for a specific taxon name.
Usage:
int | $key | A GBIF key for a taxon. |