Skip to content
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

CIMTool's *.legacy-rdfs-augmented profile builder does not correctly generate the multiplicity of inverse associations. #26

Closed
admin-cimug opened this issue Aug 1, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@admin-cimug
Copy link
Member

admin-cimug commented Aug 1, 2022

CIMTool's *.legacy-rdfs-augmented profile builder does not correctly generate the multiplicity of the secondary (i.e. inverse association) within the profile that it outputs. Indicated in both the base CIM and as outlined in the 452 pulblished standard for the profile the multiplicity should be generated as 0..2:

Figure 1: Base CIM16v33 UML

image

Figure 2: The UML corresponding to the CoreEquipment profile as defined by IEC 61970-452 Ed 3.0

image

In the below extract from the CoreEquipment profile generated by CIMTool we see in the second RDF description element below a cardinality of 0..n instead of 0..2:

  <rdf:Description rdf:about="#TieFlow.Terminal">
    <cims:stereotype rdf:resource="http://langdale.com.au/2005/UML#byreference"/>
    <rdfs:comment>The terminal to which this tie flow belongs.</rdfs:comment>
    <rdfs:label>Terminal</rdfs:label>
    <cims:inverseRoleName rdf:resource="#Terminal.TieFlow"/>
    <rdfs:range rdf:resource="#Terminal"/>
    <rdfs:domain rdf:resource="#TieFlow"/>
    <cims:multiplicity rdf:resource="http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#M:1"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
  </rdf:Description>

  <rdf:Description rdf:about="#Terminal.TieFlow">
    <rdfs:comment>The control area tie flows to which this terminal associates.</rdfs:comment>
    <rdfs:label>TieFlow</rdfs:label>
    <cims:inverseRoleName rdf:resource="#TieFlow.Terminal"/>
    <rdfs:range rdf:resource="#TieFlow"/>
    <rdfs:domain rdf:resource="#Terminal"/>
    <cims:multiplicity rdf:resource="http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#M:0..n"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
  </rdf:Description>
@admin-cimug admin-cimug added the bug Something isn't working label Aug 1, 2022
@admin-cimug admin-cimug added this to the release-1.10.0.RC4 milestone Aug 1, 2022
@admin-cimug admin-cimug self-assigned this Aug 1, 2022
@admin-cimug admin-cimug modified the milestones: release-1.10.0.RC4, release-1.11.0.RC1 Aug 16, 2022
@tviegut tviegut removed this from the release-1.12.0.RC1 milestone Oct 12, 2023
@tviegut tviegut self-assigned this Jan 30, 2024
@tviegut tviegut added this to the release-1.12.0 milestone Jan 30, 2024
tviegut added a commit that referenced this issue Feb 22, 2024
Fix for #26
tviegut added a commit that referenced this issue Feb 22, 2024
Fix for #26
@tviegut tviegut mentioned this issue Feb 22, 2024
@tviegut tviegut closed this as completed Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants