Catman...streams(3pm)

✨ NAME ✨

Catmandu::FedoraCommons::Model::listDatastreams β€” bestie, it's the Perl model for the Fedora listDatastreams REST call πŸ’… (you'll also see it hanging out as Catman...streams(3pm) in the wild, iykyk)


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, literally copy-paste energy:

use Catmandu::FedoraCommons;

my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');

my $obj = $fedora->listDatastreams(pid => 'demo:29')->parse_content;

{
  'pid'     => 'demo:29' ,
  'baseURL' => 'http://localhost:8080/fedora/' ,
  'datastream' => [
      {
        'dsid'  => 'DC' ,
        'label' => 'Dublin Core Record for this object' ,
        'mimeType' => 'text/xml' ,
      },
      {
        'dsid'  => 'RELS-EXT' ,
        'label' => 'RDF Statements about this object' ,
        'mimeType' => 'application/rdf+xml' ,
      },
      {
        'dsid'  => 'url' ,
        'label' => 'Thorny\'s Coliseum high jpg image' ,
        'mimeType' => 'text/xml' ,
      },
  ] ,
}

not me constructing the object, hitting <code>listDatastreams</code> with <code>pid => 'demo:29'</code>, and calling <code>->parse_content</code> on the result like it's nothing 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Real talk: this module is the Perl model for the Fedora listDatastreams REST call. That's the whole assignment, and it ate. πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

  • Catmandu::FedoraCommons β€” the main character this one's riding with πŸ’œ

and that's a wrap, bestie!! 🌈 this gorgeous little page came to you via perl v5.36.0, dated 2023-02-05, filed under Catman...streams(3pm) β€” slay, no cap, go read your datastreams πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from