在一个包含多个顶点的图中,如何遍历该图并从多个顶点收集选定属性? 假设我有4个顶点(Person1,Person2,Person3,Person4),我想从Person1中获取字段"name“的值,从Person2中获取"name”和"age“字段的值,从Person3中获取"birthday”字段的值,在Person4中获取"hasPets“字段的值。我如何遍历图表,只收集我想要的每个字段的值,并将它们存储在map/hashmap中? 来自其他示例: How do I retrieve multiple multi-properties in Gre
我想知道是否有任何方法导出带所有顶点/边的Gremlin数据库。最好输出是Gremlin遍历的列表,如果需要的话,可以再次完全导入(甚至部分导入)。
这是作为一个工具存在还是在TinkerPop控制台客户机中存在?
自从我使用CosmosDB以来,我一直在尝试Azure的数据迁移工具,这个工具对我不起作用。使用graphson()对我也不起作用,但我可能用错了。
gremlin> graph.io(graphson()).writeGraph("/tmp/output.json");
No such property: graph for class: groovysh_
我是个小精灵新手。使用nodejs,我连接了gremlin并添加了一些顶点。 假设我有10个不同的顶点,并与边相连。有没有办法在nodejs中读取和迭代数据。它类似于带有条件的简单select查询。(select * from users where username='john') async get_vertices_by_props(input) {
var graph_data = await this.get_vertex(input.label,input.property_name)
// some code