NeatSession to read a data model from CDF, explore validator insights, and perform a dry-run write to inspect deployment plans. By the end, you will have read the Cognite Core Data Model, reviewed its validator findings, and seen what would be deployed without making changes.
Prerequisites:
- NEAT installed. See Installation
- Launched a notebook environment
Instantiate NeatSession
NeatSession is the main interface for NEAT. It guides you through capabilities and helps avoid mistakes. See the NeatSession reference and configuration documentation for details.Import and create a client:CogniteClient. get_cognite_client picks up credentials from a .env file or guides you through setup.Start a session with the legacy-additive profile, which uses additive mode and a legacy validator set:Read a data model from CDF
Read the Cognite Core Data Model. Validators run during the read and produce insights:To enable more validators, switch to Use
You can read from Excel, JSON, or YAML using the appropriate reader in
deep-additive and read again:neat.issues to open a web UI where insights are grouped by validator code:
neat.physical_data_model.read. See reading physical data models.Write and inspect the deployment plan
Write the model back to CDF in dry-run mode. No data is written; you only see the planned changes:Use
In non-dry-run mode,
neat.result to open a web UI showing what would be created, updated, deleted, unchanged, or skipped:
neat.result shows the actual deployment outcome. You can also write to Excel, JSON, or YAML using neat.physical_data_model.write. See writing physical data models.Troubleshooting
IfNeatSession initialization fails with a connection error, you may have ad-blockers blocking NEAT’s usage analytics. See Known issues with NEAT for workarounds.
What you accomplished
You read the Cognite Core Data Model from CDF, explored validator insights vianeat.issues, and ran a dry-run write to inspect the deployment plan without applying changes.
Next steps
- Data modeling in Excel — Define physical data models in spreadsheets
- Validation — Learn about validators and how to interpret findings
- NeatSession reference — Full API for reading and writing data models