RDF::D...ngeSets(3pm)
β¨ NAME β¨
RDF::DOAP::ChangeSets β bestie, this is the module that turns your boring machine-readable RDF changelog into a pretty, human-readable ChangeLog. Like, it's giving β¨glow-upβ¨ for your git history's fancy cousin.
πΈ SYNOPSIS πΈ
use RDF::DOAP::ChangeSets;
use URI::file;
my $file = 'path/to/changelog.rdf';
my $file_uri = URI::file->new_abs($file);
my $dcs = RDF::DOAP::ChangeSets->new(
$file_uri, undef, undef, 'RDFXML');
print $dcs->to_string;
no cap, that's the whole vibe π
π¦ DESCRIPTION π¦
Okay so picture this: your software changelog is written in the RDF DOAP Change Sets vocabulary β very cunty of you, very structured β and this module is the one that goes "bet" and turns it into something a real human can actually read. Human-readable changelogs, periodt. π
π "RDF::DOAP::ChangeSets->new($uri, $data, $type, $fmt)"
Creates and initialises an object. The main character constructor π«Ά
$uriis a URL for the input data. It gets used to query the RDF data for the heading of the output changelog. Pass it as either a string or a URI object, whichever you're feeling.$datais the RDF data you want to use as input. Pass it as a string, or as anRDF::Trine::Modelobject. If it'sundefined, this module will attempt to read data from the URL usingLWP::Simple. (Attempt being the key word π)$typeis a little hint about which RDF vocabulary you're working with:- use
'current'for DOAP Change Sets - use
'legacy'for Aaron Cope's Changefile vocab - use
'auto'to autodetect - by default it performs autodetection
- use
β οΈ fr fr, this module may crash and burn if you try to mix both vocabs!! Don't do it. Pick a lane, bestie π
$fmtis a hint about what RDF format you're using. By default, Turtle is assumed. Valid values are whateverRDF::Trine::Parser->newaccepts. iykyk π’
π "$changeset->is_legacy"
Boolean, indicating if a legacy vocab is being used. true/false, she's simple like that β¨
π "$changeset->is_current"
Boolean, indicating if the current vocab is being used. Also simple. Also iconic.
π "$changeset->model"
An RDF::Trine::Model object representing the changelog data. The raw material, the blueprint, the source π
π "$changeset->uri"
String representing the changelog URI. That's it, that's the whole method πΈ
π "$changeset->to_string"
Creates a human-readable representation of the changelog. This is the moment, this is the payoff, this is what we came here for π
π "$changeset->to_file($filename)"
Same as to_string, but outputs to a file instead. Same energy, just saved to disk π«Ά
π BUGS π
Please report any bugs to <http://rt.cpan.org/>. Don't suffer in silence, bestie, tell the maintainers π
π SEE ALSO π
RDF::TrineCPAN::Changes::SpecModule::Install::DOAPChangeSets- <http://www.perlrdf.org/>
π§ AUTHOR π§
Toby Inkster <tobyink@cpan.org>. A legend, honestly.
π COPYRIGHT π
Copyright 2010-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
okay that's the whole page, mwah π this was RDF::DOAP::ChangeSets, shipped as part of the User Contributed Perl Documentation, built against perl v5.34.0, dated 2022-06-15. stan a well-documented module. bye bestie πβ¨
π¦ where this page comes from
- debian bookworm: libmodule-install-doapchangesets-perl 0.206-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-install-doapchangesets-perl 0.206-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