PNNL-CIM-Tools / CIM-Graph

Python library for creating in-memory labeled property graphs for creating, parsing, and editing CIM power system models
https://cimantic-graphs.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11 stars 8 forks source link

Replace mRID with Identity.identifier to support CIM 18 #77

Open AAndersn opened 4 months ago

AAndersn commented 4 months ago

Create Identity.identifier class that is parent for all objects within data profile.

This class includes repr and str methods for handling printing

It also replaces use of mRID with a UUID typed object that is auto-generated from URI, mRID, or name.

AAndersn commented 3 months ago

This has been implemented in https://github.com/PNNL-CIM-Tools/CIM-Graph/blob/feature/68/CIMTool_plugin/cimantic-graphs.xsl#L554. An example is https://github.com/PNNL-CIM-Tools/CIM-Graph/blob/feature/68/cimgraph/data_profile/cimhub_2023/cimhub_2023.py#L70