@@ -3520,7 +3520,7 @@ <h3>Algorithm</h3>
3520
3520
< a data-lt ="active context "> active context's</ a > < a > vocabulary mapping</ a > .
3521
3521
Try to create a < a > compact IRI</ a > , starting by initializing
3522
3522
< var > compact IRI</ var > to < code > null</ code > . This variable will be used to
3523
- tore the created < a > compact IRI</ a > , if any.</ li >
3523
+ store the created < a > compact IRI</ a > , if any.</ li >
3524
3524
< li > For each key < a > term</ a > and value < a > term definition</ a > in
3525
3525
the < var > active context</ var > :
3526
3526
< ol >
@@ -3547,6 +3547,12 @@ <h3>Algorithm</h3>
3547
3547
</ ol >
3548
3548
</ li >
3549
3549
< li > If < var > compact IRI</ var > is not < code > null</ code > , return < var > compact IRI</ var > .</ li >
3550
+ < li class ="changed "> To ensure that the < a > absolute IRI</ a > < var > var</ var > is
3551
+ not confused with a < a > compact IRI</ a > ,
3552
+ if the < a data-cite ="RFC3986#section-3.1 "> IRI scheme</ a > of < var > var</ var >
3553
+ matches any term in < a > active context</ a > ,
3554
+ an < a data-link-for ="JsonLdErrorCode "> iri confused with prefix</ a > error has been detected,
3555
+ and processing is aborted.</ li >
3550
3556
< li > If < var > vocab</ var > is < code > false</ code > ,
3551
3557
transform < var > var</ var > to a < a > relative IRI</ a > using
3552
3558
the < span class ="changed "> < a > base IRI</ a > from < var > active context</ var > , if it exists</ span > .</ li >
@@ -5921,6 +5927,7 @@ <h4>JsonLdErrorCode</h4>
5921
5927
"invalid value object",
5922
5928
"invalid value object value",
5923
5929
"invalid vocab mapping",
5930
+ "iri confused with prefix",
5924
5931
"keyword redefinition",
5925
5932
"loading document failed",
5926
5933
"loading remote context failed",
@@ -6028,6 +6035,9 @@ <h4>JsonLdErrorCode</h4>
6028
6035
< dt > < dfn > invalid vocab mapping</ dfn > </ dt >
6029
6036
< dd > An invalid < a > vocabulary mapping</ a > has been detected,
6030
6037
i.e., it is neither an < a > IRI</ a > nor < code > null</ code > .</ dd >
6038
+ < dt class ="changed "> iri confused with prefix</ dt >
6039
+ < dd > When compacting an < a > absolute IRI</ a > would result in an < a > absolute IRI</ a >
6040
+ with an < a data-cite ="RFC3986#section-3.1 "> IRI scheme</ a > could be confused with a term.</ dd >
6031
6041
< dt > < dfn > keyword redefinition</ dfn > </ dt >
6032
6042
< dd > A < a > keyword</ a > redefinition has been detected.</ dd >
6033
6043
< dt > < dfn > loading document failed</ dfn > </ dt >
@@ -6194,6 +6204,9 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
6194
6204
This allows a mechanism for documenting the content of a context using HTML.</ li >
6195
6205
< li > Consolidate < a > RemoteDocument</ a > processing into the < a > LoadDocumentCallback</ a >
6196
6206
including variations on HTML processing.</ li >
6207
+ < li > The < a href ="#iri-compaction "> IRI compaction algorithm</ a > may generate an error if the result is an
6208
+ < a > absolute IRI</ a > where the scheme part could be confused with a term in the
6209
+ < a > active context</ a > .</ li >
6197
6210
</ ul >
6198
6211
</ section >
6199
6212
0 commit comments