RE: JSON-LD grammar

On  Monday, January 14, 2013 1:42 PM, Pierre-Antoine Champin wrote:
 
> > Furthermore, and that's the real deal-breaker, it
> > doesn't allow to express things such as, a JSON object which has
*either* a
> > @language *or* a @type member (both are allowed but not at the same
time).
>
> I think it does! Attached is a partial schema, which handles the cas of
> literals with either @language or @type.

You are right. Your trick of disallowing all properties starting with an "@"
would do the job.


--
Markus Lanthaler
@markuslanthaler

Received on Monday, 14 January 2013 16:55:56 UTC