Skip to contents

The living atlases store a huge amount of information, above and beyond the occurrence records that are their main output. In galah, one way that users can investigate this information is by searching for a specific option or category for the type of information they are interested in. Functions prefixed with search_ do this, displaying any matches to a search term within the valid options for the information specified by the suffix.

For more information about taxonomic searches using search_taxa(), see ?taxonomic_searches.

[Stable] search_all() is a helper function that can do searches for multiple types of information, acting as a wrapper around many search_ sub-functions. See Details (below) for accepted values.

Usage

search_all(type, query)

search_assertions(query)

search_apis(query)

search_atlases(query)

search_collections(query)

search_datasets(query)

search_fields(query)

search_identifiers(...)

search_licences(query)

search_lists(query)

search_profiles(query)

search_providers(query)

search_ranks(query)

search_reasons(query)

search_taxa(...)

Arguments

type

A string to specify what type of parameters should be searched.

query

A string specifying a search term. Searches are not case-sensitive.

...

A set of strings or a tibble to be queried; see Details.

Value

An object of class tbl_df and data.frame (aka a tibble) containing all data that match the search query.

Details

There are five categories of information, each with their own specific sub-functions to look-up each type of information. The available types of information for search_all() are:

CategoryTypeDescriptionSub-functions
configurationatlasesSearch for what atlases are availablesearch_atlases()
apisSearch for what APIs & functions are available for each atlassearch_apis()
reasonsSearch for what values are acceptable as 'download reasons' for a specified atlassearch_reasons()
taxonomytaxaSearch for one or more taxonomic namessearch_taxa()
identifiersTake a universal identifier and return taxonomic informationsearch_identifiers()
ranksSearch for valid taxonomic ranks (e.g. Kingdom, Class, Order, etc.)search_ranks()
filtersfieldsSearch for fields that are stored in an atlassearch_fields()
assertionsSearch for results of data quality checks run by each atlassearch_assertions()
licensesSearch for copyright licences applied to mediasearch_licenses()
group filtersprofilesSearch for what data profiles are availablesearch_profiles()
listsSearch for what species lists are availablesearch_lists()
data providersprovidersSearch for which institutions have provided datasearch_providers()
collectionsSearch for the specific collections within those institutionssearch_collections()
datasetsSearch for the data groupings within those collectionssearch_datasets()

See also

Use the show_all() function and show_all_() sub-functions to show available options of information. These functions are used to pass valid arguments to filter(), select(), and related functions. Taxonomic queries are somewhat more involved; see taxonomic_searches for details.

Examples

if (FALSE) { # \dontrun{
# Search for fields that include the word "date"
search_all(fields, "date")

# Search for fields that include the word "marine"
search_all(fields, "marine")

# Search using a single taxonomic term
# (see `?search_taxa()` for more information)
search_all(taxa, "Reptilia") # equivalent

# Look up a unique taxon identifier
# (see `?search_identifiers()` for more information)
search_all(identifiers, 
           "https://id.biodiversity.org.au/node/apni/2914510")

# Search for species lists that match "endangered"
search_all(lists, "endangered") # equivalent

# Search for a valid taxonomic rank, "subphylum"
search_all(ranks, "subphylum")

# An alternative is to download the data and then `filter` it. This is 
# largely synonymous, and allows greater control over which fields are searched.
request_metadata(type = "fields") |>
 collect() |>
 dplyr::filter(grepl("date", id))
} # }