Quarto graph experiment - DylanShang version

kuzu
pyvis
quarto
Author

Analect

Published

August 22, 2024

What is in the data folder?

Generate self-contained graph

Try to Connect to a pre-existing kuzu-test database

This is not going to work for now. From here, it seems that the pyodide VFS (virtual file system) is different to that of the Kuzu VFS.

Would expect to get returned something like:

┌──────────────┬────────┬───────────────┬─────────┐
 name         │ type   │ database name │ comment │
 STRING       │ STRING │ STRING        │ STRING  │
├──────────────┼────────┼───────────────┼─────────┤
 has_source   │ REL    │ local(kuzu)   
 has_category │ REL    │ local(kuzu)   
 Author       │ NODE   │ local(kuzu)   
 Category     │ NODE   │ local(kuzu)   
 authored_by  │ REL    │ local(kuzu)   
 Source       │ NODE   │ local(kuzu)   
 Document     │ NODE   │ local(kuzu)   
└──────────────┴────────┴───────────────┴─────────┘

Instead, I’m getting back this:

./data/kuzu-test
name|type|database name|comment

get_as_df

Which would suggest a connection is not being made to the kuzu database.

Try ATTACH to external kuzu DB

Turns out httpfs is not supported yet in this version of kuzu-wasm.

Regenerate Kuzu database in Kuzu VFS

Let’s try to emulate our load_data_kuzu.py script within the cell below, so that we end up re-creating a kuzu database that we can connect to.