Fixed bug for issue #133 - allow language maps to contain non-string values.
authorManu Sporny <msporny@digitalbazaar.com>
Sun, 19 Aug 2012 10:19:55 -0400
changeset 826 bedf0511a12f
parent 825 6696b718a093
child 827 49103fb9c560
Fixed bug for issue #133 - allow language maps to contain non-string values.
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-syntax/index.html	Sat Aug 18 21:26:52 2012 -0700
+++ b/spec/latest/json-ld-syntax/index.html	Sun Aug 19 10:19:55 2012 -0400
@@ -2817,9 +2817,22 @@
   <tref>subject definition</tref> if the term is defined with
   <code>@container</code> set to <code>@language</code>.</p>
 <p>The keys of a <tref>language map</tref> MUST be a [[BCP47]] string
-  with an associated value that is a <tref>string</tref> or an
-  <tref>array</tref> of zero or more <tref>string</tref>s.</p>
-<p class="issue" data-number="133">We had also discussed values other than strings, such as those that might represent a more reified version of a value with other properties, such as is described using <a href="http://www.w3.org/TR/skos-reference/skos-xl.html">SKOS-XL</a>.</p>
+  with an associated value that is any of the following types:</p>
+<ul>
+  <li><tref>string</tref>,</li>
+  <li><tref>number</tref>,</li>
+  <li><tref>true</tref>,</li>
+  <li><tref>false</tref>,</li>
+  <li><tref>null</tref>,</li>
+  <li><tref>subject reference</tref>,</li>
+  <li><tref>subject definition</tref>,</li>
+  <li><tref>typed value</tref>,</li>
+  <li><tref>language value</tref>,</li>
+  <li><code>@set</code> or <code>@list</code>
+    definition (see <a href="#sets-and-lists"></a>), or</li>
+  <li>an <tref>array</tref> zero or more of these</li>
+</ul>
+<p class="issue resolved" data-number="133">We had also discussed values other than strings, such as those that might represent a more reified version of a value with other properties, such as is described using <a href="http://www.w3.org/TR/skos-reference/skos-xl.html">SKOS-XL</a>.</p>
 <pre class="example" data-transform="updateExample"
      title="Language map expressing a property in three languages">
 <!--
@@ -2829,7 +2842,7 @@
     "title":
     {
       "@id": "http://purl.org/dc/terms/title"
-      "@container": "@language"
+      ****"@container": "@language"****
     }
   },
 ...