Indicate that language maps are processed in case-insensitive order of keys, and update tests expand-0030 and expand-0035 acordingly.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Mon, 10 Dec 2012 18:47:41 -0800
changeset 1021 11d6994993b2
parent 1020 5556fb193f4a
child 1022 5da4243f8769
Indicate that language maps are processed in case-insensitive order of keys, and update tests expand-0030 and expand-0035 acordingly.
spec/latest/json-ld-api/index.html
test-suite/tests/expand-0030-out.jsonld
test-suite/tests/expand-0035-out.jsonld
--- a/spec/latest/json-ld-api/index.html	Mon Dec 10 18:26:30 2012 -0800
+++ b/spec/latest/json-ld-api/index.html	Mon Dec 10 18:47:41 2012 -0800
@@ -1102,7 +1102,7 @@
           process the associated <em>value</em> as a <em>language map</em>:
             <ol class="algorithm">
               <li>Set <em>multilingual array</em> to an empty array.</li>
-              <li>For each key-value in the <em>language map</em> and for each value, if value is an <tref>array</tref>:
+              <li>For each key-value in the <em>language map</em> ordered by key case insensitively, and for each value, if value is an <tref>array</tref>:
                 <ol class="algorithm">
                   <li>Create a new <tref>JSON Object</tref>, referred to as an <em>expanded language object</em>.
                   <li>Add a key-value pair to the <em>expanded language object</em> where the
--- a/test-suite/tests/expand-0030-out.jsonld	Mon Dec 10 18:26:30 2012 -0800
+++ b/test-suite/tests/expand-0030-out.jsonld	Mon Dec 10 18:47:41 2012 -0800
@@ -4,14 +4,14 @@
     "http://example.com/vocab/label":
     [
       {
-        "@value": "The Queen",
-        "@language": "en"
-      }, {
         "@value": "Die Königin",
         "@language": "de"
       }, {
         "@value": "Ihre Majestät",
         "@language": "de"
+      }, {
+        "@value": "The Queen",
+        "@language": "en"
       }
     ]
   }
--- a/test-suite/tests/expand-0035-out.jsonld	Mon Dec 10 18:26:30 2012 -0800
+++ b/test-suite/tests/expand-0035-out.jsonld	Mon Dec 10 18:47:41 2012 -0800
@@ -2,20 +2,20 @@
    "@id": "http://example.com/queen",
    "http://example.com/vocab/label": [
       {
+         "@value": "Die Königin",
+         "@language": "de"
+      }, {
+         "@value": "Ihre Majestät",
+         "@language": "de"
+      }, {
+         "@value": "The Queen",
+         "@language": "en"
+      }, {
          "@value": "Il re",
          "@language": "it"
       }, {
          "@value": "The king",
          "@language": "en"
-      }, {
-         "@value": "The Queen",
-         "@language": "en"
-      }, {
-         "@value": "Die Königin",
-         "@language": "de"
-      }, {
-         "@value": "Ihre Majestät",
-         "@language": "de"
       }
    ]
 }]