Open jwaspin opened 11 months ago
The code is apparently mapping to distribution.distributor[ ].transferOption[ ].distributionFormat.formatSpecification.title. This works, sort of. However, it really is just a citation title, an uncontrolled field that will not necessarily conform to the DCAT media-type formats listing. Citation title doesn't seem an appropriate use for format name. It is a result of an astonishing absence of a distribution format code in ISO. Even CSDGM had at least a "recommended" list.
We can either accept that and users enter whatever they want and we will call it media type even if they entered their dog's name, or we can consider an extended ADIwg codelist to control types. IMO, this is not just an issue for DCAT, but for normalizing format types in our data documentation. This approach would be specific to mdJSON, therefore a potential ISO reader and probably CSDGM would still have to map to format spec.
distribution
mdJSON source:
tbd
for each resourceDistribution[0, n] where exists resourceDistribution.distributor.transferOption.onlineOption.uri then
{description, accessURL, downloadURL, mediaType, title}
transferOption.distributionFormat.formatSpecification.title [dataFormat] [dataFormat should conform to: https://www.iana.org/assignments/media-types/media-types.xhtml]