concept node entity in category graphs

appears as: node entities, node entity, node entities
Neo4j in Action

This is an excerpt from Manning's book Neo4j in Action.

  • Modeling node entities
  • A relationship entity is the relationship version of a node entity. It refers to a Java class that’s ultimately represented and backed by a Neo4j relationship in the underlying graph database. Neo4j treats relationships as first-class citizens, which, just like nodes, can have their own identifiers and sets of properties if required. Thus, SDN also allows them to be represented as entities in their own right. Figure 9.4 highlights these relationships within the domain model.

    Figure 9.4. A social network model with highlighted relationships that could potentially be modeled as relationship entities

    In this section we’ll cover what’s required to model the physical Neo4j relationship entity as a POJO itself; in section 9.2.5, we’ll show what’s required from the node entity’s perspective to refer to other node entities through these modeled relationships, as well as through simpler mechanisms.

    9.2.3. Modeling node entities

    Within SDN, a node entity refers to a Java class that’s being used to represent a particular domain entity represented and backed by a Neo4j node primitive in the underlying graph database. Figure 9.3 highlights candidate nodes within the social network domain model that could be modeled as SDN node entities.