W3C home > Mailing lists > Public > public-rdf-wg@w3.org > March 2011

[JSON] Clarification on JSON-LD

From: Ivan Herman <ivan@w3.org>
Date: Thu, 10 Mar 2011 15:05:06 +0100
Cc: RDF Working Group WG <public-rdf-wg@w3.org>
To: Manu Sporny <msporny@digitalbazaar.com>
Message-Id: <E8C41C7C-E94A-4CB7-8C92-8F12FEA00506@w3.org>
Manu,

I try to familiarize with the different JSON inputs. Looking at JSON-LD, two questions:

Is it correct that 

{
  "foaf:name" : "Ivan" 
}

translates into

[ foaf:name : "Ivan" ]

ie, that if I do not have the "@" there, then it is considered to be a blank node in RDF terms?

Also, is it so that I can say 

{
  "ex:prop : { "foaf:name" : "Ivan" }
}

meaning

[ ex:prop [ foaf:name "Ivan" ] ]

ie, the subject can be a complete JSON object?

Thanks

Ivan

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






Received on Thursday, 10 March 2011 14:03:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:04 UTC