Add @list processing to expansion algorithm
authorMarkus Lanthaler <>
Thu, 29 Mar 2012 01:39:35 +0800
changeset 420 48f2d6281c85
parent 419 af2af234c176
child 421 4c24a93a8cd8
Add @list processing to expansion algorithm
--- a/spec/latest/json-ld-api/index.html	Thu Mar 29 01:28:59 2012 +0800
+++ b/spec/latest/json-ld-api/index.html	Thu Mar 29 01:39:35 2012 +0800
@@ -1201,6 +1201,9 @@
             <code>@value</code> property, replace <em>value</em> with an array whose only value is the expanded <em>value</em>.</li>
           <li>Otherwise, if the <em>property</em> is <code>@type</code> and the <em>value</em> is an <tref>array</tref>,
             expand every item according to <a href="#iri-expansion">IRI Expansion</a>.</li>
+          <li>Otherwise, if the <em>property</em> is <code>@list</code> and the <em>value</em> is not an array, wrap <em>value</em> in an array.
+            Process each item of <em>value</em> recursively using this algorithm, passing copies of the <tref>active context</tref> and
+            <tref>active property</tref> removing all items that equal to <tref>null</tref>.</li>
           <li>Otherwise, if the <em>property</em> is <code>@value</code>, the value is not subject to further expansion.</li>
           <li>Otherwise, if the <em>property</em> has a <tref>term mapping</tref> or has the form of an <tref>compact IRI</tref>
             or <tref>absolute IRI</tref>, expand the <em>property</em> according to the <a href="#iri-expansion">IRI Expansion</a>