Skip to content

Fix text describing a type map #483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions spec/latest/json-ld/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3437,14 +3437,15 @@ <h2>Id Maps</h2>
<h2>Type Maps</h2>

<p>An <a>type map</a> is used to associate an <a>IRI</a> with a value that allows easy
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>
is defined with <code>@container</code> set to <code>@id</code>. The keys of an <a>id map</a> MUST be <a>IRIs</a>
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>
is defined with <code>@container</code> set to <code>@type</code>. The keys of a <a>type map</a> MUST be <a>IRIs</a>
(<a>relative IRI</a>, <a>compact IRI</a> (including <a>blank node identifiers</a>), or <a>absolute IRI</a>)
and the values MUST be <a>node objects</a>.</p>

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

<section class="changed">
Expand Down