Debuginfo

思考とアウトプット

Neo4jとRexsterの連携方法

まずneo4jのデータベースを作る。(シェルで指定するとできるみたい)

> ./neo4j-shell -path ../data/neo4jtest.db
> ls ../data/neo4jtest
active_tx_log                                   neostore.nodestore.db.id                        neostore.propertystore.db.index.keys            neostore.relationshiptypestore.db.id
index                                           neostore.propertystore.db                       neostore.propertystore.db.index.keys.id         neostore.relationshiptypestore.db.names
lock                                            neostore.propertystore.db.arrays                neostore.propertystore.db.strings               neostore.relationshiptypestore.db.names.id
messages.log                                    neostore.propertystore.db.arrays.id             neostore.propertystore.db.strings.id            nioneo_logical.log.1
neostore                                        neostore.propertystore.db.id                    neostore.relationshipstore.db                   nioneo_logical.log.active
neostore.id                                     neostore.propertystore.db.index                 neostore.relationshipstore.db.id                tm_tx_log.1
neostore.nodestore.db                           neostore.propertystore.db.index.id              neostore.relationshiptypestore.db

次にrexster.xmlの変更。

<graph-enabled>true</graph-enabled>
<graph-name>neo4jsample</graph-name>
<graph-type>neo4jgraph</graph-type>
<graph-location>$HOME/GraphDB/neo4j/data/neo4jtest</graph-location>

で、Rexsterを起動すればアクセスできる。