CogniteMigration data model.
Prerequisites
Before migrating data sets, complete the following:Required capabilities
Migrating data sets
Data sets are migrated one-to-one to instance spaces. For each data set in the asset-centric model, the command creates a corresponding instance space in data modeling.Run `cdf migrate data-sets`
cdf migrate data-sets --help.Verify the instance spaces and lineage
CogniteMigration data model. See Verify the migration.Move the generated space files into a module
tmp/ (by default). Move them into the Cognite Toolkit modules/ folder. See Governing instance spaces.Verify the migration
After a successful run, each selected data set has a corresponding instance space, and theCogniteMigration model contains lineage nodes for those data sets.
For example, in the Kelmarsh example project, migrating the data set produces this lineage node:

source_data was created from the data set with ID 1496359352069198 and
external ID source_data.
Governing instance spaces
After you runcdf migrate data-sets, the Cognite Toolkit writes instance space configuration files to the tmp/ folder (by default). Move these files into the Cognite Toolkit modules/ folder and govern them going forward.
For the Kelmarsh example, move the files from tmp/data_modeling/ to:
source_data.Space.yaml is:
What cdf migrate data-sets does
When you run cdf migrate data-sets, the migration plugin performs the following steps:
Download selected data sets
Convert each data set to an instance space
dataSetExternalId becomes the space property of the instance space. The space value
can only be 43 characters and must satisfy the regex ^[a-zA-Z][a-zA-Z0-9_-]{0,41}[a-zA-Z0-9]?$, while
data set external IDs can be up to 256 characters and can contain any UTF-8 characters. If you pass
the --auto-fix flag, the migration plugin adjusts the space property to satisfy these requirements.Create the new spaces
Create lineage nodes in the CogniteMigration data model
SpaceSource view in the CogniteMigration data model. They store the ID
and external ID of the original data set, along with the ID of the created instance space.
Later migration phases use this information to look up which instance space
to use when creating data model instances.Output the instance space configuration for each created instance space
tmp/ folder by default. See Governing instance spaces.