logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

RDF::DOAP::Lite - write DOAP data quickly and easily

Author

       Toby Inkster <tobyink@cpan.org>.

Bugs

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

Description

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

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

       DOAP(DescriptionofaProject)isanRDFSchemaandXMLvocabularytodescribesoftwareprojects,inparticularfreeandopensourcesoftware.ItwascreatedandinitiallydevelopedbyEddDumbilltoconveysemanticinformationassociatedwithopensourcesoftwareprojects.ItiscurrentlyusedintheMozillaFoundation'sprojectpageandinseveralothersoftwarerepositories,notablythePythonPackageIndex.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.

perl v5.38.2                                       2024-03-09                               RDF::DOAP::Lite(3pm)

Name

       RDF::DOAP::Lite - write DOAP data quickly and easily

See Also

       This module comes with a bundled command-line tool, cpan2doap.

       For parsing DOAP data, see RDF::DOAP.

       For general RDF processing, use RDF::Trine and RDF::Query.

Synopsis

          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');

See Also