I want to run CYPHER queries on remote neo4j server using java much like the way we do for SQL using java and use results for computations. I need to connect to remote neo4j, perform cypher queries, get results much like 'result set' in sql-java. Do that need to be done through REST? Am I missing something? Please reply.
On Thursday, 25 September 2014 07:16:56 UTC+5:30, Mohana Krishna, IIT Bombay, India wrote: > > I am trying to connect to remote neo4j server and perform some cypher > queries on it. I am using the reference example: > https://github.com/neo4j/neo4j/blob/2.1.4/community/cypher/docs/cypher-docs/src/test/java/org/neo4j/cypher/example/JavaQuery.java > But I do not get how to configure my code so as to access remote neo4j > server. > > I am also not clear with what exactly "DB_PATH" in above program refers > to. I have given my path as "/var/lib/neo4j/data/graph.db" for local neo4j > server. But it says permission denied even though graph.db folder can be > accessed by all users as can be seen in permission settings. > > So, I need help regarding two things: > > 1) What exactly is "DB_PATH"? Am I wrong in my understanding of path? If > not, why I am unable to connect to my local neo4j server and perform a > simple cypher query on it? (Why permission denied?) > > 2) How to access remote neo4j server from java code? > > Somebody please help. I am novice in using neo4j with Java and this is my > first project. Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.