Re: Media Types URIs

Yes, that’s better put: the IANA URIs just don’t support conneg or RDF but do dereference. The IANA website looks 200s-ish and is data driven (XML) but what are the chances they will implement RDF any time soon?

We can enhance metadata in the new API too if needed since its RDF data, derived from IANA XML, is stored in Jena.

Nicholas Car
Senior Experimental Scientist
CSIRO Land & Water
E nicholas.car@csiro.au<mailto:nicholas.car@csiro.au> M 0477 560 177<tel:0477%20560%20177> P 07 3833 5632
Dutton Park, QLD, Australia

On 21 Jun 2018, at 1:15 am, Svensson, Lars <L.Svensson@dnb.de<mailto:L.Svensson@dnb.de>> wrote:

On Monday, June 18, 2018 10:17 PM, Jakub Klímek [mailto:jakub@jakubklimek.com] wrote:
[...]
And I would prefer:

dcat:mediaType <https://w3id.org/mediatype/text/csv> ;

This creates inconsistency with DCAT-AP where it should
be https://www.iana.org/assignments/media-types/text/turtle, even though this is not
dereferencable.

Hmm, I can dereference that URI:

svensson@F-NBW7-04660 ~
$ curl -I https://www.iana.org/assignments/media-types/text/turtle

HTTP/1.1 200 OK
Date: Wed, 20 Jun 2018 15:10:59 GMT
X-Frame-Options: SAMEORIGIN
Referrer-Policy: origin-when-cross-origin
Content-Security-Policy: upgrade-insecure-requests
Vary: Accept-Encoding
Last-Modified: Fri, 15 Jul 2011 20:29:35 GMT
Cache-Control: public, s-maxage=1800, max-age=3600
Expires: Wed, 20 Jun 2018 16:10:59 GMT
Content-Type: text/plain; charset=UTF-8
Server: Apache
Strict-Transport-Security: max-age=48211200; preload
X-Cache-Hits: 0
Accept-Ranges: bytes
Connection: keep-alive

It doesn't support content negotiation though (most IANA registries aren't very webby...):

$ curl -I -H "Accept: text/turtle" https://www.iana.org/assignments/media-types/text/turtle

HTTP/1.1 200 OK
Date: Wed, 20 Jun 2018 15:10:59 GMT
X-Frame-Options: SAMEORIGIN
Referrer-Policy: origin-when-cross-origin
Content-Security-Policy: upgrade-insecure-requests
Vary: Accept-Encoding
Last-Modified: Fri, 15 Jul 2011 20:29:35 GMT
Cache-Control: public, s-maxage=1800, max-age=3600
Expires: Wed, 20 Jun 2018 16:10:59 GMT
Content-Type: text/plain; charset=UTF-8 <<<<-------------
Server: Apache
Strict-Transport-Security: max-age=48211200; preload
X-Cache-Hits: 1
Accept-Ranges: bytes
Connection: keep-alive

Best,

Lars

Received on Thursday, 21 June 2018 06:41:42 UTC