linkml / schema-automator

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

Write an XML Schema importer #87

Open cmungall opened 1 year ago

cmungall commented 1 year ago

This would be the reverse operation to: https://github.com/linkml/linkml/issues/117

(currently importers live in schema-automator and generators in the main linkml, we may want to consider migrating, as these mature)

@ialarmedalien if you were inclined to take this on, I would use SqlImportEngine as a template (or JsonSchemaImportEngine, but that one is a bit messy and over-complex and may need to be rewritten - SqlImportEngine is simple and clean)

ialarmedalien commented 1 year ago

There are a couple of python libraries I have looked at / tinkered with that can read XSD files and generate a corresponding set of python dataclasses or templated source code. Converting the output of one of those modules to be compatible with linkml python objects would save a lot of work.