Handle reverse properties first in IRI Compaction
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 11 Mar 2013 17:25:00 +0100
changeset 1401 91ae1417d007
parent 1400 827bcf840dea
child 1402 3246f890906e
Handle reverse properties first in IRI Compaction
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Mon Mar 11 17:13:49 2013 +0100
+++ b/spec/latest/json-ld-api/index.html	Mon Mar 11 17:25:00 2013 +0100
@@ -2533,7 +2533,10 @@
               variables will keep track of the preferred
               <tref>type mapping</tref> or <tref>language mapping</tref> for
               a <tref>term</tref>, based on what is compatible with <em>value</em>.</li>
-            <li>If <em>value</em> is a <tref>list object</tref>, then set
+            <li>If <em>reverse</em> is <tref>true</tref>, set <em>typeOrLanguage</em>
+              to <code>@type</code>, <em>typeOrLanguageValue</em> to
+              <code>@reverse</code>, and append <code>@set</code> to <em>containers</em>.</li>
+            <li>Otherwise, if <em>value</em> is a <tref>list object</tref>, then set
               <em>typeOrLanguage</em> and <em>typeOrLanguageValue</em>
               to the most specific values that work for all items in
               the list as follows:
@@ -2613,9 +2616,6 @@
                 <li>Append <code>@set</code> to <em>containers</em>.</li>
               </ol>
             </li>
-            <li>If <em>reverse</em> is <tref>true</tref>, set <em>typeOrLanguage</em>
-              to <code>@type</code> and  <em>typeOrLanguageValue</em> to
-              <code>@reverse</code>.</li>
             <li>Append <code>@none</code> to <em>containers</em>. This represents
               the non-existence of a <tref>container mapping</tref>, and it will
               be the last <tref>container mapping</tref> value to be checked as it