W3C home > Mailing lists > Public > public-linked-json@w3.org > July 2011

Another reason for overriding default keywords

From: Alexandre Passant <alex@seevl.net>
Date: Sun, 31 Jul 2011 13:02:04 +0100
Message-ID: <CALF6uCm0nuj2TPyYBFv27Ef6jX3-3xQ0Uhq1JFcuVZepyJg=dQ@mail.gmail.com>
To: public-linked-json@w3.org
Hi,

The json_decode method in PHP creates PHP objects, and attributes can
be retrieved using $name->attribute.
Yet, attribute cannot start with a @

So $object->@ won't work, but $object->uri will be OK.

Allow to override default keywords in the @context would then definitely useful.

Alex.

-- 
Dr. Alexandre Passant - @terraces
Founder, CEO - seevl.net - @seevl
Reinventing Music Discovery
Received on Sunday, 31 July 2011 12:02:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:53:17 UTC