Re: [Neo4j] Unable to connect to neo4j shell remotely (windows)

2014-03-17 Thread Michael Hunger
Great, thanks for the update. Michael Am 18.03.2014 um 03:27 schrieb Reihane Boghrati : > Hi again, > > I am now able to start Neo4j server from command line (Windows). My client > (on a different PC) connects to it using the following code snippet: > > restgraphDb = new RestAPIFacade("http:

Re: [Neo4j] Unable to connect to neo4j shell remotely (windows)

2014-03-17 Thread Reihane Boghrati
Hi again, I am now able to start Neo4j server from command line (Windows). My client (on a different PC) connects to it using the following code snippet: restgraphDb = new RestAPIFacade("http://serverip:7474/db/data";); To make this function properly, I had to: 1) make sure the firewall was c

Re: [Neo4j] Re: SDN 3.0.1 Backward compatibility

2014-03-17 Thread Mike Holdsworth
Nope - hadn't seen that. I had read http://projects.spring.io/spring-data-neo4j/#quick-start page, the release notes and the refrerence guide. It just didn't stand out. Thanks for the pointer I added the base-package to https://groups.google.com/d/optout.

Re: [Neo4j] Java REST Binding

2014-03-17 Thread BtySgtMajor
Michael, just in case you haven't seen this: http://forum.spring.io/forum/spring-projects/data/nosql/746297-spring-data-neo4j-fails-on-upgrade-to-3-0-1 I'm actually getting the same issue. It's getting late, though, and I'm heading out, but nothing obvious jumps out at me. I guess this issue

[Neo4j] Neo4j equivalent for Db Schema

2014-03-17 Thread Amit
Hi, I am coming from Oracle background and wanted to know if there any anything equivalent to different schema of a oracle db in Neo4j. We can have multiple db instances running on a machine and in each instance we can have different schema/users, these schema can have multiple tables. This is

Re: [Neo4j] Spring Data Neo4j: LabelBasedStrategyCypherHelper.getNodesWithLabel executed for every returned node (slow performance)

