Re: [Neo4j] Cannot build neo4j-cypher-plugin

2011-06-12 Thread Super Wang
My mistake, it's neo4j-cypher-plugin, not neo4j-cypher.

But my neo4j-cypher project reports errors in eclipse IDE, it looks like it
requires some scala classes in java classes, and eclipse cannot handle this.

org.neo4j.server.webadmin.console.CypherSession
org.neo4j.shell.kernel.apps.Start

have compiler errors too, both of these are require scala classes...


On Mon, Jun 13, 2011 at 14:07, Super Wang  wrote:

> Here's the result:
>
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model
> for org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
> [WARNING] 'parent.relativePath' points at org.neo4j.build:community-build
> instead of org.neo4j:parent-central, please verify your project structure
> @line 3, column 11
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> [WARNING]
> [INFO]
> [INFO]
> 
> [INFO] Building Neo4j - Cypher 1.4-SNAPSHOT
> [INFO]
> 
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ neo4j-cypher
> ---
>  [INFO] org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
> [INFO] +- org.scala-lang:scala-library:jar:2.9.0-1:compile
> [INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile
> [INFO] |  \-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
> [INFO] +- org.neo4j:neo4j-lucene-index:jar:1.4-SNAPSHOT:compile
> [INFO] |  \- org.apache.lucene:lucene-core:jar:3.1.0:compile
> [INFO] +- org.neo4j:neo4j-kernel:jar:1.4-SNAPSHOT:compile
> [INFO] +- org.neo4j:neo4j-graph-matching:jar:1.4-SNAPSHOT:compile
> [INFO] \- junit:junit:jar:4.8.2:test
> [INFO]
> 
> [INFO] BUILD SUCCESS
> [INFO]
> 
> [INFO] Total time: 2.765s
> [INFO] Finished at: Mon Jun 13 11:55:17 CST 2011
> [INFO] Final Memory: 6M/25M
> [INFO]
> 
>
> By looking at the code in org.neo4j.cypher.javacompat.CypherParser which
> report compiler error:
>
> package org.neo4j.cypher.javacompat;
>
> import org.neo4j.cypher.SyntaxError;
> import org.neo4j.cypher.commands.Query;
>
> both two imports are missing, the package org.neo4j.cypher itself is empty.
>
>
> On Mon, Jun 13, 2011 at 03:12, Peter Neubauer <
> peter.neuba...@neotechnology.com> wrote:
>
>> Super,
>> the ImpermanentGraphDatabase.java is a test helper class and resides
>> as of a few days back in the neo4j kernel test artifact. A quick scan
>> with mvn dependency:tree gives you
>>
>> [~/code/neo/build/community/cypher] $mvn dependency:tree
>> [INFO] Scanning for projects...
>> [INFO]
>> 
>> [INFO] Building Neo4j - Cypher
>> [INFO]task-segment: [dependency:tree]
>> [INFO]
>> 
>> [INFO] snapshot org.neo4j:neo4j-lucene-index:1.4-SNAPSHOT: checking
>> for updates from sonatype-nexus-snapshots
>> [INFO] snapshot org.neo4j:neo4j-graph-matching:1.4-SNAPSHOT: checking
>> for updates from sonatype-nexus-snapshots
>> [INFO] [dependency:tree {execution: default-cli}]
>> [INFO] org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
>> [INFO] +- org.scala-lang:scala-library:jar:2.9.0-1:compile
>> [INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile
>> [INFO] |  \-
>> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
>> [INFO] +- org.neo4j:neo4j-lucene-index:jar:1.4-SNAPSHOT:compile
>> [INFO] |  \- org.apache.lucene:lucene-core:jar:3.1.0:compile
>> [INFO] +- org.neo4j:neo4j-kernel:jar:1.4-SNAPSHOT:compile
>> [INFO] +- org.neo4j:neo4j-graph-matching:jar:1.4-SNAPSHOT:compile
>> [INFO] \- junit:junit:jar:4.8.2:test
>>
>> where the latest version of
>>
>> [INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile
>>
>>
>> should contain that class. Could you check that?
>>
>>
>>
>>
>> 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 Sun, Jun 12, 2011 at 5:50 AM, Super Wang  wrote:
>> > Maybe same problem here:
>> >
>> > [INFO] Scanning for projects...
>> > [WARNING]
>> > [WARNING] Some problems were encountered while building the effective
>> model
>> > for org.neo4j:neo4j-cypher:jar:1.4-SN

Re: [Neo4j] Cannot build neo4j-cypher-plugin

2011-06-12 Thread Super Wang
Here's the result:

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
[WARNING] 'parent.relativePath' points at org.neo4j.build:community-build
instead of org.neo4j:parent-central, please verify your project structure
@line 3, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]
[INFO]

[INFO] Building Neo4j - Cypher 1.4-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ neo4j-cypher ---
[INFO] org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
[INFO] +- org.scala-lang:scala-library:jar:2.9.0-1:compile
[INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile
[INFO] |  \-
org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO] +- org.neo4j:neo4j-lucene-index:jar:1.4-SNAPSHOT:compile
[INFO] |  \- org.apache.lucene:lucene-core:jar:3.1.0:compile
[INFO] +- org.neo4j:neo4j-kernel:jar:1.4-SNAPSHOT:compile
[INFO] +- org.neo4j:neo4j-graph-matching:jar:1.4-SNAPSHOT:compile
[INFO] \- junit:junit:jar:4.8.2:test
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 2.765s
[INFO] Finished at: Mon Jun 13 11:55:17 CST 2011
[INFO] Final Memory: 6M/25M
[INFO]


By looking at the code in org.neo4j.cypher.javacompat.CypherParser which
report compiler error:

package org.neo4j.cypher.javacompat;

import org.neo4j.cypher.SyntaxError;
import org.neo4j.cypher.commands.Query;

both two imports are missing, the package org.neo4j.cypher itself is empty.


On Mon, Jun 13, 2011 at 03:12, Peter Neubauer <
peter.neuba...@neotechnology.com> wrote:

> Super,
> the ImpermanentGraphDatabase.java is a test helper class and resides
> as of a few days back in the neo4j kernel test artifact. A quick scan
> with mvn dependency:tree gives you
>
> [~/code/neo/build/community/cypher] $mvn dependency:tree
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Building Neo4j - Cypher
> [INFO]task-segment: [dependency:tree]
> [INFO]
> 
> [INFO] snapshot org.neo4j:neo4j-lucene-index:1.4-SNAPSHOT: checking
> for updates from sonatype-nexus-snapshots
> [INFO] snapshot org.neo4j:neo4j-graph-matching:1.4-SNAPSHOT: checking
> for updates from sonatype-nexus-snapshots
> [INFO] [dependency:tree {execution: default-cli}]
> [INFO] org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
> [INFO] +- org.scala-lang:scala-library:jar:2.9.0-1:compile
> [INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile
> [INFO] |  \-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
> [INFO] +- org.neo4j:neo4j-lucene-index:jar:1.4-SNAPSHOT:compile
> [INFO] |  \- org.apache.lucene:lucene-core:jar:3.1.0:compile
> [INFO] +- org.neo4j:neo4j-kernel:jar:1.4-SNAPSHOT:compile
> [INFO] +- org.neo4j:neo4j-graph-matching:jar:1.4-SNAPSHOT:compile
> [INFO] \- junit:junit:jar:4.8.2:test
>
> where the latest version of
>
> [INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile
>
>
> should contain that class. Could you check that?
>
>
>
>
> 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 Sun, Jun 12, 2011 at 5:50 AM, Super Wang  wrote:
> > Maybe same problem here:
> >
> > [INFO] Scanning for projects...
> > [WARNING]
> > [WARNING] Some problems were encountered while building the effective
> model
> > for org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
> > [WARNING] 'parent.relativePath' points at org.neo4j.build:community-build
> > instead of org.neo4j:parent-central, please verify your project structure
> @
> > line 3, column 11
> > [WARNING]
> > [WARNING] It is highly recommended to fix these problems because they
> > threaten the stability of your build.
> > [WARNING]
> > [WARNING] For this reason, future Maven versions might no longer support
> > building such malformed projects.
> > [WARNING]
> > [INFO]
> >
> > [INFO]
> > 
> > [INFO] Building Neo4j - Cy

Re: [Neo4j] Traversals versus Indexing

2011-06-12 Thread espeed
It depends on the traversal you are running.

--
View this message in context: 
http://neo4j-user-list.438527.n3.nabble.com/Neo4j-Traversals-versus-Indexing-tp3057515p3057538.html
Sent from the Neo4J User List mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Traversals versus Indexing

2011-06-12 Thread Aman
What is faster - Traversals or Indexing? I mean if one has a database model
that can offer a choice between the two, what should one choose?
Also, what about when the scalability factor comes in?
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] [SoC] Re: GSoC 2011 Weekly report - OSM data mining and editing capabilities in uDig and Geotools

2011-06-12 Thread Mirco Franzago
Weekly report #3
Unfortunately I lost some important days of work due to an hardware failure
of my laptop, and then I tried to recover the time this weekend :-(

==What I did==
-I took some confidence with github and "git philosophy" in general, so
finally I have online the repository for my code
-I tried to make neo4j-spatial work in uDig

==Blocking problems==
-Some problems with the source code of neo4j-spatial plugin
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


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

2011-06-12 Thread Michael Hunger
Ian,

unfortunately your attachment didn't make it through mailman, could you please 
send it to me personally at michael.hun...@neotechnology.com

Thanks

Michael

Am 10.06.2011 um 13:47 schrieb Ian Bussières:

> Here you go, took out src, war, lib, test, test-classes and also
> cleaned some of the stuff in the war folder. Oh and took out all the
> .jar files there too, otherwise this was just way to huge to share.
> Hope this will shine some light on the problem :S
> 
> 
> On Fri, Jun 10, 2011 at 07:18, Michael Hunger
>  wrote:
>> Eclipse .project and .classpath files.
>> 
>> In general if you copy the project and remove all *.java files, that would 
>> be sufficient.
>> 
>> Thanks so much
>> 
>> Michael
>> 
>> Am 10.06.2011 um 13:11 schrieb Ian Bussières:
>> 
>>> GWT 2.3 and Eclipse Helios.
>>> 
>>> I can't share too much information from the project itself, I suppose
>>> I could share the config stuff. What config are you referring to?
>>> 
>>> --
>>> Ian Bussières
>>> Étudiant en Génie des Technologies de l'Information
>>> École de technologie supérieure
>>> [514] 814-0136
>>> 
>>> 
>>> 
>>> On Fri, Jun 10, 2011 at 01:31, Michael Hunger
>>>  wrote:
 Ian,
 
 can you share your project somehow at least config and the startup class? 
 What are eclipse and gwt plugin versions?
 
 M
 
 Sent from my iBrick4
 
 
 Am 10.06.2011 um 03:33 schrieb Ian Bussières :
 
> The web server is slightly ambiguous, because it's a GWT eclipse
> plugin that is used to run. I do believe it to be a Tomcat server. I'm
> trying to find a source that confirms that.
> 
> Nothing about OSGi, no... The messages.log looks ok, apart from a few
> non clean shutdowns but successful recoveries.
> 
> Ian Bussières
> Étudiant en Génie des Technologies de l'Information
> École de technologie supérieure
> [514] 814-0136
> 
> 
> 
> On Thu, Jun 9, 2011 at 21:03, Michael Hunger
>  wrote:
>> Ian,
>> 
>> is that web-server a stock tomcat or jetty or something running an OSGi 
>> environment?
>> 
>> So do you see something about OSGi containers being started in your 
>> console output (felix, equinox)?
>> 
>> Could you have a look at the messages.log file in your graphdb directory 
>> if it shows anything unusual?
>> 
>> Thanks
>> 
>> Michael
>> 
>> Am 10.06.2011 um 02:49 schrieb Ian Bussières:
>> 
>>> New buildpath, same problem.
>>> 
>>> C:\Users\Ian\Dev\PFE\pfe\src;C:\Users\Ian\Dev\PFE\pfe\lib;C:\Users\Ian\Dev\PFE\pfe\test-classes;C:\Users\Ian\Dev\PFE\pfe\war\WEB-INF\classes;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-user.jar;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-dev.jar;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\validation-api-1.0.0.GA-sources.jar;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\validation-api-1.0.0.GA.jar;C:\Users\Ian\Dev\PFE\pfe\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-community-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-graph-algo-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-jmx-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-kernel-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-lucene-index-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\lucene-core-3.1.0.jar;C:\Users\Ian\Dev\PFE\pfe\lib\org.apache.servicemix.bundles.jline-0.9.94_1.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-shell-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-udc-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\server-api-1.4.M03.jar
>>> 
>>> 
>>> 
>>> On Thu, Jun 9, 2011 at 20:32, Michael Hunger
>>>  wrote:
 Can you please try to remove the lucene-core-3.0.1. It is possible 
 that mixing two versions of lucene at the classpath messes things up.
 
 Cheers
 
 Michael
 
 Am 10.06.2011 um 02:27 schrieb Ian Bussières:
 
> Definitely on server side code.
> 
> I start up the application directly in eclipse with the built in web 
> server.
> 
> C:\Users\Ian\Dev\PFE\pfe\src;C:\Users\Ian\Dev\PFE\pfe\lib;C:\Users\Ian\Dev\PFE\pfe\test-classes;C:\Users\Ian\Dev\PFE\pfe\war\WEB-INF\classes;C:\Program
> Files 
> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-user.jar;C:\Program
> Files 
> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-dev.jar;C:\Program
> Files 
> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\validation-api-1.0.0.GA-sou

Re: [Neo4j] WebAdmin executing bad requests

2011-06-12 Thread Jim Webber
Hi Tatham,

>From your previous mail seems the REST API is working so at least some parts 
>of the server are coming up ok. Can you mail over your 
>conf/neo4j-server.properties as Michael suggested, and let us know:

Neo4j version
OS version (I'm assuming you're on Win 7)
Browser and version 

And we'll see if we can replicate the behaviour.

Jim

On 10 Jun 2011, at 02:05, Michael Hunger wrote:

> Tatham,
> 
> what version of neo4j-server are you running, and can you please post the 
> content of the conf/neo4j-server.properties file?
> 
> Thanks
> 
> Michael
> 
> Am 07.06.2011 um 04:20 schrieb Tatham Oddie:
> 
>> Howdy!
>> 
>> Neo4j n00b here ...
>> 
>> My /webadmin/ console loads but doesn't let me create nodes, relationships, 
>> or anything like that. It just fails silently.
>> 
>> I've noticed that when it's loading, it attempts to make an AJAX call to 
>> this address:
>> 
>> http://localhost:5105/http://localhost:5105/db/data/?_=1307412157988
>> 
>> You'll notice that it's malformed, and thus results in a 404.
>> 
>> Any tips on where I should go next?
>> 
>> 
>> --
>> Tatham Oddie
>> au mob: +61 414 275 989, us cell: +1 213 280 3556, skype: tathamoddie
>> If you're printing this email, you're doing it wrong. This is a computer, 
>> not a typewriter.
>> 
>> ___
>> 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] No index provider 'lucene' found

2011-06-12 Thread Ian Bussières
I was wondering if anybody had a workaround or fix to my issue.
Otherwise, is there a new or other way to accomplish indexing, as that
portion of work would take me very little time to recode.

Thanks !


2011/6/10 Ian Bussières :
> Here you go, took out src, war, lib, test, test-classes and also
> cleaned some of the stuff in the war folder. Oh and took out all the
> .jar files there too, otherwise this was just way to huge to share.
> Hope this will shine some light on the problem :S
>
>
> On Fri, Jun 10, 2011 at 07:18, Michael Hunger
>  wrote:
>> Eclipse .project and .classpath files.
>>
>> In general if you copy the project and remove all *.java files, that would 
>> be sufficient.
>>
>> Thanks so much
>>
>> Michael
>>
>> Am 10.06.2011 um 13:11 schrieb Ian Bussières:
>>
>>> GWT 2.3 and Eclipse Helios.
>>>
>>> I can't share too much information from the project itself, I suppose
>>> I could share the config stuff. What config are you referring to?
>>>
>>> --
>>> Ian Bussières
>>> Étudiant en Génie des Technologies de l'Information
>>> École de technologie supérieure
>>> [514] 814-0136
>>>
>>>
>>>
>>> On Fri, Jun 10, 2011 at 01:31, Michael Hunger
>>>  wrote:
 Ian,

 can you share your project somehow at least config and the startup class? 
 What are eclipse and gwt plugin versions?

 M

 Sent from my iBrick4


 Am 10.06.2011 um 03:33 schrieb Ian Bussières :

> The web server is slightly ambiguous, because it's a GWT eclipse
> plugin that is used to run. I do believe it to be a Tomcat server. I'm
> trying to find a source that confirms that.
>
> Nothing about OSGi, no... The messages.log looks ok, apart from a few
> non clean shutdowns but successful recoveries.
>
> Ian Bussières
> Étudiant en Génie des Technologies de l'Information
> École de technologie supérieure
> [514] 814-0136
>
>
>
> On Thu, Jun 9, 2011 at 21:03, Michael Hunger
>  wrote:
>> Ian,
>>
>> is that web-server a stock tomcat or jetty or something running an OSGi 
>> environment?
>>
>> So do you see something about OSGi containers being started in your 
>> console output (felix, equinox)?
>>
>> Could you have a look at the messages.log file in your graphdb directory 
>> if it shows anything unusual?
>>
>> Thanks
>>
>> Michael
>>
>> Am 10.06.2011 um 02:49 schrieb Ian Bussières:
>>
>>> New buildpath, same problem.
>>>
>>> C:\Users\Ian\Dev\PFE\pfe\src;C:\Users\Ian\Dev\PFE\pfe\lib;C:\Users\Ian\Dev\PFE\pfe\test-classes;C:\Users\Ian\Dev\PFE\pfe\war\WEB-INF\classes;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-user.jar;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-dev.jar;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\validation-api-1.0.0.GA-sources.jar;C:\Program
>>> Files 
>>> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\validation-api-1.0.0.GA.jar;C:\Users\Ian\Dev\PFE\pfe\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-community-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-graph-algo-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-jmx-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-kernel-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-lucene-index-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\lucene-core-3.1.0.jar;C:\Users\Ian\Dev\PFE\pfe\lib\org.apache.servicemix.bundles.jline-0.9.94_1.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-shell-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\neo4j-udc-1.4.M03.jar;C:\Users\Ian\Dev\PFE\pfe\lib\server-api-1.4.M03.jar
>>>
>>>
>>>
>>> On Thu, Jun 9, 2011 at 20:32, Michael Hunger
>>>  wrote:
 Can you please try to remove the lucene-core-3.0.1. It is possible 
 that mixing two versions of lucene at the classpath messes things up.

 Cheers

 Michael

 Am 10.06.2011 um 02:27 schrieb Ian Bussières:

> Definitely on server side code.
>
> I start up the application directly in eclipse with the built in web 
> server.
>
> C:\Users\Ian\Dev\PFE\pfe\src;C:\Users\Ian\Dev\PFE\pfe\lib;C:\Users\Ian\Dev\PFE\pfe\test-classes;C:\Users\Ian\Dev\PFE\pfe\war\WEB-INF\classes;C:\Program
> Files 
> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-user.jar;C:\Program
> Files 
> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\gwt-dev.jar;C:\Program
> Files 
> (x86)\Eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928\gwt-2.3.0\validation-api-1.0.0.GA-sources.jar;C:\Program
>

Re: [Neo4j] REST results pagination

2011-06-12 Thread Peter Neubauer
Good call James, Pierre and Marko.

Added the example to the plugin tests and documentation.

https://github.com/neo4j/neo4j-gremlin-plugin/commit/e9d02a14c091f8a5880613af55631041806bc6a7

/peter

Sent from my phone.
On Jun 12, 2011 7:56 PM, "James Thornton"  wrote:
> Gremlin makes sorting results easy...
>
> g.v(1).out.sort{it.lang}.reverse().toList()
>
> For more details, see this thread in the Gremlin Users group
> (https://groups.google.com/forum/#!topic/gremlin-users/A8bZHSOxgyA)
>
> - James
>
> http://jamesthornton.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] Cannot build neo4j-cypher-plugin

2011-06-12 Thread Peter Neubauer
Super,
the ImpermanentGraphDatabase.java is a test helper class and resides
as of a few days back in the neo4j kernel test artifact. A quick scan
with mvn dependency:tree gives you

[~/code/neo/build/community/cypher] $mvn dependency:tree
[INFO] Scanning for projects...
[INFO] 
[INFO] Building Neo4j - Cypher
[INFO]task-segment: [dependency:tree]
[INFO] 
[INFO] snapshot org.neo4j:neo4j-lucene-index:1.4-SNAPSHOT: checking
for updates from sonatype-nexus-snapshots
[INFO] snapshot org.neo4j:neo4j-graph-matching:1.4-SNAPSHOT: checking
for updates from sonatype-nexus-snapshots
[INFO] [dependency:tree {execution: default-cli}]
[INFO] org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
[INFO] +- org.scala-lang:scala-library:jar:2.9.0-1:compile
[INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile
[INFO] |  \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO] +- org.neo4j:neo4j-lucene-index:jar:1.4-SNAPSHOT:compile
[INFO] |  \- org.apache.lucene:lucene-core:jar:3.1.0:compile
[INFO] +- org.neo4j:neo4j-kernel:jar:1.4-SNAPSHOT:compile
[INFO] +- org.neo4j:neo4j-graph-matching:jar:1.4-SNAPSHOT:compile
[INFO] \- junit:junit:jar:4.8.2:test

where the latest version of

[INFO] +- org.neo4j:neo4j-kernel:jar:tests:1.4-SNAPSHOT:compile


should contain that class. Could you check that?




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 Sun, Jun 12, 2011 at 5:50 AM, Super Wang  wrote:
> Maybe same problem here:
>
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model
> for org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT
> [WARNING] 'parent.relativePath' points at org.neo4j.build:community-build
> instead of org.neo4j:parent-central, please verify your project structure @
> line 3, column 11
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> [WARNING]
> [INFO]
>
> [INFO]
> 
> [INFO] Building Neo4j - Cypher 1.4-SNAPSHOT
> [INFO]
> 
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ neo4j-cypher
> ---
> [INFO]
> [INFO] --- maven-license-plugin:1.9.0:check (check-licenses) @ neo4j-cypher
> ---
> [INFO] Checking licenses...
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
> neo4j-cypher ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> E:\git\neo4j.community\cypher\src\main\resources
> [INFO] skip non existing resourceDirectory
> E:\git\neo4j.community\cypher\src\main\resources\META-INF
> [INFO] Copying 3 resources to META-INF
> [INFO]
> [INFO] --- maven-scala-plugin:2.15.2:compile (default) @ neo4j-cypher ---
> [INFO] Checking for multiple versions of scala
> [INFO] includes = [**/*.scala,**/*.java,]
> [INFO] excludes = []
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> neo4j-cypher ---
> [INFO] Compiling 3 source files to
> E:\git\neo4j.community\cypher\target\classes
> [INFO]
> [INFO] --- maven-scala-plugin:2.15.2:compile (compile) @ neo4j-cypher ---
> [INFO] Checking for multiple versions of scala
> [INFO] includes = [**/*.scala,**/*.java,]
> [INFO] excludes = []
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-bundle-plugin:2.1.0:manifest (bundle-manifest) @
> neo4j-cypher ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:testResources
> (default-testResources) @ neo4j-cypher ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> E:\git\neo4j.community\cypher\src\test\resources
> [INFO] Copying 3 resources to META-INF
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
> neo4j-cypher ---
> [INFO] Compiling 1 source file to
> E:\git\neo4j.community\cypher\target\test-classes
> [INFO] -
> [ERROR] COMPILATION ERROR :
> [INFO] -
> [ERROR]
> \git\neo4j.community\cypher\src\test\java\org\neo4j\cypher\javacompat\JavaExecutionEngineTests.java:[29,21]
> 找不到符

Re: [Neo4j] Cannot execute Cypher

2011-06-12 Thread Peter Neubauer
Mmh,
that is strange. Btw, the cypher console is running against the
build-in console service, and the cypher-plugin is only for the REST
representation.

What browser are you running?

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 Sun, Jun 12, 2011 at 8:33 AM, Pierre De Wilde
 wrote:
> Hey,
>
> I have built and installed neo4-cypher-script in neo4j/plugins but Cypher
> returns nothing from webadmin console:
>
>>start n=(0) return n
>>
>
> Gremlin works correctly:
>
> gremlin>g.v(0)
> ==> v[0]
>
> Both Cypher and Gremlin plugins are installed as extensions:
>
> http://localhost:7474/db/data/
> {
>
>  "relationship_index" : "http://localhost:7474/db/data/index/relationship";,
>  "node" : "http://localhost:7474/db/data/node";,
>  "relationship_types" : "http://localhost:7474/db/data/relationship/types";,
>  "extensions_info" : "http://localhost:7474/db/data/ext";,
>  "node_index" : "http://localhost:7474/db/data/index/node";,
>  "reference_node" : "http://localhost:7474/db/data/node/0";,
>  "extensions" : {
>    "CypherPlugin" : {
>      "execute_query" :
> "http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query";
>    },
>    "GremlinPlugin" : {
>      "execute_script" :
> "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
>    }
>  }
> }
>
> Pierre
> ___
> 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] Cannot find a path

2011-06-12 Thread Josh Adell
Hello all,

I recently began exploring Neo4j REST interface, and I am having a problem
finding paths between nodes.
I am using neo4j-community-1.4.M03

My nodes and relationships look like this (verified using the webadmin
interface):

(1: Node A) IN> (3: Node C) 

Re: [Neo4j] REST results pagination

2011-06-12 Thread James Thornton
Gremlin makes sorting results easy...

g.v(1).out.sort{it.lang}.reverse().toList()

For more details, see this thread in the Gremlin Users group
(https://groups.google.com/forum/#!topic/gremlin-users/A8bZHSOxgyA)

- James

http://jamesthornton.com/
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] traversing backwards to reference node

2011-06-12 Thread Marko Rodriguez
Hi,

In Gremlin (http://gremlin.tinkerpop.com), you can do:

startSet = [ ... ] // fill an array/set with leaves.
startSet.in.sideEffect{it.myProperty = 'blah'}.loop(2){true}

In this code, it assumes no cycles in the graph and that the root of the tree 
as no incoming edges. 

---

If you are using Gremlin 1.1-SNAPSHOT (all pumped up on it), you can do:

startSet.as('x').in.sideEffect{it.myProperty='blah'}.loop('x'){true}

Finally: if you have lots and lots of data, then you will want to not have 
AUTOMATIC transactions and will want to put the graph into MANUAL transaction 
mode before you start the traversal. I can say more if you are interested.

See ya,
Marko.

http://markorodriguez.com

On Jun 11, 2011, at 9:42 PM, Matt C wrote:

> Hey all, I'm new to Neo4j and I'm really liking it.  I'm not sure if its the
> right tool for my particular job though.  I'd like to model a rather larse
> filesystem (multi-petabyte) and use it to overlay additional metadata or
> info.  The nice thing about neo4j is that if someone moves deeply nested
> data, all I have to do is update a relationship to point somewhere else.
> 
> I'm wondering if anyone can show me a traversal method that will walk
> backwards to the reference node, adding a "name" property to a list as it
> goes.
> 
> -Matt
> ___
> 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] traversing backwards to reference node

2011-06-12 Thread Rick Bullotta
BTW, we use a similar technique in our domain model to dynamically build a URI 
for any entity in our system, which corresponds to the REST API URI for that 
entity.  As an example:

A blog entry "XXX" is an entry (relationship = BlogEntry) in a blog named "YYY" 
which is in the collection of things named "Blogs" (relationship = Blog) which 
in an application named "ThingWorx" (relationship = Blogs).  By walking this 
hierarchy, similar to walking a filesystem, we can generate a URI such as:  
/Thingworx/Blogs/YYY/BlogEntry/XXX.

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Matt C
Sent: Saturday, June 11, 2011 11:42 PM
To: Neo4j user discussions
Subject: [Neo4j] traversing backwards to reference node

Hey all, I'm new to Neo4j and I'm really liking it.  I'm not sure if its the
right tool for my particular job though.  I'd like to model a rather larse
filesystem (multi-petabyte) and use it to overlay additional metadata or
info.  The nice thing about neo4j is that if someone moves deeply nested
data, all I have to do is update a relationship to point somewhere else.

I'm wondering if anyone can show me a traversal method that will walk
backwards to the reference node, adding a "name" property to a list as it
goes.

-Matt
___
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] traversing backwards to reference node

2011-06-12 Thread Rick Bullotta
There is no "generic" way to do this that would provide the semantically 
correct traversal for you, but depending on how you've modeled your 
relationships and nodes, it should be fairly easy to do.  The trickier part 
will be dealing with backwards traversals if you allow "file" nodes to be 
multiply linked to more than one parent directory.  If that's not the case, you 
should be able to just to a traversal on the directory -> file relationship, 
and add the "name"(s) to a HashSet or ArrayList as you do.  The other question 
is whether you might need to create unique or full qualified file names as you 
do (e.g. include the full path name?).

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Matt C
Sent: Saturday, June 11, 2011 11:42 PM
To: Neo4j user discussions
Subject: [Neo4j] traversing backwards to reference node

Hey all, I'm new to Neo4j and I'm really liking it.  I'm not sure if its the
right tool for my particular job though.  I'd like to model a rather larse
filesystem (multi-petabyte) and use it to overlay additional metadata or
info.  The nice thing about neo4j is that if someone moves deeply nested
data, all I have to do is update a relationship to point somewhere else.

I'm wondering if anyone can show me a traversal method that will walk
backwards to the reference node, adding a "name" property to a list as it
goes.

-Matt
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Error(s) found in manifest configuration when trying to import community/pom.xml

2011-06-12 Thread Chris Gioran
Hi there,

the problem is the maven version you are using - Neo4j does not work
well with mvn 3. The exact same steps are successful with my setup
which is the same but for maven 2.2.1
I suggest you downgrade your maven install or create an environment
for Neo4j that uses mvn 2, until we become maven 3 compatible.

cheers,
CG

On Sun, Jun 12, 2011 at 4:55 AM, Super Wang  wrote:
> Hi folks,
>
> I found some warnings and errors when trying to import neo4j maven project
> to my eclipse, here's my steps:
>
> 1. Clone git://github.com/neo4j/community.git to
> local E:\git\neo4j.community
> 2. Go to eclipse and using Import -> Exist Maven Projects and point
> to E:\git\neo4j.community\pom.xml
> 3. Let it import.
> 4. After done, I got two projects with "Error(s) found in manifest
> configuration" errors: neo4j-server and neo4j-sunshine, below is same part
> of  the eclipse console log
>
> 11-6-12 上午09时29分17秒: [WARN]
> 11-6-12 上午09时29分17秒: [WARN] Some problems were encountered while building
> the effective model for org.neo4j:neo4j-sunshine:jar:1.4-SNAPSHOT
> 11-6-12 上午09时29分17秒: [WARN] 'parent.relativePath' points at
> org.neo4j.build:community-build instead of org.neo4j:parent-central, please
> verify your project structure @ line 3, column 11
> 11-6-12 上午09时29分17秒: [WARN]
> 11-6-12 上午09时29分17秒: [WARN] It is highly recommended to fix these problems
> because they threaten the stability of your build.
> 11-6-12 上午09时29分17秒: [WARN]
> 11-6-12 上午09时29分17秒: [WARN] For this reason, future Maven versions might no
> longer support building such malformed projects.
> 11-6-12 上午09时29分17秒: [WARN]
> 11-6-12 上午09时29分17秒: [INFO] Checking licenses...
> 11-6-12 上午09时29分17秒: [INFO] Using 'UTF-8' encoding to copy filtered
> resources.
> 11-6-12 上午09时29分17秒: [INFO] skip non existing resourceDirectory
> E:\git\neo4j.community\sunshine\src\main\resources
> 11-6-12 上午09时29分17秒: [INFO] skip non existing resourceDirectory
> E:\git\neo4j.community\sunshine\src\main\resources\META-INF
> 11-6-12 上午09时29分17秒: [INFO] Copying 0 resource to META-INF
> 11-6-12 上午09时29分17秒: [INFO] Checking for multiple versions of scala
> 11-6-12 上午09时29分17秒: [INFO] includes = [**/*.scala,**/*.java,]
> 11-6-12 上午09时29分17秒: [INFO] excludes = []
> 11-6-12 上午09时29分17秒: [INFO] Nothing to compile - all classes are up to date
> 11-6-12 上午09时29分18秒: [INFO] Nothing to compile - all classes are up to date
> 11-6-12 上午09时29分18秒: [INFO] Checking for multiple versions of scala
> 11-6-12 上午09时29分18秒: [INFO] includes = [**/*.scala,**/*.java,]
> 11-6-12 上午09时29分18秒: [INFO] excludes = []
> 11-6-12 上午09时29分18秒: [INFO] Nothing to compile - all classes are up to date
> 11-6-12 上午09时29分18秒: [ERROR] Error in manifest for
> org.neo4j:neo4j-sunshine:jar:1.4-SNAPSHOT : The default package '.' is not
> permitted by the Import-Package syntax.
>  This can be caused by compile errors in Eclipse because Eclipse creates
> valid class files regardless of compile errors.
> The following package(s) import from the default package
> [org.neo4j.sunshine.javacompat]
> 11-6-12 上午09时29分18秒: [ERROR] Error(s) found in manifest configuration
> 11-6-12 上午09时29分18秒: Build errors for neo4j-sunshine;
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.felix:maven-bundle-plugin:2.1.0:manifest (bundle-manifest)
> on project neo4j-sunshine: Error(s) found in manifest configuration
> 11-6-12 上午09时29分18秒: [ERROR] Error in manifest for
> org.neo4j:neo4j-sunshine:jar:1.4-SNAPSHOT : The default package '.' is not
> permitted by the Import-Package syntax.
>  This can be caused by compile errors in Eclipse because Eclipse creates
> valid class files regardless of compile errors.
> The following package(s) import from the default package
> [org.neo4j.sunshine.javacompat]
> 11-6-12 上午09时29分18秒: [ERROR] Error(s) found in manifest configuration
>
> Any idea about this?
>
> BTW, I'm using eclipse 3.6.2 with maven 3.0.3.
> ___
> 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