Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Using RDF (Score:3, Informative)

    by ziggy (25) on 2003.10.06 22:13 (#24695) Journal
    This snippet doesn't look entirely kosher. The urn::filesize and urn::mimetype elements need to be placed into a proper namespace.

    The RDF format is rather, um, ugly to behold. It's good for interchange between apps, but greatly obfuscates the meaning for wetware parsers. I think the following is a faithful interpretation of the above example in Notation 3 []:

    @prefix cpan: <>.
    @prefix dc:   <> .
    @prefix misc: <urn:empty>.

        cpan:dist     "Acme-Colour";
        cpan:suffix   "authors/id/L/LB/LBROCARD/Acme-Colour-0.17.tar.gz";
        cpan:version  "0.17";
        dc:date       "2002-04-11T15:54:11";
        dc:format     "application/x-gzip";
        dc:identifier <>;
        dc:publisher  <>;
        dc:type       <>;
        misc:filesize "3151";
        misc:mimetype "application/x-gzip";
    Here are some important elements that are missing but should be trivial to add:
    • Author ID
    • DSLIP values
    • MD5 Checksum
    • Module Prerequisites (as determined by Meta.yml or whatnot)
    • Minimum Perl version required
    Nevertheless, this snippet of RDF is a very good start. Thanks!
    • It was just a fragment, so it had no namespaces. Thanks for the feedback, it does now. Also I added Author ID and MD5 Checksum. More metadata from CPANTS and META.yml to come soon. I used RDF/XML as it was the simplest thing possible at the time and RDF::Simple was, well, simple. Anyway, you can check it out at: (autrijus is hacking PAUSE so I can replace the file instead of releasing new versions all the time).