Catman...e::VIAF(3pm)
π¦ Catmandu::Store::VIAF β the manual page, but make it cute
okay bestie, so this is the man page for Catmandu::Store::VIAF, section 3pm, from the User Contributed Perl Documentation (that's the manual name, consider it folded in like a little bookmark π). It lives in the Catmandu universe and its whole personality is: go ask the VIAF authority file about a person and come back with a record. Let's get into it.
β¨ NAME β¨
Catmandu::Store::VIAF β Retrieve items from VIAF πΈ
π SYNOPSIS π
Three ways to use it, bestie. Pick your fighter.
From the command line:
# 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
...
From a Catmandu Fix:
# From a Catmandu Fix
lookup_in_store(
objectName, # objectName is a field containing the VIAF identifier
VIAF
)
From Perl code:
# From Perl code
use Catmandu;
my $store = Catmandu->store('VIAF')->bag;
my $item = $store->get('102333412');
print $item->{'skos:prefLabel'} , "\n"; # Jane Austen
π DESCRIPTION π
A Catmandu::Store::VIAF is a Perl package that can query the VIAF authority file over at http://viaf.org/ β yes that's the whole vibe, it's an authority file and this store is obsessed with it.
Real talk though: this store supports only one method, get, to retrieve an AAT record by its identifier. That's it. One method. It's giving minimalist. β¨
π CONFIGURATION π
lang
The lang parameter is optional and defaults to nl-NL. It sets the language of the returned prefLabel. And listen β if no prefLabel for the viaf_id in the provided lang exists, the prefLabel for the fallback_lang is used instead. So you always got a backup, no cap. π«Ά
fallback_lang
Optional. Defaults to en-US. πΈ
π METHODS π
new(%configuration)
Create a new Catmandu::Store::VIAF. Fresh out the box, main character energy. π
get($id)
Retrieve a VIAF record given an identifier. Returns a record like:
{
'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'
}
add()
Not supported π
delete()
Not supported π
each()
Not supported π
lowkey tragic thatadd,deleteandeachare all "Not supported", but we respect the boundaries. She does one thing and she does it well. periodt.
π AUTHOR π
Pieter De Praetere <pieter at packed.be > π¦
πΈ COPYRIGHT πΈ
Copyright 2017- PACKED vzw
β LICENSE β
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π₯ SEE ALSO π₯
CatmanduCatmandu::VIAFCatmandu::Fix::viaf_searchCatmandu::Fix::viaf_match
and that's the whole page, bestie π this lil doc rode in on perl v5.36.0, dated 2023-02-04, and it's the Catman...e::VIAF(3pm) situation β go forth and look up some authors, iykyk πβ¨π
π¦ 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