[Neo4j] Cypher GEOFF
Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name, n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Cypher GEOFF
Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name, n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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] Cypher GEOFF
Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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] Cypher GEOFF
Very cool! Andrés On Mon, Oct 31, 2011 at 9:24 AM, Nigel Small ni...@nigelsmall.name wrote: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name, n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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 performance with 400million nodes
Hello everyone, We are relatively new to neo4j and are evaluating some test scenarios in order to decide to use neo4j in productive systems. We used the latest stable release 1.4.2. I wrote an import script and generated some random data with the given tree structure: http://neo4j-community-discussions.438527.n3.nabble.com/file/n3467806/neo4j_nodes.png Nodes Summary: Nodes with Type A: 1 Nodes with Type B: 100 Nodes with Type C: 50'000 (100x500) Nodes with Type D: 500'000 (50'000x10) Nodes with Type E: 25'000'000 (500'000x50) Nodes with Type F: 375'000'000 (25'000'000x15) This all worked quite OK, the import took approx. 30hours using the batchimport. We have multiple indexes, but we also have one index where all nodes are indexed. My first question would be, does it make sense to index all nodes with the same index? If I would like to list all nodes with property type:type E it is quite slow the first time ~270s Second time it is fast ~1/2s. I know this is normal and mostlikely fixed in the current milestone version. But I am not sure how long the query will be cached in memory. Are there any configurations I should be concerned about? We also took the hardware sizing calculator. See the result here: http://neo4j-community-discussions.438527.n3.nabble.com/file/n3467806/neo4j_hardware.png Are these realistic result values? I guess 128GB RAM and 12TB SSD harddrives might be a bit cost intense. Are there any reference applications with these amount of nodes and relations? Also Neoclipse won't start/connect to the database anymore with these amount of data. Am I missing some configurations for neoclipse? Best regards -- alican -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-performance-with-400million-nodes-tp3467806p3467806.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] Relationships stored order
You can use what you wrote and then use lucene numeric range query to do the trick: IndexRelationship index = ... index.add( rel2, ORDER, ValueContext.numeric(2) ); index.add( rel3, ORDER, ValueContext.numeric(3) ); index.add( rel1, ORDER, ValueContext.numeric(1) ); // For all relationships index.query( new QueryContext( NumericRangeQuery.newIntRange( ORDER,null,null,true,true ) ).sortNumeric( ORDER, false ) ); // For a range index.query( new QueryContext( NumericRangeQuery.newIntRange( ORDER,2,10,true,true ) ).sortNumeric( ORDER, false ) ); 2011/10/31 Evgeny Gazdovsky gazdov...@gmail.com PS We don't need a traverse through relationships in stored order, only iterations for start or end node. -- Evgeny ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Lucene index recovery
You could configure the lucene data source to auto rotate logs more frequently. If logs are large recovery takes longer time. -Johan On Mon, Oct 17, 2011 at 11:37 PM, Nuo Yan yan@gmail.com wrote: What if in production due to whatever reason the neo4j server died and in the case people have to start up a new server with the current snapshot of data (which would be data from a non-clean shut down). In such case, I don't think it's acceptable to table lots of time (hours for large indices) to bring the server back. Is there a best practice here? Thanks, Nuo On Thu, Sep 1, 2011 at 8:19 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Dima, are you shutting down your database correctly? Make sure you can database.shutdown() and wait for it to finish ... Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Thu, Sep 1, 2011 at 1:31 PM, Dima Gutzeit dima.gutz...@mailvision.com wrote: Dear list members, Each time I restart my server based on Neo4J I can see this in the logs: Sep 1, 2011 7:23:17 PM org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog doInternalRecovery INFO: Non clean shutdown detected on log [/opt/data/nioneo_logical.log.2]. Recovery started ... Sep 1, 2011 7:23:18 PM org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog doInternalRecovery INFO: Non clean shutdown detected on log [/opt/data/index/lucene.log.1]. Recovery started ... Operation which takes time ... lots of time. What is the correct way of preventing that when restarting ? Thanks in advance. Regards, Dima Gutzeit. ___ 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] Error adding item to idexes using Neo4jrestclient python
Hi, I can create nodes and indexes and traverse fine but when I try to add an item to an index i get the following error: Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python2.6/dist-packages/neo4jrestclient/client.py, line 1030, in __setitem__ , data %s % (request_url, url_ref)) neo4jrestclient.request.StatusException: Error [405]: Method Not Allowed. Specified method is invalid for this server.. Error requesting index with POST http://localhost:7474/db/data/index/node/seg_nodes/name/x , data http://localhost:7474/db/data/node/6 Any help you could provide would be great. Thanks, Alex -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Error-adding-item-to-idexes-using-Neo4jrestclient-python-tp3468029p3468029.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] Error adding item to idexes using Neo4jrestclient python
Hi, vistorve, The index framework was refactorized in the last versions of Neo4j. Could you say what versions are you using of Neo4j and neo4jrestclient? Regards. On Mon, Oct 31, 2011 at 10:58, vistorve ayuskaus...@compete.com wrote: Hi, I can create nodes and indexes and traverse fine but when I try to add an item to an index i get the following error: Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python2.6/dist-packages/neo4jrestclient/client.py, line 1030, in __setitem__ , data %s % (request_url, url_ref)) neo4jrestclient.request.StatusException: Error [405]: Method Not Allowed. Specified method is invalid for this server.. Error requesting index with POST http://localhost:7474/db/data/index/node/seg_nodes/name/x , data http://localhost:7474/db/data/node/6 Any help you could provide would be great. Thanks, Alex -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Error-adding-item-to-idexes-using-Neo4jrestclient-python-tp3468029p3468029.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 -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Error adding item to idexes using Neo4jrestclient python
neo4jrestclient 1.4.5 neo4j server I tried both latest snapshot (1.5-38-g831a83d-dirty) and the current milestone 1.5.M02 -Alex -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Error-adding-item-to-idexes-using-Neo4jrestclient-python-tp3468029p3468154.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] Error adding item to idexes using Neo4jrestclient python
Thank you, Alex. Let me do some tests and release a new version. On Mon, Oct 31, 2011 at 11:56, vistorve ayuskaus...@compete.com wrote: neo4jrestclient 1.4.5 neo4j server I tried both latest snapshot (1.5-38-g831a83d-dirty) and the current milestone 1.5.M02 -Alex -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Error-adding-item-to-idexes-using-Neo4jrestclient-python-tp3468029p3468154.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 -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Relationships stored order
Hi, Berkeley Db index looks better for that. It was updated to serve our needs, but better performance required. Mattias, do you know low storage structure? Maybe, it'll possible to use some structural conditions to restore relationships order. At current design we have two writes for one relationship, that always 2 times slow than one =) On Mon, Oct 31, 2011 at 6:45 PM, Mattias Persson matt...@neotechnology.comwrote: You can use what you wrote and then use lucene numeric range query to do the trick: IndexRelationship index = ... index.add( rel2, ORDER, ValueContext.numeric(2) ); index.add( rel3, ORDER, ValueContext.numeric(3) ); index.add( rel1, ORDER, ValueContext.numeric(1) ); // For all relationships index.query( new QueryContext( NumericRangeQuery.newIntRange( ORDER,null,null,true,true ) ).sortNumeric( ORDER, false ) ); // For a range index.query( new QueryContext( NumericRangeQuery.newIntRange( ORDER,2,10,true,true ) ).sortNumeric( ORDER, false ) ); -- Dmitriy Shabanov ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neography - remove a specific relations ship
Hesham, if you want to remove a certain relationship, you need to know its Neo4j ID, or look it up in an index to get to that ID. Otherwise, take one of the nodes, find from there the relationship, and remove it. Would that work? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Thu, Oct 20, 2011 at 8:27 AM, Hesham hesham.am...@gmail.com wrote: I'm creating the following relationships in one of the controllers: Graph.neo.create_relationship(rel, node_a, node_b) Graph.neo.create_relationship(rel, node_c node_b) Graph.neo.create_relationship(rel, node_d, node_b) In another controller I will need to remove a specific relationship, lets say the node_c to node_b, how would I do this? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neography-remove-a-specific-relations-ship-tp3438030p3438030.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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Twitter, Clojure and Neo4j
Hi there, just saw a GIThub GIST for saving Twitter followers in Neo4j, see https://gist.github.com/1323957 Thanks to @tomykaira for the example! Has anyone worked more with Clojure and Neo4j? Would be good to get some examples and docs out there ... Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Cypher GEOFF
Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be done. WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 1:46 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: query the Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u U the URI of the destination Neo4j database server -f F the GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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] Error adding item to idexes using Neo4jrestclient python
Javier, great community support, thanks man! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 9:18 AM, Javier de la Rosa ver...@gmail.com wrote: Thank you, Alex. Let me do some tests and release a new version. On Mon, Oct 31, 2011 at 11:56, vistorve ayuskaus...@compete.com wrote: neo4jrestclient 1.4.5 neo4j server I tried both latest snapshot (1.5-38-g831a83d-dirty) and the current milestone 1.5.M02 -Alex -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Error-adding-item-to-idexes-using-Neo4jrestclient-python-tp3468029p3468154.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 -- Javier de la Rosa http://versae.es ___ 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] Spring-data-graph with Jetty error
Hi, does this error still persist? In general your setup looks correct. Could you create an JIRA issue for it if it is still not working? http://spring.neo4j.org/issues Thanks so much Michael Am 17.10.2011 um 18:16 schrieb noppanit: I got this erro while trying to run mvn jetty:run on my Spring-data-graph project. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/data/graph]|Offending resource: ServletContext resource [/WEB-INF/servlet-context.xml] I found something about the version of spring-data-graph as well on the Internet and I change to version dependency groupIdorg.springframework.data/groupId artifactIdspring-data-neo4j/artifactId version1.1.0.RELEASE/version /dependency but I still got that error. This is my pom.xml file project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.thoughtworks.app/groupId artifactIdLunch-Selector/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameLunch-Selector/name urlhttp://maven.apache.org/url properties org.springframework.version3.0.6.RELEASE/org.springframework.version /properties repositories repository idspring-maven-snapshot/id snapshots enabledtrue/enabled /snapshots nameSpringframework Maven MILESTONE Repository/name urlhttp://maven.springframework.org/milestone/url /repository /repositories dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8/version scopetest/scope /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.1.1/version /dependency dependency groupIdorg.springframework.data/groupId artifactIdspring-data-neo4j/artifactId version1.1.0.RELEASE/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-core/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-webmvc/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-beans/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context-support/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-tx/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-oxm/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-webmvc-portlet/artifactId version${org.springframework.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-test/artifactId version${org.springframework.version}/version scopetest/scope /dependency dependency groupIdorg.springframework.osgi/groupId artifactIdspring-osgi-core/artifactId version1.2.1/version /dependency /dependencies build plugins plugin groupIdorg.mortbay.jetty/groupId
Re: [Neo4j] Cypher GEOFF
Rather use the typical python setup procedures? Michael Am 31.10.2011 um 18:03 schrieb Peter Neubauer: Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be done. WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/- Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 1:46 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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
Re: [Neo4j] Cypher GEOFF
Hi Peter Sorry but I'm not a Mac user so don't know anything about OSX! Hopefully someone else has the right tools for this though :-) Nige On 31 Oct 2011 17:04, Peter Neubauer peter.neuba...@neotechnology.com wrote: Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be done. WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/- Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 1:46 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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
Re: [Neo4j] Cypher GEOFF
Well, as Michael says, I guess installation instructions via Python would work very well! /peter On Mon, Oct 31, 2011 at 10:15 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Peter Sorry but I'm not a Mac user so don't know anything about OSX! Hopefully someone else has the right tools for this though :-) Nige On 31 Oct 2011 17:04, Peter Neubauer peter.neuba...@neotechnology.com wrote: Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be done. WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 1:46 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: query the Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u U the URI of the destination Neo4j database server -f F the GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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 mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Transparent Distributed Queries?
Coolio, let us know when you get going on this, would be superinteresting to see more of your thoughts! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Sun, Oct 16, 2011 at 1:59 AM, amitp amit.port...@gmail.com wrote: No problem, I plan to make the code available for free, but there's currently no code, so I'll publish the location of the code repository when I'll write some.. :) -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Transparent-Distributed-Queries-tp3414168p3425623.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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Cypher GEOFF
I'll make it a priority to get this up to PyPI so it can be installed easily. Nige On 31 Oct 2011 17:28, Peter Neubauer pe...@neubauer.se wrote: Well, as Michael says, I guess installation instructions via Python would work very well! /peter On Mon, Oct 31, 2011 at 10:15 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Peter Sorry but I'm not a Mac user so don't know anything about OSX! Hopefully someone else has the right tools for this though :-) Nige On 31 Oct 2011 17:04, Peter Neubauer peter.neuba...@neotechnology.com wrote: Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be done. WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/- Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 1:46 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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 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] Cypher GEOFF
That would be cool. And some intstallation instruction in the README on GIThub. Thanks! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 10:43 AM, Nigel Small ni...@nigelsmall.name wrote: I'll make it a priority to get this up to PyPI so it can be installed easily. Nige On 31 Oct 2011 17:28, Peter Neubauer pe...@neubauer.se wrote: Well, as Michael says, I guess installation instructions via Python would work very well! /peter On Mon, Oct 31, 2011 at 10:15 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Peter Sorry but I'm not a Mac user so don't know anything about OSX! Hopefully someone else has the right tools for this though :-) Nige On 31 Oct 2011 17:04, Peter Neubauer peter.neuba...@neotechnology.com wrote: Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be done. WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 1:46 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: query the Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u U the URI of the destination Neo4j database server -f F the GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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 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
Re: [Neo4j] Error adding item to idexes using Neo4jrestclient python
You are welcome, Peter :-) Released neo4jrestclient 1.5.0 [1] with support for Neo4j 1.5.M02 (or that's what i hope). Any errors, please, feel free to report. Regards! [1] http://pypi.python.org/pypi/neo4jrestclient/1.5.0 On Mon, Oct 31, 2011 at 13:11, Peter Neubauer peter.neuba...@neotechnology.com wrote: Javier, great community support, thanks man! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 9:18 AM, Javier de la Rosa ver...@gmail.com wrote: Thank you, Alex. Let me do some tests and release a new version. On Mon, Oct 31, 2011 at 11:56, vistorve ayuskaus...@compete.com wrote: neo4jrestclient 1.4.5 neo4j server I tried both latest snapshot (1.5-38-g831a83d-dirty) and the current milestone 1.5.M02 -Alex -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Error-adding-item-to-idexes-using-Neo4jrestclient-python-tp3468029p3468154.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 -- Javier de la Rosa http://versae.es ___ 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 -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Error adding item to idexes using Neo4jrestclient python
Awesome, all is working now! Thanks Javier! -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Error-adding-item-to-idexes-using-Neo4jrestclient-python-tp3468029p3468531.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] Cypher syntax feedback wanted
2011/10/28 Andres Taylor andres.tay...@neotechnology.com Hi all! I'm looking to make Cypher more consistent, and so less surprising. Cypher today has two places where predicates are used, the WHERE clause, and for the ALL/ANY/NONE/SINGLE functions. It looks like: WHERE predicate ALL(identifier in iterable : predicate) etc Any progress on this? My first feel is that it's too program-language:y but don't really know how to make it great. Now I'm thinking about adding preciates to the MATCH clause, e.g: MATCH a-[r? : predicate]-b This is only interesting for optional relationships - if the predicate is false, r will be null. If this predicate was in the WHERE clause, it would filter out the whole subgraph instead, which is very different. Looking at this example, the colon bothers me. It's too close to the relationship type. So, I'm thinking of changing it to: WHERE predicate ALL(identifier in iterable WHERE predicate) MATCH a-[r? WHERE predicate]-b What do you think? Andrés ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Cypher GEOFF
Hi all Have just published v0.98 with a fresh README containing installation instructions from PyPI. Please shout if I've missed anything! Nige On 31 October 2011 17:46, Peter Neubauer peter.neuba...@neotechnology.comwrote: That would be cool. And some intstallation instruction in the README on GIThub. Thanks! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/- Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 10:43 AM, Nigel Small ni...@nigelsmall.name wrote: I'll make it a priority to get this up to PyPI so it can be installed easily. Nige On 31 Oct 2011 17:28, Peter Neubauer pe...@neubauer.se wrote: Well, as Michael says, I guess installation instructions via Python would work very well! /peter On Mon, Oct 31, 2011 at 10:15 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Peter Sorry but I'm not a Mac user so don't know anything about OSX! Hopefully someone else has the right tools for this though :-) Nige On 31 Oct 2011 17:04, Peter Neubauer peter.neuba...@neotechnology.com wrote: Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be done. WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/- Öresund - Innovation happens HERE. On Mon, Oct 31, 2011 at 1:46 AM, Nigel Small ni...@nigelsmall.name wrote: Hi Michael Currently these bits only exist in the GitHub code. So you'll need to pull it from there until the next release. New output format is straightforward, could you add a ticket to the project? Cheers Nige On 31 Oct 2011 08:41, Michael Hunger michael.hun...@neotechnology.com wrote: Nigel, cool stuff. What is the easiest way to install py2neo currently? Could you add a simple tabular output as well (like in the webadmin-cypher-console) ? Michael Am 31.10.2011 um 09:24 schrieb Nigel Small: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u DATABASE_URI] [-d] [-j] [-g] query Execute Cypher queries against a Neo4j database server and output the results. positional arguments: querythe Cypher query to execute optional arguments: -h, --help show this help message and exit -u DATABASE_URI the URI of the source Neo4j database server -d output all values in delimited format (default) -j output all values as a single JSON array -g output nodes and relationships in GEOFF format --- usage: geoff.py [-h] [-u U] [-f F] Import graph data from a GEOFF file into a Neo4j database. optional arguments: -h, --help show this help message and exit -u Uthe URI of the destination Neo4j database server -f Fthe GEOFF file to load --- The latter script can also read from stdin which allows pipes to be built to funnel data out of a db and back in again: ./cypher.py -g START n=node(23) match (n)-[r]-(x)--(y) return n, x.name , n, r, x, x.name, x.\`birth.date\`, y, y.name, r.\`marriage.date\`? | ./geoff.py Of course this example puts data back into the the same DB it reads it from so isn't much use! Putting together more docs this week so will update soon. Nige ___ 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
[Neo4j] Lucene uberfast indexing
Hi, Neo team. Have you looked into the work Mike McCandless was doing with DocumentsWriterPerThread? It seems at first glance to fit in nicely with the Neo transaction isolation model and could have a significantly positive effect on (already fast) performance. http://www.searchworkings.org/blog/-/blogs/gimme-all-resources-you-have-i-can-use-them!/ Thoughts? Rick ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Newbie issues with indexing
Hello, I have an index and add my nodes to it as I create them. I index two properties, nodeType and nodeName. Later I want to see if a node already exists of a given type and a given name. If it does, I'll use it; otherwise I'll create it (and index it.) (All this is in the Java API.) IndexManager indexMgr = graphDB.index(); IndexNode nodeIndex = indexMgr.forNodes(NodeType); Later on I create a node (newNode) with properties NodeType = Bar and BarName = Bar 1 and another with NodeType = Foo and FooName = Foo 1. nodeIndex.add (newNode, NodeType, Bar); nodeIndex.add (newNode, BarName, Bar 1); nodeIndex.add (newNode2, NodeType, Foo); nodeIndex.add)newNode2, FooName, Foo 1); etc. Still later, I want to see if I already have a node of type Bar with name Bar 1. I read up on the query syntax in 7.7 (http://docs.neo4j.org/chunked/stable/indexing-search.html) and noticed that the syntax listed there does not support any white space in the query string. So I am looking into how to use Lucene query objects to form my query. But now I'm stumped. I want to get a list (IndexHits is fine) of any nodes in the system that have these two properties (NodeType and BarType) set to specific values. I think there might be more to Lucene Query objects than just TermQuery. Is that in the Neo4j docs, the Lucene docs? Any examples handy? Thanks in advance! Bill -- Bill Baker, Investor, Advisor, Board Member 206-619-0928 My other house is a data warehouse ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] InvalidRecordException
Thanks David, I am using 1.4M04. 2011/11/1 David Montag david.mon...@neotechnology.com Hi Samuel, What Neo4j version are you running? David 2011/10/31 Samuel Feng okos...@gmail.com Hello List, I encountered below exception,There should be some concurrent issue. 2011-11-01 02:01:55,882 RobotScheduler_Worker-7 ERROR - [ProductInstanceFactory.getPICount] Unexpected Exception org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: Node[817] is neither firstNode[323469] nor secondNode[371464] for Relationship[992056] at org.neo4j.kernel.impl.nioneo.xa.ReadTransaction.getMoreRelationships(ReadTransaction.java:159) at org.neo4j.kernel.impl.nioneo.xa.ReadTransaction.getMoreRelationships(ReadTransaction.java:97) at org.neo4j.kernel.impl.persistence.PersistenceManager.getMoreRelationships(PersistenceManager.java:108) at org.neo4j.kernel.impl.core.NodeManager.getMoreRelationships(NodeManager.java:603) at org.neo4j.kernel.impl.core.NodeImpl.getMoreRelationships(NodeImpl.java:399) at org.neo4j.kernel.impl.core.IntArrayIterator.hasNext(IntArrayIterator.java:93) at com.heartwater.neo.ProductInstanceFactory.getPICount(ProductInstanceFactory.java:523) at com.heartwater.online.ClearingRobot.run(ClearingRobot.java:220) at com.gr.online.robot.AbstractRobot.execute(AbstractRobot.java:57) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Can u tell me how to correct this error?Remove the Node[817] directly? Thanks a lot. Samuel ___ 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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] error indexing node: status 405 returned
I was trying to index node by this function. I get a 405. I can't figure out what's the problem. Help would be greatly appreciated. public static void indexNode(){ String uri=http://localhost:7474/db/data/index/node/myindex/name/phoenix;; String post=http://localhost:7474/db/data/node/1;; WebResource resource = Client.create().resource(uri); ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).type(MediaType.APPLICATION_JSON).entity(' + post + ').put(ClientResponse.class); System.out.println(status+response.getStatus()); } I have created the index: myindex and node 1 also exists. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/error-indexing-node-status-405-returned-tp3469788p3469788.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
[Neo4j] sdg: @RelatedToVia in @RelationshipEntity
(using sdg 1.1.0RELEASE) when using @RelatedToVia in a @RelationshipEntity i get a strange compilation error: The method relateTo(Culture, ClassMyClass, String) is undefined for the type MyOtherClass i assume the reason is that it can only be used in @NodeEntity? the javadoc for @RelatedToVia says Annotation for NodeEntity fields that... on the other hand the tutorial http://static.springsource.org/spring-data/data-graph/docs/current/reference/multi/tutorial_neo4j.html states that Relationships are first-class citizens in Neo4j. what's the way of linking relationships to relationships? ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] error indexing node: status 405 returned
Hi there, What neo4j version are you using? On Oct 31, 2011 8:31 PM, phoenix yingyangphoe...@gmail.com wrote: I was trying to index node by this function. I get a 405. I can't figure out what's the problem. Help would be greatly appreciated. public static void indexNode(){ String uri=http://localhost:7474/db/data/index/node/myindex/name/phoenix;; String post=http://localhost:7474/db/data/node/1;; WebResource resource = Client.create().resource(uri); ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).type(MediaType.APPLICATION_JSON).entity(' + post + ').put(ClientResponse.class); System.out.println(status+response.getStatus()); } I have created the index: myindex and node 1 also exists. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/error-indexing-node-status-405-returned-tp3469788p3469788.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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user