Re: [Neo4j] Help solving a slow search / query structure question

2014-09-24 Thread Ziv Unger
For posterity and to assist anyone else encountering a similar situation in future, Michael's excellent solution involved the use of allShortestPaths instead of my existing where clause, so the relevant lines go from: match objective-[:target_region]->regions, oobjectives-[:target_region]->oreg

Re: [Neo4j] Re: Problem connecting to remote Neo4J using Java

2014-09-24 Thread Michael Hunger
If you use your java program accessing the on disk datastore the server must not be running Check the filesystem permission for the db-files so that your user is able to read and write Von meinem iPhone gesendet > Am 25.09.2014 um 04:00 schrieb Mohana Krishna, IIT Bombay, India > : > > Prec

[Neo4j] Re: Problem connecting to remote Neo4J using Java

2014-09-24 Thread Mohana Krishna, IIT Bombay, India
Precisely I am getting this error when using local server from Java: Exception in thread "main" java.lang.RuntimeException: java.nio.file.AccessDeniedException: /var/lib/neo4j/data/graph.db/neostore.schemastore.db.id at neo4j.graphminer.clearDbPath(graphminer.java:100) at neo4j.graphminer.run(gr

[Neo4j] Re: Problem connecting to remote Neo4J using Java

2014-09-24 Thread Mohana Krishna, IIT Bombay, India
I am using Neo4J 2.1.4 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/cy

[Neo4j] Problem connecting to remote Neo4J using Java

2014-09-24 Thread Mohana Krishna, IIT Bombay, India
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

Re: [Neo4j] Cypher Internals

2014-09-24 Thread Michael Hunger
On Wed, Sep 24, 2014 at 10:30 PM, jer wrote: > Hi all, > > I know that Neo4j has an internal Cypher parser to translate the Cypher > phrases. Yet I'm just wondering what is the target of the translation? If > the target is java, could I view the translated code of a corresponding > cypher query?

[Neo4j] Fwd: Neo4j.rb 3.0 Release Candidates

2014-09-24 Thread Michael Hunger
-- Forwarded message -- From: Brian Underwood Date: Wed, Sep 24, 2014 at 10:22 PM Subject: Re: Neo4j.rb 3.0 Release Candidates To: neo4...@googlegroups.com Quick update for those that are following, we release new release candidates for neo4j and neo4j-core yesterday which we pla

Re: [Neo4j] Spatial Distance Between Objects

2014-09-24 Thread Craig Taverner
If you want the distance to the centroid, just use getCentroid(). For example, instead of g1.distance(g2) use g1.getCentroid().distance(g2.getCentroid()). On Wed, Sep 24, 2014 at 5:06 PM, Alireza Rezaei Mahdiraji < alireza...@gmail.com> wrote: > > Regarding the distance, for inner point of a geom

[Neo4j] Cypher Internals

2014-09-24 Thread jer
Hi all, I know that Neo4j has an internal Cypher parser to translate the Cypher phrases. Yet I'm just wondering what is the target of the translation? If the target is java, could I view the translated code of a corresponding cypher query? For the other problem, if a cypher clause is "START ..

[Neo4j] Help on Cypher queries syntax please (for results as tree)

2014-09-24 Thread Christophe L
Hello, We are upgrading our queries from CYPHER 1.9 to CYPHER 2 and we would like to be sure to write the upgraded queries in the best possible way. Could you please help ? An exemple, our data structure is as follow: OS - has_ipv4 - IPv4 - has_vlan - VLAN |- has_ipv6 - IPv6 - has_vlan - V

Re: [Neo4j] Help solving a slow search / query structure question

2014-09-24 Thread Michael Hunger
Hey Ziv, Would you be able to share your database and your full query with me personally? Then I can have a look? Thanks so much. Michael On Wed, Sep 24, 2014 at 3:14 PM, Ziv Unger wrote: > Hi there > > I have a fairly complex database structure, but the parts relevant to this > question are

Re: [Neo4j] Spatial Distance Between Objects

2014-09-24 Thread Alireza Rezaei Mahdiraji
Regarding the distance, for inner point of a geometry the distance returns zero. Although, I saw the definition of the distance in http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html#distance%28com.vividsolutions.jts.geom.Geometry%29 but expected to see something lik

[Neo4j] Re: Slave instance is not working

2014-09-24 Thread Kishore Kumar Garg
console.log snippet: 2014-09-24 14:11:24.410+ INFO [Cluster] Instance 3 (this server) joined the cluster 2014-09-24 14:11:24.418+ INFO [Cluster] Instance 3 (this server) joined the cluster 2014-09-24 14:11:24.420+ INFO [Cluster] Instance 3 (this serv

Re: [Neo4j] GraphDB Benchmark released

2014-09-24 Thread Sotiris Beis
Hi Alex, I just have one general comment regarding the read workloads and that is > that they appear to be very "global", that is, the operations access most > or all of the graph dataset: Find neighbors OF ALL NODES, Find adjacent > edges OF ALL EDGES, etc. Graph databases are definitely capable

[Neo4j] Slave instance is not working

2014-09-24 Thread Kishore Kumar Garg
Hi, I have a setup where I am running a 3 node cluster of neo4j. Here, 2 of the nodes are running as embedded neo4j server with Spring Data. However, 3rd one, which is running with slave only setting, is running the standalone neo4j server. I am continuously seeing this in message.log for quit

[Neo4j] Help solving a slow search / query structure question

2014-09-24 Thread Ziv Unger
Hi there I have a fairly complex database structure, but the parts relevant to this question are as follows: I have entities, which have objectives, which have target regions. Regions are a tree structured list of all the regions of the world basically, from continent down to city, using a has

Re: [Neo4j] Computing Normal of a cell using Neo4j Spatial

2014-09-24 Thread Alireza Rezaei Mahdiraji
Hi Craig, No, what I meant is normal vector ( http://en.wikipedia.org/wiki/Normal_%28geometry%29). Best, Alireza On Wednesday, September 24, 2014 1:52:16 PM UTC+2, Craig Taverner wrote: > > Do you mean conversion to normalized form? If so, then since we use JTS to > represent all geometrie

Re: [Neo4j] Java Heap Space error but correctly set in the Neo4jShell.bat

2014-09-24 Thread Michael Hunger
On Wed, Sep 24, 2014 at 2:33 PM, 'Curtis Mosters' via Neo4j < neo4j@googlegroups.com> wrote: > Well I downloaded the 2.1.4 and used the standard configs. > > The only things I edited were: > >- # Enable auto-indexing for nodes, default is false >node_auto_indexing=true >- # The node pr

Re: [Neo4j] Java Heap Space error but correctly set in the Neo4jShell.bat

2014-09-24 Thread 'Curtis Mosters' via Neo4j
Well I downloaded the 2.1.4 and used the standard configs. The only things I edited were: - # Enable auto-indexing for nodes, default is false node_auto_indexing=true - # The node property keys to be auto-indexed, if enabled node_keys_indexable=ID,title I did not touch anything e

Re: [Neo4j] Computing Normal of a cell using Neo4j Spatial

2014-09-24 Thread Craig Taverner
Do you mean conversion to normalized form? If so, then since we use JTS to represent all geometries, this is support through JTS. See http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html#normalize() On Wed, Sep 24, 2014 at 1:03 PM, Alireza Rezaei Mahdiraji < alireza...@

[Neo4j] Computing Normal of a cell using Neo4j Spatial

2014-09-24 Thread Alireza Rezaei Mahdiraji
Hi All, Is normal on a 2D object (polygon) or a point is already implemented in neo4j spatial? Best, Alireza -- 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+

Re: [Neo4j] Java Heap Space error but correctly set in the Neo4jShell.bat

2014-09-24 Thread Michael Hunger
Check with profile if there is an eager pipe in there If you use the shell with a running server can you show me again neo4-wrapper.conf ? I ping you on skype Von meinem iPhone gesendet > Am 23.09.2014 um 11:03 schrieb 'Curtis Mosters' via Neo4j > : > > I don't know but it's really buggy. Th

Re: [Neo4j] Java Heap Space error but correctly set in the Neo4jShell.bat

2014-09-24 Thread Michael Hunger
Try "schema" Von meinem iPhone gesendet > Am 23.09.2014 um 09:25 schrieb 'Curtis Mosters' via Neo4j > : > > I think I have the reason. > > Somehow my Neo4j does not want to index anything anymore. Look this: > > Define Index... > ++ > | No data retu