File Coverage

blib/lib/Module/Install/RDF.pm
Criterion Covered Total %
statement 9 15 60.0
branch 0 4 0.0
condition 0 2 0.0
subroutine 3 5 60.0
pod 0 2 0.0
total 12 28 42.8


line stmt bran cond sub pod time code
1             package Module::Install::RDF;
2              
3 1     1   21382 use 5.005;
  1         4  
  1         31  
4 1     1   5 use base qw(Module::Install::Base);
  1         2  
  1         549  
5 1     1   4 use strict;
  1         1  
  1         111  
6              
7             our $VERSION = '0.009';
8             our $AUTHOR_ONLY = 1;
9              
10             sub rdf_metadata
11             {
12 0     0 0   my $self = shift;
13 0 0         $self->admin->rdf_metadata(@_) if $self->is_admin;
14             }
15              
16             sub write_meta_ttl
17             {
18 0     0 0   my $self = shift;
19 0   0       my $file = shift || "META.ttl";
20 0 0         $self->admin->write_meta_ttl($file) if $self->is_admin;
21 0           $self->clean_files($file);
22             }
23              
24             1;
25              
26             __END__
27             =head1 NAME
28              
29             Module::Install::RDF - advanced metadata for your distribution
30              
31             =head1 SYNOPSIS
32              
33             In Makefile.PL:
34              
35             rdf_metadata; # reads "meta/*"
36             write_meta_ttl; # writes "META.ttl"
37              
38             =head1 DESCRIPTION
39              
40             This module doesn't really do much on its own, but is a pre-requisite for
41             L<Module::Install::DOAP>.
42              
43             Specifically, it reads all the RDF it can find in the distribution's "meta"
44             directory and exposes it for other modules to make use of. It also allows you
45             to write out a combined graph using Turtle.
46              
47             =head1 BUGS
48              
49             Please report any bugs to L<http://rt.cpan.org/>.
50              
51             =head1 SEE ALSO
52              
53             L<Module::Install>,
54             L<Module::Install::DOAP>,
55             L<Module::Install::DOAPChangeSets> .
56              
57             L<http://www.perlrdf.org/>.
58              
59             =head1 AUTHOR
60              
61             Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
62              
63             =head1 COPYRIGHT AND LICENSE
64              
65             Copyright (C) 2011-2013 by Toby Inkster
66              
67             This library is free software; you can redistribute it and/or modify it
68             under the same terms as Perl itself.
69              
70             =head1 DISCLAIMER OF WARRANTIES
71              
72             THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
73             WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
74             MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
75              
76             =cut