Catman...nships(3pm)

πŸ’– Catman...nships(3pm) πŸ’–

okay bestie, welcome to the cutest little corner of the perl manual, it's called Catman...nships(3pm) and yes the name is a whole vibe, we're keeping it, no notes πŸ’…


🌸 NAME 🌸

Catmandu::FedoraCommons::Model::getRelationships β€” it's the Perl model for the Fedora getRelationships REST call. that's it, that's the job, she does one thing and she ate ✨


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole flex, copy it exactly, don't be shy:

use Catmandu::FedoraCommons;

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

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

Returns a RDF::Trine::Model model

so yeah, you spin up a Catmandu::FedoraCommons with your url and your credentials, you hit getRelationships with a pid like 'demo:29', you parse_content it, and boom β€” it Returns a RDF::Trine::Model model. it's giving model, it's giving RDF, it's giving main character energy fr fr πŸ¦‹


🌈 SEE ALSO 🌈

  • Catmandu::FedoraCommons
  • RDF::Trine::Model

go read those too, they're the supporting cast and honestly they understood the assignment πŸ‘‘


and that's the whole page bestie, short but iconic 🫢 this was brought to you by perl v5.36.0, dated 2023-02-05, and yes she's still serving. bye babe πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from