You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enh: Update of HelperModel to support users in replacing pointers with IRIs #100
Similarly to https://github.com/OO-LD/oold-python the osw.data.import_utility.HelperModel.transform_references or the .cast_to_superclass method should replace pointers to instances of OswBaseModel (subclasses) with IRIs returned by Entity.get_iri() prior to casting to the target class -> this would allow user to effortlessly upload the casted instances without treating attributes of the type "string" format "autocomplete" by hand
Triage 2026-09-03: still open. transform_references in src/osw/data/import_utility.py is a stub. The substitution logic is commented out and the method only flips references_transformed = True without touching any field.
Open question: how should nested fields and collections be walked to find OswBaseModel instances to call get_iri() on, and how should that interact with remove_extra and none_to_default in cast_to_superclass?
Activity
LukasGold commentedon Sep 3, 2026
Triage 2026-09-03: still open.
transform_referencesinsrc/osw/data/import_utility.pyis a stub. The substitution logic is commented out and the method only flipsreferences_transformed = Truewithout touching any field.Open question: how should nested fields and collections be walked to find
OswBaseModelinstances to callget_iri()on, and how should that interact withremove_extraandnone_to_defaultincast_to_superclass?