Re: [Neo4j] Attributes or Relationship Check During Traversal

2010-08-02 Thread Mattias Persson
I'd probably go for that as well. It's harder to go with a gut feeling for the case where you have many categories... it may be better to go with relationships then, because you gain the traversal aspect of it which you don't really get if you go with properties. 2010/8/1

[Neo4j] [Neo] Problem using Neo4j 1.1 with neo4j.py

2010-08-02 Thread Pei-Lun Lee 李沛倫
Hi, Good work on 1.1 release. I am trying to make 1.1 work with neo4j.py. However I got some error. Tried CPython+Jpype and Jython, both failed. I'm using Jython 2.5.1 on ubuntu 10.04 x86_64 with openjdk-6-jre. The code I tested: neodir = '/opt/neo4j-apoc-1.1/lib' db =

Re: [Neo4j] Python Struggler...

2010-08-02 Thread Peter Neubauer
Tom, executing that code, I get the following output: [~/code/tompython] $rm -rf example_db/ python testing.py /Library/Python/2.6/site-packages/jpype/_pykeywords.py:18: DeprecationWarning: the sets module is deprecated import sets Created: http://pypi.python.org/ Created:

Re: [Neo4j] Querying for nodes that have no relationhip to a specfic node

2010-08-02 Thread David Montag
Alberto, Hope your testing is coming along well. Feel free to post your progress to the list! David On Wed, Jul 28, 2010 at 5:02 PM, Alberto Perdomo alberto.perd...@gmail.comwrote: Hi David, But then you need to store the result. You can store these metrics as relationships in neo4j,

[Neo4j] LuceneIndexService: NoSuchMethodError

2010-08-02 Thread Max Jakob
Hi, I have a problem with the LuceneIndexService. When I create an indexed graph base and I commit it to disk, next time I want to use it, I get a NoSuchMethodError for LuceneIndexService.getSingleNode: Exception in thread main java.lang.NoSuchMethodError:

Re: [Neo4j] Stumped by performance issue in traversal - would take a month to run!

2010-08-02 Thread David Montag
Hi Jeff, If I'm not mistaken, Neo4j loads all properties for a node or relationship when you invoke any operation that touches a property. As for the performance of traversals, it is highly dependent on how deep you traverse, and what you do during the traversal, so ymmv. Using a traverser is

Re: [Neo4j] Read-only transactions?

2010-08-02 Thread David Montag
Hi Tim, It is not possible to mark a transaction as read-only. As Martin said, you don't need a transaction to perform read operations. If you have a transaction but don't do any writes, then it won't commit anything. So as long as you don't do any writes, you shouldn't experience any delays when

Re: [Neo4j] LuceneIndexService: NoSuchMethodError

2010-08-02 Thread Peter Neubauer
Max, this sounds like a version clash on Lucene. Can you check what version(s) of Lucene (and Neo4j-Index) you are running in the two scenarios? Cheers, /peter neubauer COO and Sales, Neo Technology GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

Re: [Neo4j] LuceneIndexService: NoSuchMethodError

2010-08-02 Thread Max Jakob
I tracked down the error. There was still a left-over imported Lucene 3.0.2 in the library, which does not have the method Hits IndexSearcher.search(Query). Thanks for the hint Peter! Best, Max On Mon, Aug 2, 2010 at 3:11 PM, Max Jakob max.ja...@fu-berlin.de wrote: Hi Peter, this sounds like

Re: [Neo4j] LuceneIndexService: NoSuchMethodError

2010-08-02 Thread Peter Neubauer
Max, since you are using neo4j-index, you should not be importing Lucene again, since it already is a dependency of the index components (and I think the version is higher there). So, upgrading to 1.1 and removing the Lucene dependency should fix it: dependency groupIdorg.neo4j/groupId

Re: [Neo4j] Stumped by performance issue in traversal - would take a month to run!

2010-08-02 Thread David Montag
Hi Jeff, Please see answers below. On Mon, Aug 2, 2010 at 5:47 PM, Jeff Klann jkl...@iupui.edu wrote: Thank you all for your continued interest in helping me. I tweaked the code more to minimize writes to the database and it now looks like: For each item A For each customer that purchased

[Neo4j] geodata querying

2010-08-02 Thread SIMA lotfi
hi all, I am doing a bounding box query on the geo data that I have imported into the neo4j using these lines of codes : def bbox_query(db, xmin, ymin, xmax, ymax): spatialService = SpatialDatabaseService(db) SHPlayer = spatialService.getLayer(countries) spatialIndex =