logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::viaf_match - Perform a direct match between a name and a mainHeadingEl from VIAF

Author

       Pieter De Praetere <pieter at packed.be >

Description

       Perform a direct match between a name and a mainHeadingEl and the local.personalNames of a Person in
       VIAF. 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.

       Returns the following data:

         {
           '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'
         }

   PARAMETERSRequiredparameters

       "path"
           Path to the name.

       Optionalparameters

       "lang"
           Language  of the returned "skos:prefLabel". Falls back to "fallback_lang" if none was found. Use IETF
           language tags <https://en.wikipedia.org/wiki/IETF_language_tag>.

       "fallback_lang"
           Fallback language.

License

       This library is free software; you can redistribute it and/or modify it under  the  same  terms  as  Perl
       itself.

Name

       Catmandu::Fix::viaf_match - Perform a direct match between a name and a mainHeadingEl from VIAF

See Also

       Catmandu Catmandu::VIAF Catmandu::Store::VIAF Catmandu::Fix::viaf_search

perl v5.36.0                                       2023-02-04                     Catmandu::Fix::viaf_match(3pm)

Synopsis

         viaf_match(authorName, -lang:'nl-NL', -fallback_lang:'en-US')

See Also