-
Notifications
You must be signed in to change notification settings - Fork 24
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
SHACL rules differ in shacl vs html directory (e.g byteSize) #399
Comments
Also the other way round: the shacl/dcat-ap-SHACL explicitly checks if e.g. accessURL is an rdfs:Resource, while the html/shacl/shapes.ttl does not (nor does html/shacl/ranges.ttl) |
I also noted this discrepancy, in relation to the GeoDCAT-AP 3.0.0 pilot... Whereas in the dcat-ap-SHACL.ttl it is specified as xsd:decimal as well as nodeKind Literal. The respec document only specifies the xsd:decimal property. So I tend to believe the seperate files are the 'official correct' ones. This poses a problem with the GeoDCAT pilot though, as the GeoDCAT-AP shacl file seems to be based on the dcat-ap-SHACL file. |
My guess would be that the shapes in The need for nodeKind "Literal" is implicit if you use a data type. The range is a literal typed as xsd:decimal. |
The decision to use uuids for properties is a seperate issue/decision from the decision to merge all shapes into 1 file. I think it is indeed very good to have unique names for each individual property. For those that want all constraints in one file, it is easier to merge the separate files into one, then it is to provide 1 file and leave it to the users to split it out again into separate files. The scenarios I would typically implement are checking for required properties (which is what the shapes.ttl specifies) before checking the range or recommended properties. So from that perspective the different shacl files make perfect sense to me. |
Well, I also prefer separate files, but one big file is also fine with me... But at least the results should be the same :-) |
I would assume that the single-file-solution is auto-generated from the SSOT-UML-diagram while the multi-file-solution is a continuation of the handwritten rules for version 2. If I am right, there would probably no further work on the multi-file-solution. |
I would like the respec document to be explicit about this. Currently section 17 of the specification describes the separate files with their respective validation profiles. In that same section in the last paragraph the version with uuid's in introduced as 'extra'. The validator (https://www.itb.ec.europa.eu/shacl/dcat-ap/upload) provides both options (separate files, and the uuid version) but gives different validaion results. GeoDCAT-AP efforts are built on top of this profile so to me it seems important to be clear about the basis we are currently building on top of. see: SEMICeu/GeoDCAT-AP#142 |
There seems to be a difference between the separate "HTML" SHACL files and the (aggregated ?) version published in the SHACL directory
E.g. https://github.com/SEMICeu/DCAT-AP/blob/master/releases/3.0.0/html/shacl/shapes.ttl still lists dcat:byteSize as type xsd:decimal, while https://github.com/SEMICeu/DCAT-AP/blob/master/releases/3.0.0/shacl/dcat-ap-SHACL.ttl uses the correct type xsd:nonNegativeInteger
The text was updated successfully, but these errors were encountered: