如何获取某个space内,所有tag与edge type的关系数据

类似studio工具中获取schema的功能

按我之前的了解,schema间的关系是通过数据采样完成的,通过多次执行 MATCH (n:xxx)-[r]-(m) RETURN labels(n), type(r), labels(m) LIMIT … 并完成数据组装,而且形成的数据并不能代表完整的关系。

2 个赞

sample query

参考我们在 LlamaIndex 中的实现

https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/llama_index/graph_stores/nebula/nebula_graph_store.py

1 个赞