Skip to content

Add caveat on numbers being represented as double #161

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 3 commits into from
Apr 18, 2019
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion common/extract-examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def dataset_to_table(repo)

File.open(input, "r") do |f|
doc = Nokogiri::HTML.parse(f.read)
doc.css(".example, .illegal-example").each do |element|
doc.css(".example").each do |element|
error = nil
warn = nil
example_number += 1 if %w(pre aside).include?(element.name)
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10291,8 +10291,10 @@ <h1>Data Model</h1>
the scope of a <a>JSON-LD document</a>. Blank node identifiers begin with
<code>_:</code>.</li>
<li>A <a>JSON-LD value</a> is a <a>typed value</a>, a <a>string</a> (which is interpreted
as <a>typed value</a> with type <code>xsd:string</code>), a <a>number</a>
as a <a>typed value</a> with type <code>xsd:string</code>), a <a>number</a>
(<a>numbers</a> with a non-zero fractional part, i.e., the result of a modulo&#8209;1 operation,
<span class="changed">or which are too large to represent as integers
(see <a data-cite="JSON-LD11-API#data-gound-tripping">Data Round Tripping</a>) in [[JSON-LD11-API]]),</span>
are interpreted as <a>typed values</a> with type <code>xsd:double</code>, all other
<a>numbers</a> are interpreted as <a>typed values</a>
with type <code>xsd:integer</code>), <a>true</a> or <a>false</a> (which are interpreted as
Expand Down