Closed jakubklimek closed 4 years ago
Fix typos, add a few (3) specific examples.
In the output JSON-LD, the value is missing the xsd:duration datatype (https://w3c.github.io/dxwg/dcat/#Property:dataset_temporal_resolution)
"http://www.w3.org/ns/dcat#temporalResolution": {
"@value": "P1D"
}
This is still incorrect:
"http://www.w3.org/ns/dcat#temporalResolution": {
"@literal": "P1D",
"@datatype": "xsd:duration"
},
The correct form should be:
"http://www.w3.org/ns/dcat#temporalResolution": {
"@literal": "P1D",
"@type": "http://www.w3.org/2001/XMLSchema#duration"
},
we do not use a context here, so we cannot use prefixes, and the correct json-ld syntax for data types is @type
. Note that you can use https://json-ld.org/playground/ to check this using the "n-quads" feature.
Add support for dcat:temporalResolution to Dataset. This includes validation of xsd:duration and corresponding help texts explaining, how to construct valid value. For validation, see this stackoverflow post.