Indicate that language maps are processed in case-insensitive order of keys, and update tests expand-0030 and expand-0035 acordingly.
--- 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"
}
]
}]