LinkML

‘LinkML is a general purpose modeling language that can be used with linked data, JSON, and other formalisms’

https://linkml.io/ https://linkml.io/linkml/

It can generate

Check out https://linkml.io/linkml/examples.html#example-models

rdf