tw_extract_qualifier | R Documentation |
WikidataR
This function is mostly used internally and for testing.
tw_extract_qualifier(id, p, w = NULL)
id |
A character vector of length 1, must start with Q, e.g. "Q254" for Wolfgang Amadeus Mozart. |
p |
A character vector of length 1, a property. Must always start with the capital letter "P", e.g. "P31" for "instance of". |
w |
An object of class Wikidata created with |
A data frame (a tibble) with eight columns: id
for the input id, property
, qualifier_id
, qualifier_property
, qualifier_value
, rank
, qualifier_value_type
, and set
(to distinguish sets of data when a property is present more than once)
w <- WikidataR::get_item(id = "Q180099")
tw_extract_qualifier(id = "Q180099", p = "P26", w = w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.