Closed init-dcat-ap-de closed 2 years ago
Or is the reason for having dct:format as recommended that it is using the European list? Under this aspect I can understand the "switched" recommondations.
@init-dcat-ap-de here is some (historical) context to answer your question.
In the early DCAT-AP discussions on format vs mediatype the following observations were made:
both properties are closely related, but not the same
not for all formats there is a (standarized) mediatype (e.g. when dealing with packaged formats, geo formats, ...).
Also DCAT-AP most often considers the human as the prime end-user. Lets consider a person exploring an Open Data Portal. This person will not search for application/xslt+xml to look for XML resources. A filter on xml covering all catalogued resources will be sufficient.
As the PO already had a NAL collecting the most commonly used formats (but also not complete) recommending format over mediatype was natural.
The above interpretation can be formalized as the following template:
curl -H "Accept: {dct:mediatype}" {dcat:downloadURL}
will return a file in the format {dct:format}
A concrete example:
curl -H "Accept: application/xml https://example.com/distribution/3123123
return an XML file but which can be a RDF XML serialization. In that case the format of the data is RDF.
Given this context, I understand the question as both properties look to be overlapping (DCAT 2.0 has made that even more explicit). The above explanation defines distinct purposes. Observe that in this interpretation not providing the mediatype is less problematic as the format. If one only has the mediatype then one has to guess from generic serialization IANAtypes like application/xml or application/json if the format is has a business meaning (e.g. docx is a XML serialization of a word document). This balance between serialization and business format is non-trivial.
proposal:
to keep the specification as is.
Since there are no objections nor futher improvements suggested, we maintain the specification as is.
dct:format is recommended and dcat:mediaType only optional.
But https://www.w3.org/TR/vocab-dcat/ says:
and
So it should be the other way around: We should recommend to use dcat:mediaType and dct:format is only the optional fallback, if the file format is not in the IANA list.