CPAN::Metadata::RDF - Generate metadata about CPAN in RDF
use strict; use CPAN::Metadata::RDF; # To generate metadata my $m = CPAN::Metadata::RDF->new(); $m->backpan("/home/acme/backpan/BACKPAN/"); $m->cpan("/home/acme/cpan/CPAN/"); $m->directory("."); $m->create_db; # once $m->generate; # To output metadata my $m = CPAN::Metadata::RDF->new(); $m->directory("."); print $m->output; # RDF # Methods to parse and query RDF soon...
This module generates metadata about CPAN modules (and BACKPAN) modules in RDF format.
It requires a local CPAN mirror (for example, mirrored using "/usr/bin/rsync -av --delete ftp.nic.funet.fi::CPAN /path/to/local/cpan/") as well as a local BACKPAN mirror (for example, mirrored using "/usr/bin/rsync -av --delete pause.perl.org::backpan /path/to/local/backpan/").
It currently uses an SQLite database as a temporary datastore.
Leon Brocard <leon@astray.com>
This code is distributed under the same license as Perl.
To install CPAN::Metadata::RDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Metadata::RDF
CPAN shell
perl -MCPAN -e shell install CPAN::Metadata::RDF
For more information on module installation, please visit the detailed CPAN module installation guide.