passionate
passionate

Reputation: 533

Creating eclipse EMF from Schema

I am currently parsing large volume of data using Spark. Spark infers the schema after reading all the data. I would like to use this schema to generate Eclipse EMF. But the schema that gets generated in Spark is not in standard XSD format. It is in Json format and I couldn't come up with generic way of converting this Json to XSD. Do you know if I can create XSD when Spark infers the schema?

Upvotes: 1

Views: 275

Answers (1)

Luca Berardinelli
Luca Berardinelli

Reputation: 1

have a look here.

https://epub.jku.at/obvulioa/content/pageview/6390647?query=berardinelli

A JSON schema (conforming to JSON Schema Draft 7) can be converted to an Ecore metamodel and Xtext grammar. Please check the linked GitHub and Zenodo repositories for further information.

Upvotes: 0

Related Questions