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

Meta-Props Duplicated Per Profile #10

Open
VladimirAlexiev opened this issue Sep 12, 2024 · 1 comment
Open

Meta-Props Duplicated Per Profile #10

VladimirAlexiev opened this issue Sep 12, 2024 · 1 comment
Assignees
Labels
approved Approved to start work (open), or approved fix (closed) ontology Pertains to ontology representation profile Pertains to profiles, packages (AP)

Comments

@VladimirAlexiev
Copy link
Collaborator

VladimirAlexiev commented Sep 12, 2024

CGMES (but not CGMES NC) Profile namespaces redefine the same meta properties several times.
Here is the count of terms per namespace:

     39 dy
     13 tp
     13 eqbd
     13 eq
     12 sv
     12 ssh
     12 sc
     11 op
     11 gl
     11 dl

Let's get the terms of 4 namespaces and put them side by side:

grep -E '(dl|eq|tp|gl):' terms-uniq.txt
term1 term2 term3 term4
dl:isAbstract eq:isAbstract tp:isAbstract gl:isAbstract
dl:isCIMDatatype eq:isCIMDatatype
gl:isCompound
dl:isConst eq:isConst tp:isConst gl:isConst
tp:isDescription
eq:isEuropean tp:isEuropean
dl:isFixed eq:isFixed tp:isFixed gl:isFixed
dl:isPrimitive eq:isPrimitive tp:isPrimitive gl:isPrimitive
dl:isUnique eq:isUnique tp:isUnique gl:isUnique
eq:isdeprecated tp:isdeprecated
dl:isenum eq:isenum tp:isenum gl:isenum

All these are CIM meta-properties that should stay in the cims: namespace.

Consider the definition of cim:StreetAddress in GL:

cim:StreetAddress a owl:Class ;
  rdfs:label "StreetAddress"@en ;
  gl:Package "Package_GeographicalLocationProfile" ;
  gl:isCompound "True" ;
  skos:definition "General purpose street and postal address information."@en .
  • gl:isCompound should be cims:isCompound since it's part of the CIM metamodel, not part of GL.
  • gl:Package should be cims:package for the same reason (and should start in lowercase)

This also relates #5 and is an aspect of inconsistency:
the same meta-prop should always be used with the same prefix.

@VladimirAlexiev
Copy link
Collaborator Author

VladimirAlexiev commented Sep 12, 2024

The only possible use could be if the same term and meta-prop have different values for different profiles.
But I haven't seen such cases, eg below multiplier is fixed in both profiles.

cim:Temperature.multiplier
  sc:isFixed "True ";
  dy:isFixed "True".
  • Even if there's such a need, there are better ways to model it than replicate the meta-props.
  • You see another inconsistency: in one case "True " is misspelled with a space

@VladimirAlexiev VladimirAlexiev added ontology Pertains to ontology representation profile Pertains to profiles, packages (AP) labels Sep 13, 2024
@VladimirAlexiev VladimirAlexiev self-assigned this Sep 17, 2024
@VladimirAlexiev VladimirAlexiev added the approved Approved to start work (open), or approved fix (closed) label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved to start work (open), or approved fix (closed) ontology Pertains to ontology representation profile Pertains to profiles, packages (AP)
Projects
None yet
Development

No branches or pull requests

1 participant