Re: [Neo4j] simple traverse of tree
And how it is possible to traverse parallel edges? I spent an hour trying how to do it... I have some node and this node can be connected with other node with more incoming edges. And I'm not able to traverse all this edges... IteratorRelationship rels = Traversal.description().breadthFirst().evaluator(Evaluators.excludeStartPosition()).relationships(RelationshipTypes.TICKET_WORKER, Direction.INCOMING).traverse(workerNode).relationships().iterator(); This traverse me only unique connections (not parallel)... Dne 6.4.2011 23:49, Mattias Persson napsal(a): Just as a note (and as the javadoc says) you can have multiple evaluators in a traversal description. 2011/4/6 Michael Hungermichael.hun...@neotechnology.com: sure ... .evaluator(Evalutators.excludeStartPosition()) ... Cheers Michael Am 06.04.2011 um 20:15 schrieb Matěj Plch: I had there an error... My fault. Your code is working fantastic. Thank you so much. I hope the last question: is it possible to add some parameter to exclude the start node? Dne 6.4.2011 09:13, Mattias Persson napsal(a): I'm not fully aware of your domain layout, but maybe add this: .uniqueness( Uniqueness.RELATIONSHIP_GLOBAL ) to your traversal description. The default (NODE_GLOBAL) may end up hiding some of your nodes depending on your graph layout. 2011/4/5 Matěj Plchplchm...@fit.cvut.cz Well so lastRelationship() isnt the right one method I am looking for and I have to look for highest id manually. But I have problem that if I traverse in the way like Michael suggested: IteratorNodei = Traversal.description().relationships(RelationshipTypes.TICKET_QUEUE, Direction.BOTH).relationships(RelationshipTypes.TICKET_STATUS, Direction.BOTH). relationships(RelationshipTypes.TICKET_TIMETAKEN, Direction.BOTH). traverse(ticketNode).nodes().iterator(); The iterator gives me only 6 ancestors. But in Neoclipse I can see much more ancestor nodes which is right. Why this traverse gives me bad result? I need all nodes which are directly connected thought Relatioshiptypes TICKET_STATUS,TICKET_TIMETAKEN,TICKET_QUEUE with ticketNode... Dne 4.4.2011 13:59, Mattias Persson napsal(a): 2011/4/4 Matěj Plchplchm...@fit.cvut.cz Is it possible to use *Path.lastRelationship*() ? How does it take last Relationship? According to id, or how the graph is traversed? It returns the last relationships in the current path, i.e. where the traverser is a.t.m. So it already has a reference to it and just returns it. Dne 26.3.2011 19:35, Michael Hunger napsal(a): Sure, if the tree from your root node is just a cluster that is not connected anywhere else (with those 3 relationship-types) it should be as simple as. (Just written from my head, so please check the correct syntax). Traversal.description().relationship(T1,OUTGOING).relationship(T2,OUTGOING).relationship(T3,OUTGOING).traverse(rootNode); That returns an iterator of all paths going from your root node. You can limit the nodes with .uniqueness() and then add the path's (path.nodes()) to a set to collect all nodes. For getting the one with the highest id, you can use java.util.Collections.max(collection, new ComparatorNode(){}); How big is your tree? Something like that should be in Graph-Algo perhaps as subgraph or tree. HTH Michael Am 26.03.2011 um 19:26 schrieb Matěj Plch: Thank you for so fast answer. I will look at it. I have milestone tomorrow so dont have a lot of time=) and have never worked with Groovy. Well so there isnt any simple method how to do it in classic neo4j Java API? Dne 26.3.2011 19:16, Saikat Kanjilal napsal(a): You can do all of these things using gremlin and pipes. Check out github for more details. Sent from my iPhone On Mar 26, 2011, at 11:13 AM, Matěj Plchplchm...@fit.cvut.cz wrote: Hi, I have some graph and, part of it is a tree. I simple get root of this tree through id. How to simple tranverse only tree under this root node? From root goes three unique type relationship to three unique group type nodes. Under this three nodes are a lot of nodes. And I need to write a method which gives me all nodes under that group node. Second question is if its possible ho to get from this group noe with the highest id (last added). Matěj Plch ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list
Re: [Neo4j] simple traverse of tree
Sorry for the post. .uniqueness(Uniqueness.NONE) made the trick. Dne 9.4.2011 13:19, Matěj Plch napsal(a): And how it is possible to traverse parallel edges? I spent an hour trying how to do it... I have some node and this node can be connected with other node with more incoming edges. And I'm not able to traverse all this edges... IteratorRelationship rels = Traversal.description().breadthFirst().evaluator(Evaluators.excludeStartPosition()).relationships(RelationshipTypes.TICKET_WORKER, Direction.INCOMING).traverse(workerNode).relationships().iterator(); This traverse me only unique connections (not parallel)... Dne 6.4.2011 23:49, Mattias Persson napsal(a): Just as a note (and as the javadoc says) you can have multiple evaluators in a traversal description. 2011/4/6 Michael Hungermichael.hun...@neotechnology.com: sure ... .evaluator(Evalutators.excludeStartPosition()) ... Cheers Michael Am 06.04.2011 um 20:15 schrieb Matěj Plch: I had there an error... My fault. Your code is working fantastic. Thank you so much. I hope the last question: is it possible to add some parameter to exclude the start node? Dne 6.4.2011 09:13, Mattias Persson napsal(a): I'm not fully aware of your domain layout, but maybe add this: .uniqueness( Uniqueness.RELATIONSHIP_GLOBAL ) to your traversal description. The default (NODE_GLOBAL) may end up hiding some of your nodes depending on your graph layout. 2011/4/5 Matěj Plchplchm...@fit.cvut.cz Well so lastRelationship() isnt the right one method I am looking for and I have to look for highest id manually. But I have problem that if I traverse in the way like Michael suggested: IteratorNode i = Traversal.description().relationships(RelationshipTypes.TICKET_QUEUE, Direction.BOTH).relationships(RelationshipTypes.TICKET_STATUS, Direction.BOTH). relationships(RelationshipTypes.TICKET_TIMETAKEN, Direction.BOTH). traverse(ticketNode).nodes().iterator(); The iterator gives me only 6 ancestors. But in Neoclipse I can see much more ancestor nodes which is right. Why this traverse gives me bad result? I need all nodes which are directly connected thought Relatioshiptypes TICKET_STATUS,TICKET_TIMETAKEN,TICKET_QUEUE with ticketNode... Dne 4.4.2011 13:59, Mattias Persson napsal(a): 2011/4/4 Matěj Plchplchm...@fit.cvut.cz Is it possible to use *Path.lastRelationship*() ? How does it take last Relationship? According to id, or how the graph is traversed? It returns the last relationships in the current path, i.e. where the traverser is a.t.m. So it already has a reference to it and just returns it. Dne 26.3.2011 19:35, Michael Hunger napsal(a): Sure, if the tree from your root node is just a cluster that is not connected anywhere else (with those 3 relationship-types) it should be as simple as. (Just written from my head, so please check the correct syntax). Traversal.description().relationship(T1,OUTGOING).relationship(T2,OUTGOING).relationship(T3,OUTGOING).traverse(rootNode); That returns an iterator of all paths going from your root node. You can limit the nodes with .uniqueness() and then add the path's (path.nodes()) to a set to collect all nodes. For getting the one with the highest id, you can use java.util.Collections.max(collection, new ComparatorNode(){}); How big is your tree? Something like that should be in Graph-Algo perhaps as subgraph or tree. HTH Michael Am 26.03.2011 um 19:26 schrieb Matěj Plch: Thank you for so fast answer. I will look at it. I have milestone tomorrow so dont have a lot of time=) and have never worked with Groovy. Well so there isnt any simple method how to do it in classic neo4j Java API? Dne 26.3.2011 19:16, Saikat Kanjilal napsal(a): You can do all of these things using gremlin and pipes. Check out github for more details. Sent from my iPhone On Mar 26, 2011, at 11:13 AM, Matěj Plchplchm...@fit.cvut.cz wrote: Hi, I have some graph and, part of it is a tree. I simple get root of this tree through id. How to simple tranverse only tree under this root node? From root goes three unique type relationship to three unique group type nodes. Under this three nodes are a lot of nodes. And I need to write a method which gives me all nodes under that group node. Second question is if its possible ho to get from this group noe with the highest id (last added). Matěj Plch ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org
[Neo4j] Problems downloading Neo4J Spatial from Maven
Had this problem a month or so ago, but life got busy and I never had time to delve deeper. My Scala/SBT project can't seem to fetch this artifact from the snapshots repository. The error I get is: [warn] io problem while parsing ivy file: http://m2.neo4j.org/snapshots/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom: Impossible to load parent for file:/home/nolan/.ivy2/cache/org.neo4j/neo4j-spatial/ivy-0.6-SNAPSHOT.xml.original. Parent=org.neo4j#parent-pom;18 [warn] module not found: org.neo4j#neo4j-spatial;0.6-SNAPSHOT [warn] local: tried [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/ivys/ivy.xml [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/jars/parent-pom.jar [warn] databinder: tried [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Neo4J: tried [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Geotools: tried [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] JBoss: tried [warn] http://repository.jboss.org/nexus/content/groups/public/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://repository.jboss.org/nexus/content/groups/public/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] Local Maven Repository: tried [warn] file:///home/nolan/.m2/repository/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] file:///home/nolan/.m2/repository/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] public: tried [warn] http://repo1.maven.org/maven2/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://repo1.maven.org/maven2/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] Scala-Tools Maven2 Repository: tried [warn] http://scala-tools.org/repo-releases/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://scala-tools.org/repo-releases/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] :: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :: [warn] :: org.neo4j#neo4j-spatial;0.6-SNAPSHOT: not found [warn] :: [info] [warn] :: problems summary :: [warn] WARNINGS [warn] io problem while parsing ivy file: http://m2.neo4j.org/snapshots/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom: Impossible to load parent for file:/home/nolan/.ivy2/cache/org.neo4j/neo4j-spatial/ivy-0.6-SNAPSHOT.xml.original. Parent=org.neo4j#parent-pom;18 [warn] module not found: org.neo4j#neo4j-spatial;0.6-SNAPSHOT [warn] local: tried [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/ivys/ivy.xml [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/jars/parent-pom.jar [warn] databinder: tried [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Neo4J: tried [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Geotools: tried [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] JBoss: tried [warn]
[Neo4j] Loading DBPedia into Neo4j
Hi there, Claudio Martella has been loading the dbpedia dataset into Neo4j. Might be interesting to the RDF-people around here. http://blog.acaro.org/entry/dbpedia4neo Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Problems downloading Neo4J Spatial from Maven
Hi! The parent is found in the *releases* repo: http://m2.neo4j.org/releases in this case: http://m2.neo4j.org/releases/org/neo4j/parent-pom/18/ /anders 2011-04-09 17:24, Nolan Darilek skrev: Had this problem a month or so ago, but life got busy and I never had time to delve deeper. My Scala/SBT project can't seem to fetch this artifact from the snapshots repository. The error I get is: [warn] io problem while parsing ivy file: http://m2.neo4j.org/snapshots/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom: Impossible to load parent for file:/home/nolan/.ivy2/cache/org.neo4j/neo4j-spatial/ivy-0.6-SNAPSHOT.xml.original. Parent=org.neo4j#parent-pom;18 [warn] module not found: org.neo4j#neo4j-spatial;0.6-SNAPSHOT [warn] local: tried [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/ivys/ivy.xml [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/jars/parent-pom.jar [warn] databinder: tried [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Neo4J: tried [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Geotools: tried [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] JBoss: tried [warn] http://repository.jboss.org/nexus/content/groups/public/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://repository.jboss.org/nexus/content/groups/public/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] Local Maven Repository: tried [warn] file:///home/nolan/.m2/repository/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] file:///home/nolan/.m2/repository/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] public: tried [warn] http://repo1.maven.org/maven2/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://repo1.maven.org/maven2/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] Scala-Tools Maven2 Repository: tried [warn] http://scala-tools.org/repo-releases/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://scala-tools.org/repo-releases/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] :: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :: [warn] :: org.neo4j#neo4j-spatial;0.6-SNAPSHOT: not found [warn] :: [info] [warn] :: problems summary :: [warn] WARNINGS [warn] io problem while parsing ivy file: http://m2.neo4j.org/snapshots/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom: Impossible to load parent for file:/home/nolan/.ivy2/cache/org.neo4j/neo4j-spatial/ivy-0.6-SNAPSHOT.xml.original. Parent=org.neo4j#parent-pom;18 [warn] module not found: org.neo4j#neo4j-spatial;0.6-SNAPSHOT [warn] local: tried [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/ivys/ivy.xml [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/jars/parent-pom.jar [warn] databinder: tried [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Neo4J: tried [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Geotools: tried [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn]
Re: [Neo4j] Problems downloading Neo4J Spatial from Maven
Nolan, I think this might be a similar issue with transitive deps that we had with the Neo4j core pom a whip back. Andreas Kollegger had tracked that down. Andreas, what was the problem? Sent from my phone. On Apr 9, 2011 5:25 PM, Nolan Darilek no...@thewordnerd.info wrote: Had this problem a month or so ago, but life got busy and I never had time to delve deeper. My Scala/SBT project can't seem to fetch this artifact from the snapshots repository. The error I get is: [warn] io problem while parsing ivy file: http://m2.neo4j.org/snapshots/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom: Impossible to load parent for file:/home/nolan/.ivy2/cache/org.neo4j/neo4j-spatial/ivy-0.6-SNAPSHOT.xml.original. Parent=org.neo4j#parent-pom;18 [warn] module not found: org.neo4j#neo4j-spatial;0.6-SNAPSHOT [warn] local: tried [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/ivys/ivy.xml [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/jars/parent-pom.jar [warn] databinder: tried [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Neo4J: tried [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Geotools: tried [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] JBoss: tried [warn] http://repository.jboss.org/nexus/content/groups/public/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://repository.jboss.org/nexus/content/groups/public/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] Local Maven Repository: tried [warn] file:///home/nolan/.m2/repository/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] file:///home/nolan/.m2/repository/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] public: tried [warn] http://repo1.maven.org/maven2/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://repo1.maven.org/maven2/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] Scala-Tools Maven2 Repository: tried [warn] http://scala-tools.org/repo-releases/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn] http://scala-tools.org/repo-releases/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.jar [warn] :: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :: [warn] :: org.neo4j#neo4j-spatial;0.6-SNAPSHOT: not found [warn] :: [info] [warn] :: problems summary :: [warn] WARNINGS [warn] io problem while parsing ivy file: http://m2.neo4j.org/snapshots/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom: Impossible to load parent for file:/home/nolan/.ivy2/cache/org.neo4j/neo4j-spatial/ivy-0.6-SNAPSHOT.xml.original. Parent=org.neo4j#parent-pom;18 [warn] module not found: org.neo4j#neo4j-spatial;0.6-SNAPSHOT [warn] local: tried [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/ivys/ivy.xml [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] /home/nolan/.ivy2/local/org.neo4j/parent-pom/18/jars/parent-pom.jar [warn] databinder: tried [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://databinder.net/repo/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Neo4J: tried [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.pom [warn] -- artifact org.neo4j#parent-pom;18!parent-pom.jar: [warn] http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/18/parent-pom-18.jar [warn] Geotools: tried [warn] http://download.osgeo.org/webdav/geotools/org/neo4j/neo4j-spatial/0.6-SNAPSHOT/neo4j-spatial-0.6-SNAPSHOT.pom [warn] -- artifact org.neo4j#neo4j-spatial;0.6-SNAPSHOT!neo4j-spatial.jar: [warn]
Re: [Neo4j] simple traverse of tree
If you mean to traverse paths with same nodes, but different relationships then RELATIONSHIP_GLOBAL would suffice. NONE is a bit dangerous in that you'll have to manage uniqueness yourself otherwise your traversal may never end. 2011/4/9 Matěj Plch plchm...@fit.cvut.cz: And how it is possible to traverse parallel edges? I spent an hour trying how to do it... I have some node and this node can be connected with other node with more incoming edges. And I'm not able to traverse all this edges... IteratorRelationship rels = Traversal.description().breadthFirst().evaluator(Evaluators.excludeStartPosition()).relationships(RelationshipTypes.TICKET_WORKER, Direction.INCOMING).traverse(workerNode).relationships().iterator(); This traverse me only unique connections (not parallel)... Dne 6.4.2011 23:49, Mattias Persson napsal(a): Just as a note (and as the javadoc says) you can have multiple evaluators in a traversal description. 2011/4/6 Michael Hungermichael.hun...@neotechnology.com: sure ... .evaluator(Evalutators.excludeStartPosition()) ... Cheers Michael Am 06.04.2011 um 20:15 schrieb Matěj Plch: I had there an error... My fault. Your code is working fantastic. Thank you so much. I hope the last question: is it possible to add some parameter to exclude the start node? Dne 6.4.2011 09:13, Mattias Persson napsal(a): I'm not fully aware of your domain layout, but maybe add this: .uniqueness( Uniqueness.RELATIONSHIP_GLOBAL ) to your traversal description. The default (NODE_GLOBAL) may end up hiding some of your nodes depending on your graph layout. 2011/4/5 Matěj Plchplchm...@fit.cvut.cz Well so lastRelationship() isnt the right one method I am looking for and I have to look for highest id manually. But I have problem that if I traverse in the way like Michael suggested: IteratorNode i = Traversal.description().relationships(RelationshipTypes.TICKET_QUEUE, Direction.BOTH).relationships(RelationshipTypes.TICKET_STATUS, Direction.BOTH). relationships(RelationshipTypes.TICKET_TIMETAKEN, Direction.BOTH). traverse(ticketNode).nodes().iterator(); The iterator gives me only 6 ancestors. But in Neoclipse I can see much more ancestor nodes which is right. Why this traverse gives me bad result? I need all nodes which are directly connected thought Relatioshiptypes TICKET_STATUS,TICKET_TIMETAKEN,TICKET_QUEUE with ticketNode... Dne 4.4.2011 13:59, Mattias Persson napsal(a): 2011/4/4 Matěj Plchplchm...@fit.cvut.cz Is it possible to use *Path.lastRelationship*() ? How does it take last Relationship? According to id, or how the graph is traversed? It returns the last relationships in the current path, i.e. where the traverser is a.t.m. So it already has a reference to it and just returns it. Dne 26.3.2011 19:35, Michael Hunger napsal(a): Sure, if the tree from your root node is just a cluster that is not connected anywhere else (with those 3 relationship-types) it should be as simple as. (Just written from my head, so please check the correct syntax). Traversal.description().relationship(T1,OUTGOING).relationship(T2,OUTGOING).relationship(T3,OUTGOING).traverse(rootNode); That returns an iterator of all paths going from your root node. You can limit the nodes with .uniqueness() and then add the path's (path.nodes()) to a set to collect all nodes. For getting the one with the highest id, you can use java.util.Collections.max(collection, new ComparatorNode(){}); How big is your tree? Something like that should be in Graph-Algo perhaps as subgraph or tree. HTH Michael Am 26.03.2011 um 19:26 schrieb Matěj Plch: Thank you for so fast answer. I will look at it. I have milestone tomorrow so dont have a lot of time=) and have never worked with Groovy. Well so there isnt any simple method how to do it in classic neo4j Java API? Dne 26.3.2011 19:16, Saikat Kanjilal napsal(a): You can do all of these things using gremlin and pipes. Check out github for more details. Sent from my iPhone On Mar 26, 2011, at 11:13 AM, Matěj Plchplchm...@fit.cvut.cz wrote: Hi, I have some graph and, part of it is a tree. I simple get root of this tree through id. How to simple tranverse only tree under this root node? From root goes three unique type relationship to three unique group type nodes. Under this three nodes are a lot of nodes. And I need to write a method which gives me all nodes under that group node. Second question is if its possible ho to get from this group noe with the highest id (last added). Matěj Plch ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list
[Neo4j] Neo4j Storage provider
Hi, I am new to Neo4j. Currently trying some simple graph prototypes to our business problems. Neo4j comes up with its own storage technology. Is it possible to use other storage technologies (say MongoDB) with Neo4j? The main reason is that... I will be if I asked for another storage technology in our group. I just convinced that we needed MongoDB, I would like to see if I can leverage that with Neo4j. Thanks Appreciate your help. Elangovan S ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user