Sveino / Inst4CIM-KG

Instance of CIM Knowledge Graph
Apache License 2.0
6 stars 1 forks source link

represent "deprecated" as owl:deprecated #24

Closed VladimirAlexiev closed 2 months ago

VladimirAlexiev commented 4 months ago

Various terms have a stereotype "deprecated", eg

dcterms:creator  rdf:type  rdf:Property ;
        rdfs:comment       "... This property is deprecated. Use dcterms:publisher.]." ;
        cims:stereotype    "deprecated" , "dcterms" ;

Here's a count per ontology:

grep -c '"deprecated"' *.ttl|grep -v ':0'
EquipmentReliability-AP-Voc-RDFS2020.ttl:1
Header-AP-Voc-RDFS2020.ttl:9
ObjectRegistry-AP-Voc-RDFS2020.ttl:2
Sveino commented 2 months ago

I like this. Originally it should have the same meaning. However, is this the relevant link to the definition: https://www.w3.org/TR/owl-ref/#Deprecation This is something we missed in the specification.

VladimirAlexiev commented 2 months ago

The up-to-date spec is OWL2: https://www.w3.org/TR/2012/REC-owl2-syntax-20121211/#a_deprecated

This is useful to find OWL2 stuff: https://www.w3.org/TR/owl2-quick-reference/

VladimirAlexiev commented 2 months ago

Updated count:

grep -rc '"deprecated"' |grep -v ':0'
CGMES/ttl/61970-600-2_Equipment-AP-Voc-RDFS2020_v3-0-0.ttl:7
CGMES/ttl/61970-600-2_EquipmentBoundary-AP-Voc-RDFS2020_v3-0-0.ttl:2
CGMES/ttl/61970-600-2_Topology-AP-Voc-RDFS2020_v3-0-0.ttl:2
CGMES-NC/ttl/EquipmentReliability-AP-Voc-RDFS2020.ttl:1
CGMES-NC/ttl/ObjectRegistry-AP-Voc-RDFS2020.ttl:2

So 13 occurrences.

A query shows this is used on 7 props:

PREFIX cims: <http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#>
select * {
  ?p cims:stereotype "deprecated"
}
p
eu: IdentifiedObject.energyIdentCodeEic
eu: IdentifiedObject.shortName
cim: SVCControlMode
cim: PhaseTapChangerLinear.xMin
cim: PhaseTapChangerNonLinear.xMin
cim: StaticVarCompensator.sVCControlMode
cim: StaticVarCompensator.voltageSetPoint

Done in fix15-deprecated-24.ru.
Assigning to @Sveino @griddigit-ci to answer why EIC is deprecated?

Sveino commented 2 months ago

We would like to remove eu namespace. We are creating an ObjectRegisry profile that can handle multiple names and identification on the same object. My proposal (but not yet approved) is: image

eu: IdentifiedObject.energyIdentCodeEic -> cim:Name.name and cim:Name.kind = eIC

VladimirAlexiev commented 2 months ago