TinkerPop Gremlin与中文
问题描述:
我想查询包含中文字符的顶点。TinkerPop Gremlin与中文
我通过$gremlin.sh -e test.groovy
println g.V("丁壽全").next()
执行Groovy脚本当试图查找一个顶点,只由ASCII的,它的发现。
我应该如何编码字符串?
非常感谢
答
我正在使用连接到Stardog的gremlin-server。解决方案是:
import com.complexible.stardog.graph.ids.GraphIRI
... gremlin stardog plugin init...
iri = new GraphIRI("http://someuri" + "chinese string")
individual = g.V(iri)