HTTP::...:OAI_DC(3pm)
β¨ NAME β¨
HTTP::OAI::Metadata::OAI_DC β bestie, it's your easy-access pass to OAI Dublin Core π (this is a page from the User Contributed Perl Documentation, so you know it's the people's manual, periodt)
πΈ DESCRIPTION πΈ
okay so HTTP::OAI::Metadata::OAI_DC gives you a simple interface for two things and two things only, no cap:
- parsing OAI Dublin Core π§
- generating OAI Dublin Core π§
and we're talking about the flavour literally named oai_dc β that's the one. the moment you've been waiting for. π
π¦ SYNOPSIS π¦
here's the whole vibe, copy it exactly bestie, character for character:
use HTTP::OAI::Metadata::OAI_DC;
my $md = new HTTP::OAI::Metadata(
dc=>{title=>['Hello, World!','Hi, World!']},
);
# Prints "Hello, World!"
print $md->dc->{title}->[0], "\n";
my $xml = $md->metadata();
$md->metadata($xml);
so like, you build the metadata object with a dc hashref of arrays, you reach in and grab $md->dc->{title}->[0] and it literally prints Hello, World! π. then $md->metadata() hands you back the XML, and $md->metadata($xml) feeds XML right back in. icon behavior fr fr π
π NOTE π
heads up bestie, this is important:HTTP::OAI::Metadata::OAI_DCwill automatically β and silently π β convert OAI version 1.xoai_dcrecords into OAI version 2.0oai_dcrecords. it does not ask. it does not tell you. it just does it. that's the main character energy we're dealing with πβ¨
kisses, this page is from perl v5.36.0, dated 2023-09-28, and it lives under HTTP::...:OAI_DC(3pm) β go slay your metadata, ily π«Άπ
π¦ where this page comes from
- debian trixie: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu noble: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu resolute: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu stonking: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms