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

RE: Media Types URIs

From: Svensson, Lars <L.Svensson@dnb.de>
Date: Wed, 20 Jun 2018 15:14:41 +0000
To: Jakub Klímek <jakub@jakubklimek.com>, "Car, Nicholas (L&W, Dutton Park)" <Nicholas.Car@csiro.au>
CC: "public-dxwg-wg@w3.org" <public-dxwg-wg@w3.org>
Message-ID: <68175cd99b91413faee60d00a5b346b1@dnb.de>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 30 October 2019 00:15:43 UTC