Checks for colons not only accept absolute IRIs but also bnode IDs
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 05 Sep 2013 11:53:40 +0200
changeset 1976 3e2a23e8c3eb
parent 1975 7436af69dc79
child 1977 0bf82ad0cb88
Checks for colons not only accept absolute IRIs but also bnode IDs

We often look for a colon in a string to determine whether it is an absolute IRI or blank node identifier. In a couple of cases, we only mentioned absolute IRI. This change also explicitly mentions "blank node identifier" in those cases.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Wed Sep 04 17:45:50 2013 -0700
+++ b/spec/latest/json-ld-api/index.html	Thu Sep 05 11:53:40 2013 +0200
@@ -1168,8 +1168,8 @@
               the <code>@reverse</code> key for <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 result
-              is not an <tref>absolute IRI</tref>, i.e., it contains no
-              colon (<code>:</code>), an
+              is neither an <tref>absolute IRI</tref> nor a <tref>blank node identifier</tref>,
+              i.e., it contains no colon (<code>:</code>), 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>If <i>value</i> contains an <code>@container</code> member,
@@ -1219,8 +1219,9 @@
               the <tref>IRI mapping</tref> of <i>definition</i> to the result of
               concatenating the value associated with the <tref>prefix</tref>'s
               <tref>IRI mapping</tref> and the <i>term</i>'s <i>suffix</i>.</li>
-            <li>Otherwise, <i>term</i> is an <tref>absolute IRI</tref>. Set the
-              <tref>IRI mapping</tref> of <i>definition</i> to <i>term</i>.</li>
+            <li>Otherwise, <i>term</i> is an <tref>absolute IRI</tref> or
+              <tref>blank node identifier</tref>. Set the <tref>IRI mapping</tref>
+              of <i>definition</i> to <i>term</i>.</li>
           </ol>
         </li>
         <li>Otherwise, if <tref>active context</tref> has a
@@ -1339,7 +1340,8 @@
           <tref>active context</tref> has a <tref>term definition</tref> for
           <i>value</i>, return the associated <tref>IRI mapping</tref>.</li>
         <li>If <i>value</i> contains a colon (<code>:</code>), it is either
-          an <tref>absolute IRI</tref> or a <tref>compact IRI</tref>:
+          an <tref>absolute IRI</tref>, a <tref>compact IRI</tref>, or a
+          <tref>blank node identifier</tref>:
           <ol class="algorithm">
             <li>Split <i>value</i> into a <tref>prefix</tref> and <i>suffix</i>
               at the first occurrence of a colon (<code>:</code>).</li>