The Debian Package Tracking System now publishes Turtle RDF meta-data

The Debian PTS now speaks the Turtle representation format for the export of RDF meta-data about Debian source packages.

Alongside HTML pages for humans, and the RDF/XML that had already been added to it this means that a new flavour of RDF is now available.

The Turtle format offers the benefits of both machine-readable meta-data, and a somehow human readable textual format too.

For instance, you may check the apache2 Turtle meta-data from the command-line with :
$ curl -L -s -H "Accept: text/turtle" http://packages.qa.debian.org/apache2

Here’s a link to a colorized HTML preview of http://packages.qa.debian.org/a/apache2.ttl.

Under the hood, the XSLT stylesheets of the PTS have been reworked to produce the Turtle format by default, and later convert them to RDF/XML.

Every Debian source package then has a reference URI in the Linked Data word, in the form http://packages.qa.debian.org/PACKAGE_NAME, that redirects, through proper content-negociation (the HTTP Accept header) to the HTML, RDF/XML or Turtle documents. For apache2, these are, resp. at http://packages.qa.debian.org/a/apache2.html, http://packages.qa.debian.org/a/apache2.rdf and http://packages.qa.debian.org/a/apache2.ttl.

The meta-data uses the model of the ADMS.SW ontology (1.0), and the content has also been slightly updated to make it more conformant to the ADMS.SW specifications (checks done with the ADMS.SW validator).

Let’s hope this makes RDF more familiar to Debian folks, and allows more Linked Data interlinking with other resources about FLOSS packages.

This entry was posted in Uncategorized and tagged , , , , , , , , . Bookmark the permalink.

3 Responses to The Debian Package Tracking System now publishes Turtle RDF meta-data

  1. Oh, and we now have quite a big number of triples :

    obergix@quantz:/srv/packages.qa.debian.org/www/web$ rapper -c -i turtle full-dump.ttl
    rapper: Parsing URI file:///srv/packages.qa.debian.org/www/web/full-dump.ttl with parser turtle
    rapper: Parsing returned 2135805 triples

  2. mp says:

    Two content-type glitches: the server claims to return text/plain not text/turtle, and charset is not specified.

    $ http -h –follow http://packages.qa.debian.org/apache2 accept:text/turtle
    HTTP/1.1 200 OK
    Accept-Ranges: bytes
    Content-Length: 8569
    Content-Type: text/plain

  3. This is now fixed. Thanks for spotting these issues.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>