@@ -3516,7 +3516,7 @@ <h3>Algorithm</h3>
3516
3516
< a data-lt ="active context "> active context's</ a > < a > vocabulary mapping</ a > .
3517
3517
Try to create a < a > compact IRI</ a > , starting by initializing
3518
3518
< var > compact IRI</ var > to < code > null</ code > . This variable will be used to
3519
- tore the created < a > compact IRI</ a > , if any.</ li >
3519
+ store the created < a > compact IRI</ a > , if any.</ li >
3520
3520
< li > For each key < a > term</ a > and value < a > term definition</ a > in
3521
3521
the < var > active context</ var > :
3522
3522
< ol >
@@ -3543,6 +3543,12 @@ <h3>Algorithm</h3>
3543
3543
</ ol >
3544
3544
</ li >
3545
3545
< li > If < var > compact IRI</ var > is not < code > null</ code > , return < var > compact IRI</ var > .</ li >
3546
+ < li class ="changed "> To ensure that the < a > absolute IRI</ a > < var > var</ var > is
3547
+ not confused with a < a > compact IRI</ a > ,
3548
+ if the < a data-cite ="RFC3986#section-3.1 "> IRI scheme</ a > of < var > var</ var >
3549
+ matches any term in < a > active context</ a > ,
3550
+ an < a data-link-for ="JsonLdErrorCode "> iri confused with prefix</ a > error has been detected,
3551
+ and processing is aborted.</ li >
3546
3552
< li > If < var > vocab</ var > is < code > false</ code > ,
3547
3553
transform < var > var</ var > to a < a > relative IRI</ a > using
3548
3554
the < span class ="changed "> < a > base IRI</ a > from < var > active context</ var > , if it exists</ span > .</ li >
@@ -5917,6 +5923,7 @@ <h4>JsonLdErrorCode</h4>
5917
5923
"invalid value object",
5918
5924
"invalid value object value",
5919
5925
"invalid vocab mapping",
5926
+ "iri confused with prefix",
5920
5927
"keyword redefinition",
5921
5928
"loading document failed",
5922
5929
"loading remote context failed",
@@ -6024,6 +6031,9 @@ <h4>JsonLdErrorCode</h4>
6024
6031
< dt > < dfn > invalid vocab mapping</ dfn > </ dt >
6025
6032
< dd > An invalid < a > vocabulary mapping</ a > has been detected,
6026
6033
i.e., it is neither an < a > IRI</ a > nor < code > null</ code > .</ dd >
6034
+ < dt class ="changed "> iri confused with prefix</ dt >
6035
+ < dd > When compacting an < a > absolute IRI</ a > would result in an < a > absolute IRI</ a >
6036
+ with an < a data-cite ="RFC3986#section-3.1 "> IRI scheme</ a > could be confused with a term.</ dd >
6027
6037
< dt > < dfn > keyword redefinition</ dfn > </ dt >
6028
6038
< dd > A < a > keyword</ a > redefinition has been detected.</ dd >
6029
6039
< dt > < dfn > loading document failed</ dfn > </ dt >
@@ -6190,6 +6200,9 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
6190
6200
This allows a mechanism for documenting the content of a context using HTML.</ li >
6191
6201
< li > Consolidate < a > RemoteDocument</ a > processing into the < a > LoadDocumentCallback</ a >
6192
6202
including variations on HTML processing.</ li >
6203
+ < li > The < a href ="#iri-compaction "> IRI compaction algorithm</ a > may generate an error if the result is an
6204
+ < a > absolute IRI</ a > where the scheme part could be confused with a term in the
6205
+ < a > active context</ a > .</ li >
6193
6206
</ ul >
6194
6207
</ section >
6195
6208
0 commit comments