v_Extract {wikiTools}R Documentation

Gets information from a VIAF record

Description

Returns information from the VIAF record. Note that the VIAF record musts be in JSON format.

Usage

v_Extract(viaf, info, source = NULL)

Arguments

viaf

VIAF cluster record (in JSON format).

info

is mandatory to select which information you want to retrieve. The options are 'titles', 'gender', 'dates', 'occupations', 'sources', 'sourceId' or 'wikipedias'.

source

the identifier of the source (LC, WKP, JPG, BNE...) Only if info=sourceId.

Value

depends on the info selected: 'titles' A list with titles; 'gender' The gender of the author o NULL if not exits in the record; 'dates' The bird year and death year in format byear:dyear; 'occupations' A data-frame with sources and occupations from each source or NULL if occupations do not exist in the record; 'sources' A data-frame with text and sources; 'sourceId' A data-frame with columns text and source, or NULL if the source does no exist in the viaf record; 'wikipedias' A vector with the URL of the Wikipedias.


[Package wikiTools version 1.2.7 Index]