Skip to content

Commit 9a0c036

Browse files
authored
Merge pull request #483 from json-ld/issue-482
Fix text describing a type map
2 parents 39d069d + b3be78a commit 9a0c036

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spec/latest/json-ld/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,14 +3437,15 @@ <h2>Id Maps</h2>
34373437
<h2>Type Maps</h2>
34383438

34393439
<p>An <a>type map</a> is used to associate an <a>IRI</a> with a value that allows easy
3440-
programatic access. An <a>id map</a> may be used as a term value within a <a>node object</a> if the <a>term</a>
3441-
is defined with <code>@container</code> set to <code>@id</code>. The keys of an <a>id map</a> MUST be <a>IRIs</a>
3440+
programatic access. A <a>type map</a> may be used as a term value within a <a>node object</a> if the <a>term</a>
3441+
is defined with <code>@container</code> set to <code>@type</code>. The keys of a <a>type map</a> MUST be <a>IRIs</a>
34423442
(<a>relative IRI</a>, <a>compact IRI</a> (including <a>blank node identifiers</a>), or <a>absolute IRI</a>)
34433443
and the values MUST be <a>node objects</a>.</p>
34443444

3445-
<p>If the value contains a property expanding to <code>@id</code>, it's value MUST
3446-
be equivalent to the referencing key. Otherwise, the property from the value is used as
3447-
the <code>@id</code> of the <a>node object</a> value when expanding.</p>
3445+
<p>If the value contains a property expanding to <code>@type</code>, and it's value
3446+
is contains the referencing key after suitable expansion of both the referencing key
3447+
and the value, then the <a>node object</a> already contains the type. Otherwise, the property from the value is
3448+
added as a <code>@type</code> of the <a>node object</a> value when expanding.</p>
34483449
</section>
34493450

34503451
<section class="changed">

0 commit comments

Comments
 (0)