W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > March 2008

xml:lang in JSON results format

From: Alistair Miles <alistair.miles@zoo.ox.ac.uk>
Date: Thu, 13 Mar 2008 10:25:31 +0000
Message-ID: <47D9011B.7000708@zoo.ox.ac.uk>
To: public-rdf-dawg-comments@w3.org

Hi all,

I'm sure you must have talked about this already, but I searched the 
groups lists and couldn't find anything.

Comment on: 

RDF Literal S with language L

     XML: <binding><literal xml:lang=" L "> S </literal><binding>

     JSON: "name" : {"type":"literal", "xml:lang":" L ", "value":" S"}

Please can it be...

     JSON: "name" : {"type":"literal", "lang":" L ", "value":" S"}

.. instead. It's a matter of convenience, but I'd like to be able to use 
the dot operator to access the language tag in a plain literal variable 
binding. Having to do binding["xml:lang"] is a real pain.

Otherwise, thanks for the great work.


Alistair Miles
Senior Computing Officer
Image Bioinformatics Research Group
Department of Zoology
The Tinbergen Building
University of Oxford
South Parks Road
United Kingdom
Web: http://purl.org/net/aliman
Email: alistair.miles@zoo.ox.ac.uk
Tel: +44 (0)1865 281993
Received on Thursday, 13 March 2008 10:26:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:09 UTC