W3C home > Mailing lists > Public > public-grddl-wg@w3.org > December 2008

Fwd: Crazy jsonSLT and jsonGRDDL idea.

From: Toby A Inkster <tai@g5n.co.uk>
Date: Mon, 15 Dec 2008 15:46:31 +0000
Message-Id: <B39EBC1E-3220-44AD-82AF-D687150C1CD9@g5n.co.uk>
To: public-grddl-wg@w3.org

Me, five minutes ago, on json-schema@googlegroups.com...

Begin forwarded message:

> From: tobyink <mail@tobyinkster.co.uk>
> Date: 15 December 2008 15:41:08 GMT
> To: JSON Schema <json-schema@googlegroups.com>
> Subject: Crazy jsonSLT and jsonGRDDL idea.
> Reply-To: json-schema@googlegroups.com
>
>
> Hello, the following is crazy...
>
> jsonSLT = JSON equivalent of XSLT. Obvious syntax is to use
> ECMAScript, but to avoid tying this to client-side use it should be
> ECMAScript which doesn't have to run inside a browser instance (i.e.
> no references to "document" or "window". jsonSLT is an ECMAScript file
> containing a function called "transform" that takes an object (not a
> string, but an object) as input, does some kind of transformation on
> it and returns either another object, or a [MIME-type, string] pair.
> That is, while XSLT transforms XML into anything (but usually into
> XML), jsonSLT transforms JSON into anything (but usually into JSON).
>
> jsonGRDDL = JSON equivalent of GRDDL. A JSON object includes a "$ref"
> link to a JSON schema. The schema in turn contains a "$transform" link
> to a jsonSLT file. The jsonSLT file takes the original JSON object as
> input and returns an RDF/JSON object.
>
> ... but it just might work.
>
> I'm thinking about implementing it in Cognition <http://
> buzzword.org.uk/cognition/>. Anyone interested in helping?
>
> -Toby

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Monday, 15 December 2008 15:47:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 15 December 2008 15:47:19 GMT