3lbits / CIM4NoUtility

CIM for the Norwegian Power Utility
Creative Commons Attribution Share Alike 4.0 International
23 stars 5 forks source link

problems with semantic definition of enumerations #355

Open VladimirAlexiev opened 4 months ago

VladimirAlexiev commented 4 months ago

@Sveino (Is this the right project to report this? While posting https://github.com/smart-data-models/dataModel.EnergyCIM/issues/3 I noticed some problems in the RDFS representation of enumerations (from IEC61970-600-2_CGMES_3_0_0_RDFS_501Ed2CD_EQ):

cim:ACDCConverterDCTerminal.polarity
        rdf:type         owl:DatatypeProperty ;
        rdfs:domain      cim:ACDCConverterDCTerminal ;
        rdfs:range       cim:DCPolarityKind ;

cim:DCPolarityKind  rdf:type  owl:Class ;
        rdfs:label       "DCPolarityKind"@en ;
        rdfs:subClassOf  cim:Enumeration ;
        eq:Package       "Package_CoreEquipmentProfile" ;
        owl:oneOf        ( cim:DCPolarityKind.positive cim:DCPolarityKind.middle cim:DCPolarityKind.negative ) ;
        skos:definition  "Polarity for DC circuits."@en .

cim:DCPolarityKind.middle
        rdf:type         owl:NamedIndividual , owl:Thing ;
        rdfs:domain      cim:DCPolarityKind ;
        rdfs:label       "middle "@en ;
        eq:isenum        "True" ;

Mandatory fixes:

Optional fixes: