How to apply rules on incoming triplets in Neo4j graph?

Thanks for your answe Dhruv, I will check it out.
Can you please have a look on my question that directly connects to this one?

I will be happy to get your help there.