get_character_plays: Retrieve plays having a character identified by 'Wikidata ID'

View source: R/dracor.R

get_character_playsR Documentation

Retrieve plays having a character identified by 'Wikidata ID'

Description

get_character_plays() requests plays that include a character that can by found in 'Wikidata' by it's id. get_character_plays() sends a request and parses the the result to get those plays as a data frame.

Usage

get_character_plays(char_wiki_id)

Arguments

char_wiki_id

Character value with 'Wikidata ID' for a character. 'Wikidata ID' can be found on https://www.wikidata.org/wiki/Wikidata:Main_Page. Character vector (longer than 1) is not supported.

Value

Data frame, in which one row represents one play. Information on author(s) name, character name, play name, URL and ID is represented in separate columns.

See Also

get_dracor

Examples

wiki_id <- "Q131412"
get_character_plays(wiki_id)

Pozdniakov/rdracor documentation built on April 9, 2024, 1:20 a.m.