Throw exception when multiple lists are found for a single property
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 29 Mar 2012 22:15:19 +0800
changeset 425 f405fea398ec
parent 424 0f4a450bbebe
child 426 e4e38c3475f9
Throw exception when multiple lists are found for a single property

Whether we just support one list per property or multiple is currently being discussed as part of issue #92. Gregg already modified the algorithm in 256734bb2cf53b74f68dea842f64b74296cacb99 to just support one. This might need to be reverted.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Wed Mar 28 19:19:22 2012 -0700
+++ b/spec/latest/json-ld-api/index.html	Thu Mar 29 22:15:19 2012 +0800
@@ -1206,7 +1206,10 @@
             recursively using this algorithm, passing copies of the <tref>active context</tref> and
             <tref>active property</tref> removing all <tref>null</tref> entries.
             Add an entry in the output object for <em>expanded property</em> with value and continue to the
-            next entry in <em>element</em>.</li>
+            next entry in <em>element</em>.
+            If the output object already has a value for <em>expanded property</em>, throw an exception.
+            <p class="issue">This is currently being discussed in <a href="https://github.com/json-ld/json-ld.org/issues/92">ISSUE 92</a></p>
+          </li>
           <li>If the <em>expanded property</em> is <code>@id</code> and the <em>value</em>
             is a <tref>string</tref>, expand the value according to
             <a href="#iri-expansion">IRI Expansion</a>.</li>