- From: Chris Chapman <chris@pentandra.com>
- Date: Tue, 28 Oct 2014 09:23:28 -0600
- To: public-hydra@w3.org
Received on Tuesday, 28 October 2014 15:24:09 UTC
On Tue, Oct 28, 2014 at 03:17:09PM +0100, Vagif Abilov wrote: > Hi, > > If a service supports multiple media types and client wants to receive > response as JSON-LD, then AFAIK should include Accept header with a value > of "application/ld+json".And the service should set this values in > Content-Type header. > > But how to specify that client wants JSON-LD compacted or expanded? And > should the service specify it in the Content-Type? Vagif, Use the optional profile parameter in the request, such as Accept: application/ld+json; profile="http://www.w3.org/ns/json-ld#expanded" See [1, 2] for more info. -- Chris Chapman Pentandra Research Solutions, Inc. Breaking Research Barriers Tel: +1 435 294 2964 Email: chris@pentandra.com Twitter: @cd_chapman Website: http://pentandra.com [1]: http://www.w3.org/TR/json-ld-syntax/#application-ld-json [2]: http://www.w3.org/ns/json-ld
Received on Tuesday, 28 October 2014 15:24:09 UTC