Catmandu::VIAF(3pm)

πŸ’– Catmandu::VIAF πŸ’–

okay bestie, so this is Catmandu::VIAF β€” it's the module that goes and gets you stuff from the VIAF authority file. That's the Virtual International Authority File, the whole big-deal name-authority situation. You want items? It retrieves items. It's giving authority file fairy godmother. ✨


🌸 SYNOPSIS 🌸

First up, from the command line, no cap:

# From the command line
$ catmandu export VIAF --id 102333412 to YAML
---
dcterms:identifier: '102333412'
guid: http://viaf.org/viaf/102333412
schema:birthDate: 1775-12-16
schema:deathDate: 1817-07-18
schema:description: English novelist
skos:prefLabel: Jane Austen
...

look at that. Jane Austen herself, slaying in YAML format. iconic. πŸ‘‘

Then from a Catmandu Fix, like:

# From a Catmandu Fix
lookup_in_store(authortName, VIAF, lang:'nl-NL', fallback_lang:'en-US')

(yeah it's spelled authortName in there, that's literally how it's written, don't come for me 🫢)

Then if you wanna do a direct match between a name and a mainHeadingEl from VIAF:

# Perform a direct match between a name and a mainHeadingEl from VIAF
viaf_match(authorName, -lang:'nl-NL', -fallback_lang:'en-US')

And if you wanna search for a name in VIAF instead:

# Perform a search for a name in VIAF
viaf_search(authorName, -lang:'nl-NL', -fallback_lang:'en-US')

πŸŽ€ MODULES πŸŽ€

the whole squad, fr fr:

  • Catmandu::Store::VIAF
  • Catmandu::Fix::viaf_match
  • Catmandu::Fix::viaf_search
  • Catmandu::VIAF::API

πŸ¦‹ AUTHORS πŸ¦‹

the masterminds behind this masterpiece, give them their flowers πŸ’:

  • Matthias Vandermaesen <matthias.vandermaesen@vlaamsekunstcollectie.be>
  • Pieter De Praetere <pieter@packed.be>

This software is copyright (c) 2017 by PACKED, vzw, Vlaamse Kunstcollectie, vzw.

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, Version 3, June 2007. so yes, bestie, you can absolutely remix it, just respect the license. periodt. πŸ’…


🌈 SEE ALSO 🌈

go read these too, they're all connected, iykyk:

  • Catmandu
  • Catmandu::Store::VIAF
  • Catmandu::Fix::viaf_search
  • Catmandu::Fix::viaf_match

and that's the whole thing! πŸ“ this lil doc is perl v5.36.0, dated 2023-02-04, and it's filed under Catmandu::VIAF(3pm). mwah. go fetch some authority records. πŸ§šπŸ’œ