W3C home > Mailing lists > Public > public-linked-json@w3.org > August 2012

Re: Values with angle brackets

From: Stéphane Corlosquet <scorlosquet@gmail.com>
Date: Fri, 17 Aug 2012 11:44:32 -0400
Message-ID: <CAGR+nnFnjNudROWaATXP3FB3wFcPZx=Ypa4BOgVyp08hmJZEjg@mail.gmail.com>
To: nil <nil.niklas@gmail.com>
Cc: public-linked-json <public-linked-json@w3.org>
On Fri, Jul 20, 2012 at 4:15 AM, nil <nil.niklas@gmail.com> wrote:

> Hi,
>
> I'm wondering why the playground omits values between < and > in the
> output.
> My example input:
> {
>   "@context": {
>     "message-id": "http://www.semanticdesktop.org/ontologies/nmo#messageId
> "
>   },
>   "message-id":
> "<CAERg+cg3y+bKtk9KE5UMmK15+1+U191oUgVZaT=ifhB7YqaMAQ@mail.gmail.com>"
> }
>
> The output (in Compacted form):
>
> {
>   "http://www.semanticdesktop.org/ontologies/nmo#messageId": ""
> }
>
> If I put text before / after the brackets, it becomes part of the
> output. Do I need to escape the brackets? If so, why is that and where
> is it documented?
>

I can still reproduce this in the playground. It might be that the angle
bracket needs to be escaped? using &lt; works. Not sure if the behavior
above is a bug in JSON-LD or in the playground. Seems like the round
tripping isn't working: the normalized output has the expected value, but
the compacted and expanded outputs don't. Can someone confirm what's going
on?

Steph.
Received on Friday, 17 August 2012 15:45:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:37 GMT