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