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

https://github.com/neo4j/neo4j/blob/master/community/cypher/src/test/java/org/neo4j/cypher/javacompat/javaquery.java

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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -