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

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 UTC