Catmandu::Fix::viaf_match - Perform a search for a name in VIAF
viaf_search(authorName, -lang:'nl-NL', -fallback_lang:'en-US')
Perform a search for a name. Both mainHeadingEl and the local.personalNames are queried. The fix will return the prefLabel in the provided lang, or fallback_lang if one in lang does not exist. If fallback_lang also doesn't exist, the prefLabel will be empty.
lang
fallback_lang
The fix returns a list, with elements in the following form:
{ 'dcterms:identifier' => 'The identifier', 'guid' => 'The VIAF URL', 'schema:birthDate' => 'Birth date, if provided', 'schema:deathDate' => 'Death date, if provided', 'schema:description' => 'Description, if provided', 'skos:prefLabel' => 'prefLabel, in lang or fallback_lang' }
path
Path to the name.
Language of the returned skos:prefLabel. Falls back to fallback_lang if none was found. Use IETF language tags.
skos:prefLabel
Fallback language.
Pieter De Praetere <pieter at packed.be >
Copyright 2017- PACKED vzw
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Catmandu Catmandu::VIAF Catmandu::Store::VIAF Catmandu::Fix::viaf_match
To install Catmandu::VIAF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::VIAF
CPAN shell
perl -MCPAN -e shell install Catmandu::VIAF
For more information on module installation, please visit the detailed CPAN module installation guide.