Creating a schema in DataStax Studio
Create a schema to give your graph a structure.
Prerequisites
- DSE 5.1 installed, configured, and running.
- DataStax Studio installed and running.
- A connection from Studio to a DSE cluster.
- An existing notebook.
To create a schema, execute Gremlin code in a Gremlin cell in your notebook. The schema used in this example represents users and products and their relationships to one another.
Procedure
- Add a code cell to your notebook.
-
Write code to create a schema:
-
Execute the code by selecting Run Cell.
You have created the schema for the example.
-
View the resulting schema by selecting Schema in the
upper-right-hand corner of the notebook.
Results
The schema you created in this task is based on the following data model: