Skip to content

Incorrect handling of UML N-ary associations in RDF artefact generation #261

@gkostkowski

Description

@gkostkowski

Model2owl does not support N-ary associations. However, the current implementation of association transformation in model2owl fails to correctly identify and ignore UML N-ary associations if such occur in the input model. These are mistakenly interpreted as multiple binary associations due to the similarity in their XMI representations. As a result, RDF artefacts (core and restrictions) are generated incorrectly.

Steps to Reproduce:

  1. Use a UML model that includes a ternary (or more generally, N-ary where N > 2) association.
  2. Run the model2owl transformation to generate RDF artefacts.

An exemplary model demonstrating the issue.

Image

Current Behaviour:
The following statements are generated in the restrictions artefact: toAC, toIns, toOtherC, and the TernaryTest association is reified into a class. Similarly, other statements are generated for the same “links” in the core artefact.

Expected Behaviour:

The ternary association TernaryTest should be ignored during RDF generation because N-ary associations (where N > 2) are not supported under SEMIC conventions for UML diagrams.

Suggested Fix:

Update the association transformation logic to detect N-ary associations and skip their processing entirely during RDF artefact generation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions