Re: [Neo4j] Cypher DSL and QueryDSL

2011-11-04 Thread Peter Neubauer
I like,
very cool Rickard! Is this in a doc-able state so we could add a test
for the manual in the Cypher section?

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 Thu, Nov 3, 2011 at 10:05 PM, Rickard Öberg
 wrote:
> Hi,
>
> I have made a first stab at integrating the new Cypher DSL with
> QueryDSL(.com). The first feature is simply being able to use QueryDSL
> expressions in the WHERE clause. Example:
> QPerson person = QPerson.person;
> Assert.assertEquals( "START person=node(1,2,3) WHERE
> person.firstName=\"P\" and person.age>25 RETURN person",
>                      CypherQueryDSL.start( node( "person", 1, 2, 3 ) )
>                          .where( person.firstName.eq( "P" ).and(
> person.age.gt( 25 ) ) )
>                          .returns( nodes( "person" ) )
>                          .toString() );
> ---
> QPerson is a generated class from QueryDSL, and comes from a simple Java
> class Person that has two fields. With that I can then construct the
> WHERE expression quite easily, as is shown above.
>
> And that's about it! Very straightforward. Look at the Cypher DSL in
> GitHub for example on how to set it up, and what Maven dependencies you
> need to use it.
>
> /Rickard
>
> --
> Rickard Öberg
> Developer
> Neo Technology
> Twitter: @rickardoberg, Skype: rickardoberg
> ___
> 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] Cypher DSL and QueryDSL

2011-11-04 Thread Rickard Öberg
On 11/4/11 15:18 , Peter Neubauer wrote:
> I like,
> very cool Rickard! Is this in a doc-able state so we could add a test
> for the manual in the Cypher section?

Well, the whole thing is very much subject to change, but it could still 
be doc'ed to some extent.

/Rickard

-- 
Rickard Öberg
Developer
Neo Technology
Twitter: @rickardoberg, Skype: rickardoberg
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cypher syntax feedback wanted

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 7:11 AM, KanTube  wrote:

> i am just a little confused on this.  are you going to still keep the
> syntax
> with a ":" for relationship ie.
>
> START n=node(3)
> MATCH (n)-[:BLOCKS]->(x)
> RETURN x
>
> and then if you wanted to have a more complex match you would do something
> like
>
> START n=node(3)
> MATCH (n)-[r : WHERE BLOCKS && r.someprop = 'somevalue']->(x)
> RETURN x
>

No, this is in addition to the relationship type specification. You query
would look like:

START n=node(3)
MATCH (n)-[r:BLOCKS WHERE r.someprop = 'somevalue']->(x)
RETURN x

But this is semantically equivalent to checking someprop in the WHERE
clause. Having a WHERE inside of the relationship brackets is
only necessary for optional relationships - in all other cases it is
preferable to put the predicate in the WHERE clause.

Does that make sense?

Andrés
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Exception when converting older graph

2011-11-04 Thread Mattias Persson
1.5 will (unlike 1.5.M02) be able to detect this.

2011/11/4 Romiko Derbynew 

> Hi Guys,
>
> Is it possible to fix this in future release or not, this means in the
> event of a unclean shutdown, a regression is needed or is it possible to
> had detection if the old db was not shutdown cleanly and improve the error
> message?
>
> -Original Message-
> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org]
> On Behalf Of Mattias Persson
> Sent: Thursday, 27 October 2011 2:12 AM
> To: Neo4j user discussions
> Subject: Re: [Neo4j] Exception when converting older graph
>
> Hi,
>
> did you open it after a clean shutdown of the 1.4.M05 store? Because it
> will auto upgrade the store to a 1.5 format, but there's a problem of
> detecting store version in 1.5.M02 if you try to open it after a non-clean
> shutdown.
>
> 2011/10/26 Paul A. Jackson 
>
> > I have a graph that was created with 1.4.M05 that I am trying to open
> > with 1.5.M02. Is this supported?
> >
> > I get this exception:
> > Caused by: org.neo4j.graphdb.TransactionFailureException: Could not
> > create data source [nioneodb], see nested exception for cause of error
> >at
> >
> org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:153)
> >at
> > org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:112)
> >at
> > org.neo4j.kernel.EmbeddedGraphDbImpl.(EmbeddedGraphDbImpl.java:190)
> >at
> >
> org.neo4j.kernel.EmbeddedGraphDatabase.(EmbeddedGraphDatabase.java:80)
> >at
> com.g1.dcg.graph.neo4j.NeoGraph.(NeoGraph.java:124)
> >... 42 more
> > Caused by: java.lang.IllegalArgumentException
> >at java.nio.Buffer.limit(Buffer.java:249)
> >at
> >
> org.neo4j.kernel.impl.nioneo.xa.Command.readDynamicRecord(Command.java:253)
> >at
> >
> org.neo4j.kernel.impl.nioneo.xa.Command$RelationshipTypeCommand.readCommand(Command.java:957)
> >at
> > org.neo4j.kernel.impl.nioneo.xa.Command.readCommand(Command.java:1004)
> >at
> >
> org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource$CommandFactory.readCommand(NeoStoreXaDataSource.java:302)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils.readTxCommandEntry(LogIoUtils.java:157)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils.readLogEntry(LogIoUtils.java:99)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils.readEntry(LogIoUtils.java:76)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.readEntry(XaLogicalLog.java:866)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.doInternalRecovery(XaLogicalLog.java:796)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:238)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:192)
> >at
> >
> org.neo4j.kernel.impl.transaction.xaframework.XaContainer.openLogicalLog(XaContainer.java:97)
> >at
> >
> org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.(NeoStoreXaDataSource.java:147)
> >at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> >at
> >
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >at
> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> >at
> >
> org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:75)
> >at
> >
> org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:147)
> >... 46 more
> >
> > The values in the readDynamicRecord method at the time of the call are:
> > static = org.neo4j.kernel.impl.nioneo.xa.Command
> > byteChannel = {org.neo4j.kernel.impl.util.BufferedFileChannel@53535}
> > buffer =
> > {java.nio.DirectByteBuffer@33560}"java.nio.DirectByteBuffer[pos=12
> > lim=12 cap=713]"
> > id = 1
> > type = 0
> > inUseFlag = 1
> > inUse = true
> > record = {org.neo4j.kernel.impl.nioneo.store.DynamicRecord@63952
> > }"DynamicRecord[1,true,isLight,-1]"
> > nrOfBytes = -1
> > nextBlock = -4294967280
> >
> > Thanks.
> >
> > Paul Jackson, Principal Software Engineer Pitney Bowes Business
> > Insight
> > 4200 Parliament Place | Suite 600 | Lanham, MD  20706-1844  USA
> > O: 301.918.0850 | M: 703.862.0120 | www.pb.com paul.jack...@pb.com
> >
> > Every connection is a new opportunity(tm)
> >
> >
> >
> > Please consider the environment before printing or forwarding this email.
> > If you do print this email, please recycle the paper.
> >
> > This email message may co

Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Daniel Yokomizo
On Nov 4, 2011 3:11 AM, "Rickard Öberg" 
wrote:
>
> Hi,
>
> I've briefly started to look at how to map Cypher query results into
> DTO's. I'm using the QueryDSL helper classes to do it, but instead of
> putting the projection methods into the query object (as QueryDSL does
> it), I have a separate Projection class for it. The reason is that I
> don't want to require DSL users to have access to the execution engine,
> which will obviously not be the case if you are creating queries on the
> client which are to be sent to the server.
>
> Here's an example of what I want it to look like when used:
> Projection projection = new Projection(engine);
>
> Iterable friends = projection.iterable( start( node( "john",
> john ) )
>   .match( path().from( "john" ).out( "friend" )
>   .link().out( "friend" ).to( "fof" ) )
>   .returns( properties( "john.name", "fof.name" ) ),
> Friend.class );
> System.out.println( friends );
> ---
> So the Projection encapsulates the reference to the query execution,
> which means that you don't need to have a reference to it when executing
> the queries to do the projection. The "iterable" method takes a DSL
> query and the Java class you want the results to be projected into.
> Pretty straightforward.
>
> For now the code assumes that the fields in Friend is the same as the
> order of the return results. This is broken, and will be fixed later to
> use proper mapping, preferably with aliases in the return statement as
> hints.
>
> What are the projection methods that you would like to see? What are
> common usecases?

Supporting @java.beans.ConstructorProperties is nice because we can use
immutable objects as dtos.

> /Rickard
>
> --
> Rickard Öberg
> Developer
> Neo Technology
> Twitter: @rickardoberg, Skype: rickardoberg
> ___
> 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] Cypher DSL and result mapping

2011-11-04 Thread Rickard Öberg
On 11/4/11 17:29 , Daniel Yokomizo wrote:
>> What are the projection methods that you would like to see? What are
>> common usecases?
>
> Supporting @java.beans.ConstructorProperties is nice because we can use
> immutable objects as dtos.

Right, that is a good point, and that will definitely be supported.

I was more thinking about what kind of ways do you want to transform the 
result to objects. QueryDSL has a TON of methods, most of which I think 
are mixing concepts wildly:
http://www.querydsl.com/static/querydsl/2.2.3/apidocs/com/mysema/query/Projectable.html

The methods with "distinct", for example, are done by the DSL itself, 
rather than in the projection. Similarly, "unique" and "single" I think 
are probably better done by using a functional library on top of an 
Iterable (this is available in Qi4j, and most other functional libraries 
that work with Iterables as well), i.e. no need to add to the basic 
interface.

But are there other legitimate ways of transforming the result to 
objects? Or is iterable(result,resultType) enough?

/Rickard

-- 
Rickard Öberg
Developer
Neo Technology
Twitter: @rickardoberg, Skype: rickardoberg
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Tobias Ivarsson
I started a prototype for something similar a while back:
https://github.com/thobe/neo4j-community-experiments/tree/cypher-annotations

It has a different approach to constructing queries, it uses annotations
with query strings in them, but uses compile time annotation processing to
process those annotations in order to verify syntax. In the future (when
Cypher supports it) I'd like to do type checking as well.

What it has that is similar though is the way it converts the result to
java classes. I know that Spring-Data-Neo4j does similar things as well.
Since that kind of conversion seems to be something that multiple higher
level libraries do, it would probably make sense to move it to a shared
place.

Note please that this branch is just three hours worth of throwing some
ideas together, it's not complete, but should at least display the ideas.

-tobias

On Fri, Nov 4, 2011 at 6:10 AM, Rickard Öberg <
rickard.ob...@neotechnology.com> wrote:

> Hi,
>
> I've briefly started to look at how to map Cypher query results into
> DTO's. I'm using the QueryDSL helper classes to do it, but instead of
> putting the projection methods into the query object (as QueryDSL does
> it), I have a separate Projection class for it. The reason is that I
> don't want to require DSL users to have access to the execution engine,
> which will obviously not be the case if you are creating queries on the
> client which are to be sent to the server.
>
> Here's an example of what I want it to look like when used:
> Projection projection = new Projection(engine);
>
> Iterable friends = projection.iterable( start( node( "john",
> john ) )
>   .match( path().from( "john" ).out( "friend" )
>   .link().out( "friend" ).to( "fof" ) )
>   .returns( properties( "john.name", "fof.name" ) ),
> Friend.class );
> System.out.println( friends );
> ---
> So the Projection encapsulates the reference to the query execution,
> which means that you don't need to have a reference to it when executing
> the queries to do the projection. The "iterable" method takes a DSL
> query and the Java class you want the results to be projected into.
> Pretty straightforward.
>
> For now the code assumes that the fields in Friend is the same as the
> order of the return results. This is broken, and will be fixed later to
> use proper mapping, preferably with aliases in the return statement as
> hints.
>
> What are the projection methods that you would like to see? What are
> common usecases?
>
> /Rickard
>
> --
> Rickard Öberg
> Developer
> Neo Technology
> Twitter: @rickardoberg, Skype: rickardoberg
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Tobias Ivarsson 
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857 (Swe); +1 650 450 3806 (US)
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Tobias Ivarsson
On Fri, Nov 4, 2011 at 10:45 AM, Rickard Öberg <
rickard.ob...@neotechnology.com> wrote:

