Skip to main content
Version: 3.2

2.6.2 Relationships

Relationships define the connections between Target Entities in the knowledge graph. Where Target Entities become the nodes, Relationships become the edges that link them.

A Relationship connects a from entity to a to entity through one property on each side: rows are linked where the from-property value matches the to-property value. Each Relationship has a type (the label the edge carries in the graph, for example PLACED or BELONGS_TO) and, optionally, a separator for splitting many-to-many values.

Once processed through the Build operation, Relationships become navigable in the Exploration module. To open an existing Relationship, switch to the Relationships tab in the Model and double-click it; its details open in a panel on the right.

Defining a Relationship​

A Relationship is defined by:

  • From entity and From property: the source node and the property that starts the edge.
  • To entity and To property: the target node and the matching property.
  • Type: the edge label in the graph (see Relationship type).
  • Separator (optional): a split character for many-to-many relationships (see Separator).

There are two ways to create one:

  • From the list: choose Add new › Relationship, then pick the from/to entities and properties and set the type.
  • On the canvas: drag a connection line from one Target Entity node to another; a dialog opens to configure the from/to properties, type and separator.

The Relationship detail panel: the From and To entities and their properties, the Type, and the Separator

Relationship type​

The type is the label the relationship carries in the knowledge graph, how it is named when queried or explored. Types follow Neo4j relationship-type conventions:

  • Written in upper case, with underscores between words (BELONGS_TO, HAS_PARENT).
  • No whitespace and no special characters.

Examples: PLACED, CONTAINS, BELONGS_TO, CREATED_BY.

Separator​

The separator resolves many-to-many relationships. When a source property holds several values in one field (for example "123,456,789"), the separator is the character used to split them, and DCH creates one relationship per value.

Common separators are , (comma), ; (semicolon) and | (pipe). With the value "123,456,789" and separator ,, three separate relationships are created, one for each ID.

Reverse relationship​

Reverse relationship swaps the two sides of a Relationship in one step: the From entity/property and the To entity/property are exchanged, while the type and separator are kept. Use it when the direction was set the wrong way round, instead of reconfiguring both sides by hand.