Re: Schema.org just published a JSON-LD context

On 17 June 2014 16:33, Kingsley Idehen <kidehen@openlinksw.com> wrote:
> On 6/17/14 8:21 AM, Dan Brickley wrote:
>>
>> On 17 June 2014 13:02, Kingsley Idehen <kidehen@openlinksw.com> wrote:
>>>
>>> On 6/16/14 5:48 PM, Markus Lanthaler wrote:
>>>>
>>>> Hi folks,
>>>>
>>>> Today is another important milestone for JSON-LD as Schema.org just
>>>> published a first version of their context. See yourself:
>>>>
>>>>      curlhttp://schema.org   -H "Accept: application/ld+json"
>>>>
>>>>
>>>> Thanks Dan!
>>>>
>>>>
>>>> Cheers,
>>>> Markus
>>>>
>>>>
>>>> P.S. Those of you who don't have curl installed can have a look at the
>>>> context here:
>>>>     http://schema.org/docs/jsonldcontext.json.txt
>>>
>>> Markus,
>>>
>>> Do you have a live example?
>>>
>>> Assuming I am trying to de-reference the correct HTTP URIs, here my
>>> experience[...]
>>
>> This is for the schema.org @context file, whose IRIURIURL is
>> http://schema.org/
>>
>> We're content negotiating that because JSON-LD tools expect to find it
>> via the @context URL, and we wanted the simplest possible URL for
>> schema.org in JSON-LD.\
>
>
> I remain confused. What about filling in the IRI/URI/URL placeholder of the
> following cuRL excerpt?
>
> curl --verbose -I -H "Accept: application/ld+json" {IRI/URI/URL}

Sure,

Try curl --verbose -H "Accept: application/ld+json" http://schema.org/

(the view c/o /docs/jsonldcontext.json.txt is exposed for convenience,
maybe best not to treat it as an API.

Dan

Received on Tuesday, 17 June 2014 15:43:43 UTC