> On 11/4/11 17:29 , Daniel Yokomizo wrote:
> >> What are the projection methods that you would like to see? What are
> >> common usecases?
> >
> > Supporting @java.beans.ConstructorProperties is nice because we can use
> > immutable objects as dtos.
>
> Right, that is a good point, and that will definitely be supported.
>

+1, a really good suggestion. I'm not a big fan of that annotation per se,
it would have been nicer to annotate each parameter individually, but it is
standardized which makes it VERY compelling.

-- 
Tobias Ivarsson 
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857 (Swe); +1 650 450 3806 (US)
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Python embedding: problems with shutdown and threads

2011-11-04 Thread Jacob Hansson
I've just pushed an update to handle the attachThreadToJVM stuff
automatically, I ran your test, Michael, on the DB after that, and it seems
to shut down properly. You may want to double check though.

You can build this now, by checking out
https://github.com/neo4j/python-embedded/ and following the instructions in
the readme.


This will be part of the 1.5 release, which is currently a delayed, but can
probably be expected within a week or two.

/Jake

On Thu, Nov 3, 2011 at 4:48 PM, Johan Lundberg  wrote:

> On 2011-11-03 11:08, Jacob Hansson wrote:
> > On Thu, Nov 3, 2011 at 6:55 AM, Tim McNamara <
> paperl...@timmcnamara.co.nz>wrote:
> >
> >> Here are a few notes of my own from using Neo4j with Python embedded.
> >> I know that this isn't the right place .
> >>
> >> Ubuntu doesn't set $JAVA_HOME. I ended up hard coding the location of my
> >> JVM.
> >>
> >> I seem to encounter unclean shutdowns all the time when running with
> >> the iPython REPL. Is there a db.shutdown() command that I've been
> >> neglecting to use?
> >>
> >
> > Yeah, as long as you call db.shutdown(), things should be ok. See here:
> >
> >
> http://docs.neo4j.org/chunked/snapshot/python-embedded-reference-core.html
> >
> >
> > We should perhaps set up the db to shut itself down properly
> automatically
> > if it detects that python is shutting down.. We decided against that
> > before, since we felt like "we don't own the application lifecycle".
> WDYT?
> >
>
> I found this snippet to work great for my modules:
> def _close_db():
>try:
>neo4jdb.shutdown()
>except NameError:
>print 'Could not shutdown Neo4j database. Is it open in \
> another process?'
>
> import atexit
> atexit.register(_close_db)
>
>
This looks like a good option, I'll create an issue for adding this.

/Jake


> >
> >>
> >> Tim
> >>
> >>
> >> On 3 November 2011 17:28, Michael Rene Armida  wrote:
> >>> I'm having some weird problems with threading on shutdown.  As I
> >> previously
> >>> discovered, using neo4j in a multi-threaded Python app requires
> complete
> >>> segregation of neo4j into a single thread.  That all works fine for
> >>> creating a database, however, it appears that shutting one down is a
> bit
> >> of
> >>> a mystery.  I wrote a test program to minimally illustrate the
> >> difficulty:
> >>>
> >>> http://pastebin.com/gg204kae
> >>>
> >>> Threading is always easy to get wrong, so I added a simple switch to
> >> remove
> >>> neo4j from the picture.  When I disable neo, the program starts up and
> >>> shuts down cleanly.  When I re-enable neo, some of the print statements
> >>> never get run, and the app mysteriously exits.
> >>>
> >>> I am testing this by saving it into a script and running it on the
> >> command
> >>> line.  Any time after the worker thread finishes creating the neo db, I
> >> hit
> >>> ctrl-c, and the two scenarios play out as above.
> >>>
> >>> It seems that the embedded Python API is not exactly at the forefront
> of
> >>> popular use, and so I understand if nobody knows what's up with this.
>  I
> >>> just thought I should add something, for the record.  I hope my script
> >>> doesn't have an obvious bug.
> >>>
> >>> Thanks,
> >>> Michael
> >>
> >
> > I had a discussion with Tobias this morning about threading with JPype,
> and
> > am currently writing a fix that will allow full threading support for
> > neo4j-embedded.
> >
> > I'll make sure to run this script as well after that fix is implemented,
> to
> > make sure it gets fixed as well.
> >
> > As far as the forefront of use goes, there is a surprising amount of pypy
> > downloads of neo4j-embedded (4000 new installs in the last 30 days), so
> the
> > feedback you are providing here is gonna end up helping a lot of people
> :)
> > Thank you so much for taking the time to document the issues you are
> having.
> >
> > /jake
> >
> >
> >>> ___
> >>> 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
> >>
> >
> >
> >
>
>
> --
> Johan Lundberg
> NORDUnet A/S
> lundb...@nordu.net
> +46730714375
> Tulegatan 11
> 113 53 Stockholm
> Sweden
> ___
> 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] Paper: G2 : A Graph Processing System for Diagnosing Distributed Systems

2011-11-04 Thread Laurent Laborde
interesting article.
Could it be stored in neo4j ? :)

http://highscalability.com/blog/2011/11/3/paper-g2-a-graph-processing-system-for-diagnosing-distribute.html

(i hadn't time to read the paper yet, just the article)

-- 
Laurent "ker2x" Laborde
Sysadmin & DBA at http://www.over-blog.com/
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Cypher question

2011-11-04 Thread jschweigl
Hi all,

Being a newbie to neo4j/Cypher, didn't come to a solution myself, so I try
it here: how can I query for a set of nodes which have no incoming relation
of a specific type? Something like 

START callee=node:node_auto_index('type:*Service') MATCH 
p=(caller)-[:CALLS]->(callee) 
RETURN p

just that I want callees which have no caller. Any hints?

Best regards
Johann

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3479960.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] Cypher question

2011-11-04 Thread Andres Taylor
Hi Johann,

There's a workaround that works, but it's not as nice as I'd like it to be.
What you can do is this:

START callee=node:node_auto_index('type:*Service')
MATCH p=(caller)-[r?:CALLS]->(callee)
WHERE r IS NULL
RETURN p

It solves your problem with optional relationships.

HTH,

Andrés

On Fri, Nov 4, 2011 at 1:27 PM, jschweigl  wrote:

> Hi all,
>
> Being a newbie to neo4j/Cypher, didn't come to a solution myself, so I try
> it here: how can I query for a set of nodes which have no incoming relation
> of a specific type? Something like
>
> START callee=node:node_auto_index('type:*Service') MATCH
> p=(caller)-[:CALLS]->(callee)
> RETURN p
>
> just that I want callees which have no caller. Any hints?
>
> Best regards
> Johann
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3479960.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] Cypher question

2011-11-04 Thread jschweigl
Thanks Andres!

I already tried the optional relationship thing, but not the WHERE clause.
However, there is a problem which I have with or without the WHERE (I'm
using neo4j 1.5M02):

START callee=node:node_auto_index('type:*Service') MATCH
p=(caller)-[r?:CALLS]->(callee) WHERE r IS NULL RETURN p

Exception in thread "main" java.lang.AssertionError: assertion failed
at scala.Predef$.assert(Predef.scala:89)
at org.neo4j.cypher.PathImpl.(PathImpl.scala:34)
at
org.neo4j.cypher.pipes.NamedPathPipe$$anonfun$foreach$1.apply(NamedPathPipe.scala:50)
at
org.neo4j.cypher.pipes.NamedPathPipe$$anonfun$foreach$1.apply(NamedPathPipe.scala:39)
at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(MatchPipe.scala:37)
at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(MatchPipe.scala:37)
at
scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1.apply(MatchPipe.scala:37)
at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1.apply(MatchPipe.scala:36)
at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(StartPipe.scala:36)
at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(StartPipe.scala:35)
at scala.collection.Iterator$class.foreach(Iterator.scala:652)
at
scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:573)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:73)
at
scala.collection.JavaConversions$JIterableWrapper.foreach(JavaConversions.scala:587)
at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1.apply(StartPipe.scala:35)
at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1.apply(StartPipe.scala:34)
at org.neo4j.cypher.pipes.ParameterPipe.foreach(ParameterPipe.scala:27)
at org.neo4j.cypher.pipes.StartPipe.foreach(StartPipe.scala:34)
at org.neo4j.cypher.pipes.MatchPipe.foreach(MatchPipe.scala:36)
at org.neo4j.cypher.pipes.NamedPathPipe.foreach(NamedPathPipe.scala:39)
at 
scala.collection.TraversableLike$class.filter(TraversableLike.scala:212)
at org.neo4j.cypher.pipes.Pipe.filter(Pipe.scala:31)
at org.neo4j.cypher.pipes.FilterPipe.foreach(FilterPipe.scala:30)
at org.neo4j.cypher.pipes.TransformPipe.foreach(TransformPipe.scala:38)
at
org.neo4j.cypher.pipes.ColumnFilterPipe.foreach(ColumnFilterPipe.scala:34)
at 
scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
at 
scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:128)
at 
scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:242)
at org.neo4j.cypher.pipes.Pipe.toList(Pipe.scala:31)
at
org.neo4j.cypher.ExecutionResult$class.dumpToString(ExecutionResult.scala:61)
at
org.neo4j.cypher.ExecutionEngine$$anon$1.dumpToString(ExecutionEngine.scala:119)
at sandbox.GraphQuery.doQuery(GraphQuery.java:85)
at sandbox.GraphQuery.run(GraphQuery.java:73)
at sandbox.GraphQuery.main(GraphQuery.java:30)


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3479986.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] Cypher question

2011-11-04 Thread Andres Taylor
It's a known (and solved) problem. You can either update to snapshot, or
just reverse your path description:

MATCH p=(callee)<-[r?:CALLS]-(caller)

Sorry about that...

Andrés

On Fri, Nov 4, 2011 at 1:42 PM, jschweigl  wrote:

> Thanks Andres!
>
> I already tried the optional relationship thing, but not the WHERE clause.
> However, there is a problem which I have with or without the WHERE (I'm
> using neo4j 1.5M02):
>
> START callee=node:node_auto_index('type:*Service') MATCH
> p=(caller)-[r?:CALLS]->(callee) WHERE r IS NULL RETURN p
>
> Exception in thread "main" java.lang.AssertionError: assertion failed
>at scala.Predef$.assert(Predef.scala:89)
>at org.neo4j.cypher.PathImpl.(PathImpl.scala:34)
>at
>
> org.neo4j.cypher.pipes.NamedPathPipe$$anonfun$foreach$1.apply(NamedPathPipe.scala:50)
>at
>
> org.neo4j.cypher.pipes.NamedPathPipe$$anonfun$foreach$1.apply(NamedPathPipe.scala:39)
>at
>
> org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(MatchPipe.scala:37)
>at
>
> org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(MatchPipe.scala:37)
>at
>
> scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
>at scala.collection.immutable.List.foreach(List.scala:45)
>at
>
> org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1.apply(MatchPipe.scala:37)
>at
>
> org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1.apply(MatchPipe.scala:36)
>at
>
> org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(StartPipe.scala:36)
>at
>
> org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(StartPipe.scala:35)
>at scala.collection.Iterator$class.foreach(Iterator.scala:652)
>at
>
> scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:573)
>at
> scala.collection.IterableLike$class.foreach(IterableLike.scala:73)
>at
>
> scala.collection.JavaConversions$JIterableWrapper.foreach(JavaConversions.scala:587)
>at
>
> org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1.apply(StartPipe.scala:35)
>at
>
> org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1.apply(StartPipe.scala:34)
>at
> org.neo4j.cypher.pipes.ParameterPipe.foreach(ParameterPipe.scala:27)
>at org.neo4j.cypher.pipes.StartPipe.foreach(StartPipe.scala:34)
>at org.neo4j.cypher.pipes.MatchPipe.foreach(MatchPipe.scala:36)
>at
> org.neo4j.cypher.pipes.NamedPathPipe.foreach(NamedPathPipe.scala:39)
>at
> scala.collection.TraversableLike$class.filter(TraversableLike.scala:212)
>at org.neo4j.cypher.pipes.Pipe.filter(Pipe.scala:31)
>at org.neo4j.cypher.pipes.FilterPipe.foreach(FilterPipe.scala:30)
>at
> org.neo4j.cypher.pipes.TransformPipe.foreach(TransformPipe.scala:38)
>at
> org.neo4j.cypher.pipes.ColumnFilterPipe.foreach(ColumnFilterPipe.scala:34)
>at
> scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
>at
> scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:128)
>at
> scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:242)
>at org.neo4j.cypher.pipes.Pipe.toList(Pipe.scala:31)
>at
>
> org.neo4j.cypher.ExecutionResult$class.dumpToString(ExecutionResult.scala:61)
>at
>
> org.neo4j.cypher.ExecutionEngine$$anon$1.dumpToString(ExecutionEngine.scala:119)
>at sandbox.GraphQuery.doQuery(GraphQuery.java:85)
>at sandbox.GraphQuery.run(GraphQuery.java:73)
>at sandbox.GraphQuery.main(GraphQuery.java:30)
>
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3479986.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] Cypher question

