SHACL and DCAT profiling #1387
Labels
dcat
feedback
Issues stemming from external feedback to the WG
future-work
issue deferred to the next standardization round
requires discussion
Issue to be discussed in a telecon (group or plenary)
Projects
Milestone
Hi,
I have observed that the current explicit making Catalog a subclass of Dataset is hindering the usage of SHACL and also DCAT profiling.
The situation is as follows: in many DCAT profiles additional constraints are placed on datasets. And they are applicable solely to datasets in that catalog, not to the catalog entity. However by enforcing Catalog being a sublcass of Dataset and expressing this in the RDF representation natural SHACL profiling breaks.
Consider the following example profile:
The expectation from this profile is that the following example catalog is valid:
Unfortunately it isn't. According to SHACL the above RDF is invalid, because the
ex:catalog
has not a value PUBLIC fordc:accessRights
.It means that we have to redesign and introduce in any DCAT profile the notion of Datasets which do not have Catalogs as subclass in order to avoid the propagation of any constraint on a dataset to the catalog.
To test the case yourself: use https://www.itb.ec.europa.eu/shacl/any/upload with following content:
The last 2 bullets are important: it loads the DCAT rdf file into the SHACL validator and then the error is triggered. If one does not load the DCAT rdf file, then it is all fine.
For a vocabulary which is aimed to be profiled this is a very annoying situation. Because in any profile one will add additional constraints on Datasets. I also do not know how do I express in a profile that the constraints on the dataset are not applicable to the catalog entity in that profile in the current setting without forcing the introduction of a subclass MyProfileDataset which is not a Catalog. Any suggestions?
The text was updated successfully, but these errors were encountered: