CPAN as linked data
Toby Inkster
mail at tobyinkster.co.uk
Wed Apr 7 23:37:48 CEST 2010
On Wed, 2010-04-07 at 21:31 +0200, Kjetil Kjernsmo wrote:
> Oh, in RDF::RDFa::Template, I've called it web/doap.ttl and not
> included it in the distribution, but rather publish web/ on my
> website. Perhaps it should be included based on the directive in
> there?
The service really needs to have just one place to look for this
supplementary data - otherwise it would get tied up with making lots of
HTTP requests and never serve up anything. Right now, it's:
http://cpansearch.perl.org/src/${cpanid}/${dist}-${ver}/Changes.ttl
And it makes sure that the that file is in fact relevant by checking
that there exists at least one triple with this subject:
http://purl.org/NET/cpan-uri/dist/${dist}/project
So that it's not a mysterious thing that needs reverse-engineering to
figure out, I have now added the source code to my svn repo:
http://goddamn.co.uk/viewvc/misc/cpan-data/
> BTW, I would suggest adding :programming-language "Perl" ; to the
> suggested template.
I do plan on automatically adding doap:programming-language for
"registered modules" as the module registration asks which language
they're in (sometimes not Perl).
I'll also add it to the Module::Install::DOAPChangeSets::Format pod.
--
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>
More information about the Dev
mailing list