[Neo4j] Spring Data Graph 1.1.0.M2 released

2011-07-20 Thread Michael Hunger
Dear Graphistas, I'd like to inform you that we released the M2 milestone of Spring Data Graph 1.1.0. The most obvious change is repackaging, sorry for that but the Spring Data project decided to move all packages to org.springsource.data.datastore so ours will be org.springsource.data.neo4j

Re: [Neo4j] Neo4j 1.4 / Lucene 3.1 / OSGi - No index provider 'lucene' found

2011-07-20 Thread Jörg Richter
Thanks for replies! Yes, the super bundle approach (putting *all* neo modules and *all* their dependencies in one bundle) works in principle. But to be a deployable solution ... 1) it must exist in the Maven repo and be on a par with the Neo4j release 2) A configuration mechanism is required

Re: [Neo4j] Cypher request with where clause on relations count

2011-07-20 Thread Guillaume ALLEE
Neo4jists, Was my question dumb or was it really not clear ? Cheers -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-request-with-where-clause-on-relations-count-tp3172481p3185907.html Sent from the Neo4J Community Discussions mailing list

[Neo4j] Issue / error with neo4j-spatial and geoserver,

2011-07-20 Thread reyman
Hello devs, First i refer for my problem to this previous message on neo4j list ( http://lists.neo4j.org/pipermail/user/2011-July/010158.html) because i have the same issue/error with geoserver and neo4j-spatial plugin :/ * Error creating data store, check the parameters. Error message: Could not

[Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
Hi! I've been trying to fix this error, and I've kind of succeeded. My context is, that I've pulled neo4j sources from github and using them in eclipse (without maven and such), and I have the neo4j-community sources as a project, and I am including this project in any of my projects that require

[Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
Is there a way to get the number of relationships without having to iterate through (and count++) them? ie. rels=firstNode.getRelationships(); rels.size(); //doesn't actually exist ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] Issue / error with neo4j-spatial and geoserver,

2011-07-20 Thread Peter Neubauer
Hi SRay, If you want test out and update the Wiki, that would be most appreciated! Both Craig and me are low on cycles right now, Saikat is working on the RTree and Andreas on putting PostGIS functions into place. If if you fork the codebase, please send in the CLA as described in the code

Re: [Neo4j] Neo4j 1.4 / Lucene 3.1 / OSGi - No index provider 'lucene' found

2011-07-20 Thread Peter Neubauer
Hi Jörg, I understand your view. However, as there is no support for scopes in OSGi, the reasonable approach would be to import ALL dependencies for all Neo4j code. That would require quite substancial numbers of bundles for e.g. the enterprise edition that pollute the Bundle Space for the whole

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
but but I don't know what osgi and project bundle stuff really is :) I don't think I would need that for what I want. (if those mean building as .jar or using jars) What I actually want is to keep the neo4j-community project (which is git linked to the github sources), keep this as source only

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread Peter Neubauer
For sources, I guess you would need to mount the src/main/resources folders as source folders in order to have the META-INF/services files on the classpath. Does that work? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

Re: [Neo4j] OSGi and Neo4j - superbundle approach

2011-07-20 Thread Peter Neubauer
Yup, have pulled and can see it. Thanks! Will ask the Toni for a way to cleanly shut down the framework so we can get both tests working. /peter On Mon, Jul 18, 2011 at 11:58 PM, Peter Neubauer neubauer.pe...@gmail.com wrote: Nicolas, I am away for 2 days, will try it out after that. Thanks

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
that is awesome! that file is there: ..\workspace\neo4j-community\lucene-index\src\main\resources\META-INF\services\ though if I add lucene-index\src\main\resources\ as source folder, i get some weird java exception and no-class def found error :)) but you probably only wanted me to add it in

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread Peter Neubauer
Hi there, this is not Neo4j using this file, but the Java Service Loader requiring this, http://download.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html If you find some programatic way to add services, that could be good for the OSGi setup scenarios, too :) Cheers, /peter neubauer

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread Peter Neubauer
Hehe, On Wed, Jul 20, 2011 at 8:22 PM, cyuczi eekc cyuczie...@gmail.com wrote: PS: you mispelled programmatic =)) (I'm actually laughing with you, not at you xD) As I am a Gmail fanboy, I blame Google for not introducing a Do not send if misspelled button. The Undo send I use in around 60% of

[Neo4j] retrieve all relationships of a certain type (java)

2011-07-20 Thread cyuczi eekc
How would I go about retrieving all nodes for a certain relationship Type (ie. assuming I don't know any of them nodes) ? (in java code, the other variants rest/cypher I will probably not need to use) ie. rel.getAllNodes(Direction.INCOMING) or rel.getAllNodes(Direction.OUTGOING) or Direction.BOTH

Re: [Neo4j] retrieve all relationships of a certain type (java)

2011-07-20 Thread Marko Rodriguez
Hey, How would I go about retrieving all nodes for a certain relationship Type (ie. assuming I don't know any of them nodes) ? Use an index. I don't know in native Neo4j off the top of my head, but the analogous to this in Blueprints: g.getIndex(edges, Edge.class).get(label,myType)

Re: [Neo4j] how many relationships?

2011-07-20 Thread Jim Webber
Hi, Responses from calling the Neo4j APIs are typically lazy, for performance reasons. So there's no way of eagerly counting the number of relationships unless you force eager evaluation as you've suggested below. Jim On 20 Jul 2011, at 11:13, cyuczi eekc wrote: Is there a way to get the

Re: [Neo4j] OSGi and Neo4j - superbundle approach

2011-07-20 Thread Jean-Pierre Bergamin
Hello everyone May I chime in here... We are really interested to see neo4j working in an OSGi environment esp. together with Spring Data Graph. After an unsuccessful attempt to get it up and running a couple of weeks ago we gave it another chance today after seeing this post and after a whole

Re: [Neo4j] OSGi and Neo4j - superbundle approach

2011-07-20 Thread Peter Neubauer
Hi Jean-Pierre, sorry for the inconvenience, the Tinybundles version is not yet released by the OPS4J team, so you can build it yourself from https://github.com/ops4j/org.ops4j.pax.tinybundles with mvn clean install Feedback is appreciated! Cheers, /peter neubauer GTalk:      neubauer.peter

Re: [Neo4j] Officially supported mechanism for J2EE

2011-07-20 Thread eialbur
My understanding of the J2EE standard is that you should *not* do file I/O from inside a bean (my assumption is to avoid issues if you run in a clustered environment). If I access Neo4j directly from a bean, wouldn't I be violating that? I am not currently clustered, and my app is small enough I

Re: [Neo4j] Neo4j 1.4 / Lucene 3.1 / OSGi - No index provider 'lucene' found

2011-07-20 Thread Jörg Richter
Hi Peter, thanks for reply! Is there any chance to get the old index API back, as an *alternative* to the new one? Within an OSGi environment the old index API worked perfectly in Neo4j 1.0, 1.1, and 1.2. In the latter ones the old index API friendly coexists with the new

Re: [Neo4j] OSGi and Neo4j - superbundle approach

2011-07-20 Thread Jean-Pierre Bergamin
Hi Peter When I ran mvn install, I got: ... [WARNING] Warning building bundle org.ops4j.pax.tinybundles:tinybundles:bundle:1.0.0-SNAPSHOT ... [INFO] Installing org/ops4j/pax/tinybundles/tinybundles/1.0.0-SNAPSHOT/tinybundles-1.0.0-SNAPSHOT.jar I think there is a tinybundles to much in between.

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
I guess I was hoping it(size/count) was cached in the database or the underlaying database would provide this somehow, ie. in berkeleydb (java edition) there's a cursor.count() I could use (though I don't know how they did it implementation-wise) Thanks! I needed to know that. On Wed, Jul 20,

[Neo4j] PropertySortedTree and property indexed relationships

2011-07-20 Thread Niels Hoogeveen
To simplify the use of IndexedRelationships, I added support for the use case where relationships are placed in an index based on the value of a property of the node added. Hereto, I added wrappers for property types for all data types supported. There is also a specialized version of

Re: [Neo4j] Cypher request with where clause on relations count

2011-07-20 Thread Guillaume ALLEE
@Michael I am glad that this feature will be added in 1.5 and I already did the java code but I wanted to do it with server. @Marko thanks. I just tried to do it with Gremlin but I have not your knowledge of gremlin. I will try to do that. -- View this message in context:

Re: [Neo4j] Cypher request with where clause on relations count

2011-07-20 Thread Marko Rodriguez
Hey, @Marko thanks. I just tried to do it with Gremlin but I have not your knowledge of gremlin. I will try to do that. If you use Neo4j Server 1.4, then you will be in Gremlin 1.1 land. I don't know what you are rolling with (embedded, server, etc.), but if you want the query in Gremlin

Re: [Neo4j] Cypher request with where clause on relations count

2011-07-20 Thread Guillaume ALLEE
@Marko I am using neo4j 1.4 server so I guess I am running gremlin 1.1. It would be cool if you can send me the compatible query when you have time. -- View this message in context:

[Neo4j] Propertiy keys with slashes and spaces in REST server

2011-07-20 Thread Javier de la Rosa
Hi all, I'm trying to implement full support for unicode in my neo4j Python REST client, but I'm finding some dificulties: - I send a property key such as p r öp€rtŷ, and I'm able to get everything working using a URL encoding, that converts that string into

Re: [Neo4j] Neo4j 1.4 / Lucene 3.1 / OSGi - No index provider 'lucene' found

2011-07-20 Thread Alexander Smirnov
Just curious - as I traced down OSGI service loading from the neo4j Service class it commented out, so the only Java META-INF/services used in any environment. May be that's the case ? On Wed, Jul 20, 2011 at 4:55 AM, Jörg Richter j...@deepamehta.de wrote: Thanks for replies! Yes, the super

Re: [Neo4j] Cypher request with where clause on relations count

2011-07-20 Thread Marko Rodriguez
@Marko I am using neo4j 1.4 server so I guess I am running gremlin 1.1. It would be cool if you can send me the compatible query when you have time. Good, cause time is all I have. m = [:]

Re: [Neo4j] Issue / error with neo4j-spatial and geoserver,

2011-07-20 Thread reyman
Hi, Sorry, but i know anything about the core structure of neo4j-spatial and the code source of the project is really big, so i don't know how to begin to search for patch this error :-/ I have only a null pointer exception in the geoserver.log, it's few :/ If a dev contributor of neo4j-spatial

Re: [Neo4j] OSGi and Neo4j - superbundle approach

2011-07-20 Thread Peter Neubauer
Ahh, sorry, seems Tinybundles changes groupId and API since my last pull. Pushed the updates. Please try again :) Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

[Neo4j] Transactions: what happens when tx.finish() is reached before tx.success() or tx.failure()

2011-07-20 Thread cyuczi eekc
Does it auto fail? Considering how I see in the examples, it does auto-fail... if it doesn't then maybe the doc for tx.finish() should specify what happens, or even throw ? if there isn't a specified default. Ah, I just read the javadoc for Transaction (interface): If an exception is raised in

Re: [Neo4j] Neo4j 1.4 / Lucene 3.1 / OSGi - No index provider 'lucene' found

2011-07-20 Thread Peter Neubauer
Yes, right. Neo4j right now is only using Java Service Loader. Reason for that is that, as stated in the other thread, it's very hard to decide on the granularity of exposed services without spamming the Service Registry with Neo4j internal stuff. If we register every index provider and kernel

Re: [Neo4j] Issue / error with neo4j-spatial and geoserver,

2011-07-20 Thread Peter Neubauer
Hi there, I would love to check this out, but will be traveling for the next week. Is it ok if this takes a few weeks to get to? Otherwise, maybe someone else can get his hands dirty to update the GeoServer tutorial? /peter On Wed, Jul 20, 2011 at 10:41 PM, reyman reyma...@gmail.com wrote: Hi,

Re: [Neo4j] OSGi and Neo4j - superbundle approach

2011-07-20 Thread Peter Neubauer
And, there was a bug in Pax Exam not shutting down the bundles properly. Fixed by Toni Menzel in 5 minutes. Thanks! I added some build instructions to https://github.com/neo4j/neo4j-osgi to get things working. Give it a try! Cheers, /peter neubauer GTalk:      neubauer.peter Skype      

Re: [Neo4j] OSGi and Neo4j - superbundle approach

2011-07-20 Thread Toni Menzel
btw, sorry about the Tinybundles disruption. The group id org.ops4j.pax was actually wrong since ripping out tinybundles from pax swissbox. Actually there will be just one tinybundles artifact and it will carry 1.0 really soon. Until then you may grab latest artifacts from

Re: [Neo4j] Propertiy keys with slashes and spaces in REST server

2011-07-20 Thread Peter Neubauer
Javier, do you have the curl command for this? We can just add a test case and fix it. 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

Re: [Neo4j] Transactions: what happens when tx.finish() is reached before tx.success() or tx.failure()

2011-07-20 Thread Norbert Tausch
There is another point in the doc that is not correct. The doc states out that you can call tx.success after tx.failure. In this case the transaction stays at being fault. So one call to tx.failure causes a rollback when calling tx.finish, also when there are further calls to tx.success before or

Re: [Neo4j] PropertySortedTree and property indexed relationships

2011-07-20 Thread Peter Neubauer
Very cool stuff Nils! Now, a good question is how to document this. Are the interfaces all like normal collections? Maybe we could write some introductory text and pull code from the tests into the docs. Have you been able to get the manual buidl working at your machine, see

Re: [Neo4j] Propertiy keys with slashes and spaces in REST server

2011-07-20 Thread Javier de la Rosa
Hi, Peter On Wed, Jul 20, 2011 at 18:32, Peter Neubauer peter.neuba...@neotechnology.com wrote: Javier, do you have the curl command for this? We can just add a test case and fix it. Thanks! The server works great, but the problem is, in practice, it's not possible to set property keys with

Re: [Neo4j] PropertySortedTree and property indexed relationships

2011-07-20 Thread Niels Hoogeveen
Thank Peter. I did a write up on IndexedRelationships on the Github wiki: https://github.com/peterneubauer/graph-collections/wiki/Indexed-relationships That one needs to be updated to reflect property-indexed-relationships. SortedTree, PropertySortedTree, IndexedRelationship all implement

Re: [Neo4j] Officially supported mechanism for J2EE

2011-07-20 Thread Michael Hunger
To answer a few of your questions: Neo4j is a database, GraphDatabaseService encapsulates your connection to that database. You don't mind using other databases from J2EE. If you run clustered just use Neo4j's High Availability mode across the cluster. As Neo4j has no concept of a connection

Re: [Neo4j] how many relationships?

2011-07-20 Thread Michael Hunger
Caching that result would require synchronizing it with every change using up memory and performance (at every change) for something that can be computed So far it has not been worth the effort. If you really need that value very often you could write a small TransactionEventHandler that keeps

[Neo4j] Vancouver Graph Meetup - Next Wednesday

2011-07-20 Thread Andreas Kollegger
Graphistas of the North, Join us at Mozilla Labs in Vancouver next Wednesday, the 27th, for a graph meetup with the inimitable Peter Neubauer[1]... Every graph starts with a single node, then branches out. So, we'll start with a general introduction to graphs, discussing the concepts,

Re: [Neo4j] Propertiy keys with slashes and spaces in REST server

2011-07-20 Thread Michael Hunger
Javier, what is the concrete error that happens if you send over that space + slash encoded property? Cheers Michael Am 21.07.2011 um 01:15 schrieb Javier de la Rosa: Hi, Peter On Wed, Jul 20, 2011 at 18:32, Peter Neubauer peter.neuba...@neotechnology.com wrote: Javier, do you have

[Neo4j] Seattle Graph Meetup - next Wednesday

2011-07-20 Thread Andreas Kollegger
Seattlite Graphistas, No need for a border crossing next Wednesday the 27th to talk about graphs, because we'll be meeting in Seattle, making an appearance at the monthly Hadoop meetup[2]. After a brief introduction to graph databases for the uninitiated, we'll review the new features of the

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
Trying to count the relationships the normal way I find that oddly, I cannot see more than 100+x relationships, where x is the maximum number of relations ever added within a transaction. For example, if I add 91 relationships in a transation, and I count them, I have 91. I run the program again

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
I should probably mention that I am using neo4j community (embedded) latest sources up to date from github On Thu, Jul 21, 2011 at 4:59 AM, cyuczi eekc cyuczie...@gmail.com wrote: Trying to count the relationships the normal way I find that oddly, I cannot see more than 100+x relationships,

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
Ok there, I found out something new, if I do the count outside of the transaction (ie. after tx.finish() ) then it works right, ie. in a different example: Node `one` has 100,100 out rels, time=7,954,653,001 tx.finish() time=1,525,669,261 Node `one` has 1,200,546 out rels And as long as I create

[Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
When trying to use the same database (or path) from two different java programs, the second one cannot open it. Is this normal ? Can't two or more java programs work on the same (embedded)database ? I used BerkeleyDB (java edition) before, and this was possible, hence why I was expecting this with

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread Jim Webber
Hi Cyuczi, You can't open the same database twice in two programs. If you want data to be replicated between Neo4j instances, look into HA: http://docs.neo4j.org/chunked/stable/ha-how.html http://wiki.neo4j.org/content/High_Availability_Cluster Jim

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
I took a quick glance, though it seems they are duplicating(replicating?) the database, but I was hoping I could use only one database (instead of having multiple copies of it, though this would be good in the future of course). With this in mind, what should I look for? maybe neo4j server ? that

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread Michael Hunger
I you want to have a read-only-snapshot view of the database you can also use new EmbeddedReadOnlyGraphDatabase(path); Cheers Michael Am 21.07.2011 um 05:31 schrieb Jim Webber: Hi Cyuczi, You can't open the same database twice in two programs. If you want data to be replicated between

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
Thanks Michael, that is good to know... I would've tried that right now, for tests, but unfortunately I get that silly error No index provider 'lucene' found, but only when using EmbeddedReadOnlyGraphDatabase, not EmbeddedGraphDatabase. Perhaps it would be worth mentioning that in order to not

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread Michael Hunger
Probably you have to add that for the other project too ? Am 21.07.2011 um 05:57 schrieb cyuczi eekc: Thanks Michael, that is good to know... I would've tried that right now, for tests, but unfortunately I get that silly error No index provider 'lucene' found, but only when using

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread Michael Hunger
Anyway as Peter said it should work to add the .\lucene-index\src\main\resources as source path to your eclipse project. You said you were getting exceptions with eclipse. What kind of exceptions are those? Michael Am 20.07.2011 um 20:25 schrieb Peter Neubauer: Hehe, On Wed, Jul 20,

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
It is not necessary however your reply made me retest, and it works as it were, but it only shows that error, if, I run the program with EmbeddedGraphDatabase and put it in an 100 second sleep(so that it keeps the database open), and then I change it to EmbeddedReadOnlyGraphDatabase and run it

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread Michael Hunger
If you run into errors, please make sure to include the exceptions in the e-mail. Verbal descriptions are sometimes hard to follow without having the code and the environment. You mean you take the same program and exchange the code line to use EmbeddedReadOnlyGraphDb ? Why do you do that?

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
Summary: it works if you set \lucene-index\src\main\resources as source folder (no need to set it as class folder) -- yes, if I add it as source folder instead of add it as class folder let's see, reproducing... wow, it is working now, how odd... (so adding it as source folder works) well

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
Yeah sorry about that :) Bottom line is, EmbeddedReadOnlyGraphDb works. It only displays the `lucene index not found error` when the database(path) is already in use by another program. Otherwise it just works. I should've said this, it's simpler to understand. To answer your question, I was

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
now looking back at HA, I see here: Porting your application to run on Neo4j-HA As mentioned earlier the only thing that needs to change is the creation of the graph database service. In single machine operations the EmbeddedGraphDatabase class should be used while in multi machine HA

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
about this, should I create an issue? On Thu, Jul 21, 2011 at 5:15 AM, cyuczi eekc cyuczie...@gmail.com wrote: Ok there, I found out something new, if I do the count outside of the transaction (ie. after tx.finish() ) then it works right, ie. in a different example: Node `one` has 100,100