Re: JSON-Grammar - context-sensitive grammars for JSON

* Robin Berjon <robin@berjon.com> [2017-01-19 10:17-0500]
> On 19/01/2017 06:15 , Eric Prud'hommeaux wrote:
> > The Shape Expressions has a pretty conventional JSON representation
> > (ShExJ) which is described in JSON-Grammar language. The typing
> > captures disjunction, co-occurance, lists, maps and cardinality
> > constraints. e.g. a ShEx EachOf has a list of two or more
> > tripleExpressions and a optional min and max properties
> 
> It's possible I'm missing something but at first sight it's not obvious
> to me in what way it's different from JSON Schema?

You could compile some of it to JSON Schema (though not the type
choices, I think). The intention was as a presentation language
suitable for human eyeballs (well, the eyeballs of humans who read
formal grammars like set builder notation).


> -- 
> • Robin Berjon - http://berjon.com/ - @robinberjon
> • http://science.ai/ — intelligent science publishing
> •

-- 
-ericP

office: +1.617.599.3509
mobile: +33.6.80.80.35.59

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

There are subtle nuances encoded in font variation and clever layout
which can only be seen by printing this message on high-clay paper.

Received on Thursday, 19 January 2017 19:47:48 UTC