Samwillie
unread,May 22, 2012, 8:34:10 AM5/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Neo4j
Hello all,
I use neo4j 1.8.M02 in my java web application. I have the following
issue, and would appreciate any help...
An example that reflects my issue is described below for better
understanding.
Movie - ACTS_IN - Actor
where Movie is a node, ACTS_IN is a relationship type and Actor is a
node.
Apart from this, the ACTS_IN relationship type has a role property,
say ROLE.
Lets say I have 10 Movie nodes and each "Movie" node has a
relationship to 5 actor nodes, each having a "Role" relationship
property.
start n = node({nodeId}) match (n)<-[r:ACTS_IN]-(x) return x, r.role
would give me all actor nodes and the specific role that the actor
plays in the movie.
Now from the obtained Cypher Query Result, I want to add the obtained
role value for each actor as a property in the Actor node and then
return the Actor node (just for display purposes, which means this
action must not actually add a new property in the database). Is this
possible?
The display is XML and I serialize the node to XML later so I need an
element that also has the role property within the actor node.
Thanks,