Validate

If a data model has been associated with a Scenario Set and at least one Cypher statement has been associated with a Scenario, you can Validate that the Cypher statements conform to the data model.

To validate, use the Validate > Validate Cypher menu item. To clear validation results, use the Validate > Clear Validation menu item.

When validation is run, every associated Cypher statement is compared to the associated data model, checking to see if the Node Labels and Relationship Types used in the Cypher statement are present in the model. For each statement an icon will appear to the left of the statement:

  • Green checkmark: Indicates that the Cypher conforms to the model

  • Yellow triangle: Indicates that the Cypher does not conform to the model. Hovering over the icon will show which Node Labels and Relationship Types are missing from the model.

Cypher Highlighted in Model

Make sure the Data Model panel is open on the right hand side.

Clicking on the Cypher statement itself will highlight any Node Labels and Relationship Types that are contained both within the Cypher statement and in the displayed model. This shows the parts of the model the Cypher statement exercises. Use the Clear Highlights button to clear highlights in the model.

Fixing Validation issues

Clicking on the Cypher statement will show any Node Labels and Relationship Types that are not in the model below the Cypher statement as a link with a plus () button. Clicking on a () link will add that Node Label or Relationship Type to the model. Alternatively, you can edit the model in the Model tool, or you can edit the Cypher statement in Cypher Suite or Cypher Builder to correct Node Labels and Relationship Types.