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 11:32:22 +0200
Cc: James M Snell <jasnell@gmail.com>, W3C Public Annotation List <public-annotation@w3.org>, Robert Sanderson <azaroth42@gmail.com>
Message-Id: <ABB0D7D6-0626-469A-82E4-DC44348F4463@w3.org>
To: Tim Cole <t-cole3@illinois.edu>

> 
> 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

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





Received on Monday, 10 August 2015 09:32:33 UTC

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