- From: Vagif Abilov <vagif.abilov@gmail.com>
- Date: Wed, 29 Oct 2014 08:41:28 +0100
- To: public-hydra@w3.org
- Message-ID: <CA+xi7+0m8jaa8Q38rAk_=OTjnoTxj2vP6L5TAv_TiV8dZ0cX9g@mail.gmail.com>
Thank you very much, Chris! On Tue, Oct 28, 2014 at 4:23 PM, Chris Chapman <chris@pentandra.com> wrote: > 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 Wednesday, 29 October 2014 07:41:55 UTC