RE: Media Types URIs

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 Wednesday, 20 June 2018 15:15:08 UTC