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

In such case, I would probably se t the datatype in @coerce. While not unreasonable, this would complicate the processing instructions a bit.

Gregg Kellogg

Sent from my iPad

On Sep 28, 2011, at 5:56 AM, "Markus Lanthaler" <markus.lanthaler@gmx.net> wrote:

> Reading the current spec, there is a lot of repetition in "Multiple Typed
> Literals for a Single Property"
> (http://json-ld.org/spec/latest/#multiple-typed-literals-for-a-single-proper
> ty).
> 
> Couldn't we simplify this drastically by allowing arrays of literals?
> Something like
> 
> {
> ...
>  "@subject": "http://example.org/articles/8",
>  "modified": 
>  {
>    "@literal": [
>      "2010-05-29T14:17:39+02:00",
>      "2010-05-30T09:21:28-04:00"
>    ],
>    "@datatype": "dateTime"
>  }
> 
> ...
> }
> 
> 
> Instead of having to write
> 
> {
> ...
>  "@subject": "http://example.org/articles/8",
>  "modified": 
>  [
>    {
>      "@literal": "2010-05-29T14:17:39+02:00",
>      "@datatype": "dateTime"
>    },
>    {
>      "@literal": "2010-05-30T09:21:28-04:00",
>      "@datatype": "dateTime"
>    }
>  ]
> ...
> }
> 
> 
> 
> --
> Markus Lanthaler
> @markuslanthaler
> 
> 
> 
> 
> 

Received on Wednesday, 28 September 2011 15:24:51 UTC