Skip to contents

Retrieves the tag-to-category mapping that defines an artist's style profile. Use this to display style badges, filter artworks by category, or build style distribution charts on artist profile pages.

Each artist has tags (e.g., "oil painting", "portrait") mapped to categories (e.g., "medium", "subject"). This mapping drives the style facets in search and the category breakdowns in analytics.

Usage

get_artist_style_map(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

data.table with columns:

tag

Style tag (e.g., "abstract", "landscape")

category

Category grouping (e.g., "style", "subject", "medium")