neo4j-java-binding quetions

23 views
Skip to first unread message

Sotiris Beis

unread,
May 13, 2014, 11:07:46 AM5/13/14
to ne...@googlegroups.com
Hi, 
I am trying to get more familiar with the java-rest-binding (https://github.com/neo4j/java-rest-binding). My main question is what operations of the GraphDatabaseService supports. For example I read here tha GlobalGraphOperation are not supported, but the tests use them. I have the final release (2.0.1). In adittion to this I would like to know if there is a significant defference between GraphDatabaseService gds = new RestGraphDatabase("http://localhost:7474/db/data"); and RestAPI restAPI = new RestAPIFacade("http://localhost:7474/db/data",username); or it's the same way to connect to the neo4j server. 

Thanks in advance,
Sotiris

Alex Frieden

unread,
May 13, 2014, 11:35:20 AM5/13/14
to ne...@googlegroups.com
In general you will find it to be VERY slow.  I would suggest going through cypher, it is much faster.

What is your use case?


--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alexander Frieden

Sotiris Beis

unread,
May 14, 2014, 3:11:43 AM5/14/14
to ne...@googlegroups.com
I have a two threaded application. The first thread reads the data from a crawler and creates the database while the second will conduct some analysis to the graph. I haven't decided the queries yet.

My code is in java so I can't go directly through cypher. I need either a java binding or maybe it's better to use this http://docs.neo4j.org/chunked/stable/server-java-rest-client-example.html instead?

Sotiris
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/OVB8xdshQJs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Sotiris Beis

unread,
May 16, 2014, 7:24:01 AM5/16/14
to ne...@googlegroups.com


Τη Τετάρτη, 14 Μαΐου 2014 10:11:43 π.μ. UTC+3, ο χρήστης Sotiris Beis έγραψε:
I have a two threaded application. The first thread reads the data from a crawler and creates the database while the second will conduct some analysis to the graph. I haven't decided the queries yet.

My code is in java so I can't go directly through cypher. I need either a java binding or maybe it's better to use this http://docs.neo4j.org/chunked/stable/server-java-rest-client-example.html instead?

Sotiris

On 05/13/2014 06:35 PM, Alex Frieden wrote:
In general you will find it to be VERY slow.  I would suggest going through cypher, it is much faster.

What is your use case?
On Tue, May 13, 2014 at 11:07 AM, Sotiris Beis <sot....@gmail.com> wrote:
Hi, 
I am trying to get more familiar with the java-rest-binding (https://github.com/neo4j/java-rest-binding). My main question is what operations of the GraphDatabaseService supports. For example I read here tha GlobalGraphOperation are not supported, but the tests use them. I have the final release (2.0.1). In adittion to this I would like to know if there is a significant defference between GraphDatabaseService gds = new RestGraphDatabase("http://localhost:7474/db/data"); and RestAPI restAPI = new RestAPIFacade("http://localhost:7474/db/data",username); or it's the same way to connect to the neo4j server. 

Thanks in advance,
Sotiris

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alexander Frieden

--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/OVB8xdshQJs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+unsubscribe@googlegroups.com.

Daniel Tyreus

unread,
May 23, 2014, 4:54:46 PM5/23/14
to ne...@googlegroups.com
I never had much luck with the java REST binding. It's slow and works in strange ways. I wrote my own simpler client to just use cypher over REST to the transactional endpoint. You may find it a nice alternative if you like using Cypher. 

Reply all
Reply to author
Forward
0 new messages