[Neo4j] py2neo - GEOFF enhancements

2011-11-22 Thread Nigel Small
Hi all I have just completed a set of GEOFF enhancements within py2neo (as yet only available from GitHub). Named parameters (hooks) and composite descriptors are now supported, please see the following sample file for an illustration of the new capabilites: https://github.com/nigelsmall/py2neo/b

Re: [Neo4j] Cypher identifier uniqueness

2011-11-22 Thread Peter Neubauer
+1 on some uniqueness indication. However, I am not sure how to handle UNIQUENESS_NONE and the potential cycles that will arise ... Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

[Neo4j] Cypher identifier uniqueness

2011-11-22 Thread Andres Taylor
A recent thread prompted me to think about this again. Today, Cypher guarantees that no two points in the matching pattern will contain the same node or relationship. Given the pattern (a)-->(b), in no matched subgraph will a and b contain the same node. The only exception to this is for variable

Re: [Neo4j] Cypher query question

2011-11-22 Thread Andres Taylor
On Tue, Nov 22, 2011 at 6:21 PM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Mmh, > if you have two different bound variables n and z, shouldn't n > automagically be different from z? Got a test case for this where n=z? > Yeah, you're right. I wouldn't expect to have the same node

Re: [Neo4j] Cypher query question

2011-11-22 Thread Peter Neubauer
Mmh, if you have two different bound variables n and z, shouldn't n automagically be different from z? Got a test case for this where n=z? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitt

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-22 Thread Peter Neubauer
Could you get me the full curl script to recreate? /peter Sent from my phone, please excuse typos and autocorrection. On Nov 22, 2011 5:35 PM, "danielb" wrote: > Hi Peter, > > I could now register the spatial index 'geom' to my database (I was missing > the zip file) - thanks so far. > > cypher

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-22 Thread danielb
Hi Peter, I could now register the spatial index 'geom' to my database (I was missing the zip file) - thanks so far. cypher> start n=node:geom('bbox:[10.0020654, 10.0020654, 48.4126496, 48.4126496]') cypher> return n cypher> ==> +---+ ==> | n | ==> +---+ ==> +---+ ==> 0 rows, 24 ms So zero res

Re: [Neo4j] Neo4j upcoming features importance poll

2011-11-22 Thread Niels Hoogeveen
I noticed work on supernodes being committed to GitHub. Looking forward seeing this and in 1.6-SNAPSHOT. I would like to test this sooner rather than later. The node#getDegree methods are a great addition. Niels > From: peter.neuba...@neotechnology.com > Date: Tue, 22 Nov 2011 15:51:15 +0100 >

Re: [Neo4j] Cypher query question

2011-11-22 Thread Vinicius Carvalho
That works nice :) Tks On Tue, Nov 22, 2011 at 4:21 PM, Tero Paananen wrote: > > Is it possible to filter the results to skip the start node? > > > > For example, using the koans dataset, find the enemy of my enemy (should > be > > my friends :) ) > > > > START n=node(1) > > MATCH (n)-[:ENEMY_OF

Re: [Neo4j] Cypher query question

2011-11-22 Thread Tero Paananen
> Is it possible to filter the results to skip the start node? > > For example, using the koans dataset, find the enemy of my enemy (should be > my friends :) ) > > START n=node(1) > MATCH (n)-[:ENEMY_OF]->(x)-[:ENEMY_OF]->(z) > return distinct z > > I understand that "The doctor" node 1, should ap

[Neo4j] Cypher query question

2011-11-22 Thread Vinicius Carvalho
Hi there, really beginner query, almost ashamed :) Is it possible to filter the results to skip the start node? For example, using the koans dataset, find the enemy of my enemy (should be my friends :) ) START n=node(1) MATCH (n)-[:ENEMY_OF]->(x)-[:ENEMY_OF]->(z) return distinct z I understand

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-22 Thread Peter Neubauer
Daniel, just updated the installation instruction in https://github.com/neo4j/spatial, look under "Using the Neo4j Spatial Server plugin". Does that help? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/i

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-22 Thread danielb
Hi Peter, How do I add the Spatial plugin? I only have Cypher and Gremlin as server extensions installed. I unzip Neo4j spatial into the plugins folder and then send the JSON via curl to the database. But he can't find any of the needed classes. Which files do I need from the spatial project and w

Re: [Neo4j] Neo4j upcoming features importance poll

2011-11-22 Thread Pablo Pareja
Thank you all for participating and give your votes to the options you feel are more important. For sure it'd be great to have another platform to do this that could be somehow integrated with GitHub, ( I just created the poll with doodle because it was the one I found after a quick google search w

Re: [Neo4j] Time Series Data with complex domain model

2011-11-22 Thread Martin Junghanns
Hey Peter, thanks for the hint. I currently chose another way to store time series. I'll try to use versioned edges like so: node_a --- edge_a (t1) --> node_b If there is an update operation on node b at time t2, a copy of b will be created and referenced like so: node_a -- edge_a(t1) --> nod

Re: [Neo4j] OSMImporter: Is there a way to do incremental imports?

2011-11-22 Thread grimace
thanks for the response(s)! The hardware I'm testing on is not the best and only 4G of ram so I'm limited, but this seems the best opportunity for me to learn this...that being said... >> For incremental imports, stitching osm files together, we re-activate the >> old code that tests the lucene

Re: [Neo4j] Neo4j upcoming features importance poll

