Add context parameter to frame() API call
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 16 Aug 2012 17:43:06 +0200
changeset 811 207f61cbd25c
parent 810 72b67f09cacf
child 812 004fddff90d2
Add context parameter to frame() API call

There's a context parameter in the expand() as well as in the flatten() API call so there should also be one in frame(). I'm not sure about compact() though as that might cause confusion.
spec/latest/json-ld-framing/index.html
--- a/spec/latest/json-ld-framing/index.html	Thu Aug 16 16:47:59 2012 +0200
+++ b/spec/latest/json-ld-framing/index.html	Thu Aug 16 17:43:06 2012 +0200
@@ -467,6 +467,9 @@
           <dt>object or IRI frame</dt>
           <dd>The frame to use when re-arranging the data of <code>input</code>; either
             in the form of an <tref>JSON object</tref> or as <tref>IRI</tref>.</dd>
+          <dt>object or IRI? context</dt>
+          <dd>An optional external context to use additionally to the context embedded in
+            <code>input</code> when expanding the <code>input</code>.</dd>
           <dt>JsonLdCallback callback</dt>
           <dd>A callback that is called when processing is complete on
             the given <code>input</code>.</dd>