File tree Expand file tree Collapse file tree 4 files changed +39
-1
lines changed Expand file tree Collapse file tree 4 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -1485,14 +1485,16 @@ <h3>Algorithm</h3>
1485
1485
< li > For each < em > item</ em > in < em > language value</ em > :
1486
1486
< ol class ="algorithm ">
1487
1487
< li > < em > item</ em > must be a < a > string</ a > ,
1488
+ < span class ="changed "> or < code > null</ code > </ span > ,
1488
1489
otherwise an
1489
1490
< a data-link-for ="JsonLdErrorCode "> invalid language map value</ a >
1490
1491
error has been detected and processing is aborted.</ li >
1491
1492
< li > Append a < a > JSON object</ a > to
1492
1493
< em > expanded value</ em > that consists of two
1493
1494
key-value pairs: (< code > @value</ code > -< em > item</ em > )
1494
1495
and (< code > @language</ code > -lowercased
1495
- < em > language</ em > ).</ li >
1496
+ < em > language</ em > ),
1497
+ < span class ="changed "> unless < em > item</ em > is < code > null</ code > </ span > .</ li >
1496
1498
</ ol >
1497
1499
</ li >
1498
1500
</ ol >
@@ -4373,6 +4375,9 @@ <h2>Changes since 1.0 Recommendation of 16 January 2014</h2>
4373
4375
within the enclosing < a > node object</ a > directly.</ li >
4374
4376
< li > < code > @container</ code > values within an < a > expanded term definition</ a > may now
4375
4377
include < code > @id</ code > and < code > @type</ code > , corresponding to < a > id maps</ a > and < a > type maps</ a > .</ li >
4378
+ < li > A < a > language map</ a > may legitimately have a < code > null</ code > value, but
4379
+ the algorithm only allowed < a > string</ a > values. This has been updated
4380
+ to allow (and ignore) < code > null</ code > values.</ li >
4376
4381
</ ul >
4377
4382
</ section >
4378
4383
Original file line number Diff line number Diff line change
1
+ {
2
+ "@context" : {
3
+ "vocab" : "http://example.com/vocab/" ,
4
+ "label" : {
5
+ "@id" : "vocab:label" ,
6
+ "@container" : "@language"
7
+ }
8
+ } ,
9
+ "@id" : "http://example.com/queen" ,
10
+ "label" : {
11
+ "en" : null ,
12
+ "de" : [ "Die Königin" , null ]
13
+ }
14
+ }
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "@id" : "http://example.com/queen" ,
4
+ "http://example.com/vocab/label" :
5
+ [
6
+ {
7
+ "@value" : "Die Königin" ,
8
+ "@language" : "de"
9
+ }
10
+ ]
11
+ }
12
+ ]
Original file line number Diff line number Diff line change 758
758
"input" : "expand-n007-in.jsonld" ,
759
759
"expect" : "expand-n007-out.jsonld" ,
760
760
"option" : { "processingMode" : "json-ld-1.1" }
761
+ } , {
762
+ "@id" : "#tl001" ,
763
+ "@type" : [ "jld:PositiveEvaluationTest" , "jld:ExpandTest" ] ,
764
+ "name" : "Language map with null value" ,
765
+ "purpose" : "A language map may have a null value, which is ignored" ,
766
+ "input" : "expand-l001-in.jsonld" ,
767
+ "expect" : "expand-l001-out.jsonld"
761
768
}
762
769
]
763
770
}
You can’t perform that action at this time.
0 commit comments