Inplace conversion from WikiSon to List of Dicts #245
Replies: 3 comments
-
The property check seems like a good idea specially when we consider the mapping of the properties to entities. An extra check could provide a more reliable interface to work on. |
Beta Was this translation helpful? Give feedback.
-
Yeah a warning for unknown properties seems reasonable. Or are we using the template names as default property names in the Event samples? |
Beta Was this translation helpful? Give feedback.
-
Differences between labels, property names and template parameter names are a major source of confusion and OpenResearch has lots of such confusions. In the generated environment that we intend to create such problems are mitigated because no humans are involved any more in making the links work. Still we'll have to make sure the migration works and that might need two different mappings or a carefully stepwise fixing of templates. As long as we have two different versions of OpenResearch live as we do at this moment things are even more complicated. As you know i am not in favor of such complications but for simple, understandable procedures. Let's make the migration work by working on tholzheim/wikirender#9 and we'll know where the detail problems are. |
Beta Was this translation helpful? Give feedback.
-
As part of the #243 activities there is now a nice conversion between WikiSon/WikiText notation to python List of Dicts so that then handling in different back end storage mechanisms via pyLodStorage will be enabled. See my Workdocumentation of today for the resulting new code (copied below for your convenience and for readers who do not have access to our Requirments/Usecase Wiki.
Personally i consider the "inplace" conversion of the records harmful. We might end up with a mixture of attributes/properties form different sources that are incompatible. I'd rather see creating a copy of the original record and in cases where some kind of check is needed comparing the records for consistency.
We also might want to add an option to issue warnings if the mapping is incomplete and there are unknown properties in the mapping. For the ormigration that will be pretty much standard due to the dozens of properties that are declared and sometimes never used in the environment.
I am going to add another issue in this project that links to tholzheim/wikirender#9 for the general issues we have with making sure the different representation of entities/instances in our Semantic MediaWiki environment are aligned.
What do you think?
Example Result of current approach:
Beta Was this translation helpful? Give feedback.
All reactions