2011-11-04 Thread jschweigl
Reversing resulted in the same exception, so I'll try and get the latest
snapshot. Thanks a lot for your help!

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3480016.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] Paper: G2 : A Graph Processing System for Diagnosing Distributed Systems

2011-11-04 Thread Jim Webber
Hi Laurent,

I believe this could managed by Neo4j since it's similar to systems already in 
production.

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


Re: [Neo4j] Cypher question

2011-11-04 Thread jschweigl
Downloaded 1.5-SNAPSHOT (two times: the windows community and enterprise
flavor). No change, no matter if the relation points back or forth.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3480184.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] Cypher question

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 2:57 PM, jschweigl  wrote:

> Downloaded 1.5-SNAPSHOT (two times: the windows community and enterprise
> flavor). No change, no matter if the relation points back or forth.


 I just realized what the problem is. (It's my fault)

You are putting the path between callee to caller into a path. But, you are
only selecting subgraphs where caller will be . A path can't contain
null for nodes, and that is the exception you are seeing.

Cypher should cater for this much better than throwing an exception. Sorry
about that!

For  your use case, returning the callee should be enough, right?

Like this:

START callee=node:node_auto_index('type:*Service')
MATCH (caller)-[r?:CALLS]->(callee)
WHERE r IS NULL
RETURN callee

HTH,

Andrés
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Python embedding: problems with shutdown and threads

2011-11-04 Thread Michael Rene Armida
You are awesome.  I'll check this out soon; I switched my project back to
using sqlite, but I definitely want to use neo, so I'll give it a whirl.

On Fri, Nov 4, 2011 at 4:12 AM, Jacob Hansson <
jacob.hans...@neotechnology.com> wrote:

> I've just pushed an update to handle the attachThreadToJVM stuff
> automatically, I ran your test, Michael, on the DB after that, and it seems
> to shut down properly. You may want to double check though.
>
> You can build this now, by checking out
> https://github.com/neo4j/python-embedded/ and following the instructions
> in
> the readme.
>
>
> This will be part of the 1.5 release, which is currently a delayed, but can
> probably be expected within a week or two.
>
> /Jake
>
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Neo4J REST console

2011-11-04 Thread andrew ton
Hi,

I'm using Neo4j REST 1.5 -SNAPSHOT. In the console I always get "==>string 
matching regex `(?i)\Qrel\E' expected but `(' found" even I use the basic query 
in the Cypher Cheetsheet like START a = (1) RETURN a ?

Can I use index lookup for a node in the Rest request? For ex: my query is
  {"query": "start school=node:nodes(name=\"MySchool\") match 
(school)-[:locatedIn]->(location), (school)-[:foundedBy]->(founder) return 
school, location, founder"}


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


[Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-04 Thread baldric
I'm very new to much of this, and have a particularly ingrained relational
slant to my career, unfortunately.
I'm in the process of doing a proof of concept for a product, using neo4j,
and gremlin over REST (we're developing in c#) What I'm trying to do at the
moment is load a graph (representing a sort of flexible taxonomy), into a
flattened list. So, given a starting node, find all associated nodes across
a particular relationship type, no matter how far away. I will ultimately
need this in a list, and I want the list sorted by how far away each node is
(am I correct in referring to this as "hops"?)
Anyway, my best attempt at the unsorted query so far looks something like
this: (by the way, the "unique" part worries me a little)

x = []; g.v(162).in('R_PartOf').aggregate(x).loop(2){true} >> -1; x.unique()

(Please try not to laugh too much! :) )

How would I alter this to ensure it is sorted by "distance" from starting
node?

Thanks in advance!

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3480586.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 REST console

2011-11-04 Thread andrew ton


I figured out the problem in the console. I have to write "start a = node(1) 
return a" to make it work



From: andrew ton 
To: Neo4j_user 
Sent: Friday, November 4, 2011 9:16 AM
Subject: [Neo4j] Neo4J REST console

Hi,

I'm using Neo4j REST 1.5 -SNAPSHOT. In the console I always get "==>string 
matching regex `(?i)\Qrel\E' expected but `(' found" even I use the basic query 
in the Cypher Cheetsheet like START a = (1) RETURN a ?

Can I use index lookup for a node in the Rest request? For ex: my query is
  {"query": "start school=node:nodes(name=\"MySchool\") match 
(school)-[:locatedIn]->(location), (school)-[:foundedBy]->(founder) return 
school, location, founder"}


Thanks,
___
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] Cypher DSL and result mapping

2011-11-04 Thread Daniel Yokomizo
On Nov 4, 2011 7:45 AM, "Rickard Öberg" 
wrote:
>
> On 11/4/11 17:29 , Daniel Yokomizo wrote:
> >> What are the projection methods that you would like to see? What are
> >> common usecases?
> >
> > Supporting @java.beans.ConstructorProperties is nice because we can use
> > immutable objects as dtos.
>
> Right, that is a good point, and that will definitely be supported.
>
> I was more thinking about what kind of ways do you want to transform the
> result to objects. QueryDSL has a TON of methods, most of which I think
> are mixing concepts wildly:
>
http://www.querydsl.com/static/querydsl/2.2.3/apidocs/com/mysema/query/Projectable.html
>
> The methods with "distinct", for example, are done by the DSL itself,
> rather than in the projection. Similarly, "unique" and "single" I think
> are probably better done by using a functional library on top of an
> Iterable (this is available in Qi4j, and most other functional libraries
> that work with Iterables as well), i.e. no need to add to the basic
> interface.
>
> But are there other legitimate ways of transforming the result to
> objects? Or is iterable(result,resultType) enough?

Is there a raw type if nothing is provided (e.g. Map with
alias,result)? With something  like this the programmer can use any mapping
tool after. But would be nice to have json support.

> /Rickard
>
> --
> Rickard Öberg
> Developer
> Neo Technology
> Twitter: @rickardoberg, Skype: rickardoberg
> ___
> 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 REST console

2011-11-04 Thread Michael Hunger
Yep, the syntax changed between milestones.

Docs are here: http://docs.neo4j.org/chunked/snapshot/cypher-query-lang.html

Expect more and more radical changes ahead :)

Michael

Am 04.11.2011 um 17:16 schrieb andrew ton:

> Hi,
> 
> I'm using Neo4j REST 1.5 -SNAPSHOT. In the console I always get "==>string 
> matching regex `(?i)\Qrel\E' expected but `(' found" even I use the basic 
> query in the Cypher Cheetsheet like START a = (1) RETURN a ?
> 
> Can I use index lookup for a node in the Rest request? For ex: my query is
>   {"query": "start school=node:nodes(name=\"MySchool\") match 
> (school)-[:locatedIn]->(location), (school)-[:foundedBy]->(founder) return 
> school, location, founder"}
> 
> 
> Thanks,
> ___
> 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] Cypher->Pickle?

2011-11-04 Thread Peter Neubauer
Hi all,
moving this discussion to the community, it is very important getting
your feedback! Including Andres' original post on top again ...

2011/11/4 Andres Taylor 
Good afternoon, gentlemen.

I've been involved in a sales thingie, and had to translate SQL to
Cypher. At around the same time, Andreas suggested that we should call
Cypher PQL (pickle) instead - Pattern Query Language.

After sleeping on it, I realized the obviousness of the truth - if we
want to hook Joe Corp Java-coder, having something that is similar to
SQL is a Good Thing (TM). So this morning I changed Cypher (and the
228 breaking tests) to look like SQL.

Example:

Cypher
-=-=-=-=-
START lucy = node(1000)
MATCH lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
RETURN movie.title, count(*)
ORDER BY count(*) DESC

PQL
-=-=-
SELECT movie.title, count(*)
FROM node(1000) as lucy
PATTERN lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
ORDER BY count(*) DESC

The code is in place now (the branch is PQL). What's left to do is
take care of cypher-plugin, check that I haven't missed anything in
the manual, and make sure SDN doesn't mind. Michael assured me that
that would not be a problem.

The question is - should we make an effort to ship this with 1.5? I
think we should. The change is purely syntactic - and that makes me
feel comfortable that no new bugs have been introduced.

Opinions?

Andrés

(Peter - happy now? You win!)


On Fri, Nov 4, 2011 at 10:45 AM, David Montag
 wrote:
Sorta agree with Mattias. OTOH the syntax is pretty cool too. Could we
ask the community? Could this discussion be had publicly? Also, I like
the fact that Cypher flows forward and SQL flows backward.

David

2011/11/4 Mattias Persson 
Going down the SQL-like path will certainly please many, but also
anger others where it doesn't function exactly like SQL... that I
don't think we'd get with that differentiated syntax. Also we'd have
to put constraints on evolving the syntax with "no, we can't do that
because that wouldn't be SQL like" and I'd really really dislike
that; it'd make us followers instead of leaders.

Den 4 november 2011 17:50 skrev Michael Hunger
:

I'll take it to be the devils advocate.

Do we really want to be perceived as a "SQL-like" database (aka first
association == RDBMS) also Pickle sounds like nitpicking and also like
PL/SQL.
What level of boringness do we want to afford.

These are the gut feelings.

What about all our users that already got comfortable with Cypher
(which is a cooler name btw.) and are writing a lot of queries in it.

Also our screencasts, documentation and third party libs (also
provided by the community have to be updated, or at least checked and
their docs updated).

Putting select at the beginning breaks the flow somehow, the return at
the end felt more natural, because I decided, what I want to project
as one of the last things, LINQ did it better too.

Are our node and relationship-sets in the start clause really like
tables? (Aka sets of similar "rows") ? Probably

Shoudn't we get rid then of the iconographic syntax as well? And
default to something like
FROM nodes() as x [LEFT OUTER|…] JOIN nodes() as y via r ON (r.type =
'KNOWS' and … )

I know you're only taking on a role here, but I'd like to say: are you mad?


etc.

Having said that all,

let's go for it.

Michael

Am 04.11.2011 um 17:14 schrieb Björn Granvik:

I like it....a lot.

Could someone be the devil's advocate and point to possible problems?
Tech, ux, or whatever.
Or is it truly just a good thing?

/Björn

4 nov 2011 kl. 17:01 skrev Ian Robinson :

I've got to say, that suddenly looks very good.

Interesting moment at the NOSQL Exchange this week with someone
struggling to 'see' the ASCII art representation of a graph : Cypher
is perfectly comprehensible to me - it's only when you come across
someone else's misunderstandings and difficulties that you see the
benefits of conforming to expectations.

I'd say: let's try get this into 1.5. The sooner we can start showing
off something that devs already expect, the more we'll hook them, I'm
sure.

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


Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread Peter Hunsberger
One question,  and I bet I won't be the only one asking it...

If SQL is the target to mimic, why not "WHERE" instead of "PATTERN"  ?

Otherwise, wouldn't xQuery be perhaps an even more logical target?

Peter Hunsberger


On Fri, Nov 4, 2011 at 12:58 PM, Peter Neubauer <
peter.neuba...@neotechnology.com> wrote:

> Hi all,
> moving this discussion to the community, it is very important getting
> your feedback! Including Andres' original post on top again ...
>
> 2011/11/4 Andres Taylor 
> Good afternoon, gentlemen.
>
> I've been involved in a sales thingie, and had to translate SQL to
> Cypher. At around the same time, Andreas suggested that we should call
> Cypher PQL (pickle) instead - Pattern Query Language.
>
> After sleeping on it, I realized the obviousness of the truth - if we
> want to hook Joe Corp Java-coder, having something that is similar to
> SQL is a Good Thing (TM). So this morning I changed Cypher (and the
> 228 breaking tests) to look like SQL.
>
> Example:
>
> Cypher
> -=-=-=-=-
> START lucy = node(1000)
> MATCH lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
> RETURN movie.title, count(*)
> ORDER BY count(*) DESC
>
> PQL
> -=-=-
> SELECT movie.title, count(*)
> FROM node(1000) as lucy
> PATTERN lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
> ORDER BY count(*) DESC
>
> The code is in place now (the branch is PQL). What's left to do is
> take care of cypher-plugin, check that I haven't missed anything in
> the manual, and make sure SDN doesn't mind. Michael assured me that
> that would not be a problem.
>
> The question is - should we make an effort to ship this with 1.5? I
> think we should. The change is purely syntactic - and that makes me
> feel comfortable that no new bugs have been introduced.
>
> Opinions?
>
> Andrés
>
> (Peter - happy now? You win!)
>
>
> On Fri, Nov 4, 2011 at 10:45 AM, David Montag
>  wrote:
> Sorta agree with Mattias. OTOH the syntax is pretty cool too. Could we
> ask the community? Could this discussion be had publicly? Also, I like
> the fact that Cypher flows forward and SQL flows backward.
>
> David
>
> 2011/11/4 Mattias Persson 
> Going down the SQL-like path will certainly please many, but also
> anger others where it doesn't function exactly like SQL... that I
> don't think we'd get with that differentiated syntax. Also we'd have
> to put constraints on evolving the syntax with "no, we can't do that
> because that wouldn't be SQL like" and I'd really really dislike
> that; it'd make us followers instead of leaders.
>
> Den 4 november 2011 17:50 skrev Michael Hunger
> :
>
> I'll take it to be the devils advocate.
>
> Do we really want to be perceived as a "SQL-like" database (aka first
> association == RDBMS) also Pickle sounds like nitpicking and also like
> PL/SQL.
> What level of boringness do we want to afford.
>
> These are the gut feelings.
>
> What about all our users that already got comfortable with Cypher
> (which is a cooler name btw.) and are writing a lot of queries in it.
>
> Also our screencasts, documentation and third party libs (also
> provided by the community have to be updated, or at least checked and
> their docs updated).
>
> Putting select at the beginning breaks the flow somehow, the return at
> the end felt more natural, because I decided, what I want to project
> as one of the last things, LINQ did it better too.
>
> Are our node and relationship-sets in the start clause really like
> tables? (Aka sets of similar "rows") ? Probably
>
> Shoudn't we get rid then of the iconographic syntax as well? And
> default to something like
> FROM nodes() as x [LEFT OUTER|…] JOIN nodes() as y via r ON (r.type =
> 'KNOWS' and … )
>
> I know you're only taking on a role here, but I'd like to say: are you mad?
>
>
> etc.
>
> Having said that all,
>
> let's go for it.
>
> Michael
>
> Am 04.11.2011 um 17:14 schrieb Björn Granvik:
>
> I like it....a lot.
>
> Could someone be the devil's advocate and point to possible problems?
> Tech, ux, or whatever.
> Or is it truly just a good thing?
>
> /Björn
>
> 4 nov 2011 kl. 17:01 skrev Ian Robinson :
>
> I've got to say, that suddenly looks very good.
>
> Interesting moment at the NOSQL Exchange this week with someone
> struggling to 'see' the ASCII art representation of a graph : Cypher
> is perfectly comprehensible to me - it's only when you come across
> someone else's misunderstandings and difficulties that you see the
> benefits of conforming to expectations.
>
> I'd say: let's try get this into 1.5. The sooner we can start showing
> off something that devs already expect, the more we'll hook them, I'm
> sure.
>
> ian
> ___
> 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] Cypher->Pickle?

2011-11-04 Thread Axel Morgner
Hi,

like this, people familiar with SQL (which are many) don't have to 
think, they just read and understand.

+1

Axel

Am 04.11.2011 18:58, schrieb Peter Neubauer:
> Hi all,
> moving this discussion to the community, it is very important getting
> your feedback! Including Andres' original post on top again ...
>
> 2011/11/4 Andres Taylor
> Good afternoon, gentlemen.
>
> I've been involved in a sales thingie, and had to translate SQL to
> Cypher. At around the same time, Andreas suggested that we should call
> Cypher PQL (pickle) instead - Pattern Query Language.
>
> After sleeping on it, I realized the obviousness of the truth - if we
> want to hook Joe Corp Java-coder, having something that is similar to
> SQL is a Good Thing (TM). So this morning I changed Cypher (and the
> 228 breaking tests) to look like SQL.
>
> Example:
>
> Cypher
> -=-=-=-=-
> START lucy = node(1000)
> MATCH lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
> RETURN movie.title, count(*)
> ORDER BY count(*) DESC
>
> PQL
> -=-=-
> SELECT movie.title, count(*)
> FROM node(1000) as lucy
> PATTERN lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
> ORDER BY count(*) DESC
>
> The code is in place now (the branch is PQL). What's left to do is
> take care of cypher-plugin, check that I haven't missed anything in
> the manual, and make sure SDN doesn't mind. Michael assured me that
> that would not be a problem.
>
> The question is - should we make an effort to ship this with 1.5? I
> think we should. The change is purely syntactic - and that makes me
> feel comfortable that no new bugs have been introduced.
>
> Opinions?
>
> Andrés
>
> (Peter - happy now? You win!)
>
>
> On Fri, Nov 4, 2011 at 10:45 AM, David Montag
>   wrote:
> Sorta agree with Mattias. OTOH the syntax is pretty cool too. Could we
> ask the community? Could this discussion be had publicly? Also, I like
> the fact that Cypher flows forward and SQL flows backward.
>
> David
>
> 2011/11/4 Mattias Persson
> Going down the SQL-like path will certainly please many, but also
> anger others where it doesn't function exactly like SQL... that I
> don't think we'd get with that differentiated syntax. Also we'd have
> to put constraints on evolving the syntax with "no, we can't do that
> because that wouldn't be SQL like" and I'd really really dislike
> that; it'd make us followers instead of leaders.
>
> Den 4 november 2011 17:50 skrev Michael Hunger
> :
>
> I'll take it to be the devils advocate.
>
> Do we really want to be perceived as a "SQL-like" database (aka first
> association == RDBMS) also Pickle sounds like nitpicking and also like
> PL/SQL.
> What level of boringness do we want to afford.
>
> These are the gut feelings.
>
> What about all our users that already got comfortable with Cypher
> (which is a cooler name btw.) and are writing a lot of queries in it.
>
> Also our screencasts, documentation and third party libs (also
> provided by the community have to be updated, or at least checked and
> their docs updated).
>
> Putting select at the beginning breaks the flow somehow, the return at
> the end felt more natural, because I decided, what I want to project
> as one of the last things, LINQ did it better too.
>
> Are our node and relationship-sets in the start clause really like
> tables? (Aka sets of similar "rows") ? Probably
>
> Shoudn't we get rid then of the iconographic syntax as well? And
> default to something like
> FROM nodes() as x [LEFT OUTER|…] JOIN nodes() as y via r ON (r.type =
> 'KNOWS' and … )
>
> I know you're only taking on a role here, but I'd like to say: are you mad?
>
>
> etc.
>
> Having said that all,
>
> let's go for it.
>
> Michael
>
> Am 04.11.2011 um 17:14 schrieb Björn Granvik:
>
> I like it....a lot.
>
> Could someone be the devil's advocate and point to possible problems?
> Tech, ux, or whatever.
> Or is it truly just a good thing?
>
> /Björn
>
> 4 nov 2011 kl. 17:01 skrev Ian Robinson:
>
> I've got to say, that suddenly looks very good.
>
> Interesting moment at the NOSQL Exchange this week with someone
> struggling to 'see' the ASCII art representation of a graph : Cypher
> is perfectly comprehensible to me - it's only when you come across
> someone else's misunderstandings and difficulties that you see the
> benefits of conforming to expectations.
>
> I'd say: let's try get this into 1.5. The sooner we can start showing
> off something that devs already expect, the more we'll hook them, I'm
> sure.
>
> ian
> ___
> 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] Gremlin - how to flatten a tree, and sort

2011-11-04 Thread Marko Rodriguez
Hi,

I would do it like this:

m = [:]
g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true} >> -1
m.sort{a, b -> a.value <=> b.value}.keySet as List

In short, fill up a Map (m) with key being the vertex and value being the 
number of "hops" (or times through the loop). Then sort the map by the number 
of times through the loop and return the keySet. Since you wanted a List (not a 
Set), then "as List" the Set result.

HTH,
Marko.

http://markorodriguez.com

On Nov 4, 2011, at 10:25 AM, baldric wrote:

> I'm very new to much of this, and have a particularly ingrained relational
> slant to my career, unfortunately.
> I'm in the process of doing a proof of concept for a product, using neo4j,
> and gremlin over REST (we're developing in c#) What I'm trying to do at the
> moment is load a graph (representing a sort of flexible taxonomy), into a
> flattened list. So, given a starting node, find all associated nodes across
> a particular relationship type, no matter how far away. I will ultimately
> need this in a list, and I want the list sorted by how far away each node is
> (am I correct in referring to this as "hops"?)
> Anyway, my best attempt at the unsorted query so far looks something like
> this: (by the way, the "unique" part worries me a little)
> 
> x = []; g.v(162).in('R_PartOf').aggregate(x).loop(2){true} >> -1; x.unique()
> 
> (Please try not to laugh too much! :) )
> 
> How would I alter this to ensure it is sorted by "distance" from starting
> node?
> 
> Thanks in advance!
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3480586.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] Cypher->Pickle?

2011-11-04 Thread Tero Paananen
My take on this is to not use a SQL-like query language.

The reason is that while it looks like SQL it is not SQL, and the subtle
differences would be more confusing than with using a query language
that doesn't share SQL-like constructs.

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


Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-04 Thread Peter Neubauer
Can you do it on one line? ;)

Great stuff.

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 Fri, Nov 4, 2011 at 11:12 AM, Marko Rodriguez  wrote:
> Hi,
>
> I would do it like this:
>
> m = [:]
> g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true} >> -1
> m.sort{a, b -> a.value <=> b.value}.keySet as List
>
> In short, fill up a Map (m) with key being the vertex and value being the 
> number of "hops" (or times through the loop). Then sort the map by the number 
> of times through the loop and return the keySet. Since you wanted a List (not 
> a Set), then "as List" the Set result.
>
> HTH,
> Marko.
>
> http://markorodriguez.com
>
> On Nov 4, 2011, at 10:25 AM, baldric wrote:
>
>> I'm very new to much of this, and have a particularly ingrained relational
>> slant to my career, unfortunately.
>> I'm in the process of doing a proof of concept for a product, using neo4j,
>> and gremlin over REST (we're developing in c#) What I'm trying to do at the
>> moment is load a graph (representing a sort of flexible taxonomy), into a
>> flattened list. So, given a starting node, find all associated nodes across
>> a particular relationship type, no matter how far away. I will ultimately
>> need this in a list, and I want the list sorted by how far away each node is
>> (am I correct in referring to this as "hops"?)
>> Anyway, my best attempt at the unsorted query so far looks something like
>> this: (by the way, the "unique" part worries me a little)
>>
>> x = []; g.v(162).in('R_PartOf').aggregate(x).loop(2){true} >> -1; x.unique()
>>
>> (Please try not to laugh too much! :) )
>>
>> How would I alter this to ensure it is sorted by "distance" from starting
>> node?
>>
>> Thanks in advance!
>>
>> --
>> View this message in context: 
>> http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3480586.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
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-04 Thread Marko Rodriguez
Sure:

