Design a schema¶
To manipulate graph data in NebulaGraph with Studio, you must have a graph schema. This article introduces how to design a graph schema for NebulaGraph.
A graph schema for NebulaGraph must have these essential elements:
- Tags (namely vertex types) and their properties.
- Edge types and their properties.
In this article, you can install the sample data set basketballplayer and use it to explore a pre-designed schema.
This table gives all the essential elements of the schema.
|Element||Name||Property name (Data type)||Description|
|Represents the player.|
||Represents the team.|
|Represent the players behavior.
This behavior connects the player to the team, and the direction is from player to team.
||Represent the players behavior.
This behavior connects the player to the player, and the direction is from a player to a player.
This figure shows the relationship (serve/follow) between a player and a team.
Last update: March 24, 2023