v_AutoSuggest: Suggests VIAF id from a name

View source: R/wiki_utils.R

v_AutoSuggestR Documentation

Suggests VIAF id from a name

Description

Search the name of the author from the VIAF AutoSuggest API and returns information in JSON format of the records found. Note that only returns a maximum of 10 records. Note that those records are not VIAF cluster records. A VIAF record is considered a "cluster record," which is the result of combining records from many libraries around the world into a single record.

Usage

v_AutoSuggest(author)

Arguments

author

String to search. Please, see the structure of the author string to obtain better results: author: last name, first name[,] [([year_of_bird][-year_of_death])]

Value

A data-frame with four columns from the elements "term", "score", "nametype" and "viafid" of the Autosuggest API response.

See Also

https://developer.api.oclc.org/viaf-api#/Authority%20Cluster

Examples

v_AutoSuggest('Iranzo')
v_AutoSuggest('Esparza, María')
# Four rows, only two viafid:
v_AutoSuggest('Escobar, Modesto')

wikiTools documentation built on April 3, 2025, 9:38 p.m.