Add step to expand to @id when @type is @vocab.
authorDave Longley <dlongley@digitalbazaar.com>
Wed, 13 Feb 2013 16:57:34 -0500
changeset 1247 2951c40f2f39
parent 1246 0deaf18a4021
child 1248 df637d65076c
Add step to expand to @id when @type is @vocab.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Wed Feb 13 15:46:54 2013 -0500
+++ b/spec/latest/json-ld-api/index.html	Wed Feb 13 16:57:34 2013 -0500
@@ -2097,11 +2097,11 @@
 <p>
 Next, we check to see if <tref>active property</tref> has a
 <tref>type mapping</tref> in the <tref>active context</tref> that would alter
-what we return. If it has one that is <code>@type</code> or if the
-<em>expanded property</em> is <code>@graph</code> then we return
-a <tref>JSON object</tref> with a single key-pair of <code>@id</code>
-and the result of using the <a href="#iri-expansion">IRI Expansion</a>
-algorithm on <em>value</em>.
+what we return. If it has one that is <code>@vocab</code> or
+<code>@type</code> or if the <em>expanded property</em> is <code>@graph</code>
+then we return a <tref>JSON object</tref> with a single key-pair of
+<code>@id</code> and the result of using the
+<a href="#iri-expansion">IRI Expansion</a> algorithm on <em>value</em>.
 </p>
 
 <p>
@@ -2166,6 +2166,17 @@
     <em>documentRelative</em>.
   </li>
   <li>
+    If <tref>active property</tref> has a <tref>type mapping</tref> in
+    <tref>active context</tref> that is <code>@vocab</code>, then return
+    a new <tref>JSON object</tref> containing a single key-value pair
+    where the key is <code>@id</code> and the value is the result of
+    using the
+    <a href="#iri-expansion">IRI Expansion</a> algorithm, passing
+    <tref>active context</tref>, <em>value</em>, <tref>true</tref> for
+    <em>vocabRelative</em>, and <tref>true</tref> for
+    <em>documentRelative</em>.
+  </li>
+  <li>
     If <em>expanded property</em> is a <tref>keyword</tref> return
     <em>value</em> as is.
   </li>