Studio supports the schema drafting function. Users can design their schemas on the canvas to visually display the relationships between vertices and edges, and apply the schema to a specified graph space after the design is completed.
- Design schema visually.
- Applies schema to a specified graph space.
- Export the schema as a PNG image.
At the top navigation bar, click .
The following steps take designing the schema of the
basketballplayer dataset as an example to demonstrate how to use the schema drafting function.
- At the upper left corner of the page, click New.
- Create a tag by selecting the appropriate color tag under the canvas. You can hold down the left button and drag the tag into the canvas.
- Click the tag. On the right side of the page, you need to fill in the name of the tag as
player, and add two properties
- Create a tag again. The name of the tag is
team, and the property is
- Connect from the anchor point of the tag
playerto the anchor point of the tag
team. Click the generated edge, fill in the name of the edge type as
serve, and add two properties
- Connect from an anchor point of the tag
playerto another one of its own. Click the generated edge, fill in the name of the edge type as
follow, and add a property
- After the design is complete, click at the top of the page to change the name of the draft, and then click at the top right corner to save the draft.
- Select the draft that you want to import from the Draft list on the left side of the page, and then click Apply to Space at the upper right corner.
Import the schema to a new or existing space, and click Confirm.
- For more information about the parameters for creating a graph space, see CREATE SPACE.
- If the same schema exists in the graph space, the import operation fails, and the system prompts you to modify the name or change the graph space.
Select the schema draft that you want to modify from the Draft list on the left side of the page. Click at the upper right corner after the modification.
The graph space to which the schema has been applied will not be modified synchronously.
Select the schema draft that you want to delete from the Draft list on the left side of the page, click X at the upper right corner of the thumbnail, and confirm to delete it.
Click at the upper right corner to export the schema as a PNG image.