Re: [dxwg] Address 1536: extend the range of 'spatial resolution' (#1543)

> Do I understand it correctly, that the idea is that JSON-LD contexts of DCAT and DCAT profiles can choose one of:
> 
>     1. `xsd:double` datatype and JSON number representation
> 
>     2. `xsd:decimal` datatype and JSON string representation?

or they can refrain to chose, and leave it to end users... Actually, both options are possible, as demonstrated in [this example](https://json-ld.org/playground/#startTab=tab-nquads&json-ld=%7B%22%40context%22%3A%7B%22rdfs%22%3A%22http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%22%2C%22xsd%22%3A%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%22%2C%22dcat%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fdcat%23%22%2C%22spatialResolutionInMeters%22%3A%22dcat%3AspatialResolutionInMeters%22%2C%22spatialResolutionInMetersDouble%22%3A%7B%22%40id%22%3A%22dcat%3AspatialResolutionInMeters%22%2C%22%40type%22%3A%22xsd%3Adouble%22%7D%2C%22spatialResolutionInMetersDecimal%22%3A%7B%22%40id%22%3A%22dcat%3AspatialResolutionInMeters%22%2C%22%40type%22%3A%22xsd%3Adecimal%22%7D%7D%2C%22%40graph%22%3A%5B%7B%22spatialResolutionInMeters%22%3A3.14%2C%22rdfs%3Acomment%22%3A%22this%20will%20produce%20an%20xsd%3Adouble%2C%20which%20is%20now%20correct%22%7D%2C%7B%22spatialResolutionInMeters%22%3A%7B%22%40value%22%3A%223.14%22%2C%22%40type%22%3A%22xsd%3Adecimal%22%7D%2C%22rdfs%3Acomment%22%3A%22this%20will%20produce%20an%20xsd%3Adecimal%2C%20which%20is%20still%20correct%22%7D%2C%7B%22spatialResolutionInMetersDecimal%22%3A%223.14%22%2C%22rdfs%3Acomment%22%3A%22with%20this%20alias%2C%20you%20don't%20neet%20to%20give%20the%20type%20explicitly%2C%20BUT%20you%20MUST%20use%20a%20string%20(otherwise%20an%20invalid%20xsd%3Adecimal%20might%20be%20produced%22%7D%2C%7B%22spatialResolutionInMetersDouble%22%3A%223.14%22%2C%22rdfs%3Acomment%22%3A%22with%20this%20alias%2C%20you%20will%20always%20produce%20an%20xsd%3Adouble%2C%20even%20if%20you%20use%20a%20string%20--%20or%20an%20integer%2C%20for%20that%20matter%22%7D%5D%7D)

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 1 December 2022 08:47:49 UTC