SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create Graph Workspace Visualization in SAP HANA Cloud, SAP HANA Database

Learn to visualize a Graph Workspace in SAP HANA Cloud, SAP HANA database using Kepler.gl.

Overview

🎓 advanced 15 min. SAP HANA CloudAdvancedSAP HANA GraphSAP HANA CloudSAP HANA DatabaseSAP HANA Multi Model ProcessingSAP HANA Spatial

You will learn

  • โœ”About some graph functions that are available in the hana-ml library
  • โœ”How to create a Graph Workspace using Wellington’s Storm water Network data
  • โœ”How to visualize the graph with Kepler.gl
Christoph Morgen C Christoph Morgen February 6, 2025
Created by July 16, 2021
Contributors

Prerequisites

Prerequisites

Steps

Intro

In this tutorial, you will create a Graph Workspace based on imported vertices and edges. You will use the Wellington’s Storm water Network data stored as a graph to create a visualization in Kepler.gl.

The following terms are used in specific contexts:

data-frame : when referring to the logical concept of a data frame

dataframe : when referring to a Python Object


Step 1 What is a Graph Workspace?
โ€”

A Graph is a data model used to represent networks โ€“ social networks, supply chains, power grids etc. A graph is a set of vertices and edges in SAP HANA Cloud, SAP HANA database. Each edge has a direction and connects two vertices. One vertex is denoted as the source and the other as the target. You can have any number of edges connecting the same two vertices. Vertices and edges can have an arbitrary number of attributes. An attribute consists of a name that is associated with a data type and a value.

You can store a graph as two relational objects that can be tables or views. These objects are called the vertex table and edge table. Learn more about SAP HANA Graph Data Model from the technical documentation.

A graph workspace is a catalog object that defines a graph in terms of tables and columns. It is uniquely identified by the database schema it resides in and the workspace name. A database instance can contain multiple graph workspaces in the same schema with different workspace names or different database schemas.

Step 2 Overview of graph functions in hana-ml library
+
Step 3 What is hana_ml.dataframe module?
+
Step 4 Store sample data in the database using Pandas
+
Step 5 Create the graph in the database
+
Step 6 Display object representation of graph in Python
+
Step 7 Visualize the graph using Kepler.gl
+
Step 8 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. What is a Graph Workspace? 2. Overview of graph functions in hana-ml library 3. What is hana_ml.dataframe module? 4. Store sample data in the database using Pandas 5. Create the graph in the database 6. Display object representation of graph in Python 7. Visualize the graph using Kepler.gl 8. Test yourself

Learn more →