This experiment is mainly to get familiar with the operation of GES diagram creation. The general process of GES diagram creation is shown as follows.
- Environment to prepare
- Upload data
- Importing metadata
- Create diagrams
Environment to prepare
The original data of GES is stored on OBS. If no bucket exists on OBS, perform the following steps to create a bucket.
Log in to the Huawei cloud and click Login in the upper right corner.
Select IAM user login or direct login based on the account type:
After login, enter “OBS” in the search box, as shown below, and then click “Console” to enter:
After entering the OBS screen, click Create Bucket in the upper right corner.
Then create buckets as per bucket requirements, because each bucket name is unique, the bucket name need not be the same as this experiment:
Once created, click on the bucket name to enter the bucket, then click on the left “Objects”, then “New Folder” to create the “ges” folder:
Then click to go to the “ges” folder and create the movie-data folder:
Upload a file
Method 1: Upload the dot files, edge files, and schema files to the movie-data folder:
Method 2: Download the public data set from the AI Gallery.
Search for AI Gallery in the search box:
After entering the AI Gallery interface, select the “Data” column:
Go to the desired data page and click the “Download” button:
Download the data to the created OBS folder:
Importing metadata
Search for GES in the search box and click to go to the console:
Click the console to enter and enter the following interface. Click “Metadata Management” on the left to enter the metadata management interface:
Click “Import” :
Click “Import” and the following window will pop up. Because the data has been uploaded to OBS bucket, select “OBS” as the type and select “Select file path” as the schema.xml we uploaded to OBS:
After the configuration is complete, click OK at the bottom of the window, and the effect is shown as follows:
Create diagrams
On the graph Engine service page, click Graph Management on the left menu bar. The Graph Management page is displayed. Then click Create Diagram in the upper right corner.
On the page for creating a graph, select enable for the name, Usage, and Initial data of the configuration graph, and select the data that has been uploaded in OBS for edge Data set and Point data set.
Then click “Confirm creation”, “Submit” and “Return to Task List” successively to enter the following interface:
Click “Diagram Management” in the left column to see the diagram creation progress.
Wait until the diagram’s running state changes to Running. The diagram has been created. At this time, you can click “Access” in the right operation bar or call API to query and analyze the graph.
This document is published by Huawei Cloud.