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

Maybe the most pragmatic way forward would be to extend `dcat:spatialResolutionInMeters` to allow both `xsd:double` and `xsd:decimal` in its domain, with a not explaining that `xsd:decimal` is encouraged (to avoid precision loss) but that in some situations (such as "natural" serializations in JSON-LD) `xsd:double` is more convenient.

A drawback is that such a range can not be expressed in RDFS (but it can be expressed in OWL). I don't think this is too much of a problem.

Note that JSON-LD users would still have the possibility to use either types (being more explicit for `xsd:decimal`) (see [example in the playground](https://json-ld.org/playground/#startTab=tab-nquads&json-ld=%7B%22%40context%22%3A%7B%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%22value%22%3A%22%40value%22%2C%22datatype%22%3A%22%40type%22%7D%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2FusingDouble%22%2C%22spatialResolutionInMeters%22%3A12.3%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2FusingDecimal%22%2C%22spatialResolutionInMeters%22%3A%7B%22value%22%3A%2212.3%22%2C%22datatype%22%3A%22xsd%3Adecimal%22%7D%7D%5D%7D)). A property alias could even be provided to make this less verbose (see [example in the playground](https://json-ld.org/playground/#startTab=tab-nquads&json-ld=%7B%22%40context%22%3A%7B%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%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%22%40id%22%3A%22http%3A%2F%2Fexample.com%2FusingDouble%22%2C%22spatialResolutionInMeters%22%3A12.3%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2FusingDecimal%22%2C%22spatialResolutionInMetersDecimal%22%3A%2212.3%22%7D%5D%7D)).

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


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

Received on Sunday, 30 October 2022 10:25:35 UTC