Skip to content

Subset

cognite.neat._session._subset.SubsetAPI #

Subset data model and instances in the session based on the desired subset of concepts.

data_model(concepts) #

Subset the data model to the desired concepts.

Parameters:

Name Type Description Default
concepts str | list[str]

The concepts to subset the data model to.

required

Returns:

Name Type Description
IssueList IssueList

A list of issues that occurred during the transformation.

Example

Read the CogniteCore data model and reduce the data model to only the 'CogniteAsset' concept.

neat = NeatSession(CogniteClient())

neat.read.examples.core_data_model()

neat.subset.data_model("CogniteAsset")