Description Usage Arguments Value Examples
'wiki_query()' sends a SPARQL query to Wikidata and collects the results in a dataframe
1 | wiki_query(qry)
|
qry |
A character string representing a SPARQL query to be sent to Wikidata |
A dataframe of results
1 2 3 4 5 6 7 | # List five diseases
query <- 'SELECT ?itemLabel WHERE {
?item wdt:P31 wd:Q12136. #instance of disease
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 5'
wiki_query(query)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.