Re: [Neo4j] Configuring Neo4J via Python bindings
It looks like our build pipeline is clogged up right now. We're looking into it, but it might take a while.. /jake On Mon, Oct 17, 2011 at 9:56 PM, Chris Diehl di...@alumni.cmu.edu wrote: Hey Jake, Awesome! Thanks so much for making this happen! On my end, it doesn't look like the docs are up yet. I'll check back... Thanks again, Chris On Mon, Oct 17, 2011 at 4:12 AM, Jacob Hansson jacob.hans...@neotechnology.com wrote: Hey Chris, I've just added support for passing in extra JVM args, it's available as of this commit: https://github.com/neo4j/python-embedded/commit/d41950f8c7e6c65d67f60868976e1864a496a2ea Documentation will pop up in an hour or so here: http://docs.neo4j.org/chunked/snapshot/python-embedded-reference-core.html This feature will be available as of the 1.5 release, due later this week. If you want to get access to it right away, you can build neo4j-embedded directly from source, the code is available here: https://github.com/neo4j/python-embedded See the readme for how to build from source. Thanks for bringing this up! Jake On Fri, Oct 14, 2011 at 7:47 PM, Chris Diehl di...@alumni.cmu.edu wrote: Hi Michael, I added a print statement to my code to output how many nodes have been inserted. The script zips along until it gets up around 18.6K nodes. Then the program halts when a Java exception is thrown, as shown below. Inserting user 18629 Inserting user 18630 Inserting user 18631 Inserting user 18632 Inserting user 18633 Inserting user 18634 Inserting user 18635 Traceback (most recent call last): File jive_app_db_graph_construction.py, line 53, in module node_idx['userid'][user_node['userid']] = user_node File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/contextlib.py, line 34, in __exit__ self.gen.throw(type, value, traceback) File string, line 11, in transaction RuntimeError: An unknown error occured while handling a Java Exception Strangely enough, the script returned a more explicit Out of Heap Memory error once when I reran the script. It's bizarre that the failure output is not consistent, given I start with a clean DB each time. Increasing the amount of available heap memory seems like the reasonable place to start. If you can let me know how to specify the amount of heap memory for the JVM instantiated by the bindings, that'd be great. I'm running on a MacBook Pro with 8 gigs of memory running OSX 10.6.8. Here's the contents of the messages.log file. 2011-10-14 10:34:17.336-0700: Creating new db @ /Users/chris.diehl/Graphs/ JiveCommunityV5.0.ng/neostore 2011-10-14 10:34:17.419-0700: Opened [/Users/chris.diehl/Graphs/ JiveCommunityV5.0.ng/nioneo_logical.log.1] clean empty log, version=0, lastTxId=1 2011-10-14 10:34:17.441-0700: Opened [/Users/chris.diehl/Graphs/ JiveCommunityV5.0.ng/index/lucene.log.1] clean empty log, version=0, lastTxId=1 2011-10-14 10:34:17.443-0700: TM new log: tm_tx_log.1 2011-10-14 10:34:17.451-0700: --- CONFIGURATION START --- 2011-10-14 10:34:17.451-0700: Physical mem: 8192MB, Heap size: 123MB 2011-10-14 10:34:17.452-0700: Kernel version: Neo4j - Graph Database Kernel 1.5-SNAPSHOT (revision: 1.5.M02-4-g3d1e9d8) 2011-10-14 10:34:17.453-0700: Neo4j - Graph Database Kernel 1.5-SNAPSHOT (revision: 1.5.M02-4-g3d1e9d8) 2011-10-14 10:34:17.456-0700: Operating System: Mac OS X; version: 10.6.8; arch: x86_64; cpus: 8 2011-10-14 10:34:17.456-0700: VM Name: Java HotSpot(TM) 64-Bit Server VM 2011-10-14 10:34:17.456-0700: VM Vendor: Apple Inc. 2011-10-14 10:34:17.456-0700: VM Version: 20.1-b02-384 2011-10-14 10:34:17.456-0700: Boot Class Path: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar 2011-10-14 10:34:17.457-0700: Class Path:
Re: [Neo4j] WebAdmin visualization (are rels. labels configurable?)
They can't currently, but it is actually the feature I'm currently working on, so it's coming :) On Mon, Oct 17, 2011 at 10:03 PM, Pablo Pareja ppar...@era7.com wrote: Hi! I just tried the WebAdmin visualization time for the first time and it seems pretty cool. I have one question though, can be relationships labels be different than the rel. name? I've been playing a bit with the display options for nodes but didn't find anything for relationhips. Cheers, Pablo -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com http://www.ohnosequences.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] WebAdmin visualization (are rels. labels configurable?)
Cool, I'll be waiting for it ;) Pablo On Tue, Oct 18, 2011 at 9:40 AM, Jacob Hansson jacob.hans...@neotechnology.com wrote: They can't currently, but it is actually the feature I'm currently working on, so it's coming :) On Mon, Oct 17, 2011 at 10:03 PM, Pablo Pareja ppar...@era7.com wrote: Hi! I just tried the WebAdmin visualization time for the first time and it seems pretty cool. I have one question though, can be relationships labels be different than the rel. name? I've been playing a bit with the display options for nodes but didn't find anything for relationhips. Cheers, Pablo -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com http://www.ohnosequences.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com http://www.ohnosequences.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] How to create a pipe (User Defined Step), which returns a set of Vertices for each of input Vertex
I need a pipe, which returns a set of vertices for an input Vertex (wrapped in User Defined Step). I use blueprints pipes with Neo4j. My current code is: import org.junit.Test import com.tinkerpop.blueprints.pgm.Graph import com.tinkerpop.blueprints.pgm.Vertex import com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jVertex import com.tinkerpop.blueprints.pgm.impls.tg.TinkerGraphFactory import com.tinkerpop.gremlin.Gremlin import com.tinkerpop.pipes.AbstractPipe import com.tinkerpop.pipes.Pipe class MyUDSTest { public static class MyPipe extends AbstractPipeVertex, IterableVertex { @Override protected IterableVertex processNextStart() throws NoSuchElementException { def v = this.starts.next(); def nodes = [v, v, v].iterator; return new IterableVertex() { @Override public IteratorVertex iterator() { return new IteratorVertex() { @Override public boolean hasNext() { return nodes.hasNext(); } @Override public Vertex next() { return new Neo4jVertex(nodes.next(), graph); } @Override public void remove() { throw new UnsupportedOperationException(); } }; } }; } } @Test public void testUDS() { Gremlin.load(); Graph g; Gremlin.defineStep('myPipe',[Vertex,Pipe], { new MyPipe() }) g = TinkerGraphFactory.createTinkerGraph() println $g def result = [] g.v(1).myPipe.filter{true} result result.each { println $it } } } However it does not work property in the gremlin expression: Gremlin.defineStep('myPipe',[Vertex,Pipe], { new MyPipe() }) ... def result = []; g.v(1).myPipe result result.each { println it } prints out: neo4j.MyUDSTest$MyPipe$1@49aacd5f. I would expect that I will get a list of vertices. Could anybody help me with this pipe? ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] How to create a pipe (User Defined Step), which returns a set of Vertices for each of input Vertex
Hi All, I am sorry for my previous email, I made a mistake and chose a wrong mailing list (neo4j instead of gremlin mailing list). Best Regards, Wojtek Dnia 18 października 2011 9:59 skarab77 skara...@o2.pl napisał(a): I need a pipe, which returns a set of vertices for an input Vertex (wrapped in User Defined Step). I use blueprints pipes with Neo4j. My current code is: import org.junit.Test import com.tinkerpop.blueprints.pgm.Graph import com.tinkerpop.blueprints.pgm.Vertex import com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jVertex import com.tinkerpop.blueprints.pgm.impls.tg.TinkerGraphFactory import com.tinkerpop.gremlin.Gremlin import com.tinkerpop.pipes.AbstractPipe import com.tinkerpop.pipes.Pipe class MyUDSTest { public static class MyPipe extends AbstractPipeVertex, IterableVertex { @Override protected IterableVertex processNextStart() throws NoSuchElementException { def v = this.starts.next(); def nodes = [v, v, v].iterator; return new IterableVertex() { @Override public IteratorVertex iterator() { return new IteratorVertex() { @Override public boolean hasNext() { return nodes.hasNext(); } @Override public Vertex next() { return new Neo4jVertex(nodes.next(), graph); } @Override public void remove() { throw new UnsupportedOperationException(); } }; } }; } } @Test public void testUDS() { Gremlin.load(); Graph g; Gremlin.defineStep('myPipe',[Vertex,Pipe], { new MyPipe() }) g = TinkerGraphFactory.createTinkerGraph() println $g def result = [] g.v(1).myPipe.filter{true} result result.each { println $it } } } However it does not work property in the gremlin expression: Gremlin.defineStep('myPipe',[Vertex,Pipe], { new MyPipe() }) ... def result = []; g.v(1).myPipe result result.each { println it } prints out: neo4j.MyUDSTest$MyPipe$1@49aacd5f. I would expect that I will get a list of vertices. Could anybody help me with this pipe? ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Graph Data Corruption?
Could you send me (directly, matt...@neotechnology.com) your db-dir/messages.log ? (it contains no sensitive information, just forensics logging) 2011/10/18 John Howard johnyho...@gmail.com We use Linux platform and am not sure about the file system, I guess it's the regular one! On Mon, Oct 17, 2011 at 3:26 AM, Mattias Persson matt...@neotechnology.comwrote: Thanks John, on what platform and file system do you run this? 2011/10/17 Tatham Oddie tat...@oddie.com.au As a sidenote, relationships are traversed in either direction with equal performance. Having reciprocal relationships is unnecessary. (Unless you can have person A support server B *without* server B being supported by person A ... but that just sounds broken.) I agree, server X supported by person Y can (and should) be inferred from person Y supports server X. It's more expensive to have duplicated relationships. -- Tatham -Original Message- From: user-boun...@lists.neo4j.org [mailto: user-boun...@lists.neo4j.org] On Behalf Of John Howard Sent: Sunday, 16 October 2011 12:00 PM To: Neo4j user discussions Subject: Re: [Neo4j] Graph Data Corruption? Thanks Mattias for the response. Yes, these nodes are consistently getting the same exceptions. Initially I thought shutting down the graph gracefully and starting it would solve the issue, but it didn't. We inserted node/relationships/properties with the regular create operations and NOT using the BatchInserter. Our dataset has 6 domains, one of them is People which has relationships to all other domains. Each node and relationships have about 8-12 properties. Our typical graph looks something like this: Person1 (node1) ---Supports(Rel1)--Server1(node2) ---Supported By(Rel2) -- On Sat, Oct 15, 2011 at 11:05 AM, Mattias Persson matt...@neotechnology.com wrote: Hi John, So it seems to be related to loading of node/relationship properties. Are those nodes/relationships consistently getting this exception or do you see this randomly during brief moments throughout the graph? Would it also be possible to have a look at your dataset somehow? 2011/10/14 John Howard johnyho...@gmail.com Hello, We have started getting some strange exceptions(stack trace below) while accessing node relationships. It happened on a node's relationship and we deleted that relationship and related node, so we were able to access the node and all its relationships. Then it started happening to some other nodes and their relationships. And we do not know how many node relationships are corrupted in the graph. We are using 1.4.1 version. We have around 50k nodes and 100k relationships. Appreciate your help. org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: Not in use, blockId[1977868] at org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore.getRecord(AbstractDynamicStore.java:472) at org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore.getLightRecords(AbstractDynamicStore.java:429) at org.neo4j.kernel.impl.nioneo.store.PropertyStore.getRecord(PropertyStore.java:374) at org.neo4j.kernel.impl.nioneo.xa.ReadTransaction.loadPropertyValue(ReadTransaction.java:208) at org.neo4j.kernel.impl.persistence.PersistenceManager.loadPropertyValue(PersistenceManager.java:87) at org.neo4j.kernel.impl.core.NodeManager.loadPropertyValue(NodeManager.java:593) at org.neo4j.kernel.impl.core.Primitive.getPropertyValue(Primitive.java:543) at org.neo4j.kernel.impl.core.Primitive.getProperty(Primitive.java:159) at org.neo4j.kernel.impl.core.RelationshipProxy.getProperty(RelationshipProxy.java:90) ___ 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 ___ 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 -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo
Re: [Neo4j] Python embedded and Java batch inserter
I think this might be another case of a problem that would be a lot easier to solve if the python bindings pushed out full stack traces. It's in my backlog to fix that. I'm gonna *guess* that the problem has to do with store upgrades. Are you using the 1.5.M02 version of neo4j embedded? If so, you need to tell the database it's ok to upgrade the store, like this: from neo4j import GraphDatabase db = new GraphDatabase('somefolder', allow_store_upgrade=true) On Mon, Oct 17, 2011 at 4:19 PM, Jacopo Farina jacopo1.far...@gmail.comwrote: Hi all, I'm trying to work with Neo4j embedded with Python, but, if I try to open a database created with the Java batch inserter (neo4j 1.4) by using Python-embedded, I get the error described here https://trac.neo4j.org/ticket/275 The database works correctly when opened in Neoclipse or with neo4j stand-alone server (by replacing the data folder), and if I create a new database directly with Python embedded it works too. Is there a way to solve this problem? Then, how much is fast the neo4j-REST traverser compared with the Java embedded traverser on a 3 million nodes graph? As far as I know, we don't have any benchmarks that compare this. The speed difference should not be huge though. The server is a lot slower for reads and writes, but for traversals, the overhead of the server plays a much smaller part. Sidenote: The size of your graph should generally not affect traversal speed (unless the graph does not fit in memory), what matters is how much of the graph you traverse. In java embedded, we used to say that you get maybe 1 000 000 relationships traversed per second (although speed can be both higher and much lower, depending on what your traversal does). Cheers! Jacopo Farinat ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user /Jake -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Index Creation via REST API
It seems that what is happening is that there already is an index with the name you specify created, and for some reason, it has a boolean value as its type. We will have to dig into how that happened (do you think you could have passed something like type:true during your experiments?), but it may be possible to fix it without a patch, if you can delete the existing index. If you open up webadmin, there is a tab for index management. See if your index shows up there, and if it does, delete it. Then try running the curl query you describe below again. /Jake On Mon, Oct 17, 2011 at 6:35 PM, Christian Scharr christian.sch...@hsh-berlin.com wrote: curl -X POST http://localhost:7474/db/data/index/node/ -H Content-Type: application/json --data-binary '{name:address,config:{provider:lucene,type:fulltext}}' Greets, Christian Scharr -Original Message- From: user-boun...@lists.neo4j.org [mailto:user- boun...@lists.neo4j.org] On Behalf Of Peter Neubauer Sent: Monday, October 17, 2011 6:11 PM To: Neo4j user discussions Subject: Re: [Neo4j] Index Creation via REST API This looks right. Can you create the error with a curl call so I can recreate it? /peter Sent from my phone. On Oct 17, 2011 5:58 PM, Christian Scharr Christian.Scharr@hsh- berlin.com wrote: Hello, trying to work RESTfully with Neo4j via Standalone Server (1.5.M01) I'm about to become desperate. I'm sending an POST-Request to http://localhost:7474/db/data/index/node/, getting status-code 500 with the response-text java.lang.Boolean cannot be cast to java.lang.String. The indexes I've wanted to create are the following one: {name:address,config:{provider:lucene,type:fulltext}} {name:user,config:{provider:lucene,type:fulltext}} Neo4j log contains the following line: 17.10.2011 16:56:10 org.mortbay.log.Slf4jLog warn FATAL: /db/data/index/node/ java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String at org.neo4j.index.impl.lucene.LuceneIndexImplementation.match(LuceneIndex I mplementation.java:165) at org.neo4j.index.impl.lucene.LuceneIndexImplementation.configMatches(Luc e neIndexImplementation.java:156) at org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java : 128) at org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerIm p l.java:183) at org.neo4j.kernel.IndexManagerImpl.getOrCreateNodeIndex(IndexManagerImpl . java:272) at org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:260) at org.neo4j.server.rest.web.DatabaseActions.createNodeIndex(DatabaseActio n s.java:338) at org.neo4j.server.rest.web.RestfulGraphDatabase.jsonCreateNodeIndex(Rest f ulGraphDatabase.java:589) [...] Whats wrong with this requests and in case this is an known bug at the REST server-component when will it be fixed? Greets, Christian Scharr ___ 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 -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] How to build neo4j projects from GitHub
Brendan, for Scala, I normally have the Scala plugin installed for Eclipse, see http://www.scala-ide.org/ and then convert or import the Cypher project as a Scala project. Otherwise, just close that project, and the others will pull in the binary dependency jars and behave well :) 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 Tue, Oct 18, 2011 at 5:32 AM, Brendan cheng ccp...@hotmail.com wrote: I'm building the community project which I can successfully done through command line, mvn clean install. The problem is only when importing to eclipse. something class files are missing. they are all in Cypher project like org.neo4j.cypher.SyntaxException, org.neo4j.cypher.commands.Query. in the Cypher project, there are only org.neo4j.cypher.javacompat package. does the pom link to a wrong cypher project? Brendan Date: Tue, 18 Oct 2011 01:20:20 +0200 From: and...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub Hi! AFAIK, this is an Eclipse Indigo annoyance. Does sound a bit strange, as we already told Eclipse/m2e how to handle that execution by the configuration over here: https://github.com/neo4j/parent-central/blob/master/pom.xml#L357 Maybe you just need to do (project) - Maven - Update Project Configuration? Sometimes that is needed after an import in order to get Eclipse properly configured. /anders 2011-10-15 13:09, Brendan cheng skrev: I was using the import from eclipse GUI so...no log message but a screen shot which I attached. Date: Sat, 15 Oct 2011 12:41:28 +0200 From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub That sounds ok. Would like to see the full log... /peter Sent from my phone. On Oct 15, 2011 12:36 PM, Brendan chengccp...@hotmail.com wrote: Peter,It is from Maven 3.0.2. What version shall we use? Brendan Date: Sat, 15 Oct 2011 12:32:07 +0200 From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub Brendan, What maven version, could you submit the whole maven log? Sounds like some mvn3 stuff ... /peter On Saturday, October 15, 2011, Brendan chengccp...@hotmail.com wrote: After adding neo4j maven repository, no more artifacts missing but have this: No marketplace entries found to handle Execution check-licenses, in server-enterprise/pom.xml in Eclipse. Please see Help for more information. Any tips for that? From: ccp...@hotmail.com To: user@lists.neo4j.org Subject: How to build neo4j projects from GitHub Date: Fri, 14 Oct 2011 06:29:45 + Hi, I was trying to clone Neo4j enterprise from Github to a local directory and import it to Eclipse.There were so many artifacts missing, parent path not found...etc. is there any way to solve the problems? Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ 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] How to build neo4j projects from GitHub http://skydrive.live.com/redir.aspx?cid=b63b5ad3a690c14fpage=browseresid=B63B5AD3A690C14F!474type=5Bpub=SDX.PhotosBsrc=Photomailauthkey=66Hwj2qLGtw%24 ___ 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
Re: [Neo4j] Index Creation via REST API
Hi, I don't think I've created an index with the same name before, because this error happens everytime I've tried so far :-/ Browsing the Index manager page in webadmin shows me an empty list of indexes... Nothing here to delete at this time. I will try making a fresh installation of Neo4j and updating to 1.5-M02. Greets, Christian Scharr -Original Message- From: user-boun...@lists.neo4j.org [mailto:user- boun...@lists.neo4j.org] On Behalf Of Jacob Hansson Sent: Tuesday, October 18, 2011 10:16 AM To: Neo4j user discussions Subject: Re: [Neo4j] Index Creation via REST API It seems that what is happening is that there already is an index with the name you specify created, and for some reason, it has a boolean value as its type. We will have to dig into how that happened (do you think you could have passed something like type:true during your experiments?), but it may be possible to fix it without a patch, if you can delete the existing index. If you open up webadmin, there is a tab for index management. See if your index shows up there, and if it does, delete it. Then try running the curl query you describe below again. /Jake On Mon, Oct 17, 2011 at 6:35 PM, Christian Scharr christian.sch...@hsh-berlin.com wrote: curl -X POST http://localhost:7474/db/data/index/node/ -H Content- Type: application/json --data-binary '{name:address,config:{provider:lucene,type:fulltext}}' Greets, Christian Scharr -Original Message- From: user-boun...@lists.neo4j.org [mailto:user- boun...@lists.neo4j.org] On Behalf Of Peter Neubauer Sent: Monday, October 17, 2011 6:11 PM To: Neo4j user discussions Subject: Re: [Neo4j] Index Creation via REST API This looks right. Can you create the error with a curl call so I can recreate it? /peter Sent from my phone. On Oct 17, 2011 5:58 PM, Christian Scharr Christian.Scharr@hsh- berlin.com wrote: Hello, trying to work RESTfully with Neo4j via Standalone Server (1.5.M01) I'm about to become desperate. I'm sending an POST-Request to http://localhost:7474/db/data/index/node/, getting status-code 500 with the response-text java.lang.Boolean cannot be cast to java.lang.String. The indexes I've wanted to create are the following one: {name:address,config:{provider:lucene,type:fulltext}} {name:user,config:{provider:lucene,type:fulltext}} Neo4j log contains the following line: 17.10.2011 16:56:10 org.mortbay.log.Slf4jLog warn FATAL: /db/data/index/node/ java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String at org.neo4j.index.impl.lucene.LuceneIndexImplementation.match(LuceneIndex I mplementation.java:165) at org.neo4j.index.impl.lucene.LuceneIndexImplementation.configMatches(Luc e neIndexImplementation.java:156) at org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java : 128) at org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerIm p l.java:183) at org.neo4j.kernel.IndexManagerImpl.getOrCreateNodeIndex(IndexManagerImpl . java:272) at org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:260) at org.neo4j.server.rest.web.DatabaseActions.createNodeIndex(DatabaseActio n s.java:338) at org.neo4j.server.rest.web.RestfulGraphDatabase.jsonCreateNodeIndex(Rest f ulGraphDatabase.java:589) [...] Whats wrong with this requests and in case this is an known bug at the REST server-component when will it be fixed? Greets, Christian Scharr ___ 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 -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins ___ 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] Index Creation via REST API
Mmh, execting this gives me curl -X POST http://localhost:7474/db/data/index/node/ -H Content-Type: application/json --data-binary '{name:address,config:{provide:lucene,type:fulltext}}' { template : http://localhost:7474/db/data/index/node/address/{key}/{value};, provider : lucene, type : fulltext } Let me know if you need help I think Skype might be in order? 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 Tue, Oct 18, 2011 at 10:38 AM, Christian Scharr christian.sch...@hsh-berlin.com wrote: Hi, I don't think I've created an index with the same name before, because this error happens everytime I've tried so far :-/ Browsing the Index manager page in webadmin shows me an empty list of indexes... Nothing here to delete at this time. I will try making a fresh installation of Neo4j and updating to 1.5-M02. Greets, Christian Scharr -Original Message- From: user-boun...@lists.neo4j.org [mailto:user- boun...@lists.neo4j.org] On Behalf Of Jacob Hansson Sent: Tuesday, October 18, 2011 10:16 AM To: Neo4j user discussions Subject: Re: [Neo4j] Index Creation via REST API It seems that what is happening is that there already is an index with the name you specify created, and for some reason, it has a boolean value as its type. We will have to dig into how that happened (do you think you could have passed something like type:true during your experiments?), but it may be possible to fix it without a patch, if you can delete the existing index. If you open up webadmin, there is a tab for index management. See if your index shows up there, and if it does, delete it. Then try running the curl query you describe below again. /Jake On Mon, Oct 17, 2011 at 6:35 PM, Christian Scharr christian.sch...@hsh-berlin.com wrote: curl -X POST http://localhost:7474/db/data/index/node/ -H Content- Type: application/json --data-binary '{name:address,config:{provider:lucene,type:fulltext}}' Greets, Christian Scharr -Original Message- From: user-boun...@lists.neo4j.org [mailto:user- boun...@lists.neo4j.org] On Behalf Of Peter Neubauer Sent: Monday, October 17, 2011 6:11 PM To: Neo4j user discussions Subject: Re: [Neo4j] Index Creation via REST API This looks right. Can you create the error with a curl call so I can recreate it? /peter Sent from my phone. On Oct 17, 2011 5:58 PM, Christian Scharr Christian.Scharr@hsh- berlin.com wrote: Hello, trying to work RESTfully with Neo4j via Standalone Server (1.5.M01) I'm about to become desperate. I'm sending an POST-Request to http://localhost:7474/db/data/index/node/, getting status-code 500 with the response-text java.lang.Boolean cannot be cast to java.lang.String. The indexes I've wanted to create are the following one: {name:address,config:{provider:lucene,type:fulltext}} {name:user,config:{provider:lucene,type:fulltext}} Neo4j log contains the following line: 17.10.2011 16:56:10 org.mortbay.log.Slf4jLog warn FATAL: /db/data/index/node/ java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String at org.neo4j.index.impl.lucene.LuceneIndexImplementation.match(LuceneIndex I mplementation.java:165) at org.neo4j.index.impl.lucene.LuceneIndexImplementation.configMatches(Luc e neIndexImplementation.java:156) at org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java : 128) at org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerIm p l.java:183) at org.neo4j.kernel.IndexManagerImpl.getOrCreateNodeIndex(IndexManagerImpl . java:272) at org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:260) at org.neo4j.server.rest.web.DatabaseActions.createNodeIndex(DatabaseActio n s.java:338) at org.neo4j.server.rest.web.RestfulGraphDatabase.jsonCreateNodeIndex(Rest f ulGraphDatabase.java:589) [...] Whats wrong with this requests and in case this is an known bug at the REST server-component when will it be fixed? Greets, Christian Scharr ___ 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] Neo4J Spatial - Snapshot 0.7, GeoPipeline and Tinkerpop
On Sun, Oct 16, 2011 at 23:54, Robert rob...@presynt.com wrote: I know it's a work in progress, but if I may ask a few questions? Sure! :) 1) If you have a List of SpatialDatabaseRecord you can use these GeoPipeline factory method: public static GeoPipeline start(Layer layer, ListSpatialDatabaseRecord records) If you have an Iterator I've just added the following: public static GeoPipeline start(Layer layer, IteratorSpatialDatabaseRecord records) To create SpatialDatabaseRecords from Node ids you have two methods in Layer: SpatialDatabaseRecord get(Long geomNodeId); ListSpatialDatabaseRecord get(SetLong geomNodeIds); 2) If you want to filter on SpatialDatabaseRecord properties you have to add a CopyDatabaseRecordProperties pipe to the pipeline: GeoPipeline geoPipeline = startNearestNeighborSearch(shoutDatabaseLayer, locationCoordinate, radiusInKm) .copyDatabaseRecordProperties() .propertyFilter(EXPIRY_DATE_TIME_PROPERTY, date, LESS_THAN_EQUAL); I've created a specific pipe to extract SpatialDatabaseRecord properties because I thought that reading these properties can be expensive so it's better to do it only when it's needed. A SpatialDatabaseRecord contains a reference to a single Node, but a SpatialDatabaseRecord property is a Node property only in the simplest case. We could have properties that require traversing many Nodes… But I'm not satisfied with this implementation. A propertyFilter needs only a single property and now we load them all. Maybe we should create a DatabasePropertyFilter that filters on SpatialDatabaseRecord properties or a CopyDatabaseRecordProperties pipe that accepts a list of properties to load. WDYT? Regards, -- Davide Savazzi ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Visualizing all nodes + relationships on WebAdmin
Or, as long as you can address the nodes, e.g. via Index Lookup or direct IDs, which should return disconnected graphs, too. 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 Tue, Oct 18, 2011 at 1:22 PM, Jacob Hansson jacob.hans...@neotechnology.com wrote: No, there is currently no way to do that. Once we add cypher support to the databrowser search bar, you would be able to write a cypher query that returns everything at some arbitrary depth, which in practice could be used to return the whole graph, as long as it's all connected, would that be good enough? /jake On 2011 10 18 10:52, Pablo Pareja ppar...@era7.com wrote: Hi, Can this be achieved without having to access a subset based on some property/id/etc... and then opening all incoming/outgoing relationships and so on? Cheers, Pablo -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedIn http://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com 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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Visualizing all nodes + relationships on WebAdmin
Pablo, I think this is mostly an issue of bandwidth and performance in processing the whole graph on the client side, alternatively generating some aggregated view on the server side but be less responsive on the client side. How do you imagine such interaction working? Got a hunch? 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 Tue, Oct 18, 2011 at 2:51 PM, Pablo Pareja ppar...@era7.com wrote: Well, I'd rather like to have the option of visualizing the whole graph without having to specify a depth value (cypher option) or direct IDs/Index lookup(Peter's) , cause I can think of different scenarios where that wouldn't be possible in principle. Would it be very difficult to implement the whole graph option? There already is a method in GraphDatabaseService class where you can access all nodes (then rels. implicitly as well) in your graph; so, couldn't you use this method to somehow achieve this? Cheers, Pablo On Tue, Oct 18, 2011 at 1:23 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Or, as long as you can address the nodes, e.g. via Index Lookup or direct IDs, which should return disconnected graphs, too. 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 Tue, Oct 18, 2011 at 1:22 PM, Jacob Hansson jacob.hans...@neotechnology.com wrote: No, there is currently no way to do that. Once we add cypher support to the databrowser search bar, you would be able to write a cypher query that returns everything at some arbitrary depth, which in practice could be used to return the whole graph, as long as it's all connected, would that be good enough? /jake On 2011 10 18 10:52, Pablo Pareja ppar...@era7.com wrote: Hi, Can this be achieved without having to access a subset based on some property/id/etc... and then opening all incoming/outgoing relationships and so on? Cheers, Pablo -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedIn http://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com 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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedIn http://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com 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] Visualizing all nodes + relationships on WebAdmin
Yeah, you're right this wouldn't be a good idea for big graphs, and probably having different behaviors implemented depending on the size of the graph neither. What about showing nodes that fulfill a set of rules based on their properties, i.e. something like which is already implemented for the visualization profiles? In my case that would be sufficient cause I always add a property NODE_TYPE for all nodes, that way I could just create a couple of filters like 'where property node_type = X ' and then retrieve only the nodes of the type I'm interested in (regardless where they are situated in the graph). On Tue, Oct 18, 2011 at 2:56 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Pablo, I think this is mostly an issue of bandwidth and performance in processing the whole graph on the client side, alternatively generating some aggregated view on the server side but be less responsive on the client side. How do you imagine such interaction working? Got a hunch? 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 Tue, Oct 18, 2011 at 2:51 PM, Pablo Pareja ppar...@era7.com wrote: Well, I'd rather like to have the option of visualizing the whole graph without having to specify a depth value (cypher option) or direct IDs/Index lookup(Peter's) , cause I can think of different scenarios where that wouldn't be possible in principle. Would it be very difficult to implement the whole graph option? There already is a method in GraphDatabaseService class where you can access all nodes (then rels. implicitly as well) in your graph; so, couldn't you use this method to somehow achieve this? Cheers, Pablo On Tue, Oct 18, 2011 at 1:23 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Or, as long as you can address the nodes, e.g. via Index Lookup or direct IDs, which should return disconnected graphs, too. 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 Tue, Oct 18, 2011 at 1:22 PM, Jacob Hansson jacob.hans...@neotechnology.com wrote: No, there is currently no way to do that. Once we add cypher support to the databrowser search bar, you would be able to write a cypher query that returns everything at some arbitrary depth, which in practice could be used to return the whole graph, as long as it's all connected, would that be good enough? /jake On 2011 10 18 10:52, Pablo Pareja ppar...@era7.com wrote: Hi, Can this be achieved without having to access a subset based on some property/id/etc... and then opening all incoming/outgoing relationships and so on? Cheers, Pablo -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com 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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com 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 -- Pablo Pareja Tobes My site http://about.me/pablopareja LinkedInhttp://www.linkedin.com/in/pabloparejatobes Twitter http://www.twitter.com/pablopareja Creator of Bio4j -- http://www.bio4j.com http://www.ohnosequences.com ___ Neo4j mailing list
Re: [Neo4j] Article: The Coming SQL Collapse
Niels, on the query language side, I think that is both an advantage and a disadvantage. Advantage in that you get programmatic access to the storage engine like with the Java API or Gremlin, disadvantage in that you are essentially forced to script and optimize yourself. I concur with you the SQL is not the way to go since it can't express the type of data structures and queries used in NOSQL, but I believe that declarative languages are MUCH easier to learn for users in 90% of the cases - and they are constant regardless of the surrounding software language used. Also, they open up for query optimizers and distribution and auto-indexing, which are things we want to explore with Cypher later on. 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 Sat, Oct 15, 2011 at 2:05 AM, Niels Hoogeveen pd_aficion...@hotmail.com wrote: I concur. In my opinion Neo4j is more a storage engine with certain storage features than a database management system. This is already exemplified by the absence of a query language as primary interface. The author is therefore wrong in his assessment that there is no separation of logical model and physical model. There is no logical model, so the separation is complete, any logical model can be bolted onto the physical model, or can be stored in a separate repository. In general, I think, NOSQL databases are more storage engine than database management system. It's exactly the control over storage that forms the niche NOSQL database operate in. Distributed key value lookup and tree/graph traversals are typical application domains where SQL engines don't provide the hooks to efficiently or scalably process certain questions or actions. Niels Date: Sat, 15 Oct 2011 01:12:58 +0200 From: a...@morgner.de To: user@lists.neo4j.org Subject: Re: [Neo4j] Article: The Coming SQL Collapse My 2 cents: The Neo4j API is clean, open, and sort-of low level by intention. It is neither ugly, smelly, nor it does it violate anything. Neo4j in general is very stable. But, of course, if you try the latest snapshot, it may have bugs (as any software has). Since May 2010, we're developing a CMS based on Neo4j (structr) and do some graph-related projects. Coming from the Oracle world, I can only say that working with Neo4j is a revelation. Axel Am 14.10.2011 14:48, schrieb Tobias Ivarsson: We had an interesting discussion about this internally at Neo Technology today. We thought it might be of interest to the broader community. I don't think the discussion is over, so it would be interesting to continue it on the public mailing list. It regards the initial paragraphs of an article posted to dzone recently: http://www.dzone.com/links/rss/the_coming_sql_collapse.html It mentions Neo4j and how the author dislikes a common way of using Neo4j for building applications. It would be interesting to hear suggestions on how to improve this. Forwarded conversation follows: On Fri, Oct 14, 2011 at 10:13 AM, Tobias Ivarsson tobias.ivars...@neotechnology.com wrote: I found this while reading feeds in bed last night: *The Coming SQL Collapse* http://www.dzone.com/links/rss/the_coming_sql_collapse.html (Sent from Flipboardhttp://flipboard.com) The things he say about SQL vs NOSQL is not very interesting, but I'd like to raise what he says about Neo4j: I looked at neo4j briefly the other day, and quite predictably thought ‘wow, this looks like a serious tinkertoy: it‘s basically a bunch of nodes where you just blob your attributes.‘ Worse than that, to wrap objects around it, you have to have them explicitly incorporate their node class, which is ugly, smelly, violates every law of separation of concerns and logical vs. physical models. On the plus side, as I started to look at it more, I realized that it was the perfect way to implement a backend for a bayesian inference engine (more on that later). Why? Because inference doesn‘t care particularly about all the droll requirements that are settled for you by SQL, and there are no real set operations to speak of. He attacks our pattern of building domain models with Neo4j, calling it ugly, smelly and in violation of every law of separation of concerns and logical vs. physical models. Is he right? My feeling is that he is brain washed with too many so called best practices, but Neo4j has been my main model for a long time now, my perspective is likely skewed. I'd like to hear your thoughts. -- Tobias Ivarssontobias.ivars...@neotechnology.com On Fri,
Re: [Neo4j] Python embedded and Java batch inserter
Yes! It worked! Thanks a lot. Jacopo Farina 2011/10/18 Jacob Hansson jacob.hans...@neotechnology.com I think this might be another case of a problem that would be a lot easier to solve if the python bindings pushed out full stack traces. It's in my backlog to fix that. I'm gonna *guess* that the problem has to do with store upgrades. Are you using the 1.5.M02 version of neo4j embedded? If so, you need to tell the database it's ok to upgrade the store, like this: from neo4j import GraphDatabase db = new GraphDatabase('somefolder', allow_store_upgrade=true) On Mon, Oct 17, 2011 at 4:19 PM, Jacopo Farina jacopo1.far...@gmail.com wrote: Hi all, I'm trying to work with Neo4j embedded with Python, but, if I try to open a database created with the Java batch inserter (neo4j 1.4) by using Python-embedded, I get the error described here https://trac.neo4j.org/ticket/275 The database works correctly when opened in Neoclipse or with neo4j stand-alone server (by replacing the data folder), and if I create a new database directly with Python embedded it works too. Is there a way to solve this problem? Then, how much is fast the neo4j-REST traverser compared with the Java embedded traverser on a 3 million nodes graph? As far as I know, we don't have any benchmarks that compare this. The speed difference should not be huge though. The server is a lot slower for reads and writes, but for traversals, the overhead of the server plays a much smaller part. Sidenote: The size of your graph should generally not affect traversal speed (unless the graph does not fit in memory), what matters is how much of the graph you traverse. In java embedded, we used to say that you get maybe 1 000 000 relationships traversed per second (although speed can be both higher and much lower, depending on what your traversal does). Cheers! Jacopo Farinat ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user /Jake -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins ___ 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, Gremlin and Campaign data
Hi all, the other day Marko dug this up - using Neo4j with Campaign data. Pretty cool! http://s113319.gridserver.com/?p=48 Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j in GIS Applications
Daniel, having an alternative index implementation would be great! We have pulled out the RTree from Spatial into https://github.com/neo4j/graph-collections which you can fork and add your index, possibly even testing it against a spatial fork. 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 - 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, Oct 13, 2011 at 10:10 PM, danielb danielbercht...@gmail.com wrote: Hello there, first I have written a wall of text, previewed it and then the forum went grey and all of the text has gone - AR! In short: I have read some papers about different spatial indices in the last days. The standard R-tree can be improved in various ways or even replaced by a quad-tree. In one of the upcoming PostgreSQL versions they will probably have a quad-tree based SP-GiST implementation. Early proto-typing shows a speedboost of a factor of 6 in several bounding box queries. In Neo4j there are less spatial operations based on an index compared to a relational database and therefore it should be easier to find an appropriate index (which hopefully will speed up some spatial operations). In the course of my master thesis (which starts next week - wish me luck and success) I could have a look into this. So before everything is gone again - DOOOH - I finish this now... Regards, Daniel -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-in-GIS-Applications-tp3393925p3419657.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] Neo4j, Gremlin and Campaign data
Digging it up was the easy part :D. Writing it was the hard part. This is the fellow who wrote it: http://twitter.com/#!/davefauth Marko. http://markorodriguez.com On Oct 18, 2011, at 7:33 AM, Peter Neubauer wrote: Hi all, the other day Marko dug this up - using Neo4j with Campaign data. Pretty cool! http://s113319.gridserver.com/?p=48 Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/- Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Collaborative filter in Gremlin and Cypher
Hi all, today I documented the very common recommendation pattern in Cypher and Gremlin, both shaping up to get really expressive and powerful. http://docs.neo4j.org/chunked/snapshot/cypher-cookbook.html#_basic_collaborative_filtering http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-collaborative-filtering Enjoy and thanks Marko and Andres for your great work! /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Neo4j server in maven repo
I've added the neo4j maven repo to my local Nexus box, but I cannot seem to pull the neo4j-server artifact. When I browse the downloaded index, that directory is not included. Has anyone else used Nexus with the neo4j repo, or does the index just need to be updated remotely? jason -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-in-maven-repo-tp3432518p3432518.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 server in maven repo
Not sure how things are working with nexus, the repo is listed in the docs, see http://docs.neo4j.org/chunked/snapshot/server-embedded.html and shoudl contain the artifacts? 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 Tue, Oct 18, 2011 at 11:07 PM, jasonab jaso...@acm.org wrote: I've added the neo4j maven repo to my local Nexus box, but I cannot seem to pull the neo4j-server artifact. When I browse the downloaded index, that directory is not included. Has anyone else used Nexus with the neo4j repo, or does the index just need to be updated remotely? jason -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-in-maven-repo-tp3432518p3432518.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] Neo4j server in maven repo
Peter Neubauer wrote: Not sure how things are working with nexus, the repo is listed in the docs, see http://docs.neo4j.org/chunked/snapshot/server-embedded.html and shoudl contain the artifacts? That repo does contain the artifacts, but again the index only lists up through 1.4M01 even though the rest of the releases are there. I'm not sure why this is. jason -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-in-maven-repo-tp3432518p3432572.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 server in maven repo
How about that: http://repo.neo4j.org/content/repositories/releases http://repo.neo4j.org/content/repositories/releases/org/neo4j/app/neo4j-server/1.5.M02/ Peter, perhaps update the docs ? Michael Am 18.10.2011 um 23:29 schrieb jasonab: Peter Neubauer wrote: Not sure how things are working with nexus, the repo is listed in the docs, see http://docs.neo4j.org/chunked/snapshot/server-embedded.html and shoudl contain the artifacts? That repo does contain the artifacts, but again the index only lists up through 1.4M01 even though the rest of the releases are there. I'm not sure why this is. jason -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-in-maven-repo-tp3432518p3432572.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] Neo4j server in maven repo
That path seems to be the same as the last one. The .index directory is still from May, which seems to be causing problems. jason -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-in-maven-repo-tp3432518p3432639.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 server in maven repo
Hi! I just reindexed the release repo, hope that helps! We're looking into replacing the Nexus instance, it has some issues. /anders 2011-10-18 23:55, jasonab skrev: That path seems to be the same as the last one. The .index directory is still from May, which seems to be causing problems. jason -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-in-maven-repo-tp3432518p3432639.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] Neo4j server in maven repo
Anders Nawroth wrote: Hi! I just reindexed the release repo, hope that helps! We're looking into replacing the Nexus instance, it has some issues. Thanks, that seems to have updated the index. My side is working now as well. For the record, I think my root problem was a config issue on my side, but the index was stale, and has now been updated, which should be a good step. I did see the following errors: Downloading: http://maven.stage.pub:8081/nexus/content/groups/public/org/neo4j/build/parent-central/25/parent-central-25.pom Downloaded: http://maven.stage.pub:8081/nexus/content/groups/public/org/neo4j/build/parent-central/25/parent-central-25.pom (27 KB at 43.5 KB/sec) Downloading: http://maven.stage.pub:8081/nexus/content/groups/public/org/neo4j/neo4j/1.5/neo4j-1.5.pom [WARNING] The POM for org.neo4j:neo4j:pom:1.5 is missing, no dependency information available Downloading: http://maven.stage.pub:8081/nexus/content/groups/public/org/neo4j/server-api/1.5/server-api-1.5.pom [WARNING] The POM for org.neo4j:server-api:jar:1.5 is missing, no dependency information available Downloading: http://maven.stage.pub:8081/nexus/content/groups/public/org/neo4j/neo4j-cypher/1.5/neo4j-cypher-1.5.pom [WARNING] The POM for org.neo4j:neo4j-cypher:jar:1.5 is missing, no dependency information available Downloading: http://maven.stage.pub:8081/nexus/content/groups/public/org/neo4j/neo4j-shell/1.5/neo4j-shell-1.5.pom [WARNING] The POM for org.neo4j:neo4j-shell:jar:1.5 is missing, no dependency information available jason -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-in-maven-repo-tp3432518p3432897.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, Gremlin and Campaign data
The author states in that write up that he had trouble separating the fixed-width data file (like so many governments produce). I saw the need and had the Google Refine community add a great visual aid feature to help with aligning fixed-width data files (along with working with XML / RDFa / JSON etc and easily exporting to TSV, CSV, or whatever formats you need. (Much easier than wiring up jobs within Talend or creating load scripts in an unfamiliar language for non-programmers) My comment to the author: Google Refine 2.5 release has a Great visual aid unlike some other tools (Excel) for importing and exporting fixed width data text files. I tried it on those same files and it allowed me to easily separate and created a delimited tabbed or comma separated value file. The new visual aid for this is only in the 2.5 RC release that can be downloaded here: http://code.google.com/p/google-refine/downloads/list On Tue, Oct 18, 2011 at 10:47 AM, Marko Rodriguez okramma...@gmail.comwrote: Digging it up was the easy part :D. Writing it was the hard part. This is the fellow who wrote it: http://twitter.com/#!/davefauth Marko. http://markorodriguez.com On Oct 18, 2011, at 7:33 AM, Peter Neubauer wrote: Hi all, the other day Marko dug this up - using Neo4j with Campaign data. Pretty cool! http://s113319.gridserver.com/?p=48 Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/- Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- -Thad http://www.freebase.com/view/en/thad_guidry ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user