match path = (startnode)-[:REL*]->()
match path = (startnode)-{[:FIRST_REL]->()-[:SECOND_REL]->()}*
http://docs.neo4j.org/chunked/snapshot/query-where.html#where-filtering-on-relationship-type
which means
match path = (startnode)-[e:*]->() where type(r) =~ /FIRSTREL|SECONDREL/
with regexp, or direct
match path = (startnode)-[e:*]->() where type(r) = "FIRSTREL" OR
type(r)="SECONDREL"
or something along these lines.
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
You know how you can get paths of different lengths from this?:match path = (startnode)-[:REL*]->()I'd like to do the same thing, but i need more than just a single relationship to repeat:match path = (startnode)-{[:FIRST_REL]->()-[:SECOND_REL]->()}*I'm just making up syntax there.^ The essential thing is that i need to repeat the section of the path "-[:CONTAINS]->()-[:RELATES_TO]->()" multiple times.Is this possible?
PS: The freenode IRC channel isn't too lively as of late.
Yeah,
We haven't been hanging out there lately, mostly because of one more channel being open, that one with bad logging possibility.
Who is interested in having more active conversation there again?
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo