datahub/docs/how/metadata-modelling.md
Mars Lan 1283dd3ff4
refactor(pdl): convert all pdsc to pdl (#1678)
Use the automated tool in https://linkedin.github.io/rest.li/pdl_migration
Also update all relevant docs
2020-05-21 10:49:23 -07:00

9 lines
962 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# How to model metadata ?
[GMA](../what/gma.md) 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 (PDL)](https://linkedin.github.io/rest.li/pdl_schema) 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. You can also think of it as a modified [Entity-Relationship Model](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model).
Here is 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)