m = [:]; g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); 
true}.cap.next().sort{a, b -> a.value <=> b.value}.keySet >> []

Marko.

http://markorodriguez.com

On Nov 4, 2011, at 12:17 PM, Peter Neubauer wrote:

> Can you do it on one line? ;)
> 
> Great stuff.
> 
> 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 Fri, Nov 4, 2011 at 11:12 AM, Marko Rodriguez  wrote:
>> Hi,
>> 
>> I would do it like this:
>> 
>> m = [:]
>> g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true} >> -1
>> m.sort{a, b -> a.value <=> b.value}.keySet as List
>> 
>> In short, fill up a Map (m) with key being the vertex and value being the 
>> number of "hops" (or times through the loop). Then sort the map by the 
>> number of times through the loop and return the keySet. Since you wanted a 
>> List (not a Set), then "as List" the Set result.
>> 
>> HTH,
>> Marko.
>> 
>> http://markorodriguez.com
>> 
>> On Nov 4, 2011, at 10:25 AM, baldric wrote:
>> 
>>> I'm very new to much of this, and have a particularly ingrained relational
>>> slant to my career, unfortunately.
>>> I'm in the process of doing a proof of concept for a product, using neo4j,
>>> and gremlin over REST (we're developing in c#) What I'm trying to do at the
>>> moment is load a graph (representing a sort of flexible taxonomy), into a
>>> flattened list. So, given a starting node, find all associated nodes across
>>> a particular relationship type, no matter how far away. I will ultimately
>>> need this in a list, and I want the list sorted by how far away each node is
>>> (am I correct in referring to this as "hops"?)
>>> Anyway, my best attempt at the unsorted query so far looks something like
>>> this: (by the way, the "unique" part worries me a little)
>>> 
>>> x = []; g.v(162).in('R_PartOf').aggregate(x).loop(2){true} >> -1; x.unique()
>>> 
>>> (Please try not to laugh too much! :) )
>>> 
>>> How would I alter this to ensure it is sorted by "distance" from starting
>>> node?
>>> 
>>> Thanks in advance!
>>> 
>>> --
>>> View this message in context: 
>>> http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3480586.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
>> 
> ___
> 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] Using the WrappingNeoServerBootstrapper with sbt

2011-11-04 Thread Peter Neubauer
Markus,
have you tried the SBT classifiers to get to the same result like Ivy?

http://code.google.com/p/simple-build-tool/wiki/LibraryManagement#Classifiers

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 Thu, Nov 3, 2011 at 9:58 AM, Markus Joschko  wrote:
> Peter,
> I do not exactly have the tutorial running but I have a setup where I
> can use neo4j and add/read nodes.
> So using neo4j with my current setup is no problem. Starting the
> embedded server is.
>
> Regards,
>  Markus
>
>
> On Thu, Nov 3, 2011 at 5:29 PM, Peter Neubauer
>  wrote:
>> Markus,
>> could you first try to get the tutorial up and running so you have a
>> working baseline? SBT and Ivy is a quirky combination - not sure
>> myself what is going on there at all times. From there, we could try
>> working our way down ...
>>
>> 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 Thu, Nov 3, 2011 at 9:27 AM, Markus Joschko  
>> wrote:
>>> Hi Peter,
>>> I have seen your posts and the projects.
>>> I tried to mimic the setup as close as possible. However I also do my
>>> first steps in sbt which doesn't make it easier.
>>> My best guess is, that I am missing a jetty dependency. Does the web
>>> interface of the server need jsp support, e.g?
>>> These lines seem to be the most "interesting" regarding the error:
>>>
>>> INFO: NO JSP Support for /webadmin, did not find
>>> org.apache.jasper.servlet.JspServlet
>>> Nov 3, 2011 5:02:20 PM com.sun.jersey.api.core.ScanningResourceConfig init
>>> INFO: No provider classes found.
>>>
>>>
>>>
>>>                                                ivyXML :=
>>> 
>>>
>>>                                                  >> org="org.neo4j.app" name="neo4j-server" rev="1.5-SNAPSHOT">
>>>
>>>                                        >> type="jar" />
>>>
>>>                  >> m:classifier="static-web"/>
>>>
>>>   
>>>
>>>                                                  >> org="org.neo4j" name="neo4j-community" rev="1.5-SNAPSHOT" />
>>>
>>>                                    >> name="neo4j-kernel" rev="1.5-SNAPSHOT"/>
>>>
>>>                    >> name="jackson-core-asl" rev="1.7.5" />
>>>
>>>         >> name="jackson-mapper-asl" rev="1.7.5" />
>>>
>>>         >> />
>>>                                                         >> org="org.rrd4j" name="rrd4j" rev="2.0.7" transitive="false" />
>>>
>>>                                    >> name="jersey-client" rev="1.6" />
>>>
>>>               >> rev="1.6" />
>>>
>>> 
>>>
>>>                                                >> org="org.aspectj" name="aspectjrt" rev="1.6.11"/>
>>>
>>>                                    >> name="aspectjtools" rev="1.6.11"/>
>>>
>>>                
>>>
>>> On Thu, Nov 3, 2011 at 5:09 PM, Peter Neubauer
>>>  wrote:
 Markus,
 I just spent a number of afternoons getting into the guts of Ivy and
 Maven classifiers for the Dr. Who manual. To set up the server
 dependencies in Ivy (which SBT uses under the hood), refer to
 https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivy.xml
 and 
 https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivysettings.xml
 which make Ivy aware of the fact that there are  number of artifacts
 needed with the same group and artifact id but different classifiers.

 Does that work?

 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 Thu, Nov 3, 2011 at 9:03 AM, Markus Joschko  
 wrote:
> Has anybody had success in getting an embedded neo4j-server running with 
> sbt?
>
> I had some trouble in getting the dependencies but now it at least
> compiles and starts up. However the start ultimately failed.
> Before switching back to maven I wanted to ask whether someone has a
> working sbt setup and can share the build.sbt?
>
> BTW, the error I encounter at the moment (doesn't seem to be caused by
> a missing dependency):
>
>
> INFO: Starting Neo Server on port [7474] with [80] threads available
> Nov 3, 2011 5:01:17 PM org.mortbay.log.

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 7:04 PM, Peter Hunsberger  wrote:

> One question,  and I bet I won't be the only one asking it...
>
> If SQL is the target to mimic, why not "WHERE" instead of "PATTERN"  ?
>

PATTERN is a new construct, not replacing WHERE. WHERE is still in
there
.


> Otherwise, wouldn't xQuery be perhaps an even more logical target?


Heathen!

Seriously - it's mostly centered around XPath expressions, which are great
for tree structures, but maybe not what we need for our complex patterns. I
can't really see what's left of XQuery if you remove the XPath parts. Do
you have any concrete ideas I could ponder over?

Thanks a lot for your feedback - it makes our lives much easier when people
are vocal about their opinions!

Andrés
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread Peter Hunsberger
Seems if you're trying to mimic SQL it would be a shame if the most common
construct was the least SQL like.  At an abstract semantic level (ie, not
digging into the code or real usage) PATTERN and WHERE seem close enough
that perhaps you can unify them?

In any case, I wouldn't say xPath is just tree structures, it can do
arbitrary grouping in addition to traversing up and down hierarchies. More
importantly, xQuery has to deal with graphs not trees since  you have
multiple ways of referencing related nodes (name and id in particular can
cause cycles or connections between branches).  Not sure it would map
directly to what you want, but I suspect you could build a syntax that was
more xQuery like than you will ever be able to build a syntax that
is truly SQL like?

Peter Hunsberger


On Fri, Nov 4, 2011 at 2:26 PM, Andres Taylor <
andres.tay...@neotechnology.com> wrote:

> On Fri, Nov 4, 2011 at 7:04 PM, Peter Hunsberger <
> peter.hunsber...@gmail.com
> > wrote:
>
> > One question,  and I bet I won't be the only one asking it...
> >
> > If SQL is the target to mimic, why not "WHERE" instead of "PATTERN"  ?
> >
>
> PATTERN is a new construct, not replacing WHERE. WHERE is still in
> there<
> https://github.com/neo4j/community/blob/pql/pql/src/test/scala/org/neo4j/pql/PqlParserTest.scala#L124
> >
> .
>
>
> > Otherwise, wouldn't xQuery be perhaps an even more logical target?
>
>
> Heathen!
>
> Seriously - it's mostly centered around XPath expressions, which are great
> for tree structures, but maybe not what we need for our complex patterns. I
> can't really see what's left of XQuery if you remove the XPath parts. Do
> you have any concrete ideas I could ponder over?
>
> Thanks a lot for your feedback - it makes our lives much easier when people
> are vocal about their opinions!
>
> Andrés
> ___
> 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] Using the WrappingNeoServerBootstrapper with sbt

2011-11-04 Thread Markus Joschko
I tried it initially but couldn't get it to work because as soon as I
included the static-web classifier, the server jar was apparently not
used.
I opened a thread in the sbt group
(http://groups.google.com/group/simple-build-tool/browse_thread/thread/15639ba10ddec6cd)
 but didn't get a response so far.
When using inline ivy dependencies I at least get both the static-web
and the server jar included. But apparently something is still
missing.



On Fri, Nov 4, 2011 at 7:38 PM, Peter Neubauer
 wrote:
> Markus,
> have you tried the SBT classifiers to get to the same result like Ivy?
>
> http://code.google.com/p/simple-build-tool/wiki/LibraryManagement#Classifiers
>
> 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 Thu, Nov 3, 2011 at 9:58 AM, Markus Joschko  
> wrote:
>> Peter,
>> I do not exactly have the tutorial running but I have a setup where I
>> can use neo4j and add/read nodes.
>> So using neo4j with my current setup is no problem. Starting the
>> embedded server is.
>>
>> Regards,
>>  Markus
>>
>>
>> On Thu, Nov 3, 2011 at 5:29 PM, Peter Neubauer
>>  wrote:
>>> Markus,
>>> could you first try to get the tutorial up and running so you have a
>>> working baseline? SBT and Ivy is a quirky combination - not sure
>>> myself what is going on there at all times. From there, we could try
>>> working our way down ...
>>>
>>> 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 Thu, Nov 3, 2011 at 9:27 AM, Markus Joschko  
>>> wrote:
 Hi Peter,
 I have seen your posts and the projects.
 I tried to mimic the setup as close as possible. However I also do my
 first steps in sbt which doesn't make it easier.
 My best guess is, that I am missing a jetty dependency. Does the web
 interface of the server need jsp support, e.g?
 These lines seem to be the most "interesting" regarding the error:

 INFO: NO JSP Support for /webadmin, did not find
 org.apache.jasper.servlet.JspServlet
 Nov 3, 2011 5:02:20 PM com.sun.jersey.api.core.ScanningResourceConfig init
 INFO: No provider classes found.



                                                ivyXML :=
 

                                                  >>> org="org.neo4j.app" name="neo4j-server" rev="1.5-SNAPSHOT">

                                        >>> type="jar" />

                  >>> m:classifier="static-web"/>

   

                                                  >>> org="org.neo4j" name="neo4j-community" rev="1.5-SNAPSHOT" />

                                    >>> name="neo4j-kernel" rev="1.5-SNAPSHOT"/>

                    >>> name="jackson-core-asl" rev="1.7.5" />

         >>> name="jackson-mapper-asl" rev="1.7.5" />

         >>> />
                                                         >>> org="org.rrd4j" name="rrd4j" rev="2.0.7" transitive="false" />

                                    >>> name="jersey-client" rev="1.6" />

               >>> rev="1.6" />

 

                                                >>> org="org.aspectj" name="aspectjrt" rev="1.6.11"/>

                                    >>> name="aspectjtools" rev="1.6.11"/>

                

 On Thu, Nov 3, 2011 at 5:09 PM, Peter Neubauer
  wrote:
> Markus,
> I just spent a number of afternoons getting into the guts of Ivy and
> Maven classifiers for the Dr. Who manual. To set up the server
> dependencies in Ivy (which SBT uses under the hood), refer to
> https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivy.xml
> and 
> https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivysettings.xml
> which make Ivy aware of the fact that there are  number of artifacts
> needed with the same group and artifact id but different classifiers.
>
> Does that work?
>
> 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.
>
>
>
> O

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread maxdemarzi
I think the reason we're even having this discussion is because the cypher
syntax is close, but not quite SQL in the first place.  This makes the
differences between the two languages stick out in my mind.  

I haven't had a lot of time on cypher, but as a newbie to the language I see
a cypher query and I'm always thinking, RETURN = SELECT, START = FROM,
PATTERN = JOIN.  So I'm doing the translation in my head back to SQL anyway.

Let's just make it as SQLish as possible to get rid of that annoying
internal translation.

Cypher 
-=-=-=-=- 
START lucy = node(1000) 
MATCH lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor 
WHERE not(movie.title = "Water World")
RETURN movie.title, count(*) 
ORDER BY count(*) DESC 

PQL 
-=-=- 
SELECT movie.title, count(*) 
FROM node(1000) as lucy 
JOIN lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor 
WHERE movie.title <> "Water World"
ORDER BY count(*) DESC 

I like JOIN instead of MATCH.  Match is "The description of the pattern is
made up of one or more paths, separated by commas." which closely resembles
JOIN in SQL which is about describing the Relationships between tables...
and once again I'm doing the translation in my head anyway, might as well
eliminate that mental waste.

Lastly, I'm not sure about the syntax for describing relationships.  

--> and <-- or --- with ?: makes me think chicken scratch not language. 
Using INCOMING, OUTGOING, OPTIONAL, AS, etc might make the query verbose,
but maybe more readable?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481094.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] Cypher->Pickle?

2011-11-04 Thread Mattias Persson
2011/11/4 maxdemarzi 

> I think the reason we're even having this discussion is because the cypher
> syntax is close, but not quite SQL in the first place.  This makes the
> differences between the two languages stick out in my mind.
>
> I haven't had a lot of time on cypher, but as a newbie to the language I
> see
> a cypher query and I'm always thinking, RETURN = SELECT, START = FROM,
> PATTERN = JOIN.  So I'm doing the translation in my head back to SQL
> anyway.
>
> Let's just make it as SQLish as possible to get rid of that annoying
> internal translation.
>
> Cypher
> -=-=-=-=-
> START lucy = node(1000)
> MATCH lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
> WHERE not(movie.title = "Water World")
> RETURN movie.title, count(*)
> ORDER BY count(*) DESC
>
> PQL
> -=-=-
> SELECT movie.title, count(*)
> FROM node(1000) as lucy
> JOIN lucy-[:ACTS_IN]->movie<-[:ACTS_IN]-co_actor
> WHERE movie.title <> "Water World"
> ORDER BY count(*) DESC
>
> I like JOIN instead of MATCH.  Match is "The description of the pattern is
> made up of one or more paths, separated by commas." which closely resembles
> JOIN in SQL which is about describing the Relationships between tables...
> and once again I'm doing the translation in my head anyway, might as well
> eliminate that mental waste.
>
> Lastly, I'm not sure about the syntax for describing relationships.
>
> --> and <-- or --- with ?: makes me think chicken scratch not language.
> Using INCOMING, OUTGOING, OPTIONAL, AS, etc might make the query verbose,
> but maybe more readable?
>
>
I'd say the strongest part of Cypher is the "ascii art" pattern where you
clearly see what you're querying for, right there and then without having
to parse it into a graph into your head. Removing that would reduce my
interest in this language significantly.


> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481094.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
>



-- 
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


Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread KanTube
At first glance i like the new syntax.  I am a bit confused on Andres comment
that PATTERN is a new construct and is not replacing WHERE.  But if you are
able to reproduce everything with this new syntax I am all for it.  and if
you are going to make this change - the sooner the better.  

not to suggest to many changes but i am not a fan of the "->", don't have
any suggestion to replace it but just not a fan of it.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481110.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] Cypher->Pickle?

2011-11-04 Thread maxdemarzi
Can we make the ascii art more readable?

From:
lucy-[:ACTS_IN]->movie

What are some options:
lucy[:ACTS_IN]->movie # lose the second "-" by attaching the relationship to
a node
lucy[:ACTS_IN]movie  # instead of ---
lucy[:ACTS_IN]->movie #instead of --> 
lucy[:ACTS_IN]=>movie #instead of -->, using = instead of - 
lucy<-[:ACTS_IN]movie # instead of <--
lucy<=[:ACTS_IN]movie # instead of <--

lucy[:ACTS_IN]-movie  # just use one character
lucy[:ACTS_IN]=movie # instead of --> 

The existing syntax is not horrible, but can we do better?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481174.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] Cypher->Pickle?

2011-11-04 Thread Tero Paananen
> I'd say the strongest part of Cypher is the "ascii art" pattern where you
> clearly see what you're querying for, right there and then without having
> to parse it into a graph into your head. Removing that would reduce my
> interest in this language significantly.

I strongly agree with this. It's EASY to see the relationships and
their direction with the syntax right now.

(cani)<-[:HAS]-(more)-[:CHEEZ]->(burger)

I glance that and instantly figure out what it's trying to say. The SQL-
like examples I've seen so far aren't coming even close, IMHO. And
as the query complexity increases, I think the advantage Cypher's
syntax has increases even more.

Additionally I don't find adding a join keyword to a query language that
queries a data store that has no joins better in any shape or form.

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


Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread Nigel Small
Also agree. Using several illustrative symbols instead of one cryptic one
adds a considerable amount of readability as the expense of negligible
overhead. Since the "->" sequence is also used in C as a pointer operator,
it's nothing new.
*
*
*Nigel Small*
Phone: +44 7814 638 246
Blog: http://nigelsmall.name/
GTalk: ni...@nigelsmall.name
MSN: nasm...@live.co.uk
Skype: technige
Twitter: @technige 
LinkedIn: http://uk.linkedin.com/in/nigelsmall



On 4 November 2011 20:36, Tero Paananen  wrote:

> > I'd say the strongest part of Cypher is the "ascii art" pattern where you
> > clearly see what you're querying for, right there and then without having
> > to parse it into a graph into your head. Removing that would reduce my
> > interest in this language significantly.
>
> I strongly agree with this. It's EASY to see the relationships and
> their direction with the syntax right now.
>
> (cani)<-[:HAS]-(more)-[:CHEEZ]->(burger)
>
> I glance that and instantly figure out what it's trying to say. The SQL-
> like examples I've seen so far aren't coming even close, IMHO. And
> as the query complexity increases, I think the advantage Cypher's
> syntax has increases even more.
>
> Additionally I don't find adding a join keyword to a query language that
> queries a data store that has no joins better in any shape or form.
>
> -TPP
> ___
> 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] Cypher->Pickle?

2011-11-04 Thread maxdemarzi

Tero Paananen wrote:
> 
> Additionally I don't find adding a join keyword to a query language that
> queries a data store that has no joins better in any shape or form.
> 

That is one way of looking at it, another way of looking at it is that all
the tables are already joined.
Not sure how we can say a graph database "has no joins".

Now, we don't have to throw out anything.  If this is pie in the sky talk
anyway, we can have it both ways.
(1) lucy-[:ACTS_IN]->movie
(2) lucy-[:ACTS_IN]-movie
(3) lucy<-[:ACTS_IN]-movie

(4) lucy out(:acts_in) movie
(5) lucy both(:acts_in) movie
(6) lucy in(:acts_in) movie

What I like about spelling out the relationship direction is:
A. You avoid typo errors.  Was it -- or ->, look how close 1 and 2 are.
B. You know right away which direction you are going.  Compare 1 and 2, vs 4
and 5.  At the 6th character in both 4 and 5, you know which direction it
is.  You have to get to the 17th character in 1 and 2.
C. We read left to right so:
-- 1 reads: lucy via relationship acts_in outgoing to movie, 
-- 2 reads: lucy via relationship acts_in both to movie
-- 3 reads, lucy incoming via relationship acts_in to movie 
That is inconsistent.
Try:
-- 4 reads, lucy outgoing via relationshp acts_in to movie
-- 5 reads, lucy both via relationshp acts_in to movie
-- 6 reads, lucy incoming via relationshp acts_in to movie
D. try (a)-->(b)-->(c)-->(d)--(e)-->(f)-->(g)   #did you catch the both
relationship between d and e?  or did your eyes scan over it?  If you're
debugging someone else's code, was it a typo or did they intend it that way? 
If you spell it out there is no ambiguity.

Anyway, if the --> syntax is polarizing (as it seems to be) then *give
people the choice* to use whichever they prefer.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481278.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] Cypher->Pickle?

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 8:58 PM, KanTube  wrote:

> At first glance i like the new syntax.  I am a bit confused on Andres
> comment
> that PATTERN is a new construct and is not replacing WHERE.


I'll use old-school Cypher to illustrate my the difference here. Cypher's
MATCH clause is PQL's PATTERN.

Semantically, START, MATCH and WHERE in Cypher represent the same concept.

START a = node:idx(key = "value")
MATCH a-[r]->b
WHERE r.foo = "bar"
RETURN b

This could just as well be expressed like this:

WHERE a = node:idx(key = "value") AND a-[r]->b AND r.foo = "bar"
RETURN b

The reason I separated them is for a pedagogical reason - I think the
structure that Cypher forces on you helps you think and reason about the
query better than the shorter all predicate version. I hope that makes
sense, and that I haven't messed up my assumptions. Btw - I'd love feedback
on this idea - it's a core part in my mental model designing this language.

Andrés
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 10:17 PM, maxdemarzi  wrote:

>
> Tero Paananen wrote:
> >
> > Additionally I don't find adding a join keyword to a query language that
> > queries a data store that has no joins better in any shape or form.
> >
>
> That is one way of looking at it, another way of looking at it is that all
> the tables are already joined.
> Not sure how we can say a graph database "has no joins".
>
> Now, we don't have to throw out anything.  If this is pie in the sky talk
> anyway, we can have it both ways.
> (1) lucy-[:ACTS_IN]->movie
> (2) lucy-[:ACTS_IN]-movie
> (3) lucy<-[:ACTS_IN]-movie
>
> (4) lucy out(:acts_in) movie
> (5) lucy both(:acts_in) movie
> (6) lucy in(:acts_in) movie
>
> What I like about spelling out the relationship direction is:
> A. You avoid typo errors.  Was it -- or ->, look how close 1 and 2 are.
> B. You know right away which direction you are going.  Compare 1 and 2, vs
> 4
> and 5.  At the 6th character in both 4 and 5, you know which direction it
> is.  You have to get to the 17th character in 1 and 2.
> C. We read left to right so:
> -- 1 reads: lucy via relationship acts_in outgoing to movie,
> -- 2 reads: lucy via relationship acts_in both to movie
> -- 3 reads, lucy incoming via relationship acts_in to movie
> That is inconsistent.
> Try:
> -- 4 reads, lucy outgoing via relationshp acts_in to movie
> -- 5 reads, lucy both via relationshp acts_in to movie
> -- 6 reads, lucy incoming via relationshp acts_in to movie
> D. try (a)-->(b)-->(c)-->(d)--(e)-->(f)-->(g)   #did you catch the both
> relationship between d and e?  or did your eyes scan over it?  If you're
> debugging someone else's code, was it a typo or did they intend it that
> way?
> If you spell it out there is no ambiguity.
>
> Anyway, if the --> syntax is polarizing (as it seems to be) then *give
> people the choice* to use whichever they prefer.


Love the idea. Why didn't I think of that? All of Cypher is made out of
bits and pieces that I've stolen from others anyway - I think I want to
steal this one too.

Being able to have these discussions with our users is a luxury that I'm
very happy about - thank you!

Andrés
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread maxdemarzi

Andres Taylor wrote:
> 
> Love the idea. Why didn't I think of that? All of Cypher is made out of
> bits and pieces that I've stolen from others anyway - I think I want to
> steal this one too.
> 

Ha!


Max De Marzi wrote:
> 
>  That is one way of looking at it, another way of looking at it is that
> all the tables are already joined.
> 

I stole that last quote from Marko.  He was explaining Neo4j to the type of
guy who may be making making that buy it or not decision (60 year old
Director of IT, 30 years working with relational databases under their
belt).  When Marko said, "it's like a relational database where all the
tables are already joined", I saw the guy's eyes light up.  *Oh... I get it
now.*  

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481320.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] SDG 2.0.0.M1 cross-store does not work properly

2011-11-04 Thread Marcin Zasepa
Hi guys,
i just migrated from SDG 1.1 to 2.0.0.M1 and I am facing problem with
cross-store functionality. I have some entities which are partially stored
in Neo and partially in rdbms. Everything works ok so far entity class has
only primitive members or sets of other entities mapped using @RelatedTo
annotation. Problems begin if I have one entity /A/ with partial=true which
refers with @OneToMany another entity /B/ which is "pure" JPA entity. Trying
to save entity *A *i get an exception: "Type class B is neither a
@NodeEntity nor a @RelationshipEntity".This kind of mappings worked properly
with SDG 1.1. In order to reproduce this problem in environment independent
from my application i add simple relation to the User test class in
spring-data-neo4j-cross-store tests: 
@Entity
@NodeEntity(partial = true)
public class User {
   .
  @OneToMany(mappedBy="user")
private Set locations;
}
, where Location class is defined as follows:
@Entity
@Table(name = "LOCATION")
public class Location {

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private Long id;

@ManyToOne
@JoinColumn(name="userId")
private User user;

}

Running ReccomendationTest after this changes, causes that the first test
fails with an exception:
org.springframework.data.neo4j.mapping.InvalidEntityTypeException: Type
class org.springframework.data.neo4j.partial.Location is neither a
@NodeEntity nor a @RelationshipEntity. What is even more interesting is that
it happens only to the first run test, that is why two other test are not
failing but if i invoke only one test for example the second one:
jpaUserCanHaveGraphProperties then it fails with the same exception. 
Could you have a look on that and let me know if I am something changed in
SDG 2.0 or it is indeed bug.
Thanks in advance! Greets.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/SDG-2-0-0-M1-cross-store-does-not-work-properly-tp3481372p3481372.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] Gremlin - how to flatten a tree, and sort

2011-11-04 Thread baldric
Thanks! I will still need to try this out, but the idea (in your first
response) kind of feels more or less like what I knew I needed. I have so
many questions now based on the responses so far - it feels like I'm just
scratching the surface!
Firstly, could you explain the differences between map, list, and set?
Secondly, when you reduced it to a single line, you implemented "cap" and
"next" I've seen these mentioned before, but don't really get it...

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3481402.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] WebAdmin - Import/Export Style Profile

2011-11-04 Thread KanTube
is there a way to Import/Export a style profile or someway to move a profile
between db instances ? 

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/WebAdmin-Import-Export-Style-Profile-tp3481447p3481447.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] Gremlin - how to flatten a tree, and sort

2011-11-04 Thread Marko Rodriguez
Hi,

> Thanks! I will still need to try this out, but the idea (in your first
> response) kind of feels more or less like what I knew I needed. I have so
> many questions now based on the responses so far - it feels like I'm just
> scratching the surface!

Once you "get it," you can get nasty with Gremlin. And I'm saying "nasty" with 
a South African accent so you know its dirty.

> Firstly, could you explain the differences between map, list, and set?

Map => java.util.Map
List => java.util.List
Set => java.util.Set 

Google them.

> Secondly, when you reduced it to a single line, you implemented "cap" and
> "next" I've seen these mentioned before, but don't really get it...

'cap' is a bit advanced and requires some knowledge of the theory of 
Gremlin/Pipes. Here is an explanation. Some steps in Gremlin are called 
sideEffects because they have an internal data structure that they are 
manipulating. groupCount is one such sideEffect step. Internal to groupCount is 
a map (m) -- updating that map is the side-effect of groupCount. If you "cap" a 
sideEffect pipe you are saying:

"Don't output what the input is, while(next) the input and when that is 
drained, output the internal side-effect data structure."

http://tinkerpop.com/maven2/com/tinkerpop/pipes/0.8/api/com/tinkerpop/pipes/transform/SideEffectCapPipe.html

Thus, with ...step.step.groupCount(m).cap you are yielding the internal map of 
groupCount (m), not the output from the previous step. It is a useful technique 
when you want to insert the side-effect of groupCount (its map) into the data 
stream. Finally, all Gremlin expressions are Iterators, so next() just returns 
the next thing in the stream which is the map we just got from cap.

Generally, if you are new to Gremlin, don't try and do massive one-liners. I 
was just trying to show off cause Peter egged me on.

HTH,
Marko.

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


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

2011-11-04 Thread Jure Zakotnik
Hi

I tried the .toString() and it throws the same error. Which is strange,
since in the RepresentationConverter, the string should be returned fine if
no other representation is found. Could the error be somewhere else?

I also forked the Gremlin plugin, but need to get familiar with it (first
time usage).

Actually the getRawGraph was only an example, I'm still trying to do some
lucene magic to get a list of all unique properties in the graph..

Regards Jure


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/REST-api-get-list-of-all-relationship-properties-unique-tp3458852p3481516.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] REST api get list of all relationship properties (unique)

2011-11-04 Thread Peter Neubauer
Jure,
you could just write a testcase that does exactly this - send

g.getRawGraph()

to the plugin and check what is happening
(GremlinPluginFunctionalTest) in the debugger. Let's connect next week
if you can't sort it out?

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 Fri, Nov 4, 2011 at 4:16 PM, Jure Zakotnik  wrote:
> Hi
>
> I tried the .toString() and it throws the same error. Which is strange,
> since in the RepresentationConverter, the string should be returned fine if
> no other representation is found. Could the error be somewhere else?
>
> I also forked the Gremlin plugin, but need to get familiar with it (first
> time usage).
>
> Actually the getRawGraph was only an example, I'm still trying to do some
> lucene magic to get a list of all unique properties in the graph..
>
> Regards Jure
>
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/REST-api-get-list-of-all-relationship-properties-unique-tp3458852p3481516.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] WebAdmin - Import/Export Style Profile

2011-11-04 Thread Peter Neubauer
Kan,
these are right now saved on the browser (client), but Jake and I have
been talking about being able to store the profiles, so you can import
them together with a dataset and have a suitable visual view for a
demo setup.

Could you raiss an issue in https://github.com/neo4j/community/issues
and tag it "webadmin, feature" ?

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 Fri, Nov 4, 2011 at 3:31 PM, KanTube  wrote:
> is there a way to Import/Export a style profile or someway to move a profile
> between db instances ?
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/WebAdmin-Import-Export-Style-Profile-tp3481447p3481447.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] Using the WrappingNeoServerBootstrapper with sbt

2011-11-04 Thread Peter Neubauer
Yes,
I think Ivy is not resolving the transitive deps correctly either, so
try duplicating parts of the neo4j manual Ivy setup in your inline Ivy
(I think I had to pull in Jetty stuff and others explicitly). Sorry
for Ivy not being fully Maven compliant - that sometimes sux!

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 Fri, Nov 4, 2011 at 12:42 PM, Markus Joschko
 wrote:
> I tried it initially but couldn't get it to work because as soon as I
> included the static-web classifier, the server jar was apparently not
> used.
> I opened a thread in the sbt group
> (http://groups.google.com/group/simple-build-tool/browse_thread/thread/15639ba10ddec6cd)
>  but didn't get a response so far.
> When using inline ivy dependencies I at least get both the static-web
> and the server jar included. But apparently something is still
> missing.
>
>
>
> On Fri, Nov 4, 2011 at 7:38 PM, Peter Neubauer
>  wrote:
>> Markus,
>> have you tried the SBT classifiers to get to the same result like Ivy?
>>
>> http://code.google.com/p/simple-build-tool/wiki/LibraryManagement#Classifiers
>>
>> 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 Thu, Nov 3, 2011 at 9:58 AM, Markus Joschko  
>> wrote:
>>> Peter,
>>> I do not exactly have the tutorial running but I have a setup where I
>>> can use neo4j and add/read nodes.
>>> So using neo4j with my current setup is no problem. Starting the
>>> embedded server is.
>>>
>>> Regards,
>>>  Markus
>>>
>>>
>>> On Thu, Nov 3, 2011 at 5:29 PM, Peter Neubauer
>>>  wrote:
 Markus,
 could you first try to get the tutorial up and running so you have a
 working baseline? SBT and Ivy is a quirky combination - not sure
 myself what is going on there at all times. From there, we could try
 working our way down ...

 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 Thu, Nov 3, 2011 at 9:27 AM, Markus Joschko  
 wrote:
> Hi Peter,
> I have seen your posts and the projects.
> I tried to mimic the setup as close as possible. However I also do my
> first steps in sbt which doesn't make it easier.
> My best guess is, that I am missing a jetty dependency. Does the web
> interface of the server need jsp support, e.g?
> These lines seem to be the most "interesting" regarding the error:
>
> INFO: NO JSP Support for /webadmin, did not find
> org.apache.jasper.servlet.JspServlet
> Nov 3, 2011 5:02:20 PM com.sun.jersey.api.core.ScanningResourceConfig init
> INFO: No provider classes found.
>
>
>
>                                                ivyXML :=
> 
>
>                                                   org="org.neo4j.app" name="neo4j-server" rev="1.5-SNAPSHOT">
>
>                                         type="jar" />
>
>                   m:classifier="static-web"/>
>
>   
>
>                                                   org="org.neo4j" name="neo4j-community" rev="1.5-SNAPSHOT" />
>
>                                     name="neo4j-kernel" rev="1.5-SNAPSHOT"/>
>
>                     name="jackson-core-asl" rev="1.7.5" />
>
>          name="jackson-mapper-asl" rev="1.7.5" />
>
>          />
>                                                          org="org.rrd4j" name="rrd4j" rev="2.0.7" transitive="false" />
>
>                                     name="jersey-client" rev="1.6" />
>
>                rev="1.6" />
>
> 
>
>                                                 org="org.aspectj" name="aspectjrt" rev="1.6.11"/>
>
>                                     name="aspectjtools" rev="1.6.11"/>
>
>                
>
> On Thu, Nov 3, 2011 at 5:09 PM, Peter Neubauer
>  wrote:
>> Markus,
>> I just spent a number of afternoons getting into the guts of Ivy and
>> Maven classifiers for the Dr. Who manual. To set up the server
>> dependencies in Ivy (which SBT u

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread Michael Hunger
I also strongly agree. In my discussions with interested people and customers 
this always stood out when pulling cypher to query their data.
They could instantly recognize which parts of their structure are taking part 
in the query.

Michael

Am 04.11.2011 um 21:36 schrieb Tero Paananen:

>> I'd say the strongest part of Cypher is the "ascii art" pattern where you
>> clearly see what you're querying for, right there and then without having
>> to parse it into a graph into your head. Removing that would reduce my
>> interest in this language significantly.
> 
> I strongly agree with this. It's EASY to see the relationships and
> their direction with the syntax right now.
> 
> (cani)<-[:HAS]-(more)-[:CHEEZ]->(burger)
> 
> I glance that and instantly figure out what it's trying to say. The SQL-
> like examples I've seen so far aren't coming even close, IMHO. And
> as the query complexity increases, I think the advantage Cypher's
> syntax has increases even more.
> 
> Additionally I don't find adding a join keyword to a query language that
> queries a data store that has no joins better in any shape or form.
> 
> -TPP
> ___
> 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] sdg: @RelatedToVia in @RelationshipEntity

2011-11-04 Thread Michael Hunger
Yes, relateTo can only be used in Node Entities as Neo4j only allows linking 
Nodes with Relationships.

What is your use-case ?

Cheers Michael

Am 01.11.2011 um 06:29 schrieb Gonfi den Tschal:

> (using sdg 1.1.0RELEASE)
> 
> when using @RelatedToVia in a @RelationshipEntity i get a strange
> compilation error:
> 
>  The method relateTo(Culture, Class, String) is undefined
> for the type MyOtherClass
> 
> i assume the reason is that it can only be used in @NodeEntity?
> the javadoc for @RelatedToVia says "Annotation for NodeEntity fields that..."
> 
> on the other hand the tutorial
> http://static.springsource.org/spring-data/data-graph/docs/current/reference/multi/tutorial_neo4j.html
> states that "Relationships are first-class citizens in Neo4j".
> 
> what's the way of linking relationships to relationships?
> ___
> 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] Cypher->Pickle?

