Skip to contents

Retrieves style-related data for an artist from the database, including tags, categories, and style classifications. This function allows understanding of percentile benchmarks and whether an artist is improving along various dimensions, or whether one collection has significantly different benchmark levels than another.

Usage

get_raw_styles(artist, cn = NULL)

Arguments

artist

Character string. The artist UUID to query.

cn

Database connection object. Optional.

Value

A data.table with the following columns:

  • artist_uuid: Artist UUID

  • art_uuid: Artwork UUID

  • collection_uuid: Collection UUID

  • start_date: Date the artwork was started

  • tag: Normalized style tag (lowercase with underscores)

  • category: Normalized style category (lowercase with underscores)

  • style: Normalized style classification (lowercase with underscores)

The returned data.table is keyed by artist_uuid, art_uuid, and collection_uuid, and sorted by start_date.

See also

Other utility: get_raw_scores()

Examples

if (FALSE) { # \dontrun{
# Get style data for an artist
artist_id <- "746b8207-72f5-4ab6-8d19-a91d03daec3d"
style_data <- get_raw_styles(artist = artist_id)

# Using an existing connection
cn <- artcore::dbc()
style_data <- get_raw_styles(artist = artist_id, cn = cn)
artcore::dbd(cn)

# View structure
str(style_data)
} # }