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

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.


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.4.0 : Friday, 17 January 2020 16:18:30 UTC