SEMICeu / DCAT-AP

This is the issue tracker for the maintenance of DCAT-AP
https://joinup.ec.europa.eu/solution/dcat-application-profile-data-portals-europe
76 stars 24 forks source link

SHACL: Property Shapes Without a Test? #219

Closed init-dcat-ap-de closed 2 years ago

init-dcat-ap-de commented 2 years ago

Do we need Property Shapes which don't test anything? Or am I missing something?

[
  sh:path dct:language ;
  sh:severity sh:Violation
]

https://github.com/SEMICeu/DCAT-AP/blob/55617123a940d00f781cc9204b572f9ab46776e1/releases/2.1.0/dcat-ap_2.1.0_shacl_shapes.ttl#L149

bertvannuffelen commented 2 years ago

There are here two perspectives.

a) If the SHACL is solely for validation then this constraint will never fire, and is useless statement.

b) If one wants to generate a form from the SHACL or to use it as a specification then it is useful. Namely an entry for that property can be generated Or it is included in the list of (endorsed) properties in the specification.

In the creation of the SHACL I just added a reference to each property. Resulting more a style suited for b) although only case a) is the real objective.

init-dcat-ap-de commented 2 years ago

Okay, thank you.