cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Enforcing inheritance for Hierarchical relations in Neo4j

I'm coming from a triple store RDF-based graph background, and I wanted to implement the parent child relation where the child inherits the parents properties is this possible in Neo4j

2 REPLIES 2

There is no built in inheritance behavior in Neo4j, but there are some ways to reach the same desired state.

I guess the question is, do you only want this information at query time? Or do you want to copy the properties from the parents to the child? How should that behave when the child updates its properties vs when a parent updates their properties? Does a child inherit from its immediate parents, or from all parents up some relationship chain? How should conflicts be handled (does a closer parent's properties override a more distant ancestor)?

I wish somebody would expand on this topic here.