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.
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.
Run the following command under the same unitycatalog folder to start a Unity Catalog server at port 9000
Run the following shell script to populate tables and fill them with random data:
id
name
age
id
name
lang
id
from_id
to_id
weight
id
from_id
to_id
weight
Run the following command to start a PuppyGraph instance:
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.
Alternatively, run the following command to upload the schema file after filing <unity-catalog-hostname>:
Run the following command to shut down and remove the PuppyGraph
Also send Ctrl-C to stop the Unity Catalog Server.