Skip to content

TownDetail,StreetDetail ,StreetAddress ,TelephoneNumber are not correctly set in the cim output file #29

@jonathanPiraux

Description

@jonathanPiraux

Hello,

I try to get the following object displayed in an RDF file. But I got:

<cim:TownDetail rdf:ID="_6faf3704-e7b0-473c-b83d-ec37fde46826"/>
<cim:StreetDetail rdf:ID="_8fe7cc8a-9b60-4c1f-b1e5-ec8f6f751f67"/>
<cim:StreetAddress rdf:ID="_de56b691-4124-4f11-a754-ebbda6face75"/>
<cim:TelephoneNumber rdf:ID="_7ac58c3e-c359-4885-8737-e9ea30a3a9a0"/>

The object is displayed but the related attribute are not contained in the tag. Here is the python code that should generate those tags:

    town_detail = TownDetail(name="Brussels", stateOrProvince="Brussels", country="Belgium")
    town_detail.UUID = generate_uuid()
    dico[town_detail.UUID] = town_detail
    street_detail = StreetDetail(name=street_name)
    street_detail.UUID = generate_uuid()
    dico[street_detail.UUID]=street_detail
    address = StreetAddress(townDetail=town_detail, streetDetail=street_detail)
    address.UUID = generate_uuid()
    dico[address.UUID] = address
    phone = TelephoneNumber(localNumber=tel)
    phone.UUID = generate_uuid()
    dico[phone.UUID] = phone

Am I wrong in the way how I hve to make my implementation?

I had to dynamically add a UUID attribute to avoid errors in the rdf file generation.
the dico variable is just a dictionnary I use to keep record of every object that are created.

Thanks for the support

Jonathan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions