Executing Neo4j Cypher Query (by Java) Using existing Dataset -
i directly made neo4j dataset using neo4j console ("localhost:7474") (as knew "graph.db") wanna execute cypher query (by java) using data.
i saw example
i wanna use way directly use existing data.
how can this?
if using neo4j in embedded mode i.e. runs within same jvm application, can access using:
graphdatabaseservice graphdb = new graphdatabasefactory().newembeddeddatabase(dbpath)
where dbpath path database created using webadmin. can find path in neo4j install directory/conf/neo4j-server.properties (the property name org.neo4j.server.database.location)
once have instantiated graphdb, can execute cypher queries described in http://docs.neo4j.org/chunked/stable/tutorials-cypher-java.html
if not using neo4j in embedded mode , want connect existing server running on port 7474, can use java rest binding: https://github.com/neo4j/java-rest-binding/
Comments
Post a Comment