OP-TED / model2owl

Transform UML into a formal OWL ontology and SHACL shapes
https://meaningfy-ws.github.io/model2owl-docs
European Union Public License 1.2
24 stars 4 forks source link

Transformation Rule D.05 for enumeration items needs refining #197

Open sixdiamants opened 6 months ago

sixdiamants commented 6 months ago

Transformation rule D.05. Enumeration items — in core ontology layer says Specify SKOS concept instantiation axiom for each UML enumeration item.

The example in said rule shows
:itemA a skos:Concept ; skos:inScheme :EnumerationName ; ... . Implying that itemA is a first-class citizen of its namespace.

As opposed to attributes and association role names, no provision is made for the reuse of enumeration items so there's a serious risk of conflicting concepts in the namespace. I doubt whether "standard" should become a standalone or shared concept.

The eProcurement model shows this enumeration. image

Proposed solution:
I suggest that the enumeration items be mapped by postfixing the name of the item to the owning Enumeration like so:

Last but not least, the definition of the enumeration items are stored in the "initial value" field, To be consistent, these should be stored as Notes.

sixdiamants commented 6 months ago

Initial value fields should map to sh:defaultvalue. Imho such a transformation rule is currently missing and probably best allocated to an application profile.

sixdiamants commented 4 months ago

ping