Skip to content

Settings prophet to get information of model via ili2py#175

Open
signedav wants to merge 5 commits into
mainfrom
settings-prophet
Open

Settings prophet to get information of model via ili2py#175
signedav wants to merge 5 commits into
mainfrom
settings-prophet

Conversation

@signedav

@signedav signedav commented Jul 13, 2026

Copy link
Copy Markdown
Member

Follow-up of #171 - do not merge before

Model Prophet / Settings Prophet

Kind of utility classes to get information from the model via the BakerPyIndex based on the ili2py Index class.

While ModelProphet is the general base, SettingsProphet is convenient to read the settings that should be activated when creating a database from a specific INTERLIS model and (mainly) the SettingProphet can handle multiple ModelProphets handling multiple models / BakerPyIndexes.

SettingsProphet could have very specific classes in the future as well, like the one described here: opengisch/QgisModelBaker#1150. ModelProphet is intended to be able to be used later on as well (e.g., when reading enumeration values or at basket / OID configuration).

Structure

├── ili2pytools
│   ├── init.py
│   ├── pythonizer.py
│   ├── prophets.py
|   |   - ModelProphet (with functions answering all the questions about one model (and it's parents))
|   |      - Provides relevant stuff (by reading the current model's topics, all the super-topics and the dependent topics)
|   |      - Answers questions (like has_basketoid_definition etc.)
|   |      - Filters models according to a static model blacklist
|   |   - SettingsProphet (with functions answering all the settings questions of multiple models in a convenient way)
|   |      - Answers questions (like needs_basket_column, which calls methods of ModelProphet and combines them to know if it needs the column-setting or not, or contains heuristics like in language_info, and contains_arcs in one of the passed models / BackerPyIndexes).
├── [...]
├── libs
│   ├── [...]
│   ├── ili2py

Not part of this integration

Info

To run in the plugin, this is needed: opengisch/QgisModelBaker#1148

Sponsors

QGIS Model Baker Group ✌️

@signedav signedav changed the title Settings prophet Settings prophet to get information of model via ili2py Jul 13, 2026
signedav added 4 commits July 14, 2026 13:11
…e and in ili2db utils to compile an ilifile to a metamodel file.
… from the metamodel and create the enumeration or the python classes (via library) from it.
… what is basicly an utility class to get information from the model via the BakerPyIndex based on the ili2py Index class. While ModelProphet is the more general base, the SettingsProphet is convenient to read the settings that should be done, when creating a database from a specific INTERLIS model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant