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 a CPAN::Meta object. no meta, no DOAP, sorry, that's the rules.
  • changes β€” this one is optional. it's a CPAN::Changes object. 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::Trine and RDF::Query.

🌸 AUTHOR 🌸

Toby Inkster <tobyink@cpan.org>. legend. icon. the moment. πŸ’œ


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