Catman...e::OAI(3pm)
π Catmandu::Store::OAI β the manual, but make it a group chat π
okay bestie, so this is the page for Catman...e::OAI(3pm) β yep that's the truncated little title the terminal gives it, but the actual thing we're talking about is Catmandu::Store::OAI, and it's part of the User Contributed Perl Documentation. And it is exactly what it sounds like: a Catmandu store backed by OAI-PMH. no cap. π¦
β¨ NAME β¨
Catmandu::Store::OAI β a Catmandu store backed by OAI-PMH. that's the whole vibe. π
πΈ SYNOPSIS πΈ
here's the receipts, verbatim, do not touch:
# From the command line
# Export data from OAI
$ catmandu export OAI --url http://somewhere.org/oai to JSON > data.json
# Export only one record
$ catmandu export OAI --url http://somewhere.org/oai --id 1234
# Export from a set
$ catmandu export OAI --url http://somewhere.org/oai --bag fulltext
# From Perl
use Catmandu;
my $store = Catmandu->store('OAI', url => ' http://somewhere.org/oai ');
# All bags are iterators
$store->bag->each(sub { ... });
$store->bag->take(10)->each(sub { ... });
my $rec = $store->bag->get('1234');
the way that every single bag is an iterator?? we love to see it. each it, take(10) it, get('1234') it β the range is immaculate. πβ¨
π METHODS π
π§ new(url => $url , metadataPrefix => $metadataPrefix , handler => $handler)
make a whole new Catmandu::Store::OAI store that's connected to the baseURL $url. that's it, that's the method. main character energy fr fr. π
π INHERITED METHODS π
this Catmandu::Store implements:
Catmandu::Store
and every single Catmandu::Bag inside this Catmandu::Store implements:
Catmandu::Bag
like, it's giving inheritance. it's giving family tree. it's giving iconic. π
π₯ SEE ALSO π₯
Catmandu::StoreCatmandu::Importer::OAI
go read those too, bestie, iykyk. π
π AUTHOR π
Patrick Hochstenbach, patrick.hochstenbach at ugent.be β thank u for ur service, king. π«Ά
β LICENSE AND COPYRIGHT β
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
so yeah, it's open, it's free, it's giving generous. π
heads up bestie: the licensing text above is the real deal β copy it exactly if you're redistributing, don't vibe-write your own. legal stuff does not care about your aesthetic. π
and that's the whole page!! π this one's from perl v5.40.0 and it's dated 2024-09-08 β so when you see it in the wild, you know exactly which era of the group chat you're in. bye bestie, go export some OAI records, slay. π
β¨π¦
π¦ where this page comes from
- ubuntu resolute: libcatmandu-oai-perl 0.21-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-oai-perl 0.21-1 Β· 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