Module: Gbif::Species
- Defined in:
- lib/gbifrb/Species.rb
Class Method Summary collapse
-
.name_backbone(name:, rank: nil, kingdom: nil, phylum: nil, clazz: nil, order: nil, family: nil, genus: nil, strict: nil, offset: nil, limit: nil, verbose: nil, options: nil) ⇒ Hash
Search the GBIF taxonomic backbone.
-
.name_lookup(q: nil, rank: nil, higherTaxonKey: nil, status: nil, isExtinct: nil, habitat: nil, nameType: nil, datasetKey: nil, nomenclaturalStatus: nil, limit: 100, offset: nil, facet: false, facetMincount: nil, facetMultiselect: nil, type: nil, hl: false, verbosity: false, verbose: nil, options: nil) ⇒ Hash
Search the GBIF full text.
-
.name_suggest(q: nil, datasetKey: nil, rank: nil, limit: 100, offset: nil, verbose: nil, options: nil) ⇒ Hash
Search the GBIF suggester.
-
.name_usage(name: nil, language: nil, datasetKey: nil, sourceId: nil, limit: 100, offset: nil, verbose: nil, options: nil) ⇒ Array
Search for GBIF name usages.
Class Method Details
.name_backbone(name:, rank: nil, kingdom: nil, phylum: nil, clazz: nil, order: nil, family: nil, genus: nil, strict: nil, offset: nil, limit: nil, verbose: nil, options: nil) ⇒ Hash
Search the GBIF taxonomic backbone
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/gbifrb/Species.rb', line 48 def self.name_backbone(name:, rank: nil, kingdom: nil, phylum: nil, clazz: nil, order: nil, family: nil, genus: nil, strict: nil, offset: nil, limit: nil, verbose: nil, options: nil) arguments = { name: name, rank: rank, kingdom: kingdom, phylum: phylum, class: clazz, order: order, family: family, genus: genus, strict: strict, offset: offset, limit: limit }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("species/match", opts, verbose, ).perform end |
.name_lookup(q: nil, rank: nil, higherTaxonKey: nil, status: nil, isExtinct: nil, habitat: nil, nameType: nil, datasetKey: nil, nomenclaturalStatus: nil, limit: 100, offset: nil, facet: false, facetMincount: nil, facetMultiselect: nil, type: nil, hl: false, verbosity: false, verbose: nil, options: nil) ⇒ Hash
Search the GBIF full text
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/gbifrb/Species.rb', line 187 def self.name_lookup(q: nil, rank: nil, higherTaxonKey: nil, status: nil, isExtinct: nil, habitat: nil, nameType: nil, datasetKey: nil, nomenclaturalStatus: nil, limit: 100, offset: nil, facet: false, facetMincount: nil, facetMultiselect: nil, type: nil, hl: false, verbosity: false, verbose: nil, options: nil) arguments = { q: q, rank: rank, higherTaxonKey: higherTaxonKey, status: status, isExtinct: isExtinct, habitat: habitat, nameType: nameType, datasetKey: datasetKey, nomenclaturalStatus: nomenclaturalStatus, limit: limit, offset: offset, facet: facet, facetMincount: facetMincount, facetMultiselect: facetMultiselect, type: type, hl: hl, verbose: verbosity }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("species/search", opts, verbose, ).perform end |
.name_suggest(q: nil, datasetKey: nil, rank: nil, limit: 100, offset: nil, verbose: nil, options: nil) ⇒ Hash
Search the GBIF suggester
83 84 85 86 87 88 89 90 |
# File 'lib/gbifrb/Species.rb', line 83 def self.name_suggest(q: nil, datasetKey: nil, rank: nil, limit: 100, offset: nil, verbose: nil, options: nil) arguments = { q: q, datasetKey: datasetKey, rank: rank, limit: limit, offset: offset }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("species/suggest", opts, verbose, ).perform end |
.name_usage(name: nil, language: nil, datasetKey: nil, sourceId: nil, limit: 100, offset: nil, verbose: nil, options: nil) ⇒ Array
Search for GBIF name usages
110 111 112 113 114 115 116 117 |
# File 'lib/gbifrb/Species.rb', line 110 def self.name_usage(name: nil, language: nil, datasetKey: nil, sourceId: nil, limit: 100, offset: nil, verbose: nil, options: nil) arguments = { name: name, language: language, datasetKey: datasetKey, sourceId: sourceId, limit: limit, offset: offset }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("species/", opts, verbose, ).perform end |