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

Create print method for individual objects #75

Open AAndersn opened 6 months ago

AAndersn commented 6 months ago

Create a base class with a repr method to enable print/debug views of any individual instance of any CIM object.

This will require changes to the XSLT transform. This feature may also require all related tasks to eliminate use of xsdata and rdfs schema and replace with CIMTool generate schema, such #70 and #71.

AAndersn commented 5 months ago

A first version has been implemented in https://github.com/PNNL-CIM-Tools/CIM-Graph/blob/feature/68/cimgraph/data_profile/cimantic-graphs.xsl#L432 .

The planned behavior is demonstrate here https://github.com/PNNL-CIM-Tools/CIM-Graph/blob/feature/68/tests/identity.ipynb