-
Notifications
You must be signed in to change notification settings - Fork 32
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
blind spot in RDF to object conversion #555
Comments
We should probably be using logic from JCS for dividing these different forms. |
Sorry, what do you mean by "JCS"? |
JSON Canonicalization, which we use when serializing JSON literals |
ah... thanks JCS Appendix D. Dealing with Big Numbers says
This is aligned with my suggestion above: whenever a literal can not be mapped to a JSON number, ignore |
I tried to cover this with a PR: #619 I don't think I can assign this issue to me though 🤔 |
I believe that the RDF to object conversion, step 2.4.3, has a blind spot.
This is in the case
useNativeTypes
is used:The problem is: some valid literals of these datatypes may fail to convert to JSON numbers, e.g.
"+INF"^^xsd:double
, or very large integers.The spec is currently silent about that. We should either specify that an error must be raised, or that
useNativeType
should be ignored in that case, and a regular value object should be generated. I personally prefer the 2nd option.The text was updated successfully, but these errors were encountered: