linkedpipes / dcat-ap-forms

Forms application for filling out DCAT-AP v2.0.0 compatible metadata
MIT License
2 stars 2 forks source link

Add "dcat:temporalResolution" to dataset #78

Closed jakubklimek closed 4 years ago

jakubklimek commented 4 years ago

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.

jakubklimek commented 4 years ago

Druhá várka vylepšení formulářů směrem k DCAT-AP 2.0.0

jakubklimek commented 4 years ago

https://github.com/SEMICeu/DCAT-AP/issues/76

jakubklimek commented 4 years ago

image image

Fix typos, add a few (3) specific examples.

jakubklimek commented 4 years ago

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"
  }
jakubklimek commented 4 years ago

Pracovat na issues k DCAT-AP-Forms ohledně DCAT2

jakubklimek commented 4 years ago

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.