-
Notifications
You must be signed in to change notification settings - Fork 160
Description
The API has to deal with loading remote documents and evaluating the http://www.w3.org/ns/json-ld#context link header. Currently, a remote document is only be considered valid if it's media type is application/ld+json or application/json. In my discussions with the activity streams community I realized that this might be overly restricting. I would thus like to propose that we also process all media types using a +json suffix as defined in RFC 6839.
PROPOSAL 1: The JSON-LD API should also process all documents labeled with media types using the +json suffix. This decision does not impact the processing of the http://www.w3.org/ns/json-ld#context link header, i.e., it will be evaluated for all JSON media types except application/ld+json (which requires the context to referenced or included directly in the document).
This would result in a couple of minor changes in section 11.1 The JsonLdProcessor Interface.
Probably we should also recommend (doesn't need to be normative) that JSON-LD Processors signal in the Accept that they support application/ld+json and application/json when retrieving documents and application/ld+json when retrieving contexts as suggested by Dave Lehn in #255.