Closed javicond3 closed 2 years ago
It could be solved by wrapping the elements inside <skos:Concept>
but it should not be required as in the original source they are already defined as skos:Concept
Example of wrapping to solve but not desirable:
<dcat:theme>
<skos:Concept rdf:about="http://publications.europa.eu/resource/authority/data-theme/EDUC"/>
</dcat:theme>
@javicond3 the inclusion of the controlled vocabularies is only done in the option: DCAT-AP 2.0.1 Controlled Vocabularies. (See https://github.com/ISAITB/validator-resources-dcat-ap/blob/master/resources/config.properties#L27)
The reason for this split is two-fold:
As the ranges check for the type, this codelist constrainted properties will probably fail without including the controlled vocabularies as the categorization of being a skos:Concept is part of the codelist. For coherency reasons I included them in the ranges* shape files.
Note that this split in several files is system/application agnostic. The split is based on the constraint type. Unfortunately there is no perfect split possible satisfying all possible usecases.
Thanks a lot for the reply, it has all the sense that it is difficult to satisfy all the cases.
However, I have tried to include the controlled vocabularies with the DCAT-AP 2.0.1 Ranges through the DCAT-AP Development option and the problem still remains. The problem is due to that the controlled vocabularies import (https://github.com/ISAITB/validator-resources-dcat-ap/blob/master/resources/config.properties#L29) only imports the http://publications.europa.eu/resource/authority/data-theme definition and not the http://publications.europa.eu/resource/authority/data-theme/EDUC (which is the one that types EDUC as a skos:Concept).
In order to include the controlled vocabularies with the other options I would propose the following alternatives:
I used the https://www.itb.ec.europa.eu/shacl/dcat-ap/upload to validate the following rdf against DCAT-AP 2.0.1 Ranges Zero and DCAT-AP 2.0.1 Ranges
I got the following errors:
However, in the three cases the values are tagged as
skos:Concept
in their original definition<rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
. Links: