Learn R Programming

wikiTools (version 1.2.8)

v_AutoSuggest: 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)

Value

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

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])]

See Also

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

Examples

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

Run the code above in your browser using DataLab