Re: JSON-LD Context

> 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