ノードとエッジをfaunus gremlinにロードするためにjsonファイルを使用していますが、このようなエラーが発生します...
java.io.IOException: A JSONObject text must end with '}' at character 1 of {
at com.thinkaurelius.faunus.formats.graphson.FaunusGraphSONUtility.fromJSON(FaunusGraphSONUtility.java:76)
at com.thinkaurelius.faunus.formats.graphson.GraphSONRecordReader.nextKeyValue(GraphSONRecordReader.java:41)
私はjsonファイル(実際のファイル)にこの形式を持っています...
{
"mode": "NORMAL",
"vertices": [
{
"_id": "5",
"PostId": "5",
"Vtype": "Post",
"_type": "vertex"
},
{
"_id": "definitions",
"_type": "vertex",
"Count": "9",
"TagId": "definitions"
}
]
}
{
"mode": "NORMAL",
"edges": [
{
"_outV": "definitions",
"_type": "edge",
"_id": 0,
"_inV": "5",
"_label": "totalAuthorIs"
}
]
}
私がgremlinで何をしたかを見てみましょう: http://i.imgur.com/wzzOmw9.png
基本的に、faunus.properties をロードした後に gV を実行しただけです
形式が正しいか、またはエラーを解決するために何か他のことを行う必要があります。問題がどこから忍び寄っているのか理解できません。
前もって感謝します