W3C home > Mailing lists > Public > public-dxwg-wg@w3.org > June 2018

Media Types URIs

From: Car, Nicholas (L&W, Dutton Park) <Nicholas.Car@csiro.au>
Date: Mon, 18 Jun 2018 17:41:16 +0000
To: "public-dxwg-wg@w3.org" <public-dxwg-wg@w3.org>
Message-ID: <870C434A-E493-4DBD-ADFF-F3CC1778E563@csiro.au>
Dear DXWG,

I’ve just put up a small API to deliver Media Types via URIs so if you want to quote text/html, you can do so like this: https://w3id.org/mediatype/text/turtle and get a simple web page or this:

@prefix dct: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://w3id.org/mediatype/text/turtle> a dct:FileFormat ;
    rdfs:label "turtle"^^xsd:string ;
    dct:contributor <https://w3id.org/mediatype/Eric_Prudhommeaux>,
        <https://w3id.org/mediatype/W3C> .

This just replaces a system that did this using purl.org/NET/mediatypes/ but which has been down for years (see https://gist.github.com/stain/4635250).

The reason for doing this now is that we are really using dct:format a lot but don’t have dereferenceable URIs for it.
The register of Media Types is here: https://w3id.org/mediatype/

Consider this tool actively developed so you can raise issues (https://github.com/nicholascar/mediatypes-dataset/issues) or get things changed if they aren’t great!



Received on Monday, 18 June 2018 17:41:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:42:04 UTC