W3C home > Mailing lists > Public > semantic-web@w3.org > December 2009

Re: Orderly (& JSON Schema language(s))

From: Toby Inkster <tai@g5n.co.uk>
Date: Sat, 26 Dec 2009 23:11:45 +0000
To: Dan Brickley <danbri@danbri.org>
Cc: Semantic Web <semantic-web@w3.org>
Message-ID: <1261869106.18012.14.camel@ophelia2.g5n.co.uk>
On Wed, 2009-12-23 at 17:19 +0100, Dan Brickley wrote:
> Just found http://orderly-json.org/

Orderly's still a bit of a work in progress, though there's already
implementations springing up.

It arose out of discussions on the JSON Schema mailing list
<json-schema@googlegroups.com>. Indeed I think some of the syntactic
features of Orderly are based on my suggestions (e.g. trailing '?' to
indicate optional properties; use of '{min,max}' to indicate ranges --
mostly ideas I nicked from regular expressions).

Orderly can be thought of as the equivalent of Relax NG Compact Syntax
for the JSON world. (Much like JSONSchema can be thought of as the
equivalent of XML Schema or Relax NG's XML syntax.)

Generally I think there is some interesting work to be done in "porting"
ideas from the XML world to JSON and vice versa. (Though with XML being
a more mature technology, there is more of the former than the latter to
be done.) Which brings me to...

> There's an online demo and code on github. Seems like it could be a
> good system to explore some GRDDL-ish extensions that map idiomatic
> JSON into RDF?

This is precisely what I was trying to do with jsonGRDDL (which I bang
on about from time to time):

http://buzzword.org.uk/2008/jsonGRDDL/spec

The idea is to port the GRDDL idea as closely as possible from XML to
JSON, but to do it sympathetically - i.e. to not try to shoehorn XML
technologies like XSLT in.

The idea is that you should be able to use "human-friendly" JSON
structures like:

	{
		"name" : "Toby Inkster" ,
		"homepage" : "http://tobyinkster.co.uk/"
	}

And be able to uplift the data into a more semantically rich model (i.e.
RDF). I have a working implementation, which for a while was offered
online as a web service, though it's down at the moment. I have plans to
port my implementation to Gregory William's RDF::Trine Perl framework.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Saturday, 26 December 2009 23:12:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 February 2013 14:25:16 GMT