Re: [Neo4j] Cypher and fully qualified property names

2014-06-10 Thread Pieter Martin
Great thanks, Pieter On Tuesday, 10 June 2014 22:02:10 UTC+4:30, Michael Hunger wrote: > > There is nothing like that in Cypher. > > Also you don't need it b/c you namespace properties with Labels. > > In your case: > > MATCH (a:Klass {name:"John"}) > RETURN a > > Am 08.06.2014 um 18:41 schrieb P

Re: [Neo4j] Error in neo4j 2.1.1 interface

2014-06-10 Thread Alex winter
Peter Thanks for your answer. Do we have any way to unlock of one process and change the mode to lock another process? Maybe, you understand that I use both embedded java and server process in the same time for one application. But my case is: I use embedded java for application and after that

[Neo4j] Re: Executionresult debug

2014-06-10 Thread John Fry
as a quick note: I have checked the query that generates the paths is returning a valid path by testing it in the neo4j console (exact nodes id and conditions etc) i.e. I know the query result should deliver an itterable path when I do it by hand. neo4j-sh (?)$ START a=node(1418223), b=node(644

[Neo4j] Executionresult debug

2014-06-10 Thread John Fry
Hi All, when using an Iterator from an execution result I sometimes never get a return from the iterators .hasNext() method. If I try to debug it by dumping the exectutionresult to a string then the result is consumed so I never hit the the error. Tiny snippet below. Questions: A) has anyone

Re: [Neo4j] Query neo4j using Soundex or any other way to find similar words in Arabic

2014-06-10 Thread Awi
Yes Peter ... intent here is to correct spellings and reduce false positive occurred due to some manual process. On Tuesday, June 10, 2014 1:13:44 PM UTC+5:30, Peter Neubauer wrote: > > So, > looking at Soundex, you are not actually looking for an an Arabic stemmer > like > http://lucene.apache

Re: [Neo4j] Server plugin

2014-06-10 Thread Amit Aggarwal
Simple : First find url of like this curl -v http://localhost:7474/db/data/ Above command will produce URLs .. Then call your plugin url using curl -v My Plugin url is like this: curl -X POST http://localhost:7474/db/data/ext/MyGraph/graphdb/initializeGraph -H "Content-Type: application/j

Re: [Neo4j] Server plugin

2014-06-10 Thread Lidia Dinulescu
Hi Peter, This may be a silly question to you, but I am newbie and I was wondering how do I test the test plug-in? From my understanding, I compile it as a jar, put it in the plugin folder of neo4J and it should work. But how do I call it from localhost to actually test it and see that it retur

Re: [Neo4j] Server fails to start

2014-06-10 Thread Michael Hunger
Can you share the messages.log from your graphdb directory? And potentially the Gephi logfile too Michael Am 11.06.2014 um 05:07 schrieb Nipun Agarwal : > Hi, > > I am seeing the same problem. I had my database created by neo4j version > 2.0.3. It was working perfectly fine. > I installed Gep

Re: [Neo4j] Query neo4j using Soundex or any other way to find similar words in Arabic

2014-06-10 Thread Awi
On Tuesday, June 10, 2014 1:13:44 PM UTC+5:30, Peter Neubauer wrote: > > So, > looking at Soundex, you are not actually looking for an an Arabic stemmer > like > http://lucene.apache.org/core/3_6_0/api/all/org/apache/lucene/analysis/ar/ArabicAnalyzer.html > > but a way to correlate English an

Re: [Neo4j] Server fails to start

2014-06-10 Thread Nipun Agarwal
Hi, I am seeing the same problem. I had my database created by neo4j version 2.0.3. It was working perfectly fine. I installed Gephi which was unable to load my database. After that I am unable to start my neo4j using that database. Were you able to resolve your issue? On Tuesday, May 6, 2014 1

Re: [Neo4j] Best way to import user's friends list?

2014-06-10 Thread taminglions
Unfortunately, I wasn't able to find the information on Max's blog :( On Tuesday, June 10, 2014 4:36:01 PM UTC-6, tamin...@gmail.com wrote: > > Cheers, Michael! > > -Josh > > On Tuesday, June 10, 2014 4:00:26 PM UTC-6, Michael Hunger wrote: >> >> Perhaps check out Max de Marzi's graph search app

Re: [Neo4j] Best way to import user's friends list?

2014-06-10 Thread taminglions
Cheers, Michael! -Josh On Tuesday, June 10, 2014 4:00:26 PM UTC-6, Michael Hunger wrote: > > Perhaps check out Max de Marzi's graph search app that had exactly this > function see his blog maxdemarzi.com > > Sent from mobile device > > Am 11.06.2014 um 00:37 schrieb tamin...@gmail.com : > > I'm

Re: [Neo4j] Best way to import user's friends list?

2014-06-10 Thread Michael Hunger
Perhaps check out Max de Marzi's graph search app that had exactly this function see his blog maxdemarzi.com Sent from mobile device Am 11.06.2014 um 00:37 schrieb tamingli...@gmail.com: > I'm developing an social app that requires the user's Facebook friends list. > > I'm trying to figure out

[Neo4j] Best way to import user's friends list?

2014-06-10 Thread taminglions
I'm developing an social app that requires the user's Facebook friends list. I'm trying to figure out the best method of importing/comparing and updating the list to my Neo4j DB. For each friend on the user's list, I want to first see if the friend is in the database... if they are, then I want

[Neo4j] Re: What have you done in case of "error=12, Cannot allocate memory"

2014-06-10 Thread Richard L. Burton III
I've added the option to capture memory upon a crash. I'll do some leg work this week to see what I can determine. On Tuesday, June 10, 2014, Michael Hunger wrote: > Also in terms of growth, even if your db size is 10x or 1000x larger, you > won't have all that data as active / hot state. > > S

Re: [Neo4j] Neo4j Cluster with embedded servers

2014-06-10 Thread Michael Hunger
Hi Rick usually it is not recommended to start the server from Java, you install and start it as a normal database service on your operating system. Michael Am 20.05.2014 um 17:51 schrieb cui r : > Hi, > > We did a prototype with the community version. Now we want to switch to the > enterpr

Re: [Neo4j] Node properties (java-rest-binding)

2014-06-10 Thread Michael Hunger
There are no real transactions in java-rest-binding, just fake ones :) Michael Am 04.06.2014 um 17:53 schrieb Vasileios Anagnostopoulos : > I use the 2.0 version indexes/labels. I think there are transactions there. > Shouldn't I use it? > > On Wednesday, June 4, 2014 6:21:21 PM UTC+3, Michael

Re: [Neo4j] Batching and access to the Neo4j server using the REST API

2014-06-10 Thread Michael Hunger
Am 20.05.2014 um 10:06 schrieb Asger Johansen : > Hi, > > I had a few question that I hope someone in here might be able to help me > with: > > First of all, as far as I understand, when performing normal operations in > Neo4j, it will lock the relationships and nodes that are being used in t

Re: [Neo4j] What have you done in case of "error=12, Cannot allocate memory"

2014-06-10 Thread Michael Hunger
Also in terms of growth, even if your db size is 10x or 1000x larger, you won't have all that data as active / hot state. So the comparison might not be do what you intent to. You might want configure the JVM setting that dumps the heap on crash and perhaps you can share that heap-dump? (don't

Re: [Neo4j] What could be the problem in this query

2014-06-10 Thread Michael Hunger
On console.neo4j.org or rather neo4j-console-19.herokuapp.com you can use the node_auto_index which is automatically populated. Perhaps you can share your create script. Perhaps you should do a query that lists all relationships and their end nodes of user 7 ? Michael Am 09.06.2014 um 09:15 s

Re: [Neo4j] Cypher and fully qualified property names

2014-06-10 Thread Michael Hunger
There is nothing like that in Cypher. Also you don't need it b/c you namespace properties with Labels. In your case: MATCH (a:Klass {name:"John"}) RETURN a Am 08.06.2014 um 18:41 schrieb Pieter Martin : > Hi, > > In my applications I name space vertex and edge properties similar to java. >

Re: [Neo4j] What could be the problem in this query

