RE: json-ld.org playground updated

On Thursday, January 19, 2012 5:02 AM, Alexandre Passant:
> On Wed, Jan 18, 2012 at 8:16 PM, Manu Sporny
> > After some discussion with Dave Longley, both of us feel that we
> should
> > kill this feature. It overly complicates the number of ways that you
> can
> > express a plain literal.
> 
> You mean killing the "bar" : { "@value": "foo" } feature, and allowing
> it only it it comes together with a @type, @language or other
> attribute ?
> 
> If so, the markup schema would change when one decide to add the
> @language in an existing JSON-LD documents. JSON(non-LD) parser that
> were using "bar" : "foo" will eventually not work anymore. So I'd
> rather keep it for making things uniform and more easily extendable.

I agree with Alexandre on this. As your fix showed it's trivial to
implement. We should not encourage this construct, but there's no reason to
not support it. That would just add another corner case IMO.

Can we add a test case for that? I don't know if we currently test the
Turtle output!?



--
Markus Lanthaler
@markuslanthaler

Received on Thursday, 19 January 2012 03:08:52 UTC