datahub/docs/how/metadata-modelling.md

8 lines
825 B
Markdown
Raw Normal View History

2019-12-18 18:57:18 -08:00
# How to model metadata for GMA?
GMA uses [rest.li](https://rest.li), which is LinkedIn's open source REST framework.
All metadata in GMA needs to be modelled using [Pegasus schema (PDSC)](https://linkedin.github.io/rest.li/DATA-Data-Schema-and-Templates) which is the data schema for [rest.li](https://rest.li).
Conceptually were modelling metadata as a hybrid graph of nodes ([entities](../what/entity.md)) and edges ([relationships](../what/relationship.md)), with additional documents ([metadata aspects](../what/aspect.md)) attached to each node.
Below is an an example graph consisting of 3 types of entities (User, Group, Dataset), 3 types of relationships (OwnedBy, HasAdmin, HasMember), and 3 types of metadata aspects (Ownership, Profile, and Membership).
![metadata-modeling](../imgs/metadata-modeling.png)