diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..e3f4af32 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# JetBrains IDEs +.idea/ diff --git a/index.html b/index.html index f860ab89..911a9481 100644 --- a/index.html +++ b/index.html @@ -284,6 +284,48 @@ text-decoration: none; color: #666; } + + table.simple { + border-collapse: collapse; + width: 100%; + font-size: 14px; + } + + table.simple th, + table.simple td { + border: 1px solid #ddd; + padding: 8px; + vertical-align: top; /* Align text to the top */ + } + + table.simple th { + background-color: #f2f2f2; /* Light gray for headers */ + font-weight: bold; + text-align: left; + } + + table.simple tr:nth-child(even) { + background-color: #f9f9f9; /* Alternating row colors */ + } + + table.simple tr:hover { + background-color: #e9e9e9; /* Highlight on hover */ + } + + table.simple a { + color: #1a73e8; /* Make links a visible color */ + text-decoration: none; + } + + table.simple a:hover { + text-decoration: underline; + } + + table.simple td.error { + background-color: #FFA500; + color: #000; + font-weight: bold; + } @@ -5156,17 +5198,89 @@
true
,
- RDF literals with a
- datatype IRI
- that equals xsd:integer
or xsd:double
are converted
- to a JSON numbers and RDF literals
- with a datatype IRI
- that equals xsd:boolean
are converted to true
or
- false
based on their
- lexical form
- as described in
- .
+
+ If the useNativeTypes flag is set
+ to true
, RDF literals are converted to JSON values
+ based on their datatype IRI and lexical form, as described
+ in .
+
+
+ RDF datatype | +RDF Literal | +JSON | +
---|---|---|
xsd:string |
+ An RDF string literal | +JSON string literal | +
xsd:integer |
+ Whole number in the [-253 + 1, 253 + 1] range, representable as per [[IEEE-754-2008]] |
+ JSON Number | +
Whole number out of that range | +JSON string literal | +|
Any other value | +Throw invalid JSON literal | +|
xsd:double |
+ Real number in the [-253 + 1, 253 + 1] range, representable as per [[IEEE-754-2008]] |
+ JSON Number | +
Real number out of that range | +JSON string literal | +|
+ Non-numeric values:
+
+
|
+ Throw invalid JSON literal | +|
Any other value | +||
xsd:boolean |
+ true |
+ true |
+
false |
+ false |
+ |
Any other value | +Throw invalid JSON literal | +
Unless the useRdfType flag is set to true, rdf:type
predicates will be serialized as @type
as long as the associated object is
either an IRI or blank node identifier.
xsd:double
and its
lexical form
is a valid xsd:integer
or xsd:double
- according [[XMLSCHEMA11-2]], set converted value
+ according to [[XMLSCHEMA11-2]], and if it is a numeric value
+ conformant to [[IEEE-754-2008]], then set converted value
to the result of converting the
lexical form
- to a JSON number.
+ to a JSON number.
+
+ "+INF"^^xsd:double
, an
+ invalid JSON literal
+ error has been detected and processing is aborted.
+