@@ -1642,16 +1642,24 @@ <h3>Algorithm</h3>
1642
1642
error has been detected and processing is aborted; if it equals < code > @context</ code > , an
1643
1643
< a data-link-for ="JsonLdErrorCode "> invalid keyword alias</ a >
1644
1644
error has been detected and processing is aborted.</ li >
1645
- < li class ="changed "> If the < var > term</ var > contains a colon (`:`)
1645
+ < li id =" ctd-contains-colon " class ="changed "> If the < var > term</ var > contains a colon (`:`)
1646
1646
anywhere but as the first or last character of < var > term</ var > ,
1647
- or if it contains a slash (`/`) anywhere,
1648
- and for either case, the result of expanding < var > term</ var >
1649
- using the < a href ="#iri-expansion "> IRI Expansion algorithm</ a > , passing
1650
- < var > active context</ var > , < var > term</ var > for < var > value</ var > , < code > true</ code > for < var > vocab</ var > ,
1651
- < var > local context</ var > , and < var > defined</ var > ,
1652
- is not the same as the < a > IRI mapping</ a > of < var > definition</ var > ,
1653
- an < a data-link-for ="JsonLdErrorCode "> invalid IRI mapping</ a >
1654
- error has been detected and processing is aborted.</ li >
1647
+ or if it contains a slash (`/`) anywhere:
1648
+ < ol >
1649
+ < li > Set the value associated with < var > defined</ var > 's < var > term</ var > < a > entry</ a > to
1650
+ < code > true</ code > .</ li >
1651
+ < li > If the result of expanding < var > term</ var >
1652
+ using the < a href ="#iri-expansion "> IRI Expansion algorithm</ a > ,
1653
+ passing < var > active context</ var > ,
1654
+ < var > term</ var > for < var > value</ var > ,
1655
+ < code > true</ code > for < var > vocab</ var > ,
1656
+ < var > local context</ var > ,
1657
+ and < var > defined</ var > ,
1658
+ is not the same as the < a > IRI mapping</ a > of < var > definition</ var > ,
1659
+ an < a data-link-for ="JsonLdErrorCode "> invalid IRI mapping</ a >
1660
+ error has been detected and processing is aborted.</ li >
1661
+ </ ol >
1662
+ </ li >
1655
1663
< li class ="changed "> If < var > term</ var > contains neither a colon (`:`) nor a slash (`/`),
1656
1664
< span class ="changed "> < var > simple term</ var > is < code > true</ code > </ span > ,
1657
1665
and if the < a > IRI mapping</ a > of < var > definition</ var >
@@ -6901,6 +6909,10 @@ <h2>Changes since Candidate Release of 12 December 2019</h2>
6901
6909
< a href ="#expansion-algorithm "> Expansion algorithm</ a >
6902
6910
that duplicate the following step.
6903
6911
This is in response to < a href ="https://github.com/w3c/json-ld-api/issues/243 "> Issue 243</ a > .</ li >
6912
+ < li > Updated step < a href ="#ctd-contains-colon "> 16.5</ a > of the
6913
+ < a href ="#create-term-definition "> Create Term Definition algorithm</ a >
6914
+ to prevent an issue where < var > term</ var > might not be defined at the time it is expanded.
6915
+ This is in response to < a href ="https://github.com/w3c/json-ld-api/issues/245 "> Issue 245</ a > .</ li >
6904
6916
</ ul >
6905
6917
</ section >
6906
6918
0 commit comments