qid_from_name: QID from label name

Description Usage Arguments Value

View source: R/schol.R

Description

simple converter from label names to QIDs (for items in wikidata). Essentially a simplification of find_item

Usage

1
qid_from_name(name = "Thomas Shafee", limit = 100, format = "vector")

Arguments

name

name labels submitted as strings

limit

if multiple QIDs match each submitted name, how many to return

format

output format ('vector' to return a simple vector, or 'list' to return a nested list)

Value

vector of QIDs corresponding to names submitted. Note: some names may return multiple QIDs.


WikidataR documentation built on Nov. 16, 2021, 5:07 p.m.