finos / legend

The Legend project

Home Page:https://legend.finos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to fetch a data model definition along with all associated metadata model definitions via API ?

szymonzabiello opened this issue · comments

Before asking a question

  1. Review Legend documentation and frequently asked questions
  2. Search existing issues since someone might have already asked a similar question.

Ask a question

Is it possible to fetch a data model definition along with all associated metadata model definitions via API (pull & push of metadata)?

This issue is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

This issue was closed because it has been inactive for 35 days. Please re-open if this issue is still relevant.

Answer from #634

Issue: #639 Is it possible to fetch a data model definition along with all associated metadata model definitions via API ?

All of the schemas are publishing JSON or could be transformed into what you want. There is a service in the system that is a parser. You can also interrogate the metadata server and get a JSON dump of all the information, which is formally defined as part of the Meta models and they are documented in the Legend Pure project. There are schemas and models that are formally defined and the information is published as part of the metadata server, so it’s easy to call the metadata server and write a transformer.

Why don't we use our own platform to do that?

It works at the model level because it's built for that, and it works already as part of the regional environment. We will make it easily available in the environment so that any metadata that is operated could be processed within the modeling environment. Using mapping and tooling to transform data. This can be done because the meta-model is recursively defined and the fact that a class is a class in the system gives the capabilities to apply function at the meta layer, and model layer.

Simple answer: it can be done today by taking JSON and writing the transformer yourself, and once we enable Metadata with a query in Studio, you will be able to do it in Studio itself.