Skip to content

Commit fd224e1

Browse files
Add 2.4.4 & 2.4.5 sections in Algorithm chapter
1 parent 2f34954 commit fd224e1

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

index.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5202,7 +5202,7 @@ <h3>Overview</h3>
52025202
If the <a data-link-for="JsonLdOptions">useNativeTypes</a> flag is set
52035203
to <code>true</code>, <a>RDF literals</a> are converted to JSON values
52045204
based on their <a>datatype IRI</a> and <a>lexical form</a> as described
5205-
in <a class="sectionRef" href="#data-round-tripping"></a>.
5205+
in <a class="sectionRef" href="#algorithm"></a>.
52065206
</p>
52075207

52085208
<table class="simple">
@@ -5591,10 +5591,24 @@ <h3>Algorithm</h3>
55915591
<code>xsd:double</code> and its
55925592
<a>lexical form</a>
55935593
is a valid <code>xsd:integer</code> or <code>xsd:double</code>
5594-
according [[XMLSCHEMA11-2]], set <var>converted value</var>
5594+
according to [[XMLSCHEMA11-2]], and if it is a numeric value
5595+
conformant to [[IEEE-754-2008]], then set <var>converted value</var>
55955596
to the result of converting the
55965597
<a>lexical form</a>
5597-
to a JSON <a>number</a>.</li>
5598+
to a JSON <a>number</a>.
5599+
</li>
5600+
<li>
5601+
Otherwise, if <a>lexical form</a> expresses a numerical value
5602+
outside of the range mandated by [[IEEE-754-2008]], then set
5603+
<var>converted value</var> to a JSON string literal containing
5604+
said lexical form.
5605+
</li>
5606+
<li>
5607+
Otherwise, if <a>lexical form</a> expresses a non-numeric value,
5608+
such as <code>"+INF"^^xsd:double</code>, an
5609+
<a data-link-for="JsonLdErrorCode">invalid JSON literal</a>
5610+
error has been detected and processing is aborted.
5611+
</li>
55985612
</ol>
55995613
</li>
56005614
<li class="changed">Otherwise, if <a>processing mode</a> is not `json-ld-1.0`,

0 commit comments

Comments
 (0)