Explore graph data with the Spanner Graph notebook

The Spanner Graph notebook lets you explore your data visually. Using Graph Query Language (GQL) query syntax, you can extract graph insights and relationship patterns, including node and edge properties and neighbor expansion analysis. The tool also provides graph schema metadata visualization, tabular results inspection, and diverse layout topologies.

You can use the notebook to connect to a Spanner Omni deployment. The Spanner Graph notebook supports three security configurations:

The Preview version of Spanner Omni supports unencrypted deployments. To get the features that let you create deployments with encryption, contact Google to request early access to the full version of Spanner Omni.

Before you begin

Use the Spanner Graph notebook version 1.1.10 or later.

Initialize a Spanner Graph notebook connection

To initialize a connection to the Spanner Graph notebook, run the %%spanner_graph --database command with the parameters for the security configuration you're using.

Use plain text

To initialize a connection using plain text communication, run the following command:

%%spanner_graph --database DATABASE_NAME --experimental_host OMNI_ENDPOINT:PORT --use_plain_text

Use TLS

To establish a TLS connection, run the following command:

%%spanner_graph --database DATABASE_NAME --experimental_host OMNI_ENDPOINT:PORT --ca_certificate PATH_TO_CA_CERT

Use mTLS

To configure a mutual TLS (mTLS) connection, run the following command:

%%spanner_graph --database DATABASE_NAME --experimental_host OMNI_ENDPOINT:PORT --ca_certificate PATH_TO_CA_CERT --client_certificate PATH_TO_CLIENT_CERT --client_key PATH_TO_CLIENT_KEY

What's next