RDF::DOAP::Lite(3pm)
π RDF::DOAP::Lite π
okay bestie so this is RDF::DOAP::Lite, a Perl module (3pm manual page, yes we're in the Perl docs, it's giving vintage and honestly iconic) and its whole job is: write DOAP data quickly and easily. that's the name and that's the vibe. periodt.
β¨ SYNOPSIS β¨
look at this. it's so clean. it's so short. it ATE.
use CPAN::Changes;
use CPAN::Meta;
use RDF::DOAP::Lite;
my $changes = CPAN::Changes->load('Changes');
my $meta = CPAN::Meta->load_file('META.json');
my $doap = RDF::DOAP::Lite->new(meta => $meta, changes => $changes);
$doap->doap_ttl('doap.ttl');
$doap->doap_xml('doap.xml');
like. five lines. your DOAP is written. no cap. π¦
πΈ DESCRIPTION πΈ
so this is a lil companion module to RDF::DOAP, and its whole personality is letting you output DOAP data easily from standard CPAN distribution files. it's the sidekick. the bestie. the ride-or-die. π«Ά
π The Straight DOAP π
okay so first of all, what even is DOAP? this explanation is lifted from Wikipedia <http://en.wikipedia.org/wiki/DOAP> (credit where credit's due, we don't steal).
DOAP (Description of A Project) is an RDF Schema and XML vocabulary to describe software projects, specifically free and open source software. it's the glow-up your project metadata deserves.
it was created and initially developed by Edd Dumbill to convey semantic information associated with open source software projects. king behaviour honestly π
it is currently used in the Mozilla Foundation's project page and in several other software repositories, notably the Python Package Index. so like... it's everywhere. main character vocabulary energy.
π Constructor π
new(%attributes)β a Moose-style constructor. and yes, before you ask: (though this module does not use Moose). it just serves the same energy. π
π§ Attributes π§
metaβ this one is required, bestie. it's aCPAN::Metaobject. nometa, no DOAP, sorry, that's the rules.changesβ this one is optional. it's aCPAN::Changesobject. bring it if you got it. π
β Methods β
doap_ttl($file)β writes DOAP data in the Turtle serialization to the file. the file can be a filename (a string) or a file handle. your choice, we don't judge. π’β¨doap_xml($file)β writes DOAP data in the RDF/XML serialization to the file. and same deal: the file may be provided as a filename (string) or a file handle. π
π BUGS π
found a bug? pls pls pls report it, don't just suffer in silence like a sad little undef:
<http://rt.cpan.org/Dist/Display.html?Queue=RDF-DOAP-Lite>
π SEE ALSO π
- this module comes with a bundled command-line tool,
cpan2doap. yes, a CLI. we're fancy. π₯ - for parsing DOAP data, see
RDF::DOAP. - for general RDF processing, use
RDF::TrineandRDF::Query.
πΈ AUTHOR πΈ
Toby Inkster <tobyink@cpan.org>. legend. icon. the moment. π
π COPYRIGHT AND LICENCE π
this software is copyright (c) 2013-2014 by Toby Inkster.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free is free, slay. β¨
π DISCLAIMER OF WARRANTIES π
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
translation: it is what it is, bestie. no promises, no refunds, no cap. π
okay and that's the whole page!! this manual is perl v5.34.0, dated 2022-06-17, and it lives under the name RDF::DOAP::Lite(3pm) π¦ mwah, go write some DOAP, you're gonna eat π
π
π¦ where this page comes from
- debian bookworm: librdf-doap-lite-perl 0.002-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-doap-lite-perl 0.002-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