Fix IRI Expansion
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Wed, 27 Mar 2013 16:02:20 +0100
changeset 1495 7c2e4abc8728
parent 1494 3b983a4c9a79
child 1496 f6c6aa0cb067
Fix IRI Expansion

See https://github.com/json-ld/json-ld.org/commit/9ccc61e60d0a5dbbb97dd1fd661e154e1f3bb70d#commitcomment-2890510

/cc @dlongley
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Wed Mar 27 15:55:08 2013 +0100
+++ b/spec/latest/json-ld-api/index.html	Wed Mar 27 16:02:20 2013 +0100
@@ -1290,26 +1290,24 @@
                   <i>suffix</i>.</li>
               </ol>
             </li>
+            <li>Return <i>value</i> as it is already an <tref>absolute IRI</tref>.</li>
           </ol>
         </li>
-        <li>Otherwise, if <i>value</i> does not contain a colon (<code>:</code>):
-          <ol class="algorithm">
-            <li>If <i>vocab</i> is <tref>true</tref>, and
-              <tref>active context</tref> has a <tref>vocabulary mapping</tref>,
-              return the result of concatenating the <tref>vocabulary mapping</tref>
-              with <i>value</i>.</li>
-            <li>Otherwise, if <i>document relative</i> is <tref>true</tref>,
-              return the result of resolving <i>value</i> against
-              the <tref>base IRI</tref>. Only the basic algorithm in
-              <cite><a href="http://tools.ietf.org/html/rfc3986#section-5.2">section 5.2</a></cite>
-              of [[!RFC3986]] is used; neither
-              <cite><a href="http://tools.ietf.org/html/rfc3986#section-6.2.2">Syntax-Based Normalization</a></cite> nor
-              <cite><a href="http://tools.ietf.org/html/rfc3986#section-6.2.3">Scheme-Based Normalization</a></cite>
-              are performed. Characters additionally allowed in IRI references are treated
-              in the same way that unreserved characters are treated in URI references, per
-              <cite><a href="http://tools.ietf.org/html/rfc3987#section-6.5">section 6.5</a></cite>
-              of [[!RFC3987]].</li>
-          </ol>
+        <li>If <i>vocab</i> is <tref>true</tref>, and
+          <tref>active context</tref> has a <tref>vocabulary mapping</tref>,
+          return the result of concatenating the <tref>vocabulary mapping</tref>
+          with <i>value</i>.</li>
+        <li>Otherwise, if <i>document relative</i> is <tref>true</tref>,
+          set <i>value</i> to the result of resolving <i>value</i> against
+          the <tref>base IRI</tref>. Only the basic algorithm in
+          <cite><a href="http://tools.ietf.org/html/rfc3986#section-5.2">section 5.2</a></cite>
+          of [[!RFC3986]] is used; neither
+          <cite><a href="http://tools.ietf.org/html/rfc3986#section-6.2.2">Syntax-Based Normalization</a></cite> nor
+          <cite><a href="http://tools.ietf.org/html/rfc3986#section-6.2.3">Scheme-Based Normalization</a></cite>
+          are performed. Characters additionally allowed in IRI references are treated
+          in the same way that unreserved characters are treated in URI references, per
+          <cite><a href="http://tools.ietf.org/html/rfc3987#section-6.5">section 6.5</a></cite>
+          of [[!RFC3987]].</li>
         <li>If <tref>local context</tref> is not <tref>null</tref> and
           <i>value</i> is not an <tref>absolute IRI</tref>, an
           <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-IRI-mapping">invalid IRI mapping</a></code>