Catman..._match(3pm)
π Catman..._match β the aat_match fix, explained by your unix bestie π
okay so this page lives in the User Contributed Perl Documentation section, manual page Catman..._match(3pm). it's giving certified Perl module energy. let's go π¦
β¨ NAME β¨
Catmandu::Fix::aat_match β it does a direct match between a term and a Subject over in the AAT. no cap. π
πΈ SYNOPSIS πΈ
aat_match(
path,
-lang: nl
)
that's the whole vibe, bestie. path goes in, -lang is optional, and we're off. π
π«Ά DESCRIPTION π«Ά
so basically: this fix performs a direct match between a term and the SPARQL endpoint at <http://vocab.getty.edu/sparql> belonging to the AAT. π₯
what it's gonna do is try to find a Subject where the prefLabel in lang (optional, default "nl") equals the term. if it finds one, you get a single item back. if it finds nothing? you get an empty hash. that's it. no drama, no extra keys. π
the data it returns looks like this, exactly:
{
'id' => 'The dc:identifier of the Subject',
'prefLabel' => 'The prefLabel in the provided language',
'uri' => 'The URI of the Subject'
}
three little keys, living their best lives. obsessed. π
β PARAMETERS β
Required parameters π
pathβ path to the term. you gotta give this one, bestie. no skipping.
Optional parameters π
langβ language of both theprefLabelthat gets matched and theprefLabelthat gets returned. so it's a two-for-one language situation, iykyk. β¨
π 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. slay, open source icon. π
π SEE ALSO π
CatmanduCatmandu::AATCatmandu::Store::AATCatmandu::Fix::aat_search
and that's the whole page, bestie π«Ά this was perl v5.36.0, dated 2023-02-04, and yes it is literally still called Catman..._match(3pm) β iconic, no notes. bye!! π¦β¨
π¦ where this page comes from
- debian bookworm: libcatmandu-aat-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-aat-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-aat-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-aat-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-aat-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms