1RDF::DOAP::ChangeSets(3U)ser Contributed Perl DocumentatiRoDnF::DOAP::ChangeSets(3)
2
3
4
6 RDF::DOAP::ChangeSets - create pretty ChangeLogs from RDF
7
9 use RDF::DOAP::ChangeSets;
10 use URI::file;
11
12 my $file = 'path/to/changelog.rdf';
13 my $file_uri = URI::file->new_abs($file);
14
15 my $dcs = RDF::DOAP::ChangeSets->new(
16 $file_uri, undef, undef, 'RDFXML');
17 print $dcs->to_string;
18
20 This module takes software changelogs written in the RDF DOAP Change
21 Sets vocabulary and produces human-readable changelogs.
22
23 "RDF::DOAP::ChangeSets->new($uri, $data, $type, $fmt)"
24 Creates and initialises an object.
25
26 $uri is a URL for the input data. The URL is used to query the RDF
27 data for the heading of the output changelog. It may be passed as
28 either a string, or a URI object.
29
30 $data is the RDF data to use as input. It may be passed as a
31 string, or as an RDF::Trine::Model object. If undefined, this
32 module will attempt to read data from the URL using LWP::Simple.
33
34 $type gives the constructor a hint as to the RDF vocabulary you are
35 using. For DOAP Change Sets, use 'current'; for Aaron Cope's
36 Changefile vocab, use 'legacy'; to autodetect, use 'auto'. By
37 default, performs autodetection. This module may crash and burn if
38 you try to mix both vocabs!!
39
40 $fmt provides a hint as to what RDF format you're using. By
41 default, Turtle is assumed. Valid values are whatever
42 RDF::Trine::Parser->new accepts.
43
44 "$changeset->is_legacy"
45 Boolean, indicating if a legacy vocab is being used.
46
47 "$changeset->is_current"
48 Boolean, indicating if the current vocab is being used.
49
50 "$changeset->model"
51 RDF::Trine::Model object representing the changelog data.
52
53 "$changeset->uri"
54 String representing the changelog URI.
55
56 "$changeset->to_string"
57 Creates a human-readable representation of the changelog.
58
59 "$changeset->to_file($filename)"
60 Same as "to_string", but outputs to a file.
61
63 Please report any bugs to <http://rt.cpan.org/>.
64
66 RDF::Trine, CPAN::Changes::Spec, Module::Install::DOAPChangeSets.
67
68 <http://www.perlrdf.org/>.
69
71 Toby Inkster <tobyink@cpan.org>.
72
74 Copyright 2010-2012 Toby Inkster
75
76 This library is free software; you can redistribute it and/or modify it
77 under the same terms as Perl itself.
78
79
80
81perl v5.34.0 2021-07-22 RDF::DOAP::ChangeSets(3)