Add check for default language before compacting value.
authorDave Longley <dlongley@digitalbazaar.com>
Tue, 12 Jun 2012 20:24:35 -0400
changeset 711 b5056983d71b
parent 710 c7c48d4f36f3
child 712 19e58f174ea4
Add check for default language before compacting value.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Tue Jun 12 08:19:34 2012 -0700
+++ b/spec/latest/json-ld-api/index.html	Tue Jun 12 20:24:35 2012 -0400
@@ -1468,8 +1468,8 @@
   <p>The algorithm for compacting an expanded value <em>value</em> takes an <tref>active property</tref>
     and <tref>active context</tref>. It is implemented as follows:</p>
   <ol class="algorithm">
-    <li>If <em>value</em> only has one property, then the compacted value is the value
-      of <code>@value</code>.</li>
+    <li>If <em>value</em> only has one property and the <tref>active context</tref> has no default language,
+      then the compacted value is the value of <code>@value</code>.</li>
     <li>Otherwise, if <tref>active property</tref> is <code>@graph</code>, the compacted value is the
       value associated with the <code>@id</code> key, processed according to
       the <a href="#iri-compaction">IRI Compaction</a> steps.</li>