Update value compaction algorithm to account for compacting the value of @id, even if the active property is not subject to @id coercion.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Tue, 03 Jan 2012 18:24:31 -0800
changeset 309 562b8d75a4a0
parent 308 c38887cddb2d
child 310 3b669cefb5c1
Update value compaction algorithm to account for compacting the value of @id, even if the active property is not subject to @id coercion.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Tue Jan 03 10:18:19 2012 -0800
+++ b/spec/latest/json-ld-api/index.html	Tue Jan 03 18:24:31 2012 -0800
@@ -608,7 +608,7 @@
           <dt>INVALID_SYNTAX</dt>
           <dd>A general syntax error was detected in the <code>@context</code>.
             For example, if a <code>@type</code> key maps to anything other than
-            a string or an array of strings, this exception would be raised.</dd>
+            <code>@id</code> or an absolute IRI, this exception would be raised.</dd>
           <dt>LOAD_ERROR</dt>
           <dd>There was a problem encountered loading a remote context.</dd>
         </dl>
@@ -936,11 +936,14 @@
           value is the value associated with the <code>@literal</code> key.</li>
       </ol>
     </li>
+    <li>Otherwise, if <em>value</em> contains an <code>@id</code> key, the compacted value is <em>value</em> with
+      the value of <code>@id</code> processed according to the
+      <a href="#iri-compaction">IRI Compaction</a> steps.</li>
     <li>Otherwise, if the <tref>active context</tref> contains a <code>@language</code>, which
       matches the <code>@language</code> of the value, or the value has only a <code>@literal</code> key, the compacted
       value is the value associated with the <code>@literal</code> key.</li>
     <li>Otherwise, if the value contains a <code>@type</code> key, the compacted value
-      is the value with the <code>@type</code> value processed according to the
+      is <em>value</em> with the <code>@type</code> value processed according to the
       <a href="#iri-compaction">IRI Compaction</a> steps.</li>
     <li>Otherwise, the value is not modified.</li>
   </ol>