It would be useful to be able to reconstruct class hierarchies. This would be optional, as this would be partly heuristic.
This is probably best conceived of as compositional:
schemauto import-json-schema is concern with strict isomorphic conversion
in the linkml core, we have schema transformations to reconstruct.
in fact we already support the reverse with logical_model_transformer which will "unwind" hierarchies into boolean schema compositions (which is deterministic, unlike the reverse)
JSON-Schema does not support inheritance, but some people employ boolean schema composition patterns to achieve analogous representations:
https://json-schema.org/blog/posts/modelling-inheritance
Another pattern is the allOf one employed by ODK: https://github.com/INCATools/ontology-development-kit/blob/master/schema/project-schema.json
It would be useful to be able to reconstruct class hierarchies. This would be optional, as this would be partly heuristic.
This is probably best conceived of as compositional:
schemauto import-json-schema
is concern with strict isomorphic conversion