Sveino / Inst4CIM-KG

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

old namespace CIM-schema-cim16 used in Nordic44 #82

Open VladimirAlexiev opened 2 years ago

VladimirAlexiev commented 2 years ago

The main namespace is <http://iec.ch/TC57/CIM/CIM100#>, but many files also refer to <http://iec.ch/TC57/2013/CIM-schema-cim16#> (I think only for objects, not subjects or props).

Here's a count per file:

# grep -cr cim16 *|grep -Ev ":0|.ttl"
CDPSM_2_0/Nordic44_02_OPA-OPB_ElectricalProperties.xml:1
CDPSM_2_0/Nordic44_03_Asset.xml:15
CDPSM_2_0/Nordic44_03_Common_ElectricalProperties.xml:8
CDPSM_2_0/Nordic44_03_inc.xml:2
CDPSM_2_0/Nordic44_03_OPA_ElectricalProperties.xml:1
CDPSM_2_0/Nordic44_03_OPB_ElectricalProperties.xml:10
CDPSM_2_0/Nordic44_07_AssetCatalogue.xml:12
CGMES_2_4/Nordic44_CGM_36d_SSH.xml:113
CGMES_2_4/Nordic44_CGM_36e_DL.xml:6
CGMES_2_4/Nordic44_CGM_36f_GL.xml:2
CGMES_2_4/Nordic44_CGM_36g_SV.xml:2
CGMES_2_4/Nordic44_CGM_36g_TP.xml:2
CGMES_2_4/Nordic44_CGM_37a_EQ.xml:306
Sveino commented 2 years ago

The main namespace is <http://iec.ch/TC57/CIM/CIM100#>,

This namespace is refering to CIM17/100 (we had to move to 100 becasue we take Asset and Market into account). I am in my work with 61970-501 address version of the vocabualry to make the URI for CIM being persistent. I know that chaning the namespace is painful in Semantic web, but this is tradition that has been done for 20 years in CIM. For the european extention we have made this persistent.

VladimirAlexiev commented 2 years ago

Does CIM17/100 include all CIM16 terms? Then use only the new namespace, there's no need to mix old and new.

VladimirAlexiev commented 1 week ago

@Sveino please move this back to Sveino/Nordic44. The problem still stands. Counting in trig, which shows the results more clearly:

grep -cr cim16 *|grep -Ev ":0|.xml"
CDPSM_2_0/Nordic44_03_Asset.trig:14
CDPSM_2_0/Nordic44_03_Common_ElectricalProperties.trig:7
CDPSM_2_0/Nordic44_03_OPB_ElectricalProperties.trig:9
CDPSM_2_0/Nordic44_07_AssetCatalogue.trig:10

All these files use a mix of namespaces: modern for classes/props, but old for individuals. Eg CDPSM_2_0/Nordic44_03_Asset.trig :

@prefix cim: <http://iec.ch/TC57/CIM/CIM100#> .
@prefix entsoe2: <http://entsoe.eu/CIM/SchemaExtension/3/2#> .
@prefix md: <http://iec.ch/TC57/61970-552/ModelDescription/1#> .

<urn:uuid:040766f1-699a-40f5-85d7-1b9d5deb3955> a cim:Asset ;
  cim:Asset.inUseState <http://iec.ch/TC57/2013/CIM-schema-cim16#InUseStateKind.inUse> ;
  cim:Asset.kind <http://iec.ch/TC57/2013/CIM-schema-cim16#AssetKind.other> ;

These files just use the old namespace:

CGMES_2_4/Nordic44_CGM_36d_SSH.trig:3
CGMES_2_4/Nordic44_CGM_36e_DL.trig:2
CGMES_2_4/Nordic44_CGM_36f_GL.trig:2
CGMES_2_4/Nordic44_CGM_36g_SV.trig:2
CGMES_2_4/Nordic44_CGM_36g_TP.trig:2
CGMES_2_4/Nordic44_CGM_37a_EQ.trig:3