Creating a graph in Studio

Creating a graph in DataStax Studio.

Depending on the DSE Graph schema mode, DataStax Studio will have differing behavior. In Production mode, DataStax Studio will not auto-create a graph, and the graph must be created in the Gremlin console. In Development mode, DataStax Studio creates a graph and aliases the graph to a graph traversal automatically for each connection that is created.

Procedure

  1. Start DSE Graph.
  2. Install and start DataStax Studio. Also create a Studio notebook, if needed.
  3. In DataStax Studio, create a new connection.. Choose a graph name; any graph previously unused will work.
  4. In DataStax Studio, create a new notebook.. Select the connection created in the last step.

    A blank notebook will open with a single cell. DSE Graph runs a Gremlin Server tinkerpop.server on each DSE node. DataStax Studio automatically connects to the Gremlin Server, and if it doesn't exist, creates a graph using the connection information. The graph is stored as one graph instance per Cassandra keyspace with a replication factor of 1 and a strategy of SimpleStrategy. Once a graph exists, a graph traversal g is configured that will allow graph traversals to be executed. Graph traversals are used to query the graph data and return results. A graph traversal is bound to a specific traversal source which is the standard OLTP traversal engine.