Hi Rolf,

I think the problem is that you are using snapshot syntax on an older
version of Cypher. Cypher is still a moving target, and we've changed quite
a bit for this upcoming 1.5 release.

Make sure that you read the documentation for the version you are using. If
you still have problems, let us know!

HTH,

Andrés

On Thu, Oct 6, 2011 at 10:30 AM, Rolf Bolt <[email protected]> wrote:

> Hi Peter,
>
> Thanx for your fast reply! Herewith, my neo4j 'datamodel' and some examples
> of queries I tried to get an understanding of what is going wrong.
>
> *---- USED NODES & RELATIONS ---------*
> (PERSON A) -[IS_OWNER_OF]->(CAR B)
> (PERSON A) -[IS_REQUESTING_HELP_FOR]->(CARBREAKDOWN C)
> (CARBREAKDOWN C) -[CONCERNS]-> (CAR B)
> (PERSON D) -[IS_HELPER_BY]->(CARBREAKDOWN C)
>
> A PERSON has a length (in dutch: lengte) attribute.
>
> *---- Trying the ID function ---------*
> cypher> start a=(0)
> cypher> return ID(a)
> cypher>
> ==> Error: MatchError - (((id~()~<function1>)~)) (of class
> scala.util.parsing.combinator.Parsers$$tilde)
> cypher>
>
> *------Trying the ALL function ----------*
> Cypher documentation about a query for the function ALL is suggesting:
>
> start a=(0), b=(3) match p=a-[*1..2]->b
> where all(nodes(p), x => x.lengte > 150) return p
>
> Tried this rightaway but get syntax error:
> ==>`]' expected but `*' found
>
> Other (old) documentation suggested a ^ instead of a *.
>
> Tried:
> start a=(0), b=(3) match p=a-[*1..2]->b
> where all(nodes(p), x => x.lengte > 150) return p
> But get:
> ==>`]' expected but `^' found
>
> So I decided to skip the depth delimiter [^1..2].
> Tried:
> start a=(0), b=(3) match p=a-->b
> where all(nodes(p), x => x.lengte > 150) return p
> But get:
> ==> Probably missing quotes around a string
> ==> "start a=(0), b=(3) match p=a-->b  where all(nodes(p), x => x.lengte >
> 150) return p"
> ==>                                             ^
>
> Because the ^ indicater was around the 'nodes' command, I got the feeling
> that this command is not recognized. So I tried the query example for nodes
> right from the documentation:
> cypher> start a=(0), c=(3) match p=a-->b-->c return nodes(p)
> cypher>
> But get:
> ==> Error: MatchError - (((nodes~()~<function1>)~)) (of class
> scala.util.parsing.combinator.Parsers$$tilde)
>
> Conclusion, I am pretty stuck.
>
> Could you help me out?
>
> And another question, is there a formal syntax description of Cypher like
> the way SQL is defined (example:
> http://dev.mysql.com/doc/refman/5.0/en/insert.html)
>
> Kind regards,
>
> Rolf Bolt
> Informatie Architect
> *Caerleon*
>
> Watertoren Bussum - Bussumergrindweg 1a - 1406 NZ - Bussum
> *[T] 035-2030011  [F] 055-5786622  [M] 06-52628810  [E]
> [email protected]*
>
> Caerleon is informatie innovator met een focus op Zorg & Welzijn en de
> Energiemarkt. Caerleon is een werkmaatschappij van de Profict Group.
> Profict
> (voor het snel maatwerk realiseren van business applicaties) en Trivento
> (voor applicatiebeheer) maken onderdeel uit van de groep.
>
> Klanten waaronder NUON, Eneco, Electrabel, Agis Zorgverzekeringen, Salland
> verzekeringen, Zwitserleven, FWG, Gemeente Amsterdam, Gemeente Rotterdam,
> SIDN en de Nationale Postcode Loterij hebben de expertise van Caerleon
> ingeroepen om complexe businessvraagstukken op te lossen en concrete
> zakelijke resultaten te boeken. Caerleon is gevestigd in het meest duurzame
> kantoorpand in Nederland: de Bussumse Watertoren in Bussum. Kijk voor meer
> informatie op: *www.caerleon.nl* <http://www.caerleon.nl/>
>
>
>
> 2011/10/6 Peter Neubauer <[email protected]>
>
> > Rolf,
> > Do you have your full cypher query so I can test it?
> >
> > /peter
> >
> > Sent from my phone.
> > On Oct 5, 2011 11:22 PM, "boltr" <[email protected]> wrote:
> > > Hi Peter,
> > >
> > > I tried to use the ANY, ALL and other Cypher functions in Webadmin
> > console
> > > but discovered that I got errormessages like:
> > >
> > > Error: MatchError - (((id~()~<function1>)~)) (of class
> > > scala.util.parsing.combinator.Parsers$$tilde)
> > >
> > > Does that mean that these functions are not implemented yet? If not, do
> > you
> > > have an idea when these functions are realized? If they are, do you
> have
> > an
> > > idea what is going wrong (I am a non programmer....)
> > >
> > > Kind regards,
> > >
> > > Rolf Bolt
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> >
> >
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-node-IDs-tp3282640p3398001.html
> > > Sent from the Neo4j Community Discussions mailing list archive at
> > Nabble.com.
> > > _______________________________________________
> > > Neo4j mailing list
> > > [email protected]
> > > https://lists.neo4j.org/mailman/listinfo/user
> > _______________________________________________
> > Neo4j mailing list
> > [email protected]
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to