W3C home > Mailing lists > Public > public-linked-json@w3.org > January 2012

Is this valid JSON-LD?

From: Ivan Herman <ivan@w3.org>
Date: Wed, 11 Jan 2012 13:06:32 +0100
To: Linked JSON <public-linked-json@w3.org>
Message-Id: <453D3F7C-21C5-4680-84C7-ACB20262A88D@w3.org>
Something that I have not seen anywhere in the document:

{
  "@context" : {
     "http://www.example.org/pred" : { "@type" : "@id" }
   },
   ...
   "http://www.example.org/pred" : "http://ivan-herman.net"
   ...
}

yielding

[ <http://www.example.org/pred> <http://ivan-herman.net> ]

I would expect the answer to be yes, but there is nowhere a more formal definition of @context that would give me straight answer.

This (and my question yesterday on the "@id" : [...] idiom) reinforces my feeling that a somewhat more formal definition of the various json-ld structures would be welcome in my view.

Thanks

Ivan


----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf







Received on Wednesday, 11 January 2012 12:06:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:36 GMT