Catman...ionship(3pm)

πŸ’– Catman...ionship πŸ’–

okay bestie, welcome to the manual page for Catman...ionship β€” she's part of the User Contributed Perl Documentation, and she's lowkey iconic. this is her whole vibe, no cap. πŸŽ€


✨ NAME ✨

Catmandu::FedoraCommons::Model::purgeRelationship β€” it's a Perl model for the Fedora purgeRelationship REST call. that's the whole job. she does one thing and she does it slay. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole moment, verbatim, don't touch a single character:

use Catmandu::FedoraCommons;

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

my $obj = $fedora->purgeRelationship(pid => 'demo:29' , relation => [ 'info:fedora/demo:29' , 'http://my.org/name' , 'Peter'])->parse_content;

{
  'purged' => 'upload://11'
}

so you spin up a Catmandu::FedoraCommons with new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin') β€” that's the URL plus the username plus the password, all cozy in one line 🌸 β€” then you hit purgeRelationship with pid => 'demo:29' and a relation arrayref of [ 'info:fedora/demo:29' , 'http://my.org/name' , 'Peter'], and you .parse_content the whole thing like the main character you are.

and what do you get back? literally this:

{
  'purged' => 'upload://11'
}

'purged' => 'upload://11'. that's it. that's the tea. πŸ“


🌈 SEE ALSO 🌈

  • Catmandu::FedoraCommons β€” go read her too, she's the parent energy behind all of this. iykyk. πŸ’œ

and that's the page bestie!! 🫢 this masterpiece lives in perl v5.36.0 and was blessed upon the world on 2023-02-05, under the title Catman...ionship(3pm) β€” the name?? honestly a relationship. the way this manpage ate and left no crumbs πŸ‘‘βœ¨ no notes, periodt. πŸ’€πŸ’–

πŸ“¦ where this page comes from