Learn R Programming

SHARK4R (version 1.1.0)

get_nua_image_labeling_metadata: Retrieve image labeling metadata from Nordic Microalgae

Description

This function retrieves detailed metadata for automated imaging images from the Nordic Microalgae API. These are images from automated imaging instruments (e.g., IFCB) used for image labeling purposes. It returns comprehensive metadata including location, instrument, dataset, and taxonomic information.

Usage

get_nua_image_labeling_metadata(unparsed = FALSE)

Value

When unparsed = FALSE: a tibble with the following columns:

  • slug: The slug of the media item.

  • taxon_slug: The slug of the related taxon.

  • scientific_name: The scientific name of the related taxon.

  • file: The filename of the media item.

  • type: The MIME type of the media item.

  • title: The title of the media item.

  • caption: The caption of the media item.

  • license: The license of the media item.

  • location: The location where the media was collected.

  • contributor: The contributor of the media item.

  • copyright_holder: The copyright holder.

  • imaging_instrument: Comma-separated list of imaging instruments.

  • training_dataset: DOI or URL of the training dataset.

  • sampling_date: The date the sample was collected.

  • geographic_area: The geographic area of collection.

  • latitude_degree: The latitude in degrees.

  • longitude_degree: The longitude in degrees.

  • institute: Comma-separated list of institutes.

  • contributing_organisation: The contributing organisation.

  • priority: The priority of the image.

  • created_at: The creation timestamp.

  • updated_at: The last update timestamp.

Arguments

unparsed

Logical. If TRUE, complete API response is returned as an unparsed list. Default is FALSE.

See Also

https://nordicmicroalgae.org/ for Nordic Microalgae website.

https://nordicmicroalgae.org/api/ for Nordic Microalgae API documentation.

get_nua_image_labeling_links for retrieving image labeling media URLs.

get_nua_media_metadata for retrieving regular media metadata.

Examples

Run this code
# \donttest{
# Retrieve image labeling metadata
try(il_metadata <- get_nua_image_labeling_metadata(unparsed = FALSE))

# Preview the extracted data
if (exists("il_metadata")) head(il_metadata)
# }

Run the code above in your browser using DataLab