Specified that JsonLdContext can also be arrays.
authorManu Sporny <msporny@digitalbazaar.com>
Sat, 20 Jul 2013 17:10:52 -0400
changeset 1792 2eec17f7f1a7
parent 1790 e8581d0c27f4
child 1793 9e1a5948a829
Specified that JsonLdContext can also be arrays.

Related to #245.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Sat Jul 20 16:44:48 2013 -0400
+++ b/spec/latest/json-ld-api/index.html	Sat Jul 20 17:10:52 2013 -0400
@@ -3833,8 +3833,10 @@
            <dd>The JSON-LD object or array of JSON-LD objects to perform the compaction upon or an
             <tref>IRI</tref> referencing the JSON-LD document to compact.</dd>
           <dt>JsonLdContext context</dt>
-          <dd>The context to use when compacting the <code>input</code>; either in the
-            form of a <tref>JSON object</tref> or as <tref>IRI</tref>.</dd>
+          <dd>The context to use when compacting the <code>input</code>; 
+            it can be specified by using a <tref>JSON object</tref>, an 
+            <tref>IRI</tref>, or an array consisting of 
+            <tref>JSON object</tref>s and <tref>IRI</tref>s.</dd>
           <dt>optional JsonLdOptions options</dt>
           <dd>A set of options to configure the algorithms. This allows, e.g.,
             to set the input document's base <tref>IRI</tref>.</dd>
@@ -3940,8 +3942,10 @@
            <dd>The JSON-LD object or array of JSON-LD objects or an <tref>IRI</tref>
             referencing the JSON-LD document to flatten.</dd>
           <dt>optional JsonLdContext? context</dt>
-          <dd>The context to use when compacting the flattened <code>input</code>; either
-            in the form of a <tref>JSON object</tref> or as <tref>IRI</tref>. If not
+          <dd>The context to use when compacting the flattened <code>input</code>;
+            it can be specified by using a <tref>JSON object</tref>, an 
+            <tref>IRI</tref>, or an array consisting of <tref>JSON object</tref>s 
+            and <tref>IRI</tref>s.</dd> If not
             passed or <tref>null</tref> is passed, the result will not be compacted
             but kept in expanded form.</dd>
           <dt>optional JsonLdOptions options</dt>
@@ -3951,9 +3955,11 @@
       </dd>
     </dl>
 
-    <div class='idl' title='typedef (object or DOMString) JsonLdContext'>
-      <p>The identifier <a>JsonLdContext</a> is used to refer to the
-        <span class="idlTypedefType">(object or DOMString)</span> type.</p>
+    <div class='idl' title='typedef (object or DOMString or (object or DOMString)[]) JsonLdContext'>
+      <p>The <a>JsonLdContext</a> type is used to refer to a value that
+      that may be a <tref>JSON object</tref>, an <tref>IRI</tref>, or an
+      array of <tref>JSON object</tref>s and <tref>IRI</tref>s.
+      </p>
     </div>
   </section> <!-- end of JsonLdProcessor -->