Re: [Neo4j] RDF Examples not working - parent-pom
Hi, Thank you very much! Looking forward to it! Kind regards Am 14.07.2011 22:55 schrieb Michael Hunger michael.hun...@neotechnology.com: Thomas, yes I can confirm that, don't know why the one snapshot pom is not on the server. We can fix that but right now I will only be able to provide a temporary workaround. Will ping you later with that. Cheers Michael Am 14.07.2011 um 22:48 schrieb Thomas Fritz: Can anyone confirm that the neo4j-rdf, sail, sparql libs are not working? Will it be fixed? Kind regards Am 14.07.2011 17:33 schrieb Thomas Fritz fritz...@gmail.com: Hi, No, it is of course not in my own pom.xml - the projects pom.xml - it is in the Neo4J dependencies (rdf, sparql, sail). I think it has to be fixed from Neo4J and has to be updated on maven central? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: It should be directly in your pom.xml at the top, there is an xml section with the parent element. Cheers Michael If that is not in your local pom, try to pull that project from svn remove that section and build it locally. Am 14.07.2011 um 14:49 schrieb Thomas Fritz: Thanks for answering! How can i remove the parent section from the pom.xml? It is in the dependency project maven tries to resolve, right? So how and where can i edit it? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: You can just try to remove the parent ... /parent block, that should work. Those are just meant for being built integrated in a larger system build. Cheers Michael Am 14.07.2011 um 13:23 schrieb Thomas Fritz: Hi, Who can fix this? As i can see one of the neo4j-rdf dependencys pulls that dependency in. Or can i bypass and fix it locally until it is fixed? Thanks Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Peter Neubauer neubauer.pe...@gmail.com: Not sure but parent - pom should maybe be parent - central? /peter Sent from my phone. On Jul 14, 2011 12:23 PM, Thomas Fritz fritz...@gmail.com wrote: I have tried the code example from here: http://datablend.be/?p=411. I downloaded the source from github - https://github.com/datablend/neo4j-sail-test . I have also tried this example: https://github.com/aduric/Neo-SPARQL-Test They both can not be build with maven. The parent-pom can not be found by maven. I am using netbeans 7 with bundled maven 3.0.3: code Building Unnamed - neo4j-sail-test:neo4j-sail-test:jar:1.0 task-segment: [clean, install] [clean:clean] Deleting directory /home/thomas/Projekte/Neo4J-Tests/neo4j-sail-test/target [resources:resources] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! Copying 1 resource snapshot org.neo4j:neo4j-rdf-sail:0.6-SNAPSHOT: checking for updates from central snapshot org.neo4j:neo4j-rdf-sail:0.6-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-kernel:1.1-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-kernel:1.1-SNAPSHOT: checking for updates from neo4j-snapshot-repository snapshot org.neo4j:neo4j-kernel:1.1-SNAPSHOT: checking for updates from sonatype-nexus-snapshots snapshot org.neo4j:neo4j-rdf:0.7-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-rdf:0.7-SNAPSHOT: checking for updates from sonatype-nexus-snapshots snapshot org.neo4j:neo4j-meta-model:0.9-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-meta-model:0.9-SNAPSHOT: checking for updates from sonatype-nexus-snapshots snapshot org.neo4j:parent-pom:7-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:parent-pom:7-SNAPSHOT: checking for updates from sonatype-nexus-snapshots Downloading: http://m2.neo4j.org/snapshots/org/neo4j/parent-pom/7-SNAPSHOT/parent-pom-7-20100729.145222-31.pom BUILD ERROR Error building POM (may not be this project's POM). Project ID: org.neo4j:neo4j-meta-model:bundle:0.9-SNAPSHOT Reason: Cannot find parent: org.neo4j:parent-pom for project: org.neo4j:neo4j-meta-model:bundle:0.9-SNAPSHOT for project org.neo4j:neo4j-meta-model:bundle:0.9-SNAPSHOT For more information, run Maven with the -e switch Total time: 8 seconds Finished at: Thu Jul 14 12:20:44 CEST 2011 Final Memory: 13M/170M
Re: [Neo4j] RDF Examples not working - parent-pom
Thomas, just a quick info, I pulled the project locally and fixed the compilation issues (they pointed all to a parent-pom 7 that has somehow disappeared from our m2 repository). Updating it to 9 helped. So the workaround is: neo4j-graph-matching neo4j-meta-model neo4j-rdf neo4j-rdf-sail neo4j-rdf-sparql neo4j-utils-1.1 - tag 1.1 neo4j-sail-test - pull those projects and build them locally, fixing the parent pom and for some projects the repository has to be added to build. Then you have the things locally and can build and run neo4j-sail-test. repositories repository idneo4j-public-repository/id namePublically available Maven 2 repository for Neo4j/name urlhttp://m2.neo4j.org/url snapshots enabledtrue/enabled /snapshots /repository /repositories On the other hand we thought of creating a new github account for these legacy projects (neo4j-contrib) and moving them there (and updating them to the latest neo4j-versions APIs). I don't know if I can make that work today. Cheers Michael Am 15.07.2011 um 08:43 schrieb Thomas Fritz: Hi, Thank you very much! Looking forward to it! Kind regards Am 14.07.2011 22:55 schrieb Michael Hunger michael.hun...@neotechnology.com: Thomas, yes I can confirm that, don't know why the one snapshot pom is not on the server. We can fix that but right now I will only be able to provide a temporary workaround. Will ping you later with that. Cheers Michael Am 14.07.2011 um 22:48 schrieb Thomas Fritz: Can anyone confirm that the neo4j-rdf, sail, sparql libs are not working? Will it be fixed? Kind regards Am 14.07.2011 17:33 schrieb Thomas Fritz fritz...@gmail.com: Hi, No, it is of course not in my own pom.xml - the projects pom.xml - it is in the Neo4J dependencies (rdf, sparql, sail). I think it has to be fixed from Neo4J and has to be updated on maven central? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: It should be directly in your pom.xml at the top, there is an xml section with the parent element. Cheers Michael If that is not in your local pom, try to pull that project from svn remove that section and build it locally. Am 14.07.2011 um 14:49 schrieb Thomas Fritz: Thanks for answering! How can i remove the parent section from the pom.xml? It is in the dependency project maven tries to resolve, right? So how and where can i edit it? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: You can just try to remove the parent ... /parent block, that should work. Those are just meant for being built integrated in a larger system build. Cheers Michael Am 14.07.2011 um 13:23 schrieb Thomas Fritz: Hi, Who can fix this? As i can see one of the neo4j-rdf dependencys pulls that dependency in. Or can i bypass and fix it locally until it is fixed? Thanks Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Peter Neubauer neubauer.pe...@gmail.com: Not sure but parent - pom should maybe be parent - central? /peter Sent from my phone. On Jul 14, 2011 12:23 PM, Thomas Fritz fritz...@gmail.com wrote: I have tried the code example from here: http://datablend.be/?p=411. I downloaded the source from github - https://github.com/datablend/neo4j-sail-test . I have also tried this example: https://github.com/aduric/Neo-SPARQL-Test They both can not be build with maven. The parent-pom can not be found by maven. I am using netbeans 7 with bundled maven 3.0.3: code Building Unnamed - neo4j-sail-test:neo4j-sail-test:jar:1.0 task-segment: [clean, install] [clean:clean] Deleting directory /home/thomas/Projekte/Neo4J-Tests/neo4j-sail-test/target [resources:resources] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! Copying 1 resource snapshot org.neo4j:neo4j-rdf-sail:0.6-SNAPSHOT: checking for updates from central snapshot org.neo4j:neo4j-rdf-sail:0.6-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-kernel:1.1-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-kernel:1.1-SNAPSHOT: checking for updates from neo4j-snapshot-repository snapshot org.neo4j:neo4j-kernel:1.1-SNAPSHOT: checking for updates from sonatype-nexus-snapshots snapshot org.neo4j:neo4j-rdf:0.7-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-rdf:0.7-SNAPSHOT: checking for
Re: [Neo4j] RDF Examples not working - parent-pom
Thanks for the fast answer, i am just trying it out at the moment. But your answer brings me to another question. You wrote legacy projects. I know Neo4J is no RDF/Triple/Quad Store but what are the plans for the RDF libs to use Neo4J as such? Kind regards. --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/15 Michael Hunger michael.hun...@neotechnology.com: Thomas, just a quick info, I pulled the project locally and fixed the compilation issues (they pointed all to a parent-pom 7 that has somehow disappeared from our m2 repository). Updating it to 9 helped. So the workaround is: neo4j-graph-matching neo4j-meta-model neo4j-rdf neo4j-rdf-sail neo4j-rdf-sparql neo4j-utils-1.1 - tag 1.1 neo4j-sail-test - pull those projects and build them locally, fixing the parent pom and for some projects the repository has to be added to build. Then you have the things locally and can build and run neo4j-sail-test. repositories repository idneo4j-public-repository/id namePublically available Maven 2 repository for Neo4j/name urlhttp://m2.neo4j.org/url snapshots enabledtrue/enabled /snapshots /repository /repositories On the other hand we thought of creating a new github account for these legacy projects (neo4j-contrib) and moving them there (and updating them to the latest neo4j-versions APIs). I don't know if I can make that work today. Cheers Michael Am 15.07.2011 um 08:43 schrieb Thomas Fritz: Hi, Thank you very much! Looking forward to it! Kind regards Am 14.07.2011 22:55 schrieb Michael Hunger michael.hun...@neotechnology.com: Thomas, yes I can confirm that, don't know why the one snapshot pom is not on the server. We can fix that but right now I will only be able to provide a temporary workaround. Will ping you later with that. Cheers Michael Am 14.07.2011 um 22:48 schrieb Thomas Fritz: Can anyone confirm that the neo4j-rdf, sail, sparql libs are not working? Will it be fixed? Kind regards Am 14.07.2011 17:33 schrieb Thomas Fritz fritz...@gmail.com: Hi, No, it is of course not in my own pom.xml - the projects pom.xml - it is in the Neo4J dependencies (rdf, sparql, sail). I think it has to be fixed from Neo4J and has to be updated on maven central? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: It should be directly in your pom.xml at the top, there is an xml section with the parent element. Cheers Michael If that is not in your local pom, try to pull that project from svn remove that section and build it locally. Am 14.07.2011 um 14:49 schrieb Thomas Fritz: Thanks for answering! How can i remove the parent section from the pom.xml? It is in the dependency project maven tries to resolve, right? So how and where can i edit it? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: You can just try to remove the parent ... /parent block, that should work. Those are just meant for being built integrated in a larger system build. Cheers Michael Am 14.07.2011 um 13:23 schrieb Thomas Fritz: Hi, Who can fix this? As i can see one of the neo4j-rdf dependencys pulls that dependency in. Or can i bypass and fix it locally until it is fixed? Thanks Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Peter Neubauer neubauer.pe...@gmail.com: Not sure but parent - pom should maybe be parent - central? /peter Sent from my phone. On Jul 14, 2011 12:23 PM, Thomas Fritz fritz...@gmail.com wrote: I have tried the code example from here: http://datablend.be/?p=411. I downloaded the source from github - https://github.com/datablend/neo4j-sail-test . I have also tried this example: https://github.com/aduric/Neo-SPARQL-Test They both can not be build with maven. The parent-pom can not be found by maven. I am using netbeans 7 with bundled maven 3.0.3: code Building Unnamed - neo4j-sail-test:neo4j-sail-test:jar:1.0 task-segment: [clean, install] [clean:clean] Deleting directory /home/thomas/Projekte/Neo4J-Tests/neo4j-sail-test/target [resources:resources] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! Copying 1 resource snapshot org.neo4j:neo4j-rdf-sail:0.6-SNAPSHOT: checking for updates from central snapshot org.neo4j:neo4j-rdf-sail:0.6-SNAPSHOT: checking for updates from aduna-repo snapshot org.neo4j:neo4j-kernel:1.1-SNAPSHOT:
Re: [Neo4j] RDF Examples not working - parent-pom
Hi Thomas, there is a more complete rdf / sail implementation in tinkerpop that runs easily on top of neo4j. Please check that out and report back if it fits your needs: https://github.com/tinkerpop/blueprints/wiki/Sail-Ouplementation I already pinged Davy asking him to port his example to this library running on top of Neo4j. Cheers Michael Am 15.07.2011 um 10:35 schrieb Thomas Fritz: Thanks for the fast answer, i am just trying it out at the moment. But your answer brings me to another question. You wrote legacy projects. I know Neo4J is no RDF/Triple/Quad Store but what are the plans for the RDF libs to use Neo4J as such? Kind regards. --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/15 Michael Hunger michael.hun...@neotechnology.com: Thomas, just a quick info, I pulled the project locally and fixed the compilation issues (they pointed all to a parent-pom 7 that has somehow disappeared from our m2 repository). Updating it to 9 helped. So the workaround is: neo4j-graph-matching neo4j-meta-model neo4j-rdf neo4j-rdf-sail neo4j-rdf-sparql neo4j-utils-1.1 - tag 1.1 neo4j-sail-test - pull those projects and build them locally, fixing the parent pom and for some projects the repository has to be added to build. Then you have the things locally and can build and run neo4j-sail-test. repositories repository idneo4j-public-repository/id namePublically available Maven 2 repository for Neo4j/name urlhttp://m2.neo4j.org/url snapshots enabledtrue/enabled /snapshots /repository /repositories On the other hand we thought of creating a new github account for these legacy projects (neo4j-contrib) and moving them there (and updating them to the latest neo4j-versions APIs). I don't know if I can make that work today. Cheers Michael Am 15.07.2011 um 08:43 schrieb Thomas Fritz: Hi, Thank you very much! Looking forward to it! Kind regards Am 14.07.2011 22:55 schrieb Michael Hunger michael.hun...@neotechnology.com: Thomas, yes I can confirm that, don't know why the one snapshot pom is not on the server. We can fix that but right now I will only be able to provide a temporary workaround. Will ping you later with that. Cheers Michael Am 14.07.2011 um 22:48 schrieb Thomas Fritz: Can anyone confirm that the neo4j-rdf, sail, sparql libs are not working? Will it be fixed? Kind regards Am 14.07.2011 17:33 schrieb Thomas Fritz fritz...@gmail.com: Hi, No, it is of course not in my own pom.xml - the projects pom.xml - it is in the Neo4J dependencies (rdf, sparql, sail). I think it has to be fixed from Neo4J and has to be updated on maven central? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: It should be directly in your pom.xml at the top, there is an xml section with the parent element. Cheers Michael If that is not in your local pom, try to pull that project from svn remove that section and build it locally. Am 14.07.2011 um 14:49 schrieb Thomas Fritz: Thanks for answering! How can i remove the parent section from the pom.xml? It is in the dependency project maven tries to resolve, right? So how and where can i edit it? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: You can just try to remove the parent ... /parent block, that should work. Those are just meant for being built integrated in a larger system build. Cheers Michael Am 14.07.2011 um 13:23 schrieb Thomas Fritz: Hi, Who can fix this? As i can see one of the neo4j-rdf dependencys pulls that dependency in. Or can i bypass and fix it locally until it is fixed? Thanks Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Peter Neubauer neubauer.pe...@gmail.com: Not sure but parent - pom should maybe be parent - central? /peter Sent from my phone. On Jul 14, 2011 12:23 PM, Thomas Fritz fritz...@gmail.com wrote: I have tried the code example from here: http://datablend.be/?p=411. I downloaded the source from github - https://github.com/datablend/neo4j-sail-test . I have also tried this example: https://github.com/aduric/Neo-SPARQL-Test They both can not be build with maven. The parent-pom can not be found by maven. I am using netbeans 7 with bundled maven 3.0.3: code Building Unnamed - neo4j-sail-test:neo4j-sail-test:jar:1.0 task-segment: [clean, install]
Re: [Neo4j] We now have an automatic discussion forum on the Nabble Mailing List Archive
Cool ! It looks much more usable than the mailing list ;) Cheers, Pablo On Thu, Jul 14, 2011 at 10:04 PM, Michael Hunger michael.hun...@neotechnology.com wrote: I forgot two things: 1) I changed all the links on neo4j.org that previously pointed to the ugly mailman archive page to point to nabble instead. 2) The discussion mailing list vs. forum is over, I'm very happy about that. Michael Am 14.07.2011 um 22:01 schrieb Michael Hunger: They seem to have updated their UI massively, it now looks and works like a forum while interacting with this neo4j mailing list. Landing page is here: http://neo4j-user-list.438527.n3.nabble.com You can browse and search the forums from there, some hints about mailing list usage and forum integration can be found here: http://neo4j-user-list.438527.n3.nabble.com/mailing_list/MailingListOptions.jtp?forum=438527 There are also some more options for people that are interested like Advanced Search, People, Topics view and an green online dot for logged in people. It is embeddable as well, so we'll investigate if and how to embed it on neo4j.org. If you register once at nabble with the same email address you used for this list, you can reply and also post from there without ever having to use your e-mail program. (You can even turn off to receive messages, so all your interaction can be through that forum). You can also send HTML emails, but I strongly discourage that, if you don't need it (for instance for embedding relevant images or formatted source code (monospace). Cheers Michael P.S. This post was written on nabble, so no e-mail program was harmed. http://neo4j-user-list.438527.n3.nabble.com/file/n3170182/reality_is_a_graph.png -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/We-now-have-an-automatic-discussion-forum-on-the-Nabble-Mailing-List-Archive-tp3170182p3170182.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ 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 -- Pablo Pareja Tobes LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja http://about.me/pablopareja http://www.ohnosequences.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] RDF Examples not working - parent-pom
Thomas, I imported the repositories from svn, repaired them and pushed them to github. https://github.com/neo4j-contrib Next steps will be updating them to the current version (1.4.) Cheers Michael Am 15.07.2011 um 10:35 schrieb Thomas Fritz: Thanks for the fast answer, i am just trying it out at the moment. But your answer brings me to another question. You wrote legacy projects. I know Neo4J is no RDF/Triple/Quad Store but what are the plans for the RDF libs to use Neo4J as such? Kind regards. --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/15 Michael Hunger michael.hun...@neotechnology.com: Thomas, just a quick info, I pulled the project locally and fixed the compilation issues (they pointed all to a parent-pom 7 that has somehow disappeared from our m2 repository). Updating it to 9 helped. So the workaround is: neo4j-graph-matching neo4j-meta-model neo4j-rdf neo4j-rdf-sail neo4j-rdf-sparql neo4j-utils-1.1 - tag 1.1 neo4j-sail-test - pull those projects and build them locally, fixing the parent pom and for some projects the repository has to be added to build. Then you have the things locally and can build and run neo4j-sail-test. repositories repository idneo4j-public-repository/id namePublically available Maven 2 repository for Neo4j/name urlhttp://m2.neo4j.org/url snapshots enabledtrue/enabled /snapshots /repository /repositories On the other hand we thought of creating a new github account for these legacy projects (neo4j-contrib) and moving them there (and updating them to the latest neo4j-versions APIs). I don't know if I can make that work today. Cheers Michael Am 15.07.2011 um 08:43 schrieb Thomas Fritz: Hi, Thank you very much! Looking forward to it! Kind regards Am 14.07.2011 22:55 schrieb Michael Hunger michael.hun...@neotechnology.com: Thomas, yes I can confirm that, don't know why the one snapshot pom is not on the server. We can fix that but right now I will only be able to provide a temporary workaround. Will ping you later with that. Cheers Michael Am 14.07.2011 um 22:48 schrieb Thomas Fritz: Can anyone confirm that the neo4j-rdf, sail, sparql libs are not working? Will it be fixed? Kind regards Am 14.07.2011 17:33 schrieb Thomas Fritz fritz...@gmail.com: Hi, No, it is of course not in my own pom.xml - the projects pom.xml - it is in the Neo4J dependencies (rdf, sparql, sail). I think it has to be fixed from Neo4J and has to be updated on maven central? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: It should be directly in your pom.xml at the top, there is an xml section with the parent element. Cheers Michael If that is not in your local pom, try to pull that project from svn remove that section and build it locally. Am 14.07.2011 um 14:49 schrieb Thomas Fritz: Thanks for answering! How can i remove the parent section from the pom.xml? It is in the dependency project maven tries to resolve, right? So how and where can i edit it? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: You can just try to remove the parent ... /parent block, that should work. Those are just meant for being built integrated in a larger system build. Cheers Michael Am 14.07.2011 um 13:23 schrieb Thomas Fritz: Hi, Who can fix this? As i can see one of the neo4j-rdf dependencys pulls that dependency in. Or can i bypass and fix it locally until it is fixed? Thanks Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Peter Neubauer neubauer.pe...@gmail.com: Not sure but parent - pom should maybe be parent - central? /peter Sent from my phone. On Jul 14, 2011 12:23 PM, Thomas Fritz fritz...@gmail.com wrote: I have tried the code example from here: http://datablend.be/?p=411. I downloaded the source from github - https://github.com/datablend/neo4j-sail-test . I have also tried this example: https://github.com/aduric/Neo-SPARQL-Test They both can not be build with maven. The parent-pom can not be found by maven. I am using netbeans 7 with bundled maven 3.0.3: code Building Unnamed - neo4j-sail-test:neo4j-sail-test:jar:1.0 task-segment: [clean, install] [clean:clean] Deleting directory /home/thomas/Projekte/Neo4J-Tests/neo4j-sail-test/target [resources:resources] Using platform
Re: [Neo4j] RDF Examples not working - parent-pom
Thank you so far! :) --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/15 Michael Hunger michael.hun...@neotechnology.com: Thomas, I imported the repositories from svn, repaired them and pushed them to github. https://github.com/neo4j-contrib Next steps will be updating them to the current version (1.4.) Cheers Michael Am 15.07.2011 um 10:35 schrieb Thomas Fritz: Thanks for the fast answer, i am just trying it out at the moment. But your answer brings me to another question. You wrote legacy projects. I know Neo4J is no RDF/Triple/Quad Store but what are the plans for the RDF libs to use Neo4J as such? Kind regards. --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/15 Michael Hunger michael.hun...@neotechnology.com: Thomas, just a quick info, I pulled the project locally and fixed the compilation issues (they pointed all to a parent-pom 7 that has somehow disappeared from our m2 repository). Updating it to 9 helped. So the workaround is: neo4j-graph-matching neo4j-meta-model neo4j-rdf neo4j-rdf-sail neo4j-rdf-sparql neo4j-utils-1.1 - tag 1.1 neo4j-sail-test - pull those projects and build them locally, fixing the parent pom and for some projects the repository has to be added to build. Then you have the things locally and can build and run neo4j-sail-test. repositories repository idneo4j-public-repository/id namePublically available Maven 2 repository for Neo4j/name urlhttp://m2.neo4j.org/url snapshots enabledtrue/enabled /snapshots /repository /repositories On the other hand we thought of creating a new github account for these legacy projects (neo4j-contrib) and moving them there (and updating them to the latest neo4j-versions APIs). I don't know if I can make that work today. Cheers Michael Am 15.07.2011 um 08:43 schrieb Thomas Fritz: Hi, Thank you very much! Looking forward to it! Kind regards Am 14.07.2011 22:55 schrieb Michael Hunger michael.hun...@neotechnology.com: Thomas, yes I can confirm that, don't know why the one snapshot pom is not on the server. We can fix that but right now I will only be able to provide a temporary workaround. Will ping you later with that. Cheers Michael Am 14.07.2011 um 22:48 schrieb Thomas Fritz: Can anyone confirm that the neo4j-rdf, sail, sparql libs are not working? Will it be fixed? Kind regards Am 14.07.2011 17:33 schrieb Thomas Fritz fritz...@gmail.com: Hi, No, it is of course not in my own pom.xml - the projects pom.xml - it is in the Neo4J dependencies (rdf, sparql, sail). I think it has to be fixed from Neo4J and has to be updated on maven central? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: It should be directly in your pom.xml at the top, there is an xml section with the parent element. Cheers Michael If that is not in your local pom, try to pull that project from svn remove that section and build it locally. Am 14.07.2011 um 14:49 schrieb Thomas Fritz: Thanks for answering! How can i remove the parent section from the pom.xml? It is in the dependency project maven tries to resolve, right? So how and where can i edit it? Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Michael Hunger michael.hun...@neotechnology.com: You can just try to remove the parent ... /parent block, that should work. Those are just meant for being built integrated in a larger system build. Cheers Michael Am 14.07.2011 um 13:23 schrieb Thomas Fritz: Hi, Who can fix this? As i can see one of the neo4j-rdf dependencys pulls that dependency in. Or can i bypass and fix it locally until it is fixed? Thanks Kind regards --- Thomas FRITZ web http://fritzthomas.com twitter http://twitter.com/thomasf 2011/7/14 Peter Neubauer neubauer.pe...@gmail.com: Not sure but parent - pom should maybe be parent - central? /peter Sent from my phone. On Jul 14, 2011 12:23 PM, Thomas Fritz fritz...@gmail.com wrote: I have tried the code example from here: http://datablend.be/?p=411. I downloaded the source from github - https://github.com/datablend/neo4j-sail-test . I have also tried this example: https://github.com/aduric/Neo-SPARQL-Test They both can not be build with maven. The parent-pom can not be found by maven. I am using netbeans 7 with bundled maven 3.0.3: code Building Unnamed - neo4j-sail-test:neo4j-sail-test:jar:1.0 task-segment: [clean, install] [clean:clean] Deleting
[Neo4j] Getting sorted results from a traversal
HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] Getting sorted results from a traversal
Hi,You basically have two options. If your result set is not too big, you can sort it in memory, though that approach may consume too much memory if the result set is very large. In that case you can use SortedTree (see: https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree). This allows you to layout the relationships you want to traverse in sorted order. Niels Date: Fri, 15 Jul 2011 16:06:44 +0200 From: p...@moviepilot.com To: user@lists.neo4j.org Subject: [Neo4j] Getting sorted results from a traversal HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] Getting sorted results from a traversal
Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] [Blog Post] Graphs, Brains, and Gremlin
Cool post, Marko! Added a comment and a book recommendation to your blog. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Marko Rodriguez Sent: Thursday, July 14, 2011 4:32 PM To: gremlin-us...@googlegroups.com Cc: Neo4j user discussions; orient-database Subject: [Neo4j] [Blog Post] Graphs, Brains, and Gremlin Howdy ho, If a graph database was simply another way to evaluate the same style of queries/computations as relational/document/etc. database, then my mind would find solace elsewhere. Fortunately, graph databases offer a unique vantage point on data. Data can be slithered through like water rushing through streams and as such, has various correlations to natural information processing systems such as the brain. To articulate this perspective, I dropped a blog post. http://markorodriguez.com/2011/07/14/graphs-brains-and-gremlin/ Boo yea, Marko. http://markorodriguez.com ___ 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
Re: [Neo4j] Getting sorted results from a traversal
The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] Getting sorted results from a traversal
Hi, Ah. Then I would recommend using a persistent data structure such as the one the Neil discussed in his follow up post. Marko. http://markorodriguez.com On Jul 15, 2011, at 9:04 AM, Pere Urbon Bayes wrote: Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] [Blog Post] Graphs, Brains, and Gremlin
Hi Rick, Added a comment and a book recommendation to your blog. Thanks. On Intelligence is the first reference in the references section of the post --- along with some other goodies. Thanks for reading and commenting, Marko. http://markorodriguez.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
I would think that the graph structure definitely matters, in that there may be optimizations that can be achieved via indexing/querying vs traversal and sorting (or a hybrid of the two) depending on the specifics. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:14 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well the graph structure is not relevant here, I think. The property I expect to be sorting is on the destination node, so I can do the traversal and then expect to run the sorting. Please, tell me how the data structure can help me to deal with that order, please? / purbon On 15 July 2011 17:10, David Montag david.mon...@neotechnology.com wrote: Hi Pere, Can you elaborate on your graph structure? Thanks, David On Fri, Jul 15, 2011 at 8:04 AM, Pere Urbon Bayes p...@moviepilot.com wrote: Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- David Montag david.mon...@neotechnology.com Neo Technology, www.neotechnology.com Cell: 650.556.4411 Skype: ddmontag ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] Getting sorted results from a traversal
Well in fact, I expect to order the resulting set of nodes by a property on that end nodes. But This class cold also help on some use cases I think. / purbon On 15 July 2011 16:43, Niels Hoogeveen pd_aficion...@hotmail.com wrote: Hi,You basically have two options. If your result set is not too big, you can sort it in memory, though that approach may consume too much memory if the result set is very large. In that case you can use SortedTree (see: https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree). This allows you to layout the relationships you want to traverse in sorted order. Niels Date: Fri, 15 Jul 2011 16:06:44 +0200 From: p...@moviepilot.com To: user@lists.neo4j.org Subject: [Neo4j] Getting sorted results from a traversal HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
Yes the graph structure is relevant, but I am just saying I don't know how the structure can help me in this use case. All that I want is to do a traversal, and then order the expected result. It will be possible If I only use neo4j as a traversal thing, and then another system as a property store, but I think the hole neo4j should be able to deal with that, right? / purbon On 15 July 2011 17:16, Rick Bullotta rick.bullo...@thingworx.com wrote: I would think that the graph structure definitely matters, in that there may be optimizations that can be achieved via indexing/querying vs traversal and sorting (or a hybrid of the two) depending on the specifics. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:14 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well the graph structure is not relevant here, I think. The property I expect to be sorting is on the destination node, so I can do the traversal and then expect to run the sorting. Please, tell me how the data structure can help me to deal with that order, please? / purbon On 15 July 2011 17:10, David Montag david.mon...@neotechnology.com wrote: Hi Pere, Can you elaborate on your graph structure? Thanks, David On Fri, Jul 15, 2011 at 8:04 AM, Pere Urbon Bayes p...@moviepilot.com wrote: Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- David Montag david.mon...@neotechnology.com Neo Technology, www.neotechnology.com Cell: 650.556.4411 Skype: ddmontag ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
A few questions/thoughts: - Do you have any expectation/prediction of the number of nodes satisfying the query? - Do you care about *all* results or only the top n (I ask this because in most cases, a dataset of a zillion ordered records is of little value - often only the edges have meaningful content) If the answer to the first question is a couple million or so, I would probably sort in memory. If the answer to the second question is yes, then the problem because very easy, in that you can maintain a sorted list of the top n during the traversal process fairly easily. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:17 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well in fact, I expect to order the resulting set of nodes by a property on that end nodes. But This class cold also help on some use cases I think. / purbon On 15 July 2011 16:43, Niels Hoogeveen pd_aficion...@hotmail.com wrote: Hi,You basically have two options. If your result set is not too big, you can sort it in memory, though that approach may consume too much memory if the result set is very large. In that case you can use SortedTree (see: https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree). This allows you to layout the relationships you want to traverse in sorted order. Niels Date: Fri, 15 Jul 2011 16:06:44 +0200 From: p...@moviepilot.com To: user@lists.neo4j.org Subject: [Neo4j] Getting sorted results from a traversal HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] [Blog Post] Graphs, Brains, and Gremlin
Nice. It's a very though provoking (pun clearly intended) blog post. I need to read it a couple times to fully grok it. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Marko Rodriguez Sent: Friday, July 15, 2011 11:11 AM To: Neo4j user discussions Subject: Re: [Neo4j] [Blog Post] Graphs, Brains, and Gremlin Hi Rick, Added a comment and a book recommendation to your blog. Thanks. On Intelligence is the first reference in the references section of the post --- along with some other goodies. Thanks for reading and commenting, Marko. http://markorodriguez.com ___ 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
Re: [Neo4j] [Blog Post] Graphs, Brains, and Gremlin
Nice. It's a very though provoking (pun clearly intended) blog post. I need to read it a couple times to fully grok it. I put many links to associated reading (primarily on Wikipedia). If you don't have experience with elementary cognitive neuroscience, then you can learn all you need to know by following the links. I can save you 2-years of tuition: read the blog post and the one-step away Wikipedia pages :)...and if you want a graduate-level understanding of cognitive neuroscience, go two-steps. If you want to understand even more, do a spreading activation through Wikipedia :). Also, the HMAX diagram... http://markorodriguez.files.wordpress.com/2011/07/hmax-model.png ...is an accurate diagram and if you can follow what its trying to represent, then it will give you a good understanding of the first layers of the visual cortex are doing. Part of my postdoctoral work was on this model which is a computational model of the visual cortex that is biologically realistic. Its a very cool model indeed. I have two references in the references section that point to further HMAX information. Thanks again, Marko. http://markorodriguez.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Cypher request with where clause on relations count
Hi, I have 2 kind of nodes (let's say A and B) which are related using a relation of type 'USES'. I want to count all the type A nodes which have only 1 relation to B type node and all the type A nodes which have more than one relation to B type node. I am using neo4j server and I am currently trying to make a cypher request for that : it would look like that : start A=(id,object_type,A) match (A)-[r:USES]-(B) where count(r)=1 return count(A) It is possible to make that kind of request with Cypher ? If not, how would you do it with Neo4j server ? Cheers, Guillaume ALLEE | Capgemini | BTech Toulouse /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Verifying the relationship between two nodes
Hi, I'm using: ruby 1.9.2, rails 3, neo4j and neography. I have the following nodes and relationships: node1 = $neo.create_node(:id = 1, :name = Diego) node2 = $neo.create_node(:id = 2, :name = Jhon) $neo.create_relationship(:knows, node1, node2) My question is, how can i verify if there is a relationship between the nodes with id=1 and id=2? Thanks, Best, Diego Nogueira -- Atenciosamente, Diego Alvarez Nogueira Blog: http://diegonogueira.com.br | http://papoinformal.com Skype: nogueiradiego Twitter: @nogueiradiego ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Verifying the relationship between two nodes
Diego, this is code from one of my neography apps: https://github.com/jexp/birdies @users.outgoing(:USER) user if @users.rels(:USER).outgoing.to_other(user).empty? @users and user are your two nodes. So it would be: ! node1.rels(:knows).outgoing.to_other(node2).empty? Cheers Michael Am 15.07.2011 um 19:06 schrieb Diego Alvarez Nogueira: Hi, I'm using: ruby 1.9.2, rails 3, neo4j and neography. I have the following nodes and relationships: node1 = $neo.create_node(:id = 1, :name = Diego) node2 = $neo.create_node(:id = 2, :name = Jhon) $neo.create_relationship(:knows, node1, node2) My question is, how can i verify if there is a relationship between the nodes with id=1 and id=2? Thanks, Best, Diego Nogueira -- Atenciosamente, Diego Alvarez Nogueira Blog: http://diegonogueira.com.br | http://papoinformal.com Skype: nogueiradiego Twitter: @nogueiradiego ___ 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
Re: [Neo4j] Getting sorted results from a traversal
You might also try to use cypher for your traversal which is able to order (also in memory of course). See the screencast I did: http://neo4j.vidcaster.com/U2Y/introduction-to-cypher/ It's even the same domain. Cheers Michael Am 15.07.2011 um 17:24 schrieb Rick Bullotta: But you couldn't easy do a complex traversal with an RDBMS. ;-) I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] Getting sorted results from a traversal
Yeah! well to order in memory I can really deal with that task, for this I really don't need cypher. Don´t take it personally, I know you really want to promote your language, xD! - purbon PD: See you next graphdb meetup in Berlin! On 15 July 2011 19:37, Michael Hunger michael.hun...@neotechnology.comwrote: You might also try to use cypher for your traversal which is able to order (also in memory of course). See the screencast I did: http://neo4j.vidcaster.com/U2Y/introduction-to-cypher/ It's even the same domain. Cheers Michael Am 15.07.2011 um 17:24 schrieb Rick Bullotta: But you couldn't easy do a complex traversal with an RDBMS. ;-) I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org ] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j
Re: [Neo4j] Getting sorted results from a traversal
Hi Rick, On 15 July 2011 17:24, Rick Bullotta rick.bullo...@thingworx.com wrote: But you couldn't easy do a complex traversal with an RDBMS. ;-) Yeah, so you are on me, from neo4j I could only expect to deal really good with traversals, when you need some simple thing like ordering nodes, you can not do it easily. I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. Well, there are two tasks involved on that, 1.- Do the traversals? ( Where neo4j simple rocks!) 2.- The post ordering? ( Where I will need something else) The thing is that with the second one I would expect something like this Traversal - Set of Nodes - Order - Set of Nodes ordered In this use case I really would like to have this feature as traversals expect to return always some kind of node set. On the oder side there are the graph maching, where you expect a full graph. Also will be interesting when dealing with edges, there we could also have something like an ordered tree https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. Well, If I was able to ask the internal lucene to order the resultset from the traversal then will be find. But please teach me how you will do it, oder wise for me its just a use case neo4j can not provide me. - purbon -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512
[Neo4j] use one index per key or one index for all keys?
I have an index called UniqueIndex, here I am storing emails and ids which you guessed it have to be unique. Is there any performance difference if I store both keys on the same index vs. storing them on two different indexes? Many thanks! ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
Hi, Pere, my last thought on this is that you might want to use something like JDBM2. http://code.google.com/p/jdbm2/ It has a Maven2 dependency if you do it that way. JDBM2 provides you some Java collection implementations that are persistent to disk... See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 12:22 PM, Pere Urbon Bayes wrote: Yeah! well to order in memory I can really deal with that task, for this I really don't need cypher. Don´t take it personally, I know you really want to promote your language, xD! - purbon PD: See you next graphdb meetup in Berlin! On 15 July 2011 19:37, Michael Hunger michael.hun...@neotechnology.comwrote: You might also try to use cypher for your traversal which is able to order (also in memory of course). See the screencast I did: http://neo4j.vidcaster.com/U2Y/introduction-to-cypher/ It's even the same domain. Cheers Michael Am 15.07.2011 um 17:24 schrieb Rick Bullotta: But you couldn't easy do a complex traversal with an RDBMS. ;-) I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org ] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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
Re: [Neo4j] Getting sorted results from a traversal
Hey, Actually, I was just Googling and found this cool library: http://code.google.com/p/pcollections/ This way you have Set, Vector, etc. persisted. Perhaps that could help you out Pere. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 12:30 PM, Marko Rodriguez wrote: Hi, Pere, my last thought on this is that you might want to use something like JDBM2. http://code.google.com/p/jdbm2/ It has a Maven2 dependency if you do it that way. JDBM2 provides you some Java collection implementations that are persistent to disk... See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 12:22 PM, Pere Urbon Bayes wrote: Yeah! well to order in memory I can really deal with that task, for this I really don't need cypher. Don´t take it personally, I know you really want to promote your language, xD! - purbon PD: See you next graphdb meetup in Berlin! On 15 July 2011 19:37, Michael Hunger michael.hun...@neotechnology.comwrote: You might also try to use cypher for your traversal which is able to order (also in memory of course). See the screencast I did: http://neo4j.vidcaster.com/U2Y/introduction-to-cypher/ It's even the same domain. Cheers Michael Am 15.07.2011 um 17:24 schrieb Rick Bullotta: But you couldn't easy do a complex traversal with an RDBMS. ;-) I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org ] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133
Re: [Neo4j] Getting sorted results from a traversal
Marko, Isn't that pretty similar to what https://github.com/peterneubauer/graph-collectionshttps://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree provides for Neo4j? David On Fri, Jul 15, 2011 at 11:30 AM, Marko Rodriguez okramma...@gmail.comwrote: Hi, Pere, my last thought on this is that you might want to use something like JDBM2. http://code.google.com/p/jdbm2/ It has a Maven2 dependency if you do it that way. JDBM2 provides you some Java collection implementations that are persistent to disk... See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 12:22 PM, Pere Urbon Bayes wrote: Yeah! well to order in memory I can really deal with that task, for this I really don't need cypher. Don´t take it personally, I know you really want to promote your language, xD! - purbon PD: See you next graphdb meetup in Berlin! On 15 July 2011 19:37, Michael Hunger michael.hun...@neotechnology.com wrote: You might also try to use cypher for your traversal which is able to order (also in memory of course). See the screencast I did: http://neo4j.vidcaster.com/U2Y/introduction-to-cypher/ It's even the same domain. Cheers Michael Am 15.07.2011 um 17:24 schrieb Rick Bullotta: But you couldn't easy do a complex traversal with an RDBMS. ;-) I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. -Original Message- From: user-boun...@lists.neo4j.org [mailto: user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto: user-boun...@lists.neo4j.org ] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere
Re: [Neo4j] Getting sorted results from a traversal
Hey, Isn't that pretty similar to what https://github.com/peterneubauer/graph-collectionshttps://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree provides for Neo4j? I dunno. I haven't played with Graph Collections. But I assume so if it implements Java Collections interfaces ? The reason I brought up JDBM2 is because Pere still didn't seem satisfied after Niels recommendation of using graph-collections (that was the first email response to Pere). Just throwing stuff out there -- must...make..Pere...happy... Marko. http://markorodriguez.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
With our jruby script extension you can write server-side code in ruby that can do that for you. Cheers Michael Am 15.07.2011 um 20:22 schrieb Pere Urbon Bayes: Yeah! well to order in memory I can really deal with that task, for this I really don't need cypher. Don´t take it personally, I know you really want to promote your language, xD! - purbon PD: See you next graphdb meetup in Berlin! On 15 July 2011 19:37, Michael Hunger michael.hun...@neotechnology.comwrote: You might also try to use cypher for your traversal which is able to order (also in memory of course). See the screencast I did: http://neo4j.vidcaster.com/U2Y/introduction-to-cypher/ It's even the same domain. Cheers Michael Am 15.07.2011 um 17:24 schrieb Rick Bullotta: But you couldn't easy do a complex traversal with an RDBMS. ;-) I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org ] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ 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 -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49
Re: [Neo4j] Getting sorted results from a traversal
Jajajaja, Marko I just need to meet you sometime! I always listen good thing about you from Peter and Achim ... I am quite not satisfied, probably I will change somethings on my project in order to fit better with that use case! - purbon On 15 July 2011 20:53, Marko Rodriguez okramma...@gmail.com wrote: Hey, Isn't that pretty similar to what https://github.com/peterneubauer/graph-collections https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree provides for Neo4j? I dunno. I haven't played with Graph Collections. But I assume so if it implements Java Collections interfaces ? The reason I brought up JDBM2 is because Pere still didn't seem satisfied after Niels recommendation of using graph-collections (that was the first email response to Pere). Just throwing stuff out there -- must...make..Pere...happy... Marko. http://markorodriguez.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Getting sorted results from a traversal
After a fast walk throw the code I found that option quite interesting and probably the best fit till now for that problem! I hope I will be able to provide a useful solution for those with the same problem than me... I just tried you say I was expecting neo4j to provide me with something like a sort command, I really realise is something not common in the graphdb world, but something cool that can help a lot of people. - purbon On 15 July 2011 20:50, David Montag david.mon...@neotechnology.com wrote: Marko, Isn't that pretty similar to what https://github.com/peterneubauer/graph-collections https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/sortedtree provides for Neo4j? David On Fri, Jul 15, 2011 at 11:30 AM, Marko Rodriguez okramma...@gmail.com wrote: Hi, Pere, my last thought on this is that you might want to use something like JDBM2. http://code.google.com/p/jdbm2/ It has a Maven2 dependency if you do it that way. JDBM2 provides you some Java collection implementations that are persistent to disk... See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 12:22 PM, Pere Urbon Bayes wrote: Yeah! well to order in memory I can really deal with that task, for this I really don't need cypher. Don´t take it personally, I know you really want to promote your language, xD! - purbon PD: See you next graphdb meetup in Berlin! On 15 July 2011 19:37, Michael Hunger michael.hun...@neotechnology.com wrote: You might also try to use cypher for your traversal which is able to order (also in memory of course). See the screencast I did: http://neo4j.vidcaster.com/U2Y/introduction-to-cypher/ It's even the same domain. Cheers Michael Am 15.07.2011 um 17:24 schrieb Rick Bullotta: But you couldn't easy do a complex traversal with an RDBMS. ;-) I suspect that even if you could write some magic SQL to do so, you'd almost certainly lose the benefits any optimized sorting/ordering that indices provide, so even the RDBMS would have to post-process the sort. If the traversal isn't complex or randomly deep, then Neo indexing + querying might work for you the same way an RDBMS might handle it. -Original Message- From: user-boun...@lists.neo4j.org [mailto: user-boun...@lists.neo4j.org] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, the thing is that the database can easy deal with that, as the relational system do. / purbon On 15 July 2011 17:08, Rick Bullotta rick.bullo...@thingworx.com wrote: The DB would do it in memory too, wouldn't it? In the case of a complex traversal, indexes don't really apply, since the ordering and the traversal order are unrelated, so you'd generally need to sort in memory anyway. Whether you do it as you add elements to the traversed list of stuff or do it after the fact is another discussion, but I think in either case, it needs to be done after the fact. -Original Message- From: user-boun...@lists.neo4j.org [mailto: user-boun...@lists.neo4j.org ] On Behalf Of Pere Urbon Bayes Sent: Friday, July 15, 2011 11:05 AM To: Neo4j user discussions Subject: Re: [Neo4j] Getting sorted results from a traversal Well, this is great if I want to do all the math in memory, but I expect to do the computation by the db. / purbon On 15 July 2011 16:10, Marko Rodriguez okramma...@gmail.com wrote: Hi Pere, To sort you need to have all your results. Thus, in Gremlin (and hopefully you can do the mapping to the core Neo4j traverser framework), results = [] g.v(1).out('friend').out('likes') results // what my friends like results.sort{a,b - a.name = b.name} // sort resultant vertices by name In short, once you have the result of your traversal, you can then apply a comparator to the Collection to sort it as you please --- its just Java comparators. See ya, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:06 AM, Pere Urbon Bayes wrote: HI! I am on the situation of having to traverse neo4j, and then expect the resultset returned to be ordered in a certain order. I've been researching a bit over the traversal API, but I did not find anything related to that. I really will appreciate any tip on that!! BTW I expect to be possible right?, as we have in relational the ordering, or on redis, etc... /purbon -- Pere Urbon-Bayes moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133 ___
[Neo4j] get relationships on node during REST traversal
I am trying to return only nodes with a relationship of a given type in a traversal using the REST API. The traversing of relationships is working correctly, and I can successfully filter on properties, but I would like to return only nodes with relationships of a given type, and it is not one of the relationship types I am traversing. The problem is, every node is showing as having no relationships in the return filter body. below is a traverser that I have tried to use as a simplified test and got back no results. If I add in a return true line before the current return statement, I get back every node that has been traversed. Does getRelationships() work in a return filter? It isn't possible that a node I have traversed to has no relationships, so I am wondering if I am doing something wrong. the status code is 200, the result is just an empty JSON array unless I add in code to filter on some other criteria that returns true for some nodes. {order:depth_first, uniqueness:node_path, return filter:{ body:(function eval(pos) { var node = pos.endNode(); var rels = pos.endNode().getRelationships(); var relIt = rels.iterator(); return relIt.hasNext(); })(position);, language:javascript }, max depth:2, relationships:[{direction:out,type:USED}] } Thanks, Michael A -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/get-relationships-on-node-during-REST-traversal-tp3173391p3173391.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] get relationships on node during REST traversal
Mike, what version of Neo4j are you running this against? Please note that the syntax for the traversal parameters changed in 1.4, they all now need underscores instead of spaces. Please try to use max_depth and return_filter. Is there a reason why you chose to use a separate eval function definition instead of just providing the body for the return_filter ? Just asking. Cheers Michael Am 15.07.2011 um 23:32 schrieb mikeagun: I am trying to return only nodes with a relationship of a given type in a traversal using the REST API. The traversing of relationships is working correctly, and I can successfully filter on properties, but I would like to return only nodes with relationships of a given type, and it is not one of the relationship types I am traversing. The problem is, every node is showing as having no relationships in the return filter body. below is a traverser that I have tried to use as a simplified test and got back no results. If I add in a return true line before the current return statement, I get back every node that has been traversed. Does getRelationships() work in a return filter? It isn't possible that a node I have traversed to has no relationships, so I am wondering if I am doing something wrong. the status code is 200, the result is just an empty JSON array unless I add in code to filter on some other criteria that returns true for some nodes. {order:depth_first, uniqueness:node_path, return filter:{ body:(function eval(pos) { var node = pos.endNode(); var rels = pos.endNode().getRelationships(); var relIt = rels.iterator(); return relIt.hasNext(); })(position);, language:javascript }, max depth:2, relationships:[{direction:out,type:USED}] } Thanks, Michael A -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/get-relationships-on-node-during-REST-traversal-tp3173391p3173391.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ 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
Re: [Neo4j] NoSuchElementException
Well while inserting the nodes I keep a check batchInserter.nodeExists(node1) so I would guess a node would not be duplicated. Otherwise during a traversal I guess duplicate nodes. IIs there a way I can look into the BtachInsert data before I flush so that I can make sure no duplicate data has been inserted ? On Sat, Jun 25, 2011 at 10:49 AM, sulabh choudhury sula...@gmail.comwrote: Thank you Jim. I will wait for 1.5 and hope it resolves the issue :) On Fri, Jun 24, 2011 at 7:11 PM, sulabh choudhury sula...@gmail.comwrote: Hi, I just downloaded the neo4j-community-1.4.M04. I stumbled into the java.util.NoSuchElementException: More than one element in org.neo4j.index.impl.lucene.LuceneIndex$1@396cbd97. First element is 'Node[3]' and the second element is 'Node[2]' at org.neo4j.helpers.collection.IteratorUtil.singleOrNull(IteratorUtil.java:114) ~[working_graphGen.jar:na] at org.neo4j.index.impl.lucene.IdToEntityIterator.getSingle(IdToEntityIterator.java:88) ~[working_graphGen.jar:na] at org.neo4j.index.impl.lucene.IdToEntityIterator.getSingle(IdToEntityIterator.java:32) ~[working_graphGen.jar:na] I looked up and found that this is a bug and has been fixed. I was wondering if the fix has been incorporated in the latest Milestone or not? -- -- Thanks and Regards, Sulabh Choudhury -- -- Thanks and Regards, Sulabh Choudhury ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Hyperedges and Objects
Hi, is there a possibility to store hyper edges in Neo4j? Is there a plan to implement this? Will Neo4j get the ability to store complex types in addition to primitve data types for properties of nodes and relationships? -- Best regards Norbert Tausch ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] We now have an automatic discussion forum on the Nabble Mailing List Archive
I embedded it now at http://neo4j.org/forums Also all links to the nabble site are now redirected by them to our page. Thanks again to Andrew Serff for getting this up and running. And to Nabble for the ease of integration. Cheers Michael Am 15.07.2011 um 12:26 schrieb Pablo Pareja: Cool ! It looks much more usable than the mailing list ;) Cheers, Pablo On Thu, Jul 14, 2011 at 10:04 PM, Michael Hunger michael.hun...@neotechnology.com wrote: I forgot two things: 1) I changed all the links on neo4j.org that previously pointed to the ugly mailman archive page to point to nabble instead. 2) The discussion mailing list vs. forum is over, I'm very happy about that. Michael Am 14.07.2011 um 22:01 schrieb Michael Hunger: They seem to have updated their UI massively, it now looks and works like a forum while interacting with this neo4j mailing list. Landing page is here: http://neo4j-user-list.438527.n3.nabble.com You can browse and search the forums from there, some hints about mailing list usage and forum integration can be found here: http://neo4j-user-list.438527.n3.nabble.com/mailing_list/MailingListOptions.jtp?forum=438527 There are also some more options for people that are interested like Advanced Search, People, Topics view and an green online dot for logged in people. It is embeddable as well, so we'll investigate if and how to embed it on neo4j.org. If you register once at nabble with the same email address you used for this list, you can reply and also post from there without ever having to use your e-mail program. (You can even turn off to receive messages, so all your interaction can be through that forum). You can also send HTML emails, but I strongly discourage that, if you don't need it (for instance for embedding relevant images or formatted source code (monospace). Cheers Michael P.S. This post was written on nabble, so no e-mail program was harmed. http://neo4j-user-list.438527.n3.nabble.com/file/n3170182/reality_is_a_graph.png -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/We-now-have-an-automatic-discussion-forum-on-the-Nabble-Mailing-List-Archive-tp3170182p3170182.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ 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 -- Pablo Pareja Tobes LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja http://about.me/pablopareja http://www.ohnosequences.com ___ 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
Re: [Neo4j] Hyperedges and Objects
Hyper edges can be emulated. Suppose you want to store the fact John gives Pete a book. This is indeed a ternary relationship, which would call for an hyper edge. This fact can be stored as follows: Some act of giving --Giver--JohnSome act of giving --Recipient-- PeteSome act of giving --Gift-- book N-ary relationships can generally be decomposed into N binary relationships, where a central node is used to used as a placeholder for the N-ary relationship. Complex types can either be stored into a byte array or if appropriate in multiple properties. Date: Sat, 16 Jul 2011 00:04:15 +0200 From: ntausc...@gmail.com To: user@lists.neo4j.org Subject: [Neo4j] Hyperedges and Objects Hi, is there a possibility to store hyper edges in Neo4j? Is there a plan to implement this? Will Neo4j get the ability to store complex types in addition to primitve data types for properties of nodes and relationships? -- Best regards Norbert Tausch ___ 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] Best practice to avoid Unable to lock store error?
Such as. Unable to lock store [/Users/xxx/db/neostore], this is usually caused by another Neo4j kernel already running in this JVM for this particular store I'm getting this error when the the user tries to insert into the database really fast (e.g, multiple clicks). The design that I use is to open and shutdown after each commit. So, sometime may be the database is not finish and the user clicks again. I think one way would be to disable the button after one click, but is there a better way to deal with that? -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Best-practice-to-avoid-Unable-to-lock-store-error-tp3173592p3173592.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Best practice to avoid Unable to lock store error?
Why would you do that? Keep the database open as a singleton instead. - Reply message - From: noppanit noppani...@gmail.com Date: Fri, Jul 15, 2011 7:00 pm Subject: [Neo4j] Best practice to avoid Unable to lock store error? To: user@lists.neo4j.org user@lists.neo4j.org Such as. Unable to lock store [/Users/xxx/db/neostore], this is usually caused by another Neo4j kernel already running in this JVM for this particular store I'm getting this error when the the user tries to insert into the database really fast (e.g, multiple clicks). The design that I use is to open and shutdown after each commit. So, sometime may be the database is not finish and the user clicks again. I think one way would be to disable the button after one click, but is there a better way to deal with that? -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Best-practice-to-avoid-Unable-to-lock-store-error-tp3173592p3173592.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ 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
Re: [Neo4j] Hyperedges and Objects
And native support for JSON types is planned as well. Cheers Michael Am 16.07.2011 um 00:52 schrieb Niels Hoogeveen: Hyper edges can be emulated. Suppose you want to store the fact John gives Pete a book. This is indeed a ternary relationship, which would call for an hyper edge. This fact can be stored as follows: Some act of giving --Giver--JohnSome act of giving --Recipient-- PeteSome act of giving --Gift-- book N-ary relationships can generally be decomposed into N binary relationships, where a central node is used to used as a placeholder for the N-ary relationship. Complex types can either be stored into a byte array or if appropriate in multiple properties. Date: Sat, 16 Jul 2011 00:04:15 +0200 From: ntausc...@gmail.com To: user@lists.neo4j.org Subject: [Neo4j] Hyperedges and Objects Hi, is there a possibility to store hyper edges in Neo4j? Is there a plan to implement this? Will Neo4j get the ability to store complex types in addition to primitve data types for properties of nodes and relationships? -- Best regards Norbert Tausch ___ 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
Re: [Neo4j] Best practice to avoid Unable to lock store error?
Right, that will never be fast enough? What is your reasoning behind shutting down the db after each commit? Cheers Michael Am 16.07.2011 um 01:19 schrieb Rick Bullotta: Why would you do that? Keep the database open as a singleton instead. - Reply message - From: noppanit noppani...@gmail.com Date: Fri, Jul 15, 2011 7:00 pm Subject: [Neo4j] Best practice to avoid Unable to lock store error? To: user@lists.neo4j.org user@lists.neo4j.org Such as. Unable to lock store [/Users/xxx/db/neostore], this is usually caused by another Neo4j kernel already running in this JVM for this particular store I'm getting this error when the the user tries to insert into the database really fast (e.g, multiple clicks). The design that I use is to open and shutdown after each commit. So, sometime may be the database is not finish and the user clicks again. I think one way would be to disable the button after one click, but is there a better way to deal with that? -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Best-practice-to-avoid-Unable-to-lock-store-error-tp3173592p3173592.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ 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] Neo4j with Tomcat...need a transaction manager
We plan on using neo4j as the database for our website, which will run on Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j transactions, so that leaves the question of what to use for the transaction manager. Atomikos, JBossTM comes to mind, are we missing anything obvious? Does neo4j provide anything out-of-box for transactions management? Thanks Jaf ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] GSoC 2011 Weekly report - OSM data mining and editing capabilities in uDig and Geotools
== Weekly report == Hi all, we started the task with the goal to write a new renderer for the OSM graph model for uDig. We want to create a custom renderer that can render the raw OSM dataset as a connected graph in its own layer. I started the design of a new render in uDig to manage the graph-base structure of the OSM data model. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j with Tomcat...need a transaction manager
Springsource also provides/is working on their own tomcat based XA TM. Perhaps you'd like to check that out. (http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Serverp=258383#post258383) Otherwise there is only JOTM left. Neo4j can integrate with those TM. See also these blog posts by our team member Chris Gioran: http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmanager-in.html http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.html http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-part-3-as.html Internally it uses also 2PC with the nioneo store and lucene. Cheers Michael Am 16.07.2011 um 01:37 schrieb etc3: We plan on using neo4j as the database for our website, which will run on Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j transactions, so that leaves the question of what to use for the transaction manager. Atomikos, JBossTM comes to mind, are we missing anything obvious? Does neo4j provide anything out-of-box for transactions management? Thanks Jaf ___ 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
Re: [Neo4j] Neo4j with Tomcat...need a transaction manager
It's built in for neo4j. Full jta support! - Reply message - From: etc3 e...@nextideapartners.com Date: Fri, Jul 15, 2011 7:38 pm Subject: [Neo4j] Neo4j with Tomcat...need a transaction manager To: user@lists.neo4j.org user@lists.neo4j.org We plan on using neo4j as the database for our website, which will run on Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j transactions, so that leaves the question of what to use for the transaction manager. Atomikos, JBossTM comes to mind, are we missing anything obvious? Does neo4j provide anything out-of-box for transactions management? Thanks Jaf ___ 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] Key/value pairs in Neo4j
Greetings! I tried to tweet this to @mesiru (unsuccessfully, you will see why). ;-) Perhaps by way of example with keys at first. First key/value pair: EmployeeID = 555-33- In a U.S. context, the value is obviously the employees social security number, a number that is assigned by the government. In terms of the topic maps reference model, the key, EmployeeID, is not a primitive but rather a reference to a proxy that represents a subject. In this case, a property class that is constrained to have a value XXX-XX-. The reason why that is important is that a U.S. government database, say one listing people who have paid into the system from various companies would list: SSN = 555-33- as one key/value pair. We want to identify the subject represented by EmployeeID and SSN so that a future user can discover why we thought they represented the same subject. Could simply do a mapping, EmployeeID = SSN, but any future user would be guessing as to why we made that judgment. Does that help? I am about to break for the night but will pick this back up tomorrow morning. Thanks for all the hard work on Neo4j! Patrick -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Key-value-pairs-in-Neo4j-tp3173724p3173724.html Sent from the Neo4J Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j with Tomcat...need a transaction manager
Thanks, Micheal. The blog post from Chris was from last year; were those changes for JOTM ever added to neo4j? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Friday, July 15, 2011 8:00 PM To: Neo4j user discussions Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager Springsource also provides/is working on their own tomcat based XA TM. Perhaps you'd like to check that out. (http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Serverp=2583 83#post258383) Otherwise there is only JOTM left. Neo4j can integrate with those TM. See also these blog posts by our team member Chris Gioran: http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmanager-in .html http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.html http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-part-3 -as.html Internally it uses also 2PC with the nioneo store and lucene. Cheers Michael Am 16.07.2011 um 01:37 schrieb etc3: We plan on using neo4j as the database for our website, which will run on Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j transactions, so that leaves the question of what to use for the transaction manager. Atomikos, JBossTM comes to mind, are we missing anything obvious? Does neo4j provide anything out-of-box for transactions management? Thanks Jaf ___ 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
Re: [Neo4j] Verifying the relationship between two nodes
Very good Michael, thanks! Yes, it works! In my case i need search by node property(:id), i did so: index = Neography::Rest.new.get_node_index(id, :id, user1.id) return false unless index node = Neography::Node.load(index.first) !node.outgoing(:knows).find{|n| n.id == user2.id.to_s}.nil? There's another way to do this? Thanks! Best, Diego Noguiera On 15/07/2011, at 14:34, Michael Hunger wrote: Diego, this is code from one of my neography apps: https://github.com/jexp/birdies @users.outgoing(:USER) user if @users.rels(:USER).outgoing.to_other(user).empty? @users and user are your two nodes. So it would be: ! node1.rels(:knows).outgoing.to_other(node2).empty? Cheers Michael Am 15.07.2011 um 19:06 schrieb Diego Alvarez Nogueira: Hi, I'm using: ruby 1.9.2, rails 3, neo4j and neography. I have the following nodes and relationships: node1 = $neo.create_node(:id = 1, :name = Diego) node2 = $neo.create_node(:id = 2, :name = Jhon) $neo.create_relationship(:knows, node1, node2) My question is, how can i verify if there is a relationship between the nodes with id=1 and id=2? Thanks, Best, Diego Nogueira -- Atenciosamente, Diego Alvarez Nogueira Blog: http://diegonogueira.com.br | http://papoinformal.com Skype: nogueiradiego Twitter: @nogueiradiego ___ 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 -- Atenciosamente, Diego Alvarez Nogueira Blog: http://diegonogueira.com.br | http://papoinformal.com Skype: nogueiradiego Twitter: @nogueiradiego ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j with Tomcat...need a transaction manager
Yes they were added. The XA-TX-Manager is configurable in Neo4j (defaults to our own but if you have an external one like JOTM or Atomikos) then you can configure those to be used. Example implementation for JOTM: https://github.com/digitalstain/JOTMServiceProvider Implementation in neo4j is here: https://github.com/neo4j/community/tree/master/kernel/src/main/java/org/neo4j/kernel/impl/transaction Cheers Michael Am 16.07.2011 um 02:43 schrieb etc3: Thanks, Micheal. The blog post from Chris was from last year; were those changes for JOTM ever added to neo4j? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Friday, July 15, 2011 8:00 PM To: Neo4j user discussions Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager Springsource also provides/is working on their own tomcat based XA TM. Perhaps you'd like to check that out. (http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Serverp=2583 83#post258383) Otherwise there is only JOTM left. Neo4j can integrate with those TM. See also these blog posts by our team member Chris Gioran: http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmanager-in .html http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.html http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-part-3 -as.html Internally it uses also 2PC with the nioneo store and lucene. Cheers Michael Am 16.07.2011 um 01:37 schrieb etc3: We plan on using neo4j as the database for our website, which will run on Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j transactions, so that leaves the question of what to use for the transaction manager. Atomikos, JBossTM comes to mind, are we missing anything obvious? Does neo4j provide anything out-of-box for transactions management? Thanks Jaf ___ 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
Re: [Neo4j] Neo4j with Tomcat...need a transaction manager
Michael, If I use the default trx manager in neo4j, what connection pool driver should be used in Tomcat? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Friday, July 15, 2011 9:05 PM To: Neo4j user discussions Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager Yes they were added. The XA-TX-Manager is configurable in Neo4j (defaults to our own but if you have an external one like JOTM or Atomikos) then you can configure those to be used. Example implementation for JOTM: https://github.com/digitalstain/JOTMServiceProvider Implementation in neo4j is here: https://github.com/neo4j/community/tree/master/kernel/src/main/java/org/neo4 j/kernel/impl/transaction Cheers Michael Am 16.07.2011 um 02:43 schrieb etc3: Thanks, Micheal. The blog post from Chris was from last year; were those changes for JOTM ever added to neo4j? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Friday, July 15, 2011 8:00 PM To: Neo4j user discussions Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager Springsource also provides/is working on their own tomcat based XA TM. Perhaps you'd like to check that out. (http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Server; p=2583 83#post258383) Otherwise there is only JOTM left. Neo4j can integrate with those TM. See also these blog posts by our team member Chris Gioran: http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmana ger-in .html http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside. html http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions- part-3 -as.html Internally it uses also 2PC with the nioneo store and lucene. Cheers Michael Am 16.07.2011 um 01:37 schrieb etc3: We plan on using neo4j as the database for our website, which will run on Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j transactions, so that leaves the question of what to use for the transaction manager. Atomikos, JBossTM comes to mind, are we missing anything obvious? Does neo4j provide anything out-of-box for transactions management? Thanks Jaf ___ 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 User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] gremlin tables question
this works: - gremlin t=new Table();v = g.v(2);v.outE.inV.as('node')[0..5].table(t); - == v[95] - == v[94] - == v[93] - == v[92] - == v[91] - == v[90] - gremlin t - == [node:v[95]] - == [node:v[94]] - == [node:v[93]] - == [node:v[92]] - == [node:v[91]] - == [node:v[90]] While this gives no results: t=new Table();v = g.v(2);v.outE.inV.as('node')[0..5].table(t); t; Why? Many thanks! ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] gremlin tables question
Hi, Do: t=new Table();v = g.v(2);v.outE.inV.as('node')[0..5].table(t) -1; t; Read the first trouble shooting for the reason: https://github.com/tinkerpop/gremlin/wiki/Troubleshooting v.outE.inV.as('node')[0..5].table(t) returns an iterator. v.outE.inV.as('node')[0..5].table(t) -1 while(hasNext())s the iterator. The Gremlin console will automagically iterate an iterator/iterable. In code mode, you need to iterate it yourself. -1 does the trick. Enjoy, Marko. http://markorodriguez.com On Jul 15, 2011, at 8:05 PM, Boris Kizelshteyn wrote: this works: - gremlin t=new Table();v = g.v(2);v.outE.inV.as('node')[0..5].table(t); - == v[95] - == v[94] - == v[93] - == v[92] - == v[91] - == v[90] - gremlin t - == [node:v[95]] - == [node:v[94]] - == [node:v[93]] - == [node:v[92]] - == [node:v[91]] - == [node:v[90]] While this gives no results: t=new Table();v = g.v(2);v.outE.inV.as('node')[0..5].table(t); t; Why? Many thanks! ___ 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] Index returns all nodes for value=undefined!
We're seeing this crazy behavior where our exact index is returning all nodes if we pass a lookup value of undefined! E.g.: http://localhost:7474/db/data/index/node/nodes/username/undefined Is this a bug in Neo4j / REST API? Or is this a symptom of some bug we have in our own code? It could very well be our code, since we're using JS, which turns undefined values into the string undefined if you try to add it to a string (definitely a wtfjs candidate), but I wanted to see if others are seeing this in Neo4j too! Thanks, Aseem ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] unique relationships?
If I create the same relationship between two nodes, say a-LIKES-b, more than once, a new relationship with a new id is created such that when I look up all of a's LIKES relationships I get b multiple times. I know I can unique this away, but I wonder what the logic of doing it this way is and if I can turn it off. I'm on 1.4 Thanks! ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user