Re: JSON-LD Playground

On 07/10/2011 01:55 PM, Gregg Kellogg wrote:
> Manu, this is great!

Glad you enjoyed it. :) It was a team effort - Dave Longley wrote the
JSON-LD processor in JavaScript and Dave Lehn and Mike Johnson provided
implementation feedback and testing. :)

> 1) The Turtle output could be a bit better, I think the only reason to
> show Turtle is that it makes the graph easier to understand.

Yes, definitely. I implemented the JSON-LD to TURTLE conversion
mechanism in about an hour or two. There are a number of optimizations
that could be made, but I decided to keep it the same as the output is
in normalized order and could help us debug the normalization algorithm
if issues crop up with it.

If anybody would like to take a crack at optimizing the TURTLE output,
the code is here:

https://github.com/json-ld/json-ld.org/blob/master/playground/jsonld-turtle.js

> 2) Is there a framing spec for JSON-LD? I like the concept of using the
> structure from a template document to control chaining/framing output.

There will be one eventually. We have the algorithm written on our
internal wiki. We wanted to make sure that it was implementable and
simple enough before placing it into the JSON-LD spec. There were also
concerns about making JSON-LD "too complicated", so we kept it out for
now. I'll see if the DB guys think we should integrate it this week.
Query-by-example is a pretty useful concept - we might think of moving
this work over to the RDFa API getProjection() mechanism (Projection
templates).

--  manu

-- 
Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: PaySwarm Developer Tools and Demo Released
http://digitalbazaar.com/2011/05/05/payswarm-sandbox/

Received on Monday, 11 July 2011 00:30:49 UTC