2014-06-10 Thread Michael Hunger
I think you don't need the second index lookup. It will faster to just let the matcher do it's job. It will only aggregate on n.UID, r.name (don't know what r.name is) please note that count(*) counts the total rows generated by the matcher, not the distinct data elements. you probably want to

Re: [Neo4j] large datasets

2014-06-10 Thread Michael Hunger
Perhaps it makes more sense to handle your subtypes with labels instead? And I'd love to see a picture :) NEGATION is alway tricky to handle. how many paths does this return? > start ds1=node:genNodeIdx('subtype:type2 OR subtype:type3 OR subtype:type4') > match > (be1:Bioentity)-[:BELONG_IN]-(

Re: [Neo4j] Max. number of relation b/w 2 node : Neo4j 2.0.3

2014-06-10 Thread Michael Hunger
No, no limits. Am 23.05.2014 um 10:03 schrieb Navrattan Yadav : > hi i am working on Neo4j 2.0.3. > I got a situation where i need to create lot of relation b/w two node (may > be per day 100). > Is there any limit for number of relation b/w 2 node ?. > > -- > You received this message becau

Re: [Neo4j] Iterate over nodes and set a property with different value using cypher

2014-06-10 Thread Michael Hunger
Something like that? CREATE (c:Counter {counter:0}) WITH c MATCH (n) WHERE n <> c SET n.nodeCommunity = c.counter SET c.counter = c.counter + 1 WITH c,count(*) as cnt DELETE c Am 23.05.2014 um 11:19 schrieb Sotiris Beis : > Hi, > is there a way to do this: > > int communityCounter = 0; > Trans

Re: [Neo4j] Dynamic relation name

2014-06-10 Thread Michael Hunger
Unfortunately not yet. You can work around it by having a conditional loop (FOREACH) around these, something like: https://github.com/cleishm/opendisclosure/blob/master/neo4j/import.cyp Am 23.05.2014 um 12:13 schrieb Navrattan Yadav : > hi i am working on Neo4j 2.0.3. > > can i gave a rela

[Neo4j] spring data neo4j advanced mapping throws exception "com.baidu.rigel.neo4jTest.domain.World cannot be cast to org.springframework.data.neo4j.aspects.core.NodeBacked"

2014-06-10 Thread beyond1920
hi, i'm green hand. I want to compare advanced mapping with simple mapping way. But when call persist method, throws a exception as following Exception in thread "main" java.lang.ClassCastException: com.baidu.rigel.neo4jTest.domain.World cannot be cast to org.springframework.data.neo4j.

Re: [Neo4j] implement the customized Evaluator meet problems

2014-06-10 Thread Michael Hunger
You have to loop over the traverser, otherwise it won't be executed. Traversals are lazy in Neo4j. Michael Am 23.05.2014 um 12:51 schrieb TC : > hi, i am trying to implement my Evaluator during bfs. while now the code > shows no bug. but it cannot go into the Evaluator. is there any doc to tea

Re: [Neo4j] Finding shortest path using the distances which are properties of the relations

2014-06-10 Thread Michael Hunger
Currently only in the Java API / REST API http://docs.neo4j.org/chunked/milestone/tutorials-java-embedded-graph-algo.html http://docs.neo4j.org/chunked/milestone/rest-api-graph-algos.html Michael Am 27.05.2014 um 14:37 schrieb Sriram Puttagunta : > Can se be able to find the shortest path using

Re: [Neo4j] java.lang.NoSuchMethodError: org.neo4j.cypher.javacompat.ExecutionResult.iterator()Lorg/neo4j/graphdb/ResourceIterator

2014-06-10 Thread Michael Hunger
probably a version conflict. What does mvn dependency:tree return? I think datanucleus was implemented for an older version of neo4 which is not fitting your Neo4j version. Michael Am 16.05.2014 um 11:24 schrieb Moop : > Hi, > I'm using DataNucleus as JPA provider for Neo4j. I got an error th

Re: [Neo4j] Re: Neo4j performance using PHP API

2014-06-10 Thread Michael Hunger
Please share your data model data sizes, config (messages.log) and cypher queries otherwise we can't help you. Am 13.05.2014 um 14:14 schrieb Waseem Ahmad : > I have same problem ,my simple cypher query takes so much long time , can you > please tell me how you increased the java heap memory si

Re: [Neo4j] No primary SDN label exists in Spring Data Neo4j when using imported data (after adding a primary SDN label)

2014-06-10 Thread Michael Hunger
Hmm interesting. Can you return two of the different nodes side by side? Do you only have movies in your db? Michael Am 14.05.2014 um 13:25 schrieb Manuel Moraga : > I have already posted this on StackOverflow, but haven't gotten any answers. > I suspect there may be a bug involved, or it's j

Re: [Neo4j] live demo performance difference between each version

2014-06-10 Thread Michael Hunger
No, we don't. It also depends on your use-case how it shows up. The performance difference is due to a different cache implementation which is more memory efficient and GC friendly. Am 16.05.2014 um 15:57 schrieb zapo : > Hi, > do you have a live demo web site in order to > evaluate the differ

Re: [Neo4j] Query neo4j using Soundex or any other way to find similar words in Arabic

2014-06-10 Thread Michael Hunger
You can also store a phonetically reduced stem of the word as additional property and try to match on that? Sent from mobile device Am 10.06.2014 um 09:43 schrieb Peter Neubauer : > So, > looking at Soundex, you are not actually looking for an an Arabic stemmer > like > http://lucene.apache.

[Neo4j] Re: ImpermanentGraphDatabase and Future (threading) usage.

2014-06-10 Thread Michael Azerhad
Oh... It does not work with embedded graph. I tested again and without any future, the whole works. Can't figure out why... just stuck On Tuesday, June 10, 2014 3:00:45 PM UTC+2, Michael Azerhad wrote: > > I have this conceptual (Scala) code: > > > "should return the total of meetings" in new M

[Neo4j] ImpermanentGraphDatabase and Future (threading) usage.

2014-06-10 Thread Michael Azerhad
I have this conceptual (Scala) code: "should return the total of meetings" in new MeetingContext { def totalCount(): Int = { val result = cypherQueryExecutor.iterator( """ MATCH (m:Meeting) RETURN COUNT(m) AS total""" , Map[String, AnyRef]() result.toList.head.asSca

[Neo4j] Re: dijkstra bidirectional

2014-06-10 Thread Antonio Grimaldi
Is* org.neo4j.graphalgo.impl.shortestpath.Dijkstra a *Bidirectional Dijkstra's implementation??? Il giorno giovedì 8 maggio 2014 17:04:32 UTC+2, Antonio Grimaldi ha scritto: > > Hi, > Is there an implementation of Bidirectional Dijkstra? > > Thanks > Antonio > -- You received this message becau

[Neo4j] Re: Probable bug in Neo4j cypher

2014-06-10 Thread Paolo Di Pietro
Hi Tatham, thank you for your answer. Well, I must accept your answer, either it seems a little but illogical to me (why more than one only for nodes but this is philosophy). Just as a further help from you, it is possible 1) to return labels in a query? 2) to filter labels in a query us

Re: [Neo4j] Error in neo4j 2.1.1 interface

2014-06-10 Thread Peter Neubauer
Alex, you can only lock the physical DB directory to one of your two processes (Embedded Java, Neo4j Server) at a time. Eitehr start the server and access the DB via REST against the server and the Cypher endpoint, see http://docs.neo4j.org/chunked/stable/server-java-rest-client-example.html#_sendi

Re: [Neo4j] Query neo4j using Soundex or any other way to find similar words in Arabic

2014-06-10 Thread Peter Neubauer
So, looking at Soundex, you are not actually looking for an an Arabic stemmer like http://lucene.apache.org/core/3_6_0/api/all/org/apache/lucene/analysis/ar/ArabicAnalyzer.html but a way to correlate English and Arabic words by their similarity? /peter G: neubauer.peter S: peter.neubauer P: +

[Neo4j] Query neo4j using Soundex or any other way to find similar words in Arabic

2014-06-10 Thread Awi
I am a learner of Neo4j and used in one of the financial project. Is there a way where I could query my Neo4j to identify similar names (mainly for identifying spelling mistakes), and later on I could merge those records. Few sources says; using Soundex or other related algorithms would help. T