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

Take Your First Steps with the SAP HANA Graph Engine

Learn how to prepare your data for the SAP HANA Cloud, SAP HANA database Graph Engine how to create a Graph Workspace.

Overview

🎓 beginner 10 min. SAP HANA CloudBeginnerSAP HANA GraphSAP HANA CloudSAP HANA DatabaseSAP HANA Multi Model Processing

You will learn

  • โœ”What a Graph Workspace is
  • โœ”How to define constraints on sample data tables
  • โœ”How to create a Graph Workspace
Unknown U Unknown November 1, 2022
Created by July 14, 2021
Contributors

Prerequisites

Prerequisites

Steps

Intro

Learn in this tutorial how to get ready to work in a Graph Workspace. This includes two steps:

  • Define required constraints on sample data tables
  • Create a Graph Workspace

Step 1 Introduction to the sample graph data
โ€”

Our graph dataset describes the London street network. Formally, a graph consists of nodes/vertices and edges/links/connections. In this case, you have street segments stored in the LONDON_EDGES table, and junctions in the LONDON_VERTICES table. The edges in the graph are “directed”, they have a SOURCE and a TARGET.

Most streets in the real world are bi-directional and so most of the segments are represented as two edges in the graph - one for each direction.

The SAP HANA Graph engine requires a key on both tables, and the source and target of the edges must not contain NULLs.

To ensure the graph’s consistency, it is also good practice to have a foreign key relationship defined on source and target column. Doing so will prevent “dangling edges”, i.e. edges without vertices.

Once your data is prepared, you expose it to the SAP HANA Graph engine via a GRAPH WORKSPACE.

Step 2 Define required constraints on sample data tables
+
Step 3 Create a Graph Workspace
+
Step 4 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 4
1. Introduction to the sample graph data 2. Define required constraints on sample data tables 3. Create a Graph Workspace 4. Test yourself

Learn more →