W3C home > Mailing lists > Public > public-annotation@w3.org > August 2015

Re: JSON-LD Context

From: Ivan Herman <ivan@w3.org>
Date: Mon, 10 Aug 2015 17:14:37 +0200
Cc: James M Snell <jasnell@gmail.com>, W3C Public Annotation List <public-annotation@w3.org>, Robert Sanderson <azaroth42@gmail.com>
Message-Id: <EEF6CFE7-2F4D-46BE-A8BE-48756F7C727D@w3.org>
To: Tim Cole <t-cole3@illinois.edu>

> On 10 Aug 2015, at 11:32 , Ivan Herman <ivan@w3.org> wrote:
> 
> 
>> 
>> Actually… the idiom
>> 
>> "url"  : { "@type" : "@id", "@id" : "@id"}
>> 
>> also seemed to work on playground. If I then use:
>> 
>> {
>> "@context" : {
>>   "type" : { "@type" : "@vocab", "@id":"rdf:type"},
>>   "url"  : { "@type" : "@id", "@id" : "@id"}
>> },
>> "type" : "http://this.type.example.org",
>> "url":"http://ww.example.org"
>> }
>> 
>> Ie, if the @context is included by URI
>> 
>> {
>> "@context" : "http://somewhere.org,
>> "type" : "http://this.type.example.org",
>> "url":"http://ww.example.org"
>> }
>> 
>> I get
>> 
>> <http://ww.example.org> <rdf:type> <http://this.type.example.org> .
>> 
> 
> I have asked a JSON-LD expert to see whether this is 'legal' JSON-LD

Got the answer (from Gregg): yes, it is valid.

Ivan


> 
> Ivan
> 
> ----
> Ivan Herman, W3C
> Digital Publishing Activity Lead
> Home: http://www.w3.org/People/Ivan/
> mobile: +31-641044153
> ORCID ID: http://orcid.org/0000-0003-0782-2704
> 
> 
> 
> 


----
Ivan Herman, W3C
Digital Publishing Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
ORCID ID: http://orcid.org/0000-0003-0782-2704





Received on Monday, 10 August 2015 15:14:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:54:39 UTC