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

RE: Simplify "Multiple Typed Literals for a Single Property" (ISSUE-33)

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Sun, 2 Oct 2011 22:50:09 +0200
To: <public-linked-json@w3.org>
Message-ID: <014501cc8144$e01bf6b0$a053e410$@lanthaler@gmx.net>
> -1 for allowing arrays of literals

Agree. To be honest I completely misunderstood that section first so we
should definitely change that example as it doesn't show what can be
achieved with it.


> A reasonable example - alternative payment methods for acquiring an
> asset that is for sale. For example, for our Community Supported
> Agriculture share of vegetables for one week out of the year, we can
> either pay $20 USD or work on the farm for 4 hours.
> 
> {
>     "dc:title": "Weekly Vegetable Share (limit one per year)",
>     "com:amount":
>     [
>        {"@literal": "20", "@type": "iso4217:USD"},
>        {"@literal": "4", "@type": "units:hours"}
>     ]
> }
> 
> This isn't the best example... but one could conceive of the above
> markup for a particular application. The better example is when you
> have
> multiple language strings for a single value:
> 
> {
>     "dc:title":
>     [
>        {"@literal": "Das Kapital", "@language": "de"},
>        {"@literal": "Capital", "@language": "en"}
>     ]
> }

+1 to change it to example 2.



--
Markus Lanthaler
@markuslanthaler
Received on Sunday, 2 October 2011 20:50:37 GMT

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