Catman...sitory(3pm)
π NAME π
okay so bestie, gather round: Catmandu::FedoraCommons::Model::describeRepository is a Perl model for the Fedora describe method call. that's it, that's the whole vibe check. it's giving "little model, big job". β¨
π¦ SYNOPSIS π¦
here's how you actually use it, no cap, copy it exactly:
use Catmandu::FedoraCommons;
my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');
my $obj = $fedora->describeRepository()->parse_content;
and the parse_content moment returns you this lil JSON-ish treasure, literally:
{
"sampleOAI-URL" : "http://localhost:8080/fedora/oai?verb=Identify",
"repositoryName" : "Fedora Repository",
"repositoryOAI-identifier" : {
"OAI-delimiter" : ":",
"OAI-namespaceIdentifier" : "localhost",
"OAI-sample" : "oai:localhost:islandora:100"
},
"repositoryBaseURL" : "http://localhost:8080/fedora",
"sampleAccess-URL" : "http://localhost:8080/fedora/objects/demo:5",
"adminEmail" : "libservice@ugent.be",
"repositoryVersion" : "3.7.1",
"repositoryPID" : {
"PID-sample" : "islandora:100",
"PID-delimiter" : ":",
"PID-namespaceIdentifier" : "islandora",
"retainPID" : "*"
},
"sampleSearch-URL" : "http://localhost:8080/fedora/objects"
}
like, look at all those fields?? sampleOAI-URL, repositoryName, repositoryOAI-identifier with its whole OAI-delimiter, OAI-namespaceIdentifier and OAI-sample situation, plus repositoryBaseURL, sampleAccess-URL, adminEmail, repositoryVersion, repositoryPID (with PID-sample, PID-delimiter, PID-namespaceIdentifier and retainPID), and sampleSearch-URL. that's the whole roster. π«Ά
πΈ SEE ALSO πΈ
Catmandu::FedoraCommonsβ the main character, go say hi π
and that's a wrap, bestie!! this lil page is from perl v5.36.0, dated 2023-02-05, filed under Catman...sitory(3pm) in User Contributed Perl Documentation β go off, perl girlies, you ate πβ¨π
π¦ where this page comes from
- debian bookworm: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-fedoracommons-perl 0.5-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