2014-03-17 Thread Michael Hunger
Lorenzo, unfortunately labels are not returned with the nodes from the remote API so they have to be fetched separately. Also in general I don't advise the use of SDN against a remote server, except if you know exactly what you're doing (i.e. use repositories with cypher statements and mapped

Re: [Neo4j] Problem w queries not returning graph through webadmin

2014-03-17 Thread Michael Hunger
Hi John, that's weird. What you see is a timeout. cache_type=none can be a problem, can you reset it to the default (which is imho "soft" e..g by commenting it out) Could you share your full messages.log ? How many rel-types do you have? and how many relationships on average per node? Also

Re: [Neo4j] Issue Combining Collections Together to get a limit results

2014-03-17 Thread Graham Berry
Thanks for replying sorry for the mess, I'm a little new to all of this The reason for the query is for search purposes and want to be able to combine two queries as an 'or' and return them as one set of unique nodes, or a collection of unique nodes while getting only set number of results

Re: [Neo4j] On relative performance of native querying in Java vs. Cypher querying.

2014-03-17 Thread Michael Hunger
Hi Costas, this is quite an email and exercise. In general the Java APIs outperform cypher as they don't include parsing queries, transforming results etc and are already pre-compiled by the java compiler to effective bytecode on the jvm. Cypher runs more like an interpreter on top of it. Curr

[Neo4j] Re: Spring Data Neo4j: LabelBasedStrategyCypherHelper.getNodesWithLabel executed for every returned node (slow performance)

2014-03-17 Thread Philippe Baumard
> > @Lorenzo Speranzoni > Hi, I am developping an application with Noe4j (www.bontirage.com). I was surprised by the number of possibilities to use Neo4j. - Embedded, - REST API, - Cypher, - Sprind Data, What to do? i did research about the performance i my choice was Embedded Database with

[Neo4j] Re: Spring Data Neo4j: LabelBasedStrategyCypherHelper.getNodesWithLabel executed for every returned node (slow performance)

2014-03-17 Thread Philippe Baumard
> @Lorenzo Speranzoni > Hi, I am developping an application with Noe4j (www.bontirage.com). I was surpris eby the number of possibilities tiuse Neo4j. -Embedded - REST API, - Cypher, What to do? i did research about the performance i my choice was Embedded Database with API. -- You receiv

[Neo4j] Problem w queries not returning graph through webadmin

2014-03-17 Thread John Libby
Hello, I have the following scenario: 90M nodes, all the same type, with 10 brief properties 220M rels, 8 brief properties When running any query (for example, MATCH (a)-[:`CP`]->(b) RETURN a,b LIMIT 25), timeout occurs. The web application (/browser) shows "unknown error", and intermittentl

[Neo4j] Spring Data Neo4j: LabelBasedStrategyCypherHelper.getNodesWithLabel executed for every returned node (slow performance)

2014-03-17 Thread Lorenzo Speranzoni (@inserpio)
Hi everybody, I'm currently testing Spring Data Neo4j 3.0.1 with an already existent Neo4j 2.0.1 graph database. My log is displaying something like this: 2014-03-17 19:15:17,401 [DEBUG] [main] org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine - Executing remote cypher query: mat

[Neo4j] neo4j curating nodes by their id

2014-03-17 Thread Alex Frieden
Currently creating a website for a small team of people in my company that does not delete nodes but edits existing ones and adds new ones. I am currently using id of the node to edit it. Now I have heard this is a bad idea since the nodes are not unique over all time (i.e. if I delete a nod

Re: [Neo4j] Java REST Binding

2014-03-17 Thread BtySgtMajor
This should answer the question. :) For all interested, there is this blog post: http://blog.neo4j.org/2014/03/spring-data-neo4j-progress-update-sdn-3.html On Monday, March 17, 2014 12:45:54 PM UTC-4, BtySgtMajor wrote: > > Actually, are there release notes besides the changelog.txt and the >

Re: [Neo4j] CrudRepository.exists and inheritance don't work well together

2014-03-17 Thread Grégoire Colbert
Hi, I finally found a workaround, by using : @Query(value = "MATCH (n:Community) WHERE id(n)=({id}) RETURN count(n)") public Long count(@Param("id") Long id); and an external method that converts the result of the count(Long id) to a boolean. Grégoire Le lundi 17 mars 2014 15:59:05 UT

Re: [Neo4j] Java REST Binding

2014-03-17 Thread BtySgtMajor
Actually, are there release notes besides the changelog.txt and the developer notes for the 3.0.1 release? On Monday, March 17, 2014 12:42:57 PM UTC-4, BtySgtMajor wrote: > > Ah brilliant! I'm hoping to find some time in the very near future to > play around with the new SDN and the new Java RE

Re: [Neo4j] Java REST Binding

2014-03-17 Thread BtySgtMajor
Ah brilliant! I'm hoping to find some time in the very near future to play around with the new SDN and the new Java REST binding. Thanks again for all your (and your team's) hard work! On Monday, March 17, 2014 11:49:56 AM UTC-4, Michael Hunger wrote: > > Hi Duncan, > > Yep it is compatible wit

Re: [Neo4j] Convenient interface to manually build social network data

2014-03-17 Thread Javier de la Rosa
Hi Jean-Baptiste, I think that the Neo4j web interface is so powerful and yet simply to use. But if you are looking for something even easier to use for your study, you could give it a shot to SylvaDB [1], which is built on top of Neo4j. If you need any help with this, don't hesitate to contact me

[Neo4j] On relative performance of native querying in Java vs. Cypher querying.

2014-03-17 Thread costas . barbis
*Author's note:* Even though this post seems to be partially delving into the technical characteristics of Cypher it has been created as an initiator for discussion on relative scalability and performance of native vs. cypher so I believed it should be placed in the group forum as opposed to s

