You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the RDF to Object conversion algorithm, when the flag useNativeTypes is true, literals of type xsd:boolean, xsd:integer and xsd:double are converted (when possible) to the corresponding JSON value.
Otherwise, if the datatype IRI of value equals xsd:boolean, set converted value to true if the lexical form of value matches "true" or "1", or to false if it matches "false" or "0". If it matches neither, set type to xsd:boolean.
(NB: I also added quotes around the lexical values for clarity)
The text was updated successfully, but these errors were encountered:
In the RDF to Object conversion algorithm, when the flag
useNativeTypes
is true, literals of typexsd:boolean
,xsd:integer
andxsd:double
are converted (when possible) to the corresponding JSON value.Since
1
and0
are both part of the lexical space ofxsd:boolean
, it would make sense to recognize them in step 2.4.2 of the RDF to Object conversion algorithm, rewording it as follows:xsd:boolean
, set converted value totrue
if the lexical form of value matches"true"
or"1"
, or to false if it matches"false"
or"0"
. If it matches neither, set type toxsd:boolean
.(NB: I also added quotes around the lexical values for clarity)
The text was updated successfully, but these errors were encountered: