【发布时间】:2021-12-24 16:50:04
【问题描述】:
我已成功将 node.csv 和 edge.csv 加载到 AWS Neptune。
我正在尝试根据相应的标签将顶点显示为图像。
例如,198.51.100.0 和 adesai 之间有一条边,并且 198.51.100.0 也连接到 gramirez。
所以,我想为 IPAddress 显示一个 address.png,为 adesai & gramirez 显示一个 person.png。
我正在使用 Gremlin 语言,我在下面尝试过,但它不起作用。
%%graph_notebook_vis_options<br>
{<br>
"nodes":{ "id":"0", "label": "User", "shape": "circularImage", "image": "person.png"},<br>
"nodes":{ "id":"1", "label": "User","shape": "circularImage", "image": "person.png"},<br>
"nodes":{ "id":"2", "label": "Restaurant","shape": "circularImage", "image": "restaurant.png"},<br>
"nodes":{ "id":"3", "label": "Restaurant","shape": "circularImage", "image": "restaurant.png"},<br>
"nodes":{ "id":"4", "label": "IPAddress","shape": "circularImage", "image": "address.png"}<br>
}
节点只是显示相同的图像。 任何人都可以建议吗?谢谢
【问题讨论】:
-
您看过 02-visualization 文件夹中的示例了吗?空中航线 Gremlin 示例展示了如何为节点使用自定义图标。
-
我继续在下面添加了一个答案。您还可以在位于此处的项目的 Git 存储库中找到更多信息:github.com/aws/graph-notebook
标签: amazon-web-services gremlin graph-databases amazon-neptune graph-notebook