Skip to content

Fix indentation on context processing algorithm (§3.3) #62

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
Jan 18, 2012
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
60 changes: 30 additions & 30 deletions spec/latest/json-ld-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -789,41 +789,41 @@ <h2 id="context">Context</h2>
<li>Merge the of <tref>local context</tref> into the <tref>active context</tref>.</li>
</ol>
</li>
</ol>
</li>
<li>If <em>value</em> is a <tref>JSON object</tref>, perform the following steps:
<ol class="algorithm">
<li>If <em>value</em> has a <code>@language</code> key, it MUST have a value of a
simple <tref>string</tref> or <code>null</code>. Add the language to the <tref>local context</tref>.</li>
<li>Otherwise, for each key in <em>value</em> having the lexical form of <cite><a
href="http://www.w3.org/TR/2009/REC-xml-names-20091208/#NT-NCName">NCName</a></cite> (see [[XML-NAMES]]),
or is an empty string,
<li>If <em>value</em> is a <tref>JSON object</tref>, perform the following steps:
<ol class="algorithm">
<li>If the key's value is a simple <tref>string</tref>, the value MUST have the form of
<tref>term</tref>, <tref>prefix</tref>:suffix, absolute IRI. Determine the IRI mapping value by
performing <a href="#iri-expansion">IRI Expansion</a> on the associated value. If the result of the IRI
mapping is an absolute IRI, merge the key-value pair into the <tref>local context</tref>
<tref>term mapping</tref>.</li>
<li id="object-context">Otherwise, the key's value MUST be a <tref>JSON object</tref>.
<li>If <em>value</em> has a <code>@language</code> key, it MUST have a value of a
simple <tref>string</tref> or <code>null</code>. Add the language to the <tref>local context</tref>.</li>
<li>Otherwise, for each key in <em>value</em> having the lexical form of <cite><a
href="http://www.w3.org/TR/2009/REC-xml-names-20091208/#NT-NCName">NCName</a></cite> (see [[XML-NAMES]]),
or is an empty string,
<ol class="algorithm">
<li>The value MUST have a <code>@id</code> key with a string value, the value MUST have the
form of <tref>term</tref>, <tref>prefix</tref>:suffix, absolute IRI. Determine the IRI mapping value
by performing <a href="#iri-expansion">IRI Expansion</a> on the associated value. If the result of
the IRI mapping is an absolute IRI, merge the key-value pair into the <tref>local context</tref>
<li>If the key's value is a simple <tref>string</tref>, the value MUST have the form of
<tref>term</tref>, <tref>prefix</tref>:suffix, absolute IRI. Determine the IRI mapping value by
performing <a href="#iri-expansion">IRI Expansion</a> on the associated value. If the result of the IRI
mapping is an absolute IRI, merge the key-value pair into the <tref>local context</tref>
<tref>term mapping</tref>.</li>
<li>If the value has a <code>@type</code> key, the value MUST have the form of <tref>term</tref>,
<tref>prefix</tref>:suffix, absolute IRI or the <tref>keyword</tref> <code>@id</code>. Determine the IRI by
performing <a href="#iri-expansion">IRI Expansion</a> on the associated value. If the result of the
IRI mapping is an absolute IRI or <code>@id</code>, merge into the <tref>local context</tref>
<tref>coercion mapping</tref>.</li>
<li>If the value has a <code>@list</code> key, the value MUST be
<code>true</code> or <code>false</code>. Merge into the <tref>local context</tref> <tref>list
mapping</tref>.</li>
<li id="object-context">Otherwise, the key's value MUST be a <tref>JSON object</tref>.
<ol class="algorithm">
<li>The value MUST have a <code>@id</code> key with a string value, the value MUST have the
form of <tref>term</tref>, <tref>prefix</tref>:suffix, absolute IRI. Determine the IRI mapping value
by performing <a href="#iri-expansion">IRI Expansion</a> on the associated value. If the result of
the IRI mapping is an absolute IRI, merge the key-value pair into the <tref>local context</tref>
<tref>term mapping</tref>.</li>
<li>If the value has a <code>@type</code> key, the value MUST have the form of <tref>term</tref>,
<tref>prefix</tref>:suffix, absolute IRI or the <tref>keyword</tref> <code>@id</code>. Determine the IRI by
performing <a href="#iri-expansion">IRI Expansion</a> on the associated value. If the result of the
IRI mapping is an absolute IRI or <code>@id</code>, merge into the <tref>local context</tref>
<tref>coercion mapping</tref>.</li>
<li>If the value has a <code>@list</code> key, the value MUST be
<code>true</code> or <code>false</code>. Merge into the <tref>local context</tref> <tref>list
mapping</tref>.</li>
</ol>
</li>
<li>Merge the <tref>local context</tref> into the <tref>active context</tref>.</li>
<li>Repeat <a href="#object-context">Step 3.2</a> until no entries are added to the <tref>local
context</tref>.</li>
</ol>
</li>
<li>Merge the <tref>local context</tref> into the <tref>active context</tref>.</li>
<li>Repeat <a href="#object-context">Step 3.2</a> until no entries are added to the <tref>local
context</tref>.</li>
</ol>
</li>
</ol>
Expand Down