Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Enrich dataclass with functionality to parse a xml/rdf fragment into a class instance #12

Open
chicco785 opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels
feature This issue/PR relates to a feature request.

Comments

@chicco785
Copy link
Member

Is your feature request related to a problem? Please describe the problem.

I want to read an element from a rdf file, and make it a python object.

Describe the solution you'd like

Given and xml fragment from a cim profile, e.g.:

  <cim:Terminal rdf:ID="Term_29PSEA-SW4T2">
    <cim:IdentifiedObject.name>SW4-T2</cim:IdentifiedObject.name>
    <cim:IdentifiedObject.description/>
    <cim:ACDCTerminal.sequenceNumber>2</cim:ACDCTerminal.sequenceNumber>
    <cim:Terminal.phases rdf:resource="ABC"/>
    <cim:Terminal.ConnectivityNode rdf:resource="#_CN_29PSEA-4"/>
    <cim:Terminal.ConductingEquipment rdf:resource="#_LdBrkSw_29PSEA-SW4"/>
  </cim:Terminal>

convert it to an object of type Terminal

Additional context

No response

@chicco785 chicco785 added the feature This issue/PR relates to a feature request. label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants