sn_search_wiki: Search string in Wikidata and return Wikidata id, label, and...

View source: R/sn_search_wiki.R

sn_search_wikiR Documentation

Search string in Wikidata and return Wikidata id, label, and description.

Description

Search string in Wikidata and return Wikidata id, label, and description.

Usage

sn_search_wiki(search, language = "en", limit = 10, wait = 1, cache = TRUE)

Arguments

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.

Examples

## Not run: 
sn_search_wiki(search = "Mihai Eminescu", language = "en")
sn_search_wiki(search = "Mihai Eminescu", language = "ro")

## End(Not run)


giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.