mapping from media type to datatype

Is there a mapping from media type (e.g. application/json) to RDF
literal datatype? In this use case, the data is specifically JSON
embedded in a literal rather than an RDF graph representable as
JSON-LD, e.g.
  :id :prop "{ \"a\": [1, 2, 3]}"^^rdtype:json
where rdtype is some spec which maps
  application/json => "json"
  text/csv => "csv"

Maybe the right thing to do is say that everything in column 1 of
http://www.iana.org/assignments/media-types/media-types.xhtml#application
is an rdtype local name. That would render ambiguous the backward
mapping for media types in e.g. both an app/ and a text/ trees, but
I don't know that there's much use in knowing whether anything in
this list is app/ vs. text/:

      1d-interleaved-parityfec
      activemessage
      dns
      ecmascript
      encaprtp
      example
      javascript
      parityfec
      raptorfec
      rtf
      rtploopback
      rtx
      ulpfec
      vnd.curl
      xml-external-parsed-entity

If there is a usefull difference, we could have different prefixes for
the different trees: application, audio, example, image, message,
model, multipart, text, video, and prefix declarations can call them
e.g. "rdapp", "rdaudio"...

-- 
-ericP

office: +1.617.599.3509
mobile: +33.6.80.80.35.59

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

There are subtle nuances encoded in font variation and clever layout
which can only be seen by printing this message on high-clay paper.

Received on Saturday, 11 April 2015 06:48:46 UTC