In this demo, the random value generator in the unitycatalog repository has been modified to produce a smaller range of values so that the values are interconnected to form a graph conceptually. The demo will be updated soon to use user-provided data.
The tables contain the following fields:
id
name
age
String
String
Int
id
name
lang
String
String
String
id
from_id
to_id
weight
String
String
String
Double
id
from_id
to_id
weight
String
String
String
Double
Starting PuppyGraph
▶️ Run the following command to start a PuppyGraph instance:
We then define a graph on top of the data tables we just created. Actually, this graph has the same schema as "Modern" graph defined by Apache Tinkerpop. Meanwhile, it contains random data populated from the Unity Catalog Table CLI.
A schema instructs PuppyGraph on mapping Delta tables into a graph. PuppyGraph offers various methods for schema creation. For this tutorial, we've already prepared a schema to help save time.
▶️ Create a PuppyGraph schema file schema.json with the following content:
▶️ Replace the <unity-catalog-hostname> by your machine host name or IP address.
▶️ Log into PuppyGraph Web UI at http://localhost:8081 with username and password of PuppyGraph.(default username: puppygraph, default password: puppygraph123)
▶️ Upload the schema by choosing the file schema.json in the Upload Graph Schema JSON block and clicking on Upload.
Once the schema is uploaded, the schema page shows the visualized graph schema as follows.
Alternative: Schema Uploading via CLI
▶️ Alternatively, run the following command to upload the schema file after filing <unity-catalog-hostname>: