linkml / schema-automator

Automated assistance for the schema development lifecycle
https://linkml.io/schema-automator/
BSD 3-Clause "New" or "Revised" License
36 stars 13 forks source link

Use json2python-models as a generalizer #89

Open cmungall opened 2 years ago

cmungall commented 2 years ago

From discussion on slack with @ialarmedalien

json2python-models by @bogdandm can be seen as composing together generalization and python class generation

The generalization part could be used in place of our own generalize-json (but wired to output LinkML schemas) https://github.com/bogdandm/json2python-models

There are a number of advantages over our existing approach such as generalization to unions

There a few ways to approach this: