Catman...f_match(3pm)
π Catmandu::Fix::viaf_match π
okay bestie, so this is Catmandu::Fix::viaf_match β part of the Catmandu::Fix fam, living its best life in the Perl docs (3pm, user contributed, very demure, very coder). Sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
Catmandu::Fix::viaf_match β bestie, it does a direct match between a name and a mainHeadingEl from VIAF. that's the whole vibe. π
πΈ SYNOPSIS πΈ
viaf_match(authorName, -lang:'nl-NL', -fallback_lang:'en-US')
look at her go β¨
π¦ DESCRIPTION π¦
So what it actually does: it performs a direct match between a name and a mainHeadingEl and the local.personalNames of a Person in VIAF. ikr. π«Ά
The fix will return the prefLabel in the provided lang, or fallback_lang if one in lang doesn't exist. and if fallback_lang also doesn't exist? then the prefLabel will be empty. no cap, that's just how it is. π
It 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'
}
literally iconic output tbh π
π PARAMETERS π
π Required parameters
pathβ the path to the name. you gotta have this one, it's not optional bestie π
π Optional parameters
langβ the language of the returnedskos:prefLabel. It falls back tofallback_langif none was found. Use IETF language tags β yes the wikipedia ones,https://en.wikipedia.org/wiki/IETF_language_tagπfallback_langβ the fallback language. your safety net, your ride or die π«Ά
π AUTHOR π
Pieter De Praetere <pieter at packed.be > β ty for your service king/queen/monarch π«‘β¨
π COPYRIGHT π
Copyright 2017- PACKED vzw β protect it at all costs π₯
π§ LICENSE π§
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, free and open, the way we like it π
π SEE ALSO π
CatmanduCatmandu::VIAFCatmandu::Store::VIAFCatmandu::Fix::viaf_search
go read those next, they're giving the same energy fr fr ππ
and that's the tea π΅ β this whole lil' page came to you via perl v5.36.0, dated 2023-02-04, filed under Catman...f_match(3pm). ily, go write some fixes bestie β¨π
ππ¦πΈπ
π¦ where this page comes from
- debian bookworm: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- debian trixie: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- ubuntu noble: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- ubuntu resolute: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- ubuntu stonking: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms