RDF::DOAP::Lite(3pm)

RDF::DOAP::Lite3pm

Write doap data quickly and easily

Usage

   use CPAN::Changes;
   use CPAN::Meta;
   use RDF::DOAP::Lite;
   
   my $changes = CPAN::Changes->load('Changes');
   my $meta    = CPAN::Meta->load_file('META.json');
   my $doap    = RDF::DOAP::Lite->new(meta => $meta, changes => $changes);
   
   $doap->doap_ttl('doap.ttl');
   $doap->doap_xml('doap.xml');

Overview

This is a small companion module to RDF::DOAP, enabling you to output DOAP data easily from standard CPAN distribution files.

The Straight DOAP

So what is DOAP? This explanation is lifted from Wikipedia <http://en.wikipedia.org/wiki/DOAP>.

DOAP (Description of a Project) is an RDF Schema and XML vocabulary to describe software projects, in particular free and open source software.

It was created and initially developed by Edd Dumbill to convey semantic information associated with open source software projects.

It is currently used in the Mozilla Foundation's project page and in several other software repositories, notably the Python Package Index.

Constructor

new(%attributes)

Moose-style constructor (though this module does not use Moose).

Attributes

"meta"

This is a required attribute; a CPAN::Meta object.

"changes"

This is an optional attribute; a CPAN::Changes object.

Methods

doap_ttl($file)

Writes DOAP data in the Turtle serialization to the file. The file may be provided as a filename (string) or a file handle.

doap_xml($file)

Writes DOAP data in the RDF/XML serialization to the file. The file may be provided as a filename (string) or a file handle.

Disclaimer of warranties

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8–10
  2. 11
  3. 12
  4. 13

Bugs

Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=RDF-DOAP-Lite>.

Author

Toby Inkster <[email protected]>.

From librdf-doap-lite-perl 0.002-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.