get_play_rdf() requests an RDF (Resource Description Framework) data
for a play, given play and corpus names. RDF for plays can be useful for
extraction data for a play from
https://www.wikidata.org/wiki/Wikidata:Main_Page.
Usage
get_play_rdf(play = NULL, corpus = NULL, parse = TRUE, ...)
Character, name of a play (you can find all play names in
"playName" column within an object returned by
get_dracor). Character vector (longer than 1) is not
supported.
corpus
Character, name of the corpus (you can find all corpus names in
name column within an object returned by
get_dracor_meta).
parse
Logical, if TRUE the result is parsed by
xml2::read_xml(), otherwise character value is
returned. Default value is TRUE.
get_play_rdf(play = "lessing-emilia-galotti", corpus = "ger")
# If you want RDF without parsing by xml2::read_xml():get_play_rdf(play = "lessing-emilia-galotti", corpus = "ger", parse = FALSE)