1
如何從JSON文件導入到泰坦DB,當我使用地理位置屬性?泰坦DB 1.0.0:無法導入JSON文件到泰坦TinkerPop 3.x
我與泰坦DB TP3工作 - 3.0.1版,孵化
gremlin> Gremlin.version()
==>3.0.1-incubating
gremlin>
,並使用GeoShape index屬性(地理位置), 嘗試導出和導入到新的數據庫。
我的步驟如下:
//export :
tg = TitanFactory.open(‘../conf/titan-db.properties’)
tg.io(IoCore.graphson()).writeGraph('/var/backups/PRODUCTION_DATA_27_10_16.json');
//import to new DB:
tg.io(IoCore.graphson()).readGraph('/var/backups/PRODUCTION_DATA_27_10_16.json');
但不幸得了例外:
gremlin> tg.io(IoCore.graphson()).readGraph('/var/backups/PRODUCTION_DATA_27_10_16.json');
Property value [{type=Point, coordinates=[33.0, 32.0]}] is of type class java.util.LinkedHashMap is not supported
Display stack trace? [yN] y
java.lang.IllegalArgumentException: Property value [{type=Point, coordinates=[33.0, 32.0]}] is of type class java.util.LinkedHashMap is not supported
at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.dataTypeOfPropertyValueNotSupported(Property.java:159)
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.verifyAttribute(StandardTitanTx.java:564)
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.addProperty(StandardTitanTx.java:716)
at com.thinkaurelius.titan.graphdb.vertices.AbstractVertex.property(AbstractVertex.java:142)
at com.thinkaurelius.titan.graphdb.vertices.AbstractVertex.property(AbstractVertex.java:23)
at org.apache.tinkerpop.gremlin.structure.util.Attachable$Method.lambda$createVertex$26(Attachable.java:296)
請任何解決方案...。?
題外話:什麼是1.1版本的ETA ?你碰巧知道嗎? – Ralf
Datastax(誰收購奧勒留)沒有時間表。您可以在Titan郵件列表中看到這條消息:「構建TitanDB的Aurelius團隊已經開始使用DataStax來開發DSE Graph,TitanDB的後繼者。請聯繫支持以獲取有關DSE Graph或使用StackOverflow的幫助。 –
但是,作爲一個開放項目,泰坦社區的復興工作正在進行中。 –