Debian Codegraph @

README

raw
1 NAME
2 RDF::DOAP::Lite - write DOAP data quickly and easily
3
4 SYNOPSIS
5 use CPAN::Changes;
6 use CPAN::Meta;
7 use RDF::DOAP::Lite;
8
9 my $changes = CPAN::Changes->load('Changes');
10 my $meta = CPAN::Meta->load_file('META.json');
11 my $doap = RDF::DOAP::Lite->new(meta => $meta, changes => $changes);
12
13 $doap->doap_ttl('doap.ttl');
14 $doap->doap_xml('doap.xml');
15
16 DESCRIPTION
17 This is a small companion module to RDF::DOAP, enabling you to output DOAP
18 data easily from standard CPAN distribution files.
19
20 The Straight DOAP
21 So what is DOAP? This explanation is lifted from Wikipedia
22 <http://en.wikipedia.org/wiki/DOAP>.
23
24 *DOAP (Description of a Project) is an RDF Schema and XML vocabulary to
25 describe software projects, in particular free and open source software.*
26
27 *It was created and initially developed by Edd Dumbill to convey semantic
28 information associated with open source software projects.*
29
30 *It is currently used in the Mozilla Foundation's project page and in
31 several other software repositories, notably the Python Package Index.*
32
33 Constructor
34 `new(%attributes)`
35 Moose-style constructor (though this module does not use Moose).
36
37 Attributes
38 `meta`
39 This is a required attribute; a CPAN::Meta object.
40
41 `changes`
42 This is an optional attribute; a CPAN::Changes object.
43
44 Methods
45 `doap_ttl($file)`
46 Writes DOAP data in the Turtle serialization to the file. The file may
47 be provided as a filename (string) or a file handle.
48
49 `doap_xml($file)`
50 Writes DOAP data in the RDF/XML serialization to the file. The file
51 may be provided as a filename (string) or a file handle.
52
53 BUGS
54 Please report any bugs to
55 <http://rt.cpan.org/Dist/Display.html?Queue=RDF-DOAP-Lite>.
56
57 SEE ALSO
58 This module comes with a bundled command-line tool, cpan2doap.
59
60 For parsing DOAP data, see RDF::DOAP.
61
62 For general RDF processing, use RDF::Trine and RDF::Query.
63
64 AUTHOR
65 Toby Inkster <[email protected]>.
66
67 COPYRIGHT AND LICENCE
68 This software is copyright (c) 2013-2014 by Toby Inkster.
69
70 This is free software; you can redistribute it and/or modify it under the
71 same terms as the Perl 5 programming language system itself.
72
73 DISCLAIMER OF WARRANTIES
74 THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
75 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
76 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
77