-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dcat:mediaType must be a resource #237
Comments
Maybe a newbie question. Why is it not required to explicitly say the the ref in the URI is point to a dct:MediaType class?
|
I would like to add another comment concerning the same issue with the dcat:mediaType value. As from the DCAT-AP spec both In this sense, if you consider using the full URI of IANA, that is for example Find below 2 examples of what I mean. It is not just the previsualization but the way the Dataset is later on serialized.
In this case the serialization of the properties of the Dataset results in:
In this case the serialization of the properties of the Dataset as JSON-LD results in:
As you can see the first one is not fully compliant with DCAT-AP but CKAN behaves as expected. The second is just the other way round, complaint but CKAN is not working as expected. In this sense, I don't know if it will be sensible to modify the What do you think? Should I try to work that out? Thanks for you help and comments. |
Yes, but it is serialized as a literal only if the value isn't a valid URI. This avoids resulting in an invalid serialized graph. That's more or less necessary, because the python library rdflib also creates serialized URIs with values that are an invalid URI. |
The range of
dcat:mediaType
has been tightened fromdct:MediaTypeOrExtent
todct:MediaType
as part of the revision of DCAT. https://www.w3.org/TR/vocab-dcat-2/#Property:distribution_media_typeCurrently a URI or a literal is returned. https://github.com/ckan/ckanext-dcat/blob/master/ckanext/dcat/profiles.py#L1411 Only a URI should be used at this point.
The text was updated successfully, but these errors were encountered: