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;

DESCRIPTION

This module takes software changelogs written in the \s-1RDF\s0 \s-1DOAP\s0 Change Sets vocabulary and produces human-readable changelogs. Creates and initialises an object. $uri is a \s-1URL\s0 for the input data. The \s-1URL\s0 is used to query the \s-1RDF\s0 data for the heading of the output changelog. It may be passed as either a string, or a \s-1URI\s0 object. $data is the \s-1RDF\s0 data to use as input. It may be passed as a string, or as an RDF::Trine::Model object. If undefined, this module will attempt to read data from the \s-1URL\s0 using LWP::Simple. $type gives the constructor a hint as to the \s-1RDF\s0 vocabulary you are using. For \s-1DOAP\s0 Change Sets, use 'current'; for Aaron Cope's Changefile vocab, use 'legacy'; to autodetect, use 'auto'. By default, performs autodetection. This module may crash and burn if you try to mix both vocabs!! $fmt provides a hint as to what \s-1RDF\s0 format you're using. By default, Turtle is assumed. Valid values are whatever RDF::Trine::Parser->new accepts. Boolean, indicating if a legacy vocab is being used. Boolean, indicating if the current vocab is being used. RDF::Trine::Model object representing the changelog data. String representing the changelog \s-1URI\s0. Creates a human-readable representation of the changelog. Same as \*(C`to_string\*(C', but outputs to a file.

BUGS

Please report any bugs to <http://rt.cpan.org/>.

RELATED TO RDF::DOAP::ChangeSets…

RDF::Trine, CPAN::Changes::Spec, Module::Install::DOAPChangeSets.

<http://www.perlrdf.org/>.

AUTHOR

Toby Inkster <[email protected]>.

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.