2011-11-04 Thread jadell
This! A thousand times this! Whenever I'm trying to explain how you find
connected information without joins, people's eyes tend to glaze over until
I a) draw the graph on the whiteboard, b) write out the Cypher query
_directly_inside_the_graph_. That's the "no f-ing way!" moment for most
people to see the power of graphs and graph query languages.

-- Josh Adell

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481868.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] Cypher->Pickle?

2011-11-04 Thread jadell

Mattias Persson-2 wrote:
> 
> 2011/11/4 maxdemarzi 
> I'd say the strongest part of Cypher is the "ascii art" pattern where you
> clearly see what you're querying for, right there and then without having
> to parse it into a graph into your head. Removing that would reduce my
> interest in this language significantly.
> 

This! A thousand times this! Whenever I'm trying to explain how you find
connected information without joins, people's eyes tend to glaze over until
I a) draw the graph on the whiteboard, b) write out the Cypher query
*directly inside the graph*. That's the "no f-ing way!" moment for most
people to see the power of graphs and graph query languages. 

-- Josh Adell

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-Pickle-tp3480817p3481871.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] java.lang.IllegalArgumentException launching 1.5M02

2011-11-04 Thread Romiko Derbynew
Any custom JVM switches do not work.

Sent from my iPhone

On 03/11/2011, at 8:56 AM, "Tatham Oddie"  wrote:

> Any tips on where to start?
> 
> I'm going to go looking for ServerProcessConsole.java but any other pointers 
> are welcome. :)
> 
> 
> C:\AzureTemp\Resources\2e546563-a35c-42f6-b903-03317cfdf847\directory\Neo4jInst\neo4j-community-1.5.M02\bin>Neo4j.bat
> java.lang.IllegalArgumentException
>at java.lang.ProcessImpl.(Unknown Source)
>at java.lang.ProcessImpl.start(Unknown Source)
>at java.lang.ProcessBuilder.start(Unknown Source)
>at java.lang.Runtime.exec(Unknown Source)
>at 
> org.neo4j.wrapper.ServerProcessConsole.doStart(ServerProcessConsole.java:39)
>at org.neo4j.wrapper.ServerProcess.(ServerProcess.java:116)
>at 
> org.neo4j.wrapper.ServerProcessConsole.(ServerProcessConsole.java:29)
>at 
> org.neo4j.wrapper.NeoServiceWrapper.launchAsConsoleApp(NeoServiceWrapper.java:48)
>at org.neo4j.wrapper.NeoServiceWrapper.main(NeoServiceWrapper.java:35)
> 
> C:\AzureTemp\Resources\2e546563-a35c-42f6-b903-03317cfdf847\directory\Neo4jInst\neo4j-community-1.5.M02\bin>
> 
> --
> Tatham Oddie
> au mob: +61 414 275 989, us cell: +1 415 598 8201, 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


Re: [Neo4j] 1.5.M02 - JVM BootStrapper Issues

2011-11-04 Thread Romiko Derbynew
Windows

Sent from my iPhone

On 04/11/2011, at 11:40 AM, "Peter Neubauer"  
wrote:

> Romiko,
> is this on Windows or Linux?
> 
> 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 Thu, Nov 3, 2011 at 5:22 PM, Romiko Derbynew
>  wrote:
>> Hi Peter,
>> 
>> I tried that as well, but to no avail, here is how to reproduce it.
>> 
>> #
>> # JVM Parameters
>> #
>> 
>> wrapper.java.additional.1=-Dorg.neo4j.server.properties=conf/neo4j-server.properties
>> wrapper.java.additional.2=-Djava.util.logging.config.file=conf/logging.properties
>> 
>> # Uncomment the following line to enable garbage collection logging
>> #wrapper.java.additional.3=-Xloggc:data/log/neo4j-gc.log
>> 
>> #These three lines are behaving badly.
>> wrapper.java.additional.4=-d64
>> wrapper.java.additional.5=-server
>> wrapper.java.additional.6=-Xss2048k
>> 
>> 
>> # Initial Java Heap Size (in MB)
>> wrapper.java.initmemory=512
>> 
>> # Maximum Java Heap Size (in MB)
>> wrapper.java.maxmemory=1024
>> 
>> #
>> # Wrapper settings
>> #
>> 
>> 
>> -Original Message-
>> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
>> Behalf Of Peter Neubauer
>> Sent: Friday, 4 November 2011 10:48 AM
>> To: Neo4j user discussions
>> Cc: Tatham Oddie
>> Subject: Re: [Neo4j] 1.5.M02 - JVM BootStrapper Issues
>> 
>> Romiko,
>> could you give the parameters different numbers, like in
>> https://github.com/neo4j/packaging/blob/master/standalone/src/main/distribution/text/community/conf/neo4j-wrapper.conf#L5
>> and try again?
>> 
>> 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 Thu, Nov 3, 2011 at 4:07 PM, Romiko Derbynew 
>>  wrote:
>>> Hi Guys,
>>> 
>>> I have downloaded the latest Community edition and notice these three 
>>> custom lines of code causing the Neo4J server not to start up:
>>> 
>>> wrapper.java.additional.1=-d64
>>> wrapper.java.additional.1=-server
>>> wrapper.java.additional.1=-Xss2048k
>>> 
>>> With the previous version, they worked fine. They live at the bottom
>>> of the neo4j-wrapper.conf
>>> 
>>> Error I get is.
>>> java.lang.IllegalArgumentException
>>>at java.lang.ProcessImpl.(Unknown Source)
>>>at java.lang.ProcessImpl.start(Unknown Source)
>>>at java.lang.ProcessBuilder.start(Unknown Source)
>>>at java.lang.Runtime.exec(Unknown Source)
>>>at
>>> org.neo4j.wrapper.ServerProcessConsole.doStart(ServerProcessConsole.j
>>> ava:39)
>>>at
>>> org.neo4j.wrapper.ServerProcess.(ServerProcess.java:116)
>>>at
>>> org.neo4j.wrapper.ServerProcessConsole.(ServerProcessConsole.ja
>>> va:29)
>>>at
>>> org.neo4j.wrapper.NeoServiceWrapper.launchAsConsoleApp(NeoServiceWrap
>>> per.java:48)
>>>at
>>> org.neo4j.wrapper.NeoServiceWrapper.main(NeoServiceWrapper.java:35)
>>> 
>>> Is this expected, since I am sure the JVM should support adding these 
>>> additional parameters?
>>> 
>>> I want these in here, so I can always ensure it is 64bit, server mode
>>> with a stack size of 2048k
>>> 
>>> 
>>> ___
>>> 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 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] java.lang.IllegalArgumentException launching 1.5M02

2011-11-04 Thread Peter Neubauer
Rasied https://github.com/neo4j/packaging/issues/2 and will
investigate. Thanks for reporting!

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 Fri, Nov 4, 2011 at 10:14 PM, Romiko Derbynew
 wrote:
> Any custom JVM switches do not work.
>
> Sent from my iPhone
>
> On 03/11/2011, at 8:56 AM, "Tatham Oddie"  wrote:
>
>> Any tips on where to start?
>>
>> I'm going to go looking for ServerProcessConsole.java but any other pointers 
>> are welcome. :)
>>
>>
>> C:\AzureTemp\Resources\2e546563-a35c-42f6-b903-03317cfdf847\directory\Neo4jInst\neo4j-community-1.5.M02\bin>Neo4j.bat
>> java.lang.IllegalArgumentException
>>        at java.lang.ProcessImpl.(Unknown Source)
>>        at java.lang.ProcessImpl.start(Unknown Source)
>>        at java.lang.ProcessBuilder.start(Unknown Source)
>>        at java.lang.Runtime.exec(Unknown Source)
>>        at 
>> org.neo4j.wrapper.ServerProcessConsole.doStart(ServerProcessConsole.java:39)
>>        at org.neo4j.wrapper.ServerProcess.(ServerProcess.java:116)
>>        at 
>> org.neo4j.wrapper.ServerProcessConsole.(ServerProcessConsole.java:29)
>>        at 
>> org.neo4j.wrapper.NeoServiceWrapper.launchAsConsoleApp(NeoServiceWrapper.java:48)
>>        at org.neo4j.wrapper.NeoServiceWrapper.main(NeoServiceWrapper.java:35)
>>
>> C:\AzureTemp\Resources\2e546563-a35c-42f6-b903-03317cfdf847\directory\Neo4jInst\neo4j-community-1.5.M02\bin>
>>
>> --
>> Tatham Oddie
>> au mob: +61 414 275 989, us cell: +1 415 598 8201, 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] 1.5.M02 - JVM BootStrapper Issues

2011-11-04 Thread Peter Neubauer
Romiko,
this is probably linked to the same issue,
https://github.com/neo4j/packaging/issues/2

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 Thu, Nov 3, 2011 at 4:07 PM, Romiko Derbynew
 wrote:
> Hi Guys,
>
> I have downloaded the latest Community edition and notice these three custom 
> lines of code causing the Neo4J server not to start up:
>
> wrapper.java.additional.1=-d64
> wrapper.java.additional.1=-server
> wrapper.java.additional.1=-Xss2048k
>
> With the previous version, they worked fine. They live at the bottom of the 
> neo4j-wrapper.conf
>
> Error I get is.
> java.lang.IllegalArgumentException
>        at java.lang.ProcessImpl.(Unknown Source)
>        at java.lang.ProcessImpl.start(Unknown Source)
>        at java.lang.ProcessBuilder.start(Unknown Source)
>        at java.lang.Runtime.exec(Unknown Source)
>        at 
> org.neo4j.wrapper.ServerProcessConsole.doStart(ServerProcessConsole.j
> ava:39)
>        at org.neo4j.wrapper.ServerProcess.(ServerProcess.java:116)
>        at 
> org.neo4j.wrapper.ServerProcessConsole.(ServerProcessConsole.ja
> va:29)
>        at 
> org.neo4j.wrapper.NeoServiceWrapper.launchAsConsoleApp(NeoServiceWrap
> per.java:48)
>        at org.neo4j.wrapper.NeoServiceWrapper.main(NeoServiceWrapper.java:35)
>
> Is this expected, since I am sure the JVM should support adding these 
> additional parameters?
>
> I want these in here, so I can always ensure it is 64bit, server mode with a 
> stack size of 2048k
>
>
> ___
> 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