Skip to main content
Version: 4.0

2.6 Build

Build is the second step of the Model session. It takes the Target Entities you curated in the Model and processes them into the knowledge graph, where their nodes and Relationships become queryable. A build runs as a queued job, so you can start it and follow its progress in the Queue.

Data moves through two layers:

  • Staging layer: each entity's Data Import Configuration loads source data into the entity's staging tables, where it is held before it reaches the graph.
  • Graph layer: the staged data is processed into graph nodes and relationships.

A build works through these in a fixed order: it clears staging for any entity you flagged, imports each configuration into staging (one after another), rebuilds each entity's relationship content in the staging layer, and finally processes the staged data into the graph. Once the build finishes, you can query the result in Exploration. To run builds automatically or on a schedule, use Workflows.

Open the Build step​

In the Model, select the Target Entities you want on the canvas and choose Build Selected. The entities you selected carry over into the build queue and the session moves to the Build step.

You can adjust the queue on the Build screen:

  • The Available list on the left holds every Target Entity. Search it, then use the checkboxes (or Select all) to add more entities to the queue; Clear selection empties it.
  • Each queued entity appears as a configuration card on the right. The header counts how many entities are in build queue, and Back to Model returns you to the canvas.
  • Switch between List, the cards one below the other, and Graph, the same cards laid out with the relationships between them.

The Build step: the Available entity list on the left and one configuration card per queued entity on the right, each with Staging and Graph options

Per-entity parameters​

Every card sets how one entity is processed, split into a Staging side and a Graph side.

Staging

  • Import mode: how imported rows are matched against the entity's existing staging data on the business key: Insert, Update or PreservingMerge. See Import options for what each mode does. Choosing a mode enables Select configuration.
  • Select configuration: which of the entity's Data Import Configurations to import from. You can pick more than one; they run in order.
  • Clear: clear the entity's existing staging data before importing.

Graph

  • Relationship scope: which of the entity's relationships to (re)create in the graph: All, None, Incoming, Outgoing or Selected. The N rel badge shows how many relationships touch the entity; with Selected, choose at least one in Select relationships.
  • Clear: clear the entity's existing graph data before processing. This removes the entity's nodes from the graph and drops its search index.
  • Process: process the staged data into the graph. This is on by default; turn it off to import into staging only, without building the graph.
  • Imported since (Select date): process only the data imported after this point in time, instead of everything in staging. Pick a date in the calendar, or a relative date expression.

Add related adds the entities connected to this one by a relationship to the build queue, so a related set can be built together. Remove a card from the queue with its ✕.

tip

Match the import mode to what you want to happen: Insert only adds business keys that are not in staging yet, Update only changes rows that already exist, and PreservingMerge does both (add new rows and update existing ones) in one pass.

Date expressions​

A date expression in Imported since is resolved each time the job is queued, so a scheduled Workflow always processes the latest data instead of a fixed date. The picker offers presets that write the expression for you: Today, Yesterday, 3 days ago, 7 days ago and N days ago. You can also type one, in the form ${<base><offset>:<format>}:

  • Base: today or yesterday (midnight, server time), now (server time) or utcnow (UTC).
  • Offset (optional): whole days to add or subtract, for example -3 or +7.
  • Format: a .NET date format, usually yyyy-MM-dd.

To start at a time other than midnight, append it: ${yesterday:yyyy-MM-dd}T06:00:00Z.

ExpressionMeans
${today:yyyy-MM-dd}today, from midnight
${yesterday:yyyy-MM-dd}yesterday, from midnight
${today-7:yyyy-MM-dd}7 days ago, from midnight
${now:yyyy-MM-ddTHH:mm:ss}the moment the job is queued
caution

Plain words such as yesterday are not expressions. A value without ${...}, or with an unknown base, cannot be read as a date. DCH then rejects the build with an error that lists the supported expressions.

Job options​

Fail on warnings applies to the whole build. When it is on, the job fails as soon as it reports a warning, for example a row skipped because its business key is empty. When it is off (the default), the job finishes with warnings, which you find in the job's logs.

Bulk set parameters​

When several entities should share the same settings, choose Bulk set parameters. Pick the entities on the left, set any combination of Staging and Graph parameters on the right, and choose Set to apply them to all selected cards at once. The configurations to import from are still chosen per card, and the relationship scope offers All, None, Incoming and Outgoing (the default).

The Bulk set parameters dialog: select entities on the left, then set shared Staging and Graph parameters to apply to all of them

Run the build​

Choose Run build to queue the job. DCH confirms with "Import job has been queued." and an Open details action that opens the job in Queue Jobs. A build has no separate confirmation step, so review the cards first.

Follow the job in Queue Jobs, where each step reports its progress. The job first prepares the entities, then imports each configuration into staging, then rebuilds the relationships in the staging layer, and finally processes everything into the graph. A running job can be cancelled.

note

A build does only what the cards ask for. It does not clear staging or graph data unless you set the matching Clear option, and it does not touch the graph at all unless Process is on. Importing into staging with Process off is a valid way to stage data without building it.

Clear the entire graph​

Clear entire graph removes all data from the knowledge graph, not just the queued entities. DCH asks you to confirm before it runs.

caution

Clearing the entire graph deletes every node and relationship in it. Use it to start the graph over, not as part of a routine build.