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

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

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Wed, 28 Sep 2011 14:55:32 +0200
To: <public-linked-json@w3.org>
Message-ID: <010501cc7ddd$e91e8e40$bb5baac0$@lanthaler@gmx.net>
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 12:56:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:32 UTC