2011-11-22 Thread Peter Neubauer
Uservoice seems great. If rapportive uses it, http://feedback.rapportive.com/forums/42557-general then it is good in my book. I think we should try it if we can integrate this with GIThub issues. Pablo, impressive feedback on http://www.doodle.com/wg8k77vwq6b654bv ! I think Mattias will be delight

Re: [Neo4j] Creating and managing external index

2011-11-22 Thread Avi Shai
Peter, A redis index provider sounds great. Blue Redis (Redis Blueprints) has some ideas in it, but I think they can be improved on and adapted to neo4j. Transactional indexes creation sounds like what I need. I have also thought about if I am doing something like tagging a resource, there are se

Re: [Neo4j] Creating and managing external index

2011-11-22 Thread Peter Neubauer
Avi, we are in the process to get out a nicer base framework for transactional index creation, and an index provider for redis. Meanwhile, if you want, you could look into the BerkelyDB index that I tried to cook together (no guarantees there), https://github.com/peterneubauer/bdb-index and see if

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-22 Thread Peter Neubauer
Daniel, you need to make sure to load the spatial index first witha custom config, otherwise lucene is the default index provider and will "shadow" the lazily created and loaded index. See https://github.com/neo4j/spatial/blob/master/features/start-and-stop.feature#L16 for the example. Start with

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-22 Thread danielb
Hi together, That would be cool. Atm I am deleting the data folder, that works too for my testing purpose. I have played around with cypher and encounter some problems. I have OSM nodes in the database and I 'guess' they have a spatial index on the geometry (lat, lon). The view on the server admin

Re: [Neo4j] Batch uploading to REST server

2011-11-22 Thread Michael Hunger
I think the main overhead comes from parsing the JSON (it's not streamed parsing imho). That's why I suggest you try to split your big file into smaller ones (e.g. your 1.5k ones or half the size). And then execute multiple requests in parallel to the neo4j server to import the data. With your

Re: [Neo4j] Batch uploading to REST server

2011-11-22 Thread Peter Neubauer
Hi there, On Tue, Nov 15, 2011 at 6:50 PM, vistorve wrote: > I setup visualvm with a jmx connection to the server running neo4j I wasn't > able to CPU profiling working, it had an error message saying > getThreadCpuTime was expecting long but got something else. I do have thread > and heap dumps

Re: [Neo4j] REST api get list of all relationship properties (unique)

2011-11-22 Thread Peter Neubauer
Jure, for this, I think there is no explicit support in Neo4j. I guess you will have to iterate and build up an in-memory list of the unique RelTypes as you go. Anyone having a better idea? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 L

Re: [Neo4j] OSMImporter: Is there a way to do incremental imports?

2011-11-22 Thread Craig Taverner
I did some initial work on incremental imports back in 2010, but stopped due to some complications: - We needed to mix lucene reads and writes during the import (read to check if the node already exists, so we don't import twice) and this performs very badly in the batch inserter. We deci

Re: [Neo4j] "the social graph is neither" (blog post)

2011-11-22 Thread Jacob Hansson
On Tue, Nov 22, 2011 at 10:46 AM, serge wrote: > what do you think of this post ? > > http://blog.pinboard.in/2011/11/the_social_graph_is_neither/ > His first point, that modeling the social graph accurately is impossible is of course true. It is impossible to model reality exactly like it is, b

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-22 Thread Peter Neubauer
Daniel, true, we should upgrade this to 1.5. Michael, can we do it? 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         

Re: [Neo4j] Fwd: Lucene Custom Sort in Neo4j

2011-11-22 Thread Andres Taylor
On Tue, Nov 22, 2011 at 10:20 AM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Maybe, > but that means that every index needs to have the notion of sorting > and ordering? > I would be nice if we can introspect and see if the indexes available support ordering. Andrés

[Neo4j] "the social graph is neither" (blog post)

2011-11-22 Thread serge
what do you think of this post ? http://blog.pinboard.in/2011/11/the_social_graph_is_neither/ -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/the-social-graph-is-neither-blog-post-tp3527242p3527242.html Sent from the Neo4j Community Discussions mailing li

Re: [Neo4j] Fwd: Lucene Custom Sort in Neo4j

2011-11-22 Thread Peter Neubauer
Maybe, but that means that every index needs to have the notion of sorting and ordering? 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://w

Re: [Neo4j] OSMImporter: Is there a way to do incremental imports?

2011-11-22 Thread Peter Neubauer
Gregory, incremental loads (and thus, restarts of OSM imports) are a feature we want to add later on, but it's not in there yet. This would also mean we could stitch in other areas on demand, and support submitting changesets back to OSM or at least capture them, so you as an OSM based app can cont

Re: [Neo4j] some questions

2011-11-22 Thread Jacob Hansson
Hey Andrew, like Peter hints at, webadmin itself does not currently support that kind of customization as a proper feature. Howerver, again like Peter points out, it is all on Github, and you are free to create your own personalized version of it :) Just keep in mind that you will have to keep yo

Re: [Neo4j] Fwd: Lucene Custom Sort in Neo4j

2011-11-22 Thread Mattias Persson
As a parameter to the index GET perhaps? GET .../index/node/myindex?query=name:*&sort=GivenName&order=desc 2011/11/22 Peter Neubauer > I agree. > Sending arbitrary Groovy is not what you want a database to execute. Do you > see any good index - neutral way to expose this? It's even very relevan