java graph width_java – JanusGraph将子图输出为GraphSON错误

我试图用JanusGraph在Gremlin

shell中输出一个子图作为GraphSON.

当我编写完整的图形时,这工作正常,但是,当我想编写一个我使用这些命令查询的子图时:

gremlin> subGraph = g.V(45240).repeat(__.bothE().subgraph('subGraph').bothV()).times(4).cap('subGraph').next()

我使用相同的写命令:

gremlin> subGraph.io(IoCore.graphson()).writeGraph("45240_sub4.json")

我收到此错误:

(was java.lang.IllegalStateException) (through reference chain: org.janusgraph.graphdb.relations.RelationIdentifier[“inVertexId”])

搜索周围,我发现另一个线程说我需要导入一个包以便正确地执行此操作(对于TitanGraph,但我认为它也适用于JanusGraph):Import package in gremlin

但是,每当我尝试导入时:

gremlin> import com.thinkaurelius.titan.graphdb.tinkerpop.io.graphson.TitanGraphSONModule

我收到此错误:

Invalid import definition: ‘com.thinkaurelius.titan.graphdb.tinkerpop.io.graphson.TitanGraphSONModule’; reason: startup failed:

script1494618250861805544050.groovy: 1: unable to resolve class com.thinkaurelius.titan.graphdb.tinkerpop.io.graphson.TitanGraphSONModule

@ line 1, column 1.

import com.thinkaurelius.titan.graphdb.tinkerpop.io.graphson.TitanGraphSONModule

^

1 error

如何使用JanusGraph在Gremlin shell中将子图输出为GraphSON?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值