Skip to content

Commit 027da28

Browse files
pchampingkellogg
authored andcommitted
add clarification to IRI compaction
relative IRIs that have the form of the keyword must not be generated; in order to avoid this, it is suggested to prepend them with ./
1 parent ee53b08 commit 027da28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4254,7 +4254,11 @@ <h3>Algorithm</h3>
42544254
and processing is aborted.</li>
42554255
<li>If <var>vocab</var> is <code>false</code>,
42564256
transform <var>var</var> to a <a>relative IRI reference</a> using
4257-
the <span class="changed"><a data-lt="context-base-iri">base IRI</a> from <var>active context</var>, if it exists</span>.</li>
4257+
the <span class="changed"><a data-lt="context-base-iri">base IRI</a> from <var>active context</var>, if it exists</span>.
4258+
<span class="changed">To avoid confusion with a <a>keyword</a>, if <var>var</var> has the form of a keyword
4259+
(i.e., it matches the ABNF rule `"@"1*ALPHA` from [[RFC5234]]),
4260+
prepend to it a colon followed by a a slash (`./`).</span>
4261+
</li>
42584262
<li>Finally, return <var>var</var> as is.</li>
42594263
</ol>
42604264
</section>
@@ -7100,6 +7104,7 @@ <h2>Changes since Recommendation of 16 July 2020</h2>
71007104
<li>Regenerated definition list, which does not attempt to filter out unused definitions.</li>
71017105
<li>Changed obsolete use of `void` in WebIDL to `undefined`.</li>
71027106
<li>Added some clarifications to the algorithm of <a href="#node-map-generation"></a>.</li>
7107+
<li>Added some clarifications to the algorithm of <a href="#iri-compaction"></a>.</li>
71037108
</ul>
71047109
</section>
71057110
<section id="ack"

0 commit comments

Comments
 (0)