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 returned skos:prefLabel. It falls back to fallback_lang if 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 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 πŸ‘‘

  • Catmandu
  • Catmandu::VIAF
  • Catmandu::Store::VIAF
  • Catmandu::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 βœ¨πŸ’…πŸŽ€πŸ¦‹πŸŒΈπŸ’–