SEMICeu / style-guide

SEMIC style guide to create reusable vocabularies and application profiles
https://semiceu.github.io/style-guide/
Creative Commons Attribution 4.0 International
9 stars 2 forks source link

Chapter 9.4, Shape definitions #75

Closed RiittaA closed 1 year ago

RiittaA commented 1 year ago
costezki commented 1 year ago

Thank you, Rita, for the observation. We have relaxed the rule to allow for both cases.

When generating SHACL shapes, it is a good practice to create a node shape for each UML class and, within it a property shape for each UML attribute and UML Connector of that class. If the property shapes are defined within the node shapes (rather than freestanding), then we mirror the structure depicted in the UML diagrams. Doing so is intuitive for the readers, the resulting constraint definitions are organically integrated, and the maintenance costs are decreased. However, sometimes it may be useful to define the property shapes as stand alone, therefore reusable.

See https://semiceu.github.io/style-guide/public-review/gc-data-shape-conventions.html#sec:dsc-r4