Catmandu::Store::VIAF - Retrieve items from VIAF
This module contains a store to lookup a viaf_id in VIAF.
lookup_in_store(authortName, VIAF, lang:'nl-NL', fallback_lang:'en-US')
lookup_in_store( authorName, AAT, lang: 'nl-NL', fallback_lang: 'en-US' )
The lang parameter is optional and defaults to nl-NL. It sets the language of the returned prefLabel. If no prefLabel for the viaf_id in provided lang exists, the prefLabel for the fallback_lang is used.
lang
The store takes the dc:identifier of a Person from VIAF and returns the following data:
dc:identifier
{ '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' }
Language of the returned skos:prefLabel. Falls back to fallback_lang if none was found. Use IETF language tags.
skos:prefLabel
fallback_lang
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::Fix::viaf_search 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.