Module...:Format(3pm)
π NAME π
Module::Install::DOAPChangeSets::Format β it's giving vocabulary guide bestie, and honestly? iconic.
β¨ DOAP CHANGESETS FORMAT β¨
okay so. DOAP Changesets get written in RDF β usually serialised as Turtle, but ngl any other serialisation is totally fine too. (Module::Install::DOAPChangeSets supports literally any input format that RDF::Trine recognises, so slay.)
this doc does assume you already have a good working knowledge of RDF and Turtle. like, not beginner energy, yk? π
you would normally describe your project in a file called meta/changes.ttl, and from that a changelog called Changes gets automatically built at packaging time. automatic. we love to see it. π
πΈ Namespaces πΈ
you'll want to define at least these namespaces:
@prefix : <http://usefulinc.com/ns/doap#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix dcs: <http://ontologi.es/doap-changeset#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
and you should define a namespace specific for your distribution:
@prefix my: <http://purl.org/NET/cpan-uri/dist/Example-Example/> .
π¦ Describing the Changeset Document π¦
now give the Changeset document itself a description. at minimum, you must set the dc:subject. no skipping this one, bestie.
<>
dc:title "Changes for Example-Example" ;
dc:subject my:project ;
dc:creator my:developer .
π Describing the First Release of the Distribution π
use DOAP to describe the first version of the distribution. at the very least you need to include its revision (the version number):
my:v_0-01
a :Version ;
dc:issued "2007-12-20"^^xsd:date ;
:revision "0.01"^^xsd:string .
you would not normally list any changes against the first release, because nothing has been changed. it's the origin story, nothing to report yet. π
π Describing Subsequent Releases π
for subsequent releases, you add a changeset to a release description:
my:v_0-02
a :Version ;
dc:issued "2007-12-29"^^xsd:date ;
:revision "0.02"^^xsd:string ;
rdfs:label "The 0.02nd Coming" ; ## a "title" for the release
dcs:changeset [
dcs:item
[ rdfs:label "Example change." ] ,
[ rdfs:label "Example bugfix." ; a dcs:Bugfix ] ,
[ rdfs:label "Example new feature." ; a dcs:Addition ] ,
[ rdfs:label "Example removal." ; a dcs:Removal ]
] .
π Describing the Distribution π
use DOAP to describe the distribution. at the very least you need to assert that the project is a Project and provide a name for it. you must also list all the releases you wish to appear in the human-readable Changes file generated by the Module::Install::DOAPChangeSets module. and there are plenty of other properties in DOAP you can also use, so go off. π₯
my:project
a :Project ;
:name "Example-Example" ;
:shortdesc "Just an example!" ;
:programming-language "Perl" ;
:created "2007-12-18"^^xsd:date ;
:maintainer my:developer ;
:homepage <http://search.cpan.example.org/dist/Example-Example/> ;
:bug-database <http://rt.cpan.example.org/Dist/Display.html?Queue=Example-Example> ;
:release my:v_0-01 , my:v_0-02 .
π§ Describing a Developer π§
developers should be described using FOAF. at the very least, include a name. a CPAN e-mail address is also a good idea. main character energy requires contact info fr fr.
my:developer
a foaf:Person ;
foaf:name "Joe Bloggs" ;
foaf:mbox <mailto:joebloggs@cpan.example.org> ;
foaf:page <http://search.cpan.example.org/~joebloggs/> .
π Legacy Support π
the module has legacy support for Aaron Cope's changefile vocab, but heads up: this is not thoroughly tested. changelogs written in this vocab tend to use DOAP incorrectly, so the author discourages using this vocab. like, just don't, bestie. π
π«Ά SEE ALSO π«Ά
Module::Install,Module::Install::DOAPChangeSets.- <http://www.perlrdf.org/>, <http://purl.org/NET/cpan-uri/>.
β AUTHOR β
Toby Inkster <tobyink@cpan.org>.
π COPYRIGHT AND LICENSE π
Copyright (C) 2010-2011 by Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole vibe check, bestie β this page is from the perl v5.34.0 era, dated 2022-06-15, brought to you by the User Contributed Perl Documentation crew. slay, go write some changesets. π β¨
π¦ where this page comes from
- debian bookworm: libmodule-install-doapchangesets-perl 0.206-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-install-doapchangesets-perl 0.206-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms