W3C home > Mailing lists > Public > public-dxwg-wg@w3.org > October 2022

Re: [dxwg] Definition of dcat:spatialResolutionInMeters incompatible/problematic with JSON-LD (#1536)

From: Pierre-Antoine Champin via GitHub <sysbot+gh@w3.org>
Date: Sat, 29 Oct 2022 13:33:47 +0000
To: public-dxwg-wg@w3.org
Message-ID: <issue_comment.created-1295838555-1667050425-sysbot+gh@w3.org>
@afs clearly, it is possible to convert between `xsd:double` (in E notation) and `xsd:decimal`. But the initial issue here was that a a [seemingly correct JSON-LD](https://json-ld.org/playground/#startTab=tab-nquads&json-ld=%7B%22%40context%22%3A%7B%22ex%22%3A%22http%3A%2F%2Fexample.com%2Fns%2F%22%2C%22xsd%22%3A%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%22%2C%22ex%3Afoo%22%3A%7B%22%40type%22%3A%22xsd%3Adecimal%22%7D%7D%2C%22ex%3Afoo%22%3A%5B12.3%5D%7D) document may produce ill-formed `xsd:decimal` literals, *before* you get a chance to process them with SPARQL...

We could fix this by either changing JSON-LD, or changing `xsd:decimal`. The 2nd option seems more reasonable to me, all the more that many implementations are already supporting E-notations.

GitHub Notification of comment by pchampin
Please view or discuss this issue at https://github.com/w3c/dxwg/issues/1536#issuecomment-1295838555 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 29 October 2022 13:33:49 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 29 October 2022 13:33:51 UTC