RE: MIME type

Gregg Kellogg wrote
> We'll also need a MIME type for a JSON-LD context, which
> is a subset of JSON-LD, as only the @context elements are
> parsed, and the processing entrypoint is at
> http://json-ld.org/spec/latest/#context.
> 
> The latest version of the spec describes a context document
> as being just the JSON description of the context, not the
> enclosing @context relationship.
> ...
> In which case, I'd suggest application/ld-context+json and
> an extension of .jsonldc.

What about doing it similar to Atom which uses a MIME type for that:
application/atom+xml;type=entry

So, e.g. application/ld+json;type=context


> Given that it really is a different document type, I'd go
> with the separate MIME type and extension. 

I'm not really a fan of this sort of MIME type pollution and would
definitely favor a type parameter for such "details".


--
Markus Lanthaler
@markuslanthaler

Received on Thursday, 4 August 2011 12:42:45 UTC