@@ -1334,15 +1334,9 @@ <h3>Algorithm</h3>
1334
1334
< a > term definition</ a > for < var > term</ var > in < var > active context</ var > .</ li >
1335
1335
< li > Otherwise, remove any < var > previous definition</ var > from
1336
1336
< var > active context</ var > .</ li >
1337
- < li > If < var > value</ var > is < code > null</ code > or < var > value</ var >
1338
- is a < a class ="changed "> dictionary</ a > containing the key-value pair
1339
- < code > @id</ code > -< code > null</ code > , set the
1340
- < a > term definition</ a > in < var > active context</ var > to
1341
- < code > null</ code > ,
1342
- and set the value associated with < var > defined</ var > 's
1343
- < a > member</ a > < var > term</ var > to < code > true</ code > , and return.
1344
- < div class ="ednote "> Should probably store as a dictionary with < code > @id</ code > -< code > null</ code >
1345
- and retain < code > @protected</ code > so we can protect against redefinitions.</ div > </ li >
1337
+ < li class ="changed "> If < var > value</ var > is < code > null</ code > ,
1338
+ convert it to a < a class ="changed "> dictionary</ a > consisting of a single < a > member</ a > whose
1339
+ key is < code > @id</ code > and whose value is < code > null</ code > .</ li >
1346
1340
< li > Otherwise, if < var > value</ var > is a < a > string</ a > , convert it
1347
1341
to a < a class ="changed "> dictionary</ a > consisting of a single < a > member</ a > whose
1348
1342
key is < code > @id</ code > and whose value is < var > value</ var > .
@@ -1414,7 +1408,10 @@ <h3>Algorithm</h3>
1414
1408
< li > If < var > value</ var > contains the < a > member</ a > < code > @id</ code > and its value
1415
1409
does not equal < var > term</ var > :
1416
1410
< ol >
1417
- < li > If the value associated with the < code > @id</ code > < a > member</ a > is not a < a > string</ a > , an
1411
+ < li > If < var > value</ var > contains the < code > @id</ code > < a > member</ a >
1412
+ is < code > null</ code > , the term is not used for IRI expansion, but is
1413
+ retained to be able to detect future redefinitions of this term.</ li >
1414
+ < li > Otherwise, if the value associated with the < code > @id</ code > < a > member</ a > is not a < a > string</ a > , an
1418
1415
< a data-link-for ="JsonLdErrorCode "> invalid IRI mapping</ a >
1419
1416
error has been detected and processing is aborted.</ li >
1420
1417
< li > Otherwise, set the < a > IRI mapping</ a > of < var > definition</ var > to the
@@ -1697,9 +1694,10 @@ <h3>Algorithm</h3>
1697
1694
in < var > active context</ var > during
1698
1695
< a href ="#context-processing-algorithm "> Context Processing</ a > .</ li >
1699
1696
< li > If < var > active context</ var > contains a < a > term definition</ a >
1700
- for < var > prefix</ var > , return the result of concatenating
1701
- the < a > IRI mapping</ a > associated with < var > prefix</ var > and
1702
- < var > suffix</ var > .</ li >
1697
+ for < var > prefix</ var >
1698
+ < span class ="changed "> having a non-< code > null</ code > < a > IRI mapping</ a > </ span > ,
1699
+ return the result of concatenating the < a > IRI mapping</ a >
1700
+ associated with < var > prefix</ var > and < var > suffix</ var > .</ li >
1703
1701
< li > < span class ="changed "> If < var > value</ var > has the form of an < a > absolute IRI</ a > </ span > ,
1704
1702
return < var > value</ var > .</ li >
1705
1703
</ ol >
0 commit comments