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
- 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