Return error value as specified in the error-0023 test
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 05 Sep 2013 20:42:25 +0200
changeset 1977 0bf82ad0cb88
parent 1976 3e2a23e8c3eb
child 1978 792bcc17d3ab
Return error value as specified in the error-0023 test

See https://github.com/json-ld/json-ld.org/commit/861a4f3759779c33362b0023140afebdde78eb89#commitcomment-4018113

/cc @gkellogg @dlongley
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Thu Sep 05 11:53:40 2013 +0200
+++ b/spec/latest/json-ld-api/index.html	Thu Sep 05 20:42:25 2013 +0200
@@ -1201,7 +1201,10 @@
               <i>value</i>, <tref>true</tref> for <i>vocab</i>,
               <tref>false</tref> for <i>document relative</i>,
               <tref>local context</tref>, and <i>defined</i>. If the resulting
-              <tref>IRI mapping</tref> equals <code>@context</code>, an
+              <tref>IRI mapping</tref> is neither a <tref>keyword</tref>, nor an
+              <tref>absolute IRI</tref>, nor a <tref>blank node identifier</tref>, an
+              <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-IRI-mapping">invalid IRI mapping</a></code>
+              error has been detected and processing is aborted; if it equals <code>@context</code>, an
               <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-keyword-alias">invalid keyword alias</a></code>
               error has been detected and processing is aborted.</li>
           </ol>
@@ -1382,11 +1385,7 @@
           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>
-          error has been detected and processing is aborted.</li>
-        <li>Otherwise, return <i>value</i> as is.</li>
+        <li>Return <i>value</i> as is.</li>
       </ol>
     </section>
   </section> <!-- end of IRI Expansion -->