schema-automator icon indicating copy to clipboard operation
schema-automator copied to clipboard

Write an XML Schema importer

Open cmungall opened this issue 3 years ago • 2 comments

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)

cmungall avatar Aug 11 '22 20:08 cmungall

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.

ialarmedalien avatar Aug 15 '22 20:08 ialarmedalien

Some additional discussion here: https://fosstodon.org/@[email protected]/112842241573889212

linkmluser avatar Aug 08 '24 17:08 linkmluser