View source: R/sn_search_wiki.R
sn_search_wiki | R Documentation |
Search string in Wikidata and return Wikidata id, label, and description.
sn_search_wiki(search, language = "en", limit = 10, wait = 1, cache = TRUE)
search |
A string to be searched in Wikidata |
language |
Language to be used for the search |
limit |
Maximum numbers of responses to be given. |
wait |
In seconds, defaults to 1. Time to wait between queries to Wikidata. If data are cached locally, wait time is not applied. |
cache |
Logical, defaults to TRUE. If TRUE, search queries are stored in a local sqlite database located in the 'wiki_search_db' folder within the local cache folder. |
## Not run:
sn_search_wiki(search = "Mihai Eminescu", language = "en")
sn_search_wiki(search = "Mihai Eminescu", language = "ro")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.