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

RE: Updated my JSON-LD serializer for the RDFa distiller

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Thu, 19 Jan 2012 19:03:35 +0800
To: "'Ivan Herman'" <ivan@w3.org>, "'Linked JSON'" <public-linked-json@w3.org>
Message-ID: <002501ccd69a$007b4cd0$0171e670$@lanthaler@gmx.net>
Hi Ivan,

this is correct according to the latest spec. The only thing that you need
to change in future is the type coercion part (as you already know, ISSUE-43
[1]). From

  "http://xmlns.com/foaf/0.1/mbox": {
      "@type": "@id"
  }, 
  "http://xmlns.com/foaf/0.1/knows": {
      "@type": "@id"
  }, 
  "http://creativecommons.org/ns#license": {
      "@type": "@id"
  }, 
  "http://xmlns.com/foaf/0.1/phone": {
      "@type": "@id"
  }, 
  "http://xmlns.com/foaf/0.1/homepage": {
      "@type": "@id"
  }

to

  "foaf:mbox": {
      "@type": "@id"
  }, 
  "foaf:knows": {
      "@type": "@id"
  }, 
  "cc:license": {
      "@type": "@id"
  }, 
  "foaf:phone": {
      "@type": "@id"
  }, 
  "foaf:homepage": {
      "@type": "@id"
  }



[1] https://github.com/json-ld/json-ld.org/issues/43



--
Markus Lanthaler
@markuslanthaler





> -----Original Message-----
> From: Ivan Herman [mailto:ivan@w3.org]
> Sent: Wednesday, January 18, 2012 10:26 PM
> To: Linked JSON
> Subject: Updated my JSON-LD serializer for the RDFa distiller
> 
> Guys,
> 
> I have updated my RDFa 1.1 JSON-LD serializer to what I believe is the
> last version of JSON-LD (following the various mails I saw passing by
> the past few weeks). Here is an example for a little bit more complex
> JSON-LD output:
> 
> http://goo.gl/B9BRg
> 
> it uses the example that we published for the RDFa-Primer
> 
> http://www.w3.org/2010/02/rdfa/sources/rdfa-primer/alice-example.html
> 
> For comparison, here is the Turtle output of the same content:
> 
> http://goo.gl/DePQV
> 
> I would appreciate if you guys had a quick look at this, in case I
> misunderstood something or in case I simply have a bug in my serializer
> part...
> 
> 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 Thursday, 19 January 2012 11:04:11 GMT

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