Skip to contents

Returns unique style tags from all artworks by the artist. Use this to identify new tags that need category classification, build tag clouds, or update the artist's style map after new artwork uploads.

This function queries app.global_styles which stores per-artwork tag assignments. Tags are deduplicated across all artworks.

Usage

get_artist_tags(artist, cn = NULL)

Arguments

artist

Character. Artist UUID (format: "746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

Character vector of unique style tags used by the artist.

Examples

if (FALSE) { # \dontrun{
# Get all tags for an artist
tags <- get_artist_tags(artist)
# Returns: c("abstract", "colorful", "digital", ...)

# Find tags not yet in style map
style_map <- get_artist_style_map(artist)
new_tags <- setdiff(tags, style_map$tag)
} # }