sstenchlak / schema-generator

https://kodi-schema-generator.netlify.app/
0 stars 0 forks source link

Add support for re-using existing PSM schemas for certain classes #12

Open jakubklimek opened 3 years ago

jakubklimek commented 3 years ago

When creating FOSes (OFN), e.g. https://ofn.gov.cz/sportoviště/2020-07-01/ - I need to be able to say that e.g. Kontakt is already modeled as a different PSM schema that I want to re-use as value of "má kontakt" image

This includes the possibility of having a "library of PSM schemas". A PSM schema can be re-used (linked) every time the range of a relationship in a newly created PSM schema is a class used as a root of the existing PSM schema.

martinnec commented 3 years ago

For a given association target in the hierarchy there should be a new option which enables to reuse an existing PSM schema with the target as a root. The option is depicted as the green box:

image

When I click on the button I will see the list of existing PSMs with a root interpreting CIM "Kontakt" class.

I can choose one of the provided PSMs.

When I choose one of the provided PSMs, the chosen PSM is reused for the definition of the content of the respective PSM class.

I can change the PSM to another of the provided PSMs at any time.

jakubklimek commented 3 years ago

And by "reused for the definition of the content of the respective PSM class" we mean linking to the definition, not copying it here.