Re: [Neo4j] Java REST Binding

2014-03-17 Thread Michael Hunger
Hi Duncan, Yep it is compatible with 2.0 and also got some label support. SDN 3.0.1 is also compatible with Neo4j 2.0.1 see the blog post: http://blog.neo4j.org/2014/03/spring-data-neo4j-progress-update-sdn-3.html And it took a while, too many SPI and API updates to take care of in SDN and rel

Re: [Neo4j] Java REST Binding

2014-03-17 Thread BtySgtMajor
Just wanted to see if it was Neo4j 2.0 compatible so I could start playing with it, especially if I ended up needing it for any projects involving Neo4j 2.0. Also, Michael, just to save myself some time... :) Looking at Spring Data Neo4j and the latest 3.0.1 release: Is that release compatible

Re: [Neo4j] Java REST Binding

2014-03-17 Thread Michael Hunger
The tag is just from the release. it is as production ready as the previous versions, not so many changes there. What do you want to use it for? Michael Am 17.03.2014 um 16:34 schrieb BtySgtMajor : > Hi all, > > Does anyone know if the neo4j-rest-graphdb-2.0.1 tag of the Java REST > bindin

[Neo4j] Java REST Binding

2014-03-17 Thread BtySgtMajor
Hi all, Does anyone know if the neo4j-rest-graphdb-2.0.1 tag of the Java REST binding is stable/production ready? Any comments on said tag as well as when it might be expected that it's merged/made into the master branch would be most welcome! Thanks! Cheers, Duncan -- You received th

Re: [Neo4j] CrudRepository.exists and inheritance don't work well together

2014-03-17 Thread Grégoire Colbert
Hi Michael, Following your comment at https://jira.spring.io/browse/DATAGRAPH-438 : is there a way to override the exists() method before the issue is solved? That is, is there a way to make this request: match (n:Community) where id(n)={id} return count(n) > 0 return a boolean when there is z

Re: [Neo4j] Bug in Node.getRelationships function?

2014-03-17 Thread Mattias Persson
Thank you, I was just now able to reproduce this! 2014-03-17 11:28 GMT+01:00 Sotiris Beis : > Hi Mattias, > > here is some more details: > > - The function to create the graph > public void createGraphForMassiveLoad(String dbPath) { > System.out.println("Creating Neo4j Graph Database for massive

Re: [Neo4j] Convenient interface to manually build social network data

2014-03-17 Thread Michael Hunger
No worries, and thanks for the feedback. Btw. the reference card contains this note at the beginning: Note: {value} denotes either literals, for ad hoc Cypher queries; or parameters, which is the best practice for applications. Neo4j properties can be strings, numbers, booleans or arrays thereo

Re: [Neo4j] Convenient interface to manually build social network data

2014-03-17 Thread Jean-Baptiste Gallopin
That makes sense -- I'm only starting to look behind the hood of Linkurious, so it's a bit of a learning curve for me! Best, JB On Mon, Mar 17, 2014 at 12:34 PM, Michael Hunger < michael.hun...@neopersistence.com> wrote: > which is correct as when using Neo4j with code one should use paramet

Re: [Neo4j] Convenient interface to manually build social network data

2014-03-17 Thread Michael Hunger
which is correct as when using Neo4j with code one should use parameters which are these things in curly braces. which your neo4j statement correctly complains about -> "no parameter 'for' " (for is probably also a misleading name for a value) Am 17.03.2014 um 13:09 schrieb Jean-Baptiste Gallop

Re: [Neo4j] Convenient interface to manually build social network data

2014-03-17 Thread Jean-Baptiste Gallopin
Hi, Thanks for that! It worked. Maybe someone will want to update the reference card? It says we should use brackets with the SET command: SET SET n.property = {value}, n.property2 = {value2} Update or create a property. All the best, Jean-Baptiste On Mon, Mar 17, 2014 at 2:27 AM, Mi

Re: [Neo4j] Re: SDN 3.0.1 Backward compatibility

2014-03-17 Thread Michael Hunger
Hey, if you've seen the blog post: http://blog.neo4j.org/2014/03/spring-data-neo4j-progress-update-sdn-3.html It explains the issue: Neo4j 2.0 introduced the requirement separately manage schema and data transactions. We tried several approaches to handle this automatically, none of which wor

[Neo4j] Re: SDN 3.0.1 Backward compatibility

2014-03-17 Thread Grégoire Colbert
Hi Mike, I have the same issue when trying to use 3.0.1 with code that works with 3.0.0. So I guess it's a bug. About the "No index name allowed on label based indexes" error, this is because you still have the old index system around in your database. You can see it using ":GET /db/data/label

[Neo4j] Application threads blocking, waiting to commit on TxManager.

2014-03-17 Thread Nikos
Hello, I am using Neo4j1.9.5 community edition on a test-drive basis to assess its performance and gain experience. I have a graph that is both written to and read from; size is about 10M nodes, 100M relationships, about 14 Gb. In the 1.8 version I was getting a lot of deadlocks, which end

Re: [Neo4j] How can i avoid cold cache effect?

2014-03-17 Thread Michael Hunger
Unfortunately not, usually you can just run your queries upfront. Or load nodes with relationships with a query like this: match (n)-[r]->() where // if you also want to load node or relationship properties has (n.foo) OR has (r.bar) return count(*) Michael Am 17.03.2014 um 11:18 schrieb So

[Neo4j] Re: Add custom logback config to unmanaged extension

2014-03-17 Thread Bo Ferri
Hi all, ... just for the record ;) Here's the way how I got it working: 1. remove logback.xml from your neo4j-server jar of your neo4j stand-alone installation (it's located, e.g., at /usr/share/neo4j/system/lib/) 2. place your logback.xml at $NEO4J_HOME/conf/ 3. ensure tha

Re: [Neo4j] Bug in Node.getRelationships function?

2014-03-17 Thread Sotiris Beis
Hi Mattias, here is some more details: - The function to create the graph public void createGraphForMassiveLoad(String dbPath) { System.out.println("Creating Neo4j Graph Database for massive load . . . ."); Map config = new HashMap(); config.put("cache_type", "none"); config.put("use_memory_mapp

[Neo4j] How can i avoid cold cache effect?

2014-03-17 Thread Sotiris Beis
Hi, I executing some experiments with the neo4j graph database and i void to eliminate the cold cache effects. Is there a way in terms of configuration to do so? My code is in java and i use neo4j-2.0.1 Thanks, Sotiris -- You received this message because you are subscribed to the Google Grou

[Neo4j] Re: Cypher Parser used independently

2014-03-17 Thread Andreea Sandu
On Saturday, March 15, 2014 4:15:12 PM UTC+1, Andreea Sandu wrote: > > Hi, > > I have been browsing through the code of Neo4j, but I haven't found a way > to use its Cypher parser independently. What I would need is a way to parse > Cypher queries into Java objects or JSON strings. I noticed th

[Neo4j] Re: Cypher Parser used independently

2014-03-17 Thread Andreea Sandu
On Saturday, March 15, 2014 4:15:12 PM UTC+1, Andreea Sandu wrote: > > Hi, > > I have been browsing through the code of Neo4j, but I haven't found a way > to use its Cypher parser independently. What I would need is a way to parse > Cypher queries into Java objects or JSON strings. I noticed th

[Neo4j] SDN 3.0.1 Backward compatibility

2014-03-17 Thread Mike Holdsworth
I'm giving 3.0.1 a spin but it's throwing a MappingException on the first @NodeEntity I try to create. It's failing in AbstractMappingContext.getPersistentEntity if (strict) { throw new MappingException("Unknown persistent entity " + type); } It had been working fine in 3.0.0-RC1. I have chan