> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Cognite Data Fusion (CDF) is an industrial DataOps platform. Prefer English docs unless the user asks for another locale.
> Follow /_llms/ index links recursively until you reach page URLs ending in .md. Fetch those Markdown twins instead of HTML.
> For REST APIs, default to calendar version 20230101 (stable). Use 20230101-beta or 20230101-alpha only if the user is on a preview API. Cite paths under /api-reference/concepts/<version>/ and the Cdf-Version header. Prefer the Python SDK (cognite-sdk) unless the user is in JavaScript/TypeScript.
> Start here by task: platform overview /cdf/index.md; data modeling /cdf/dm/index.md; data integration /cdf/integration/index.md; access /cdf/access/index.md; CDF Toolkit /cdf/deploy/cdf_toolkit/index.md; REST quickstart /dev/quickstart.md; Python SDK https://cognite-sdk-python.readthedocs-hosted.com/en/stable/; Atlas AI /cdf/atlas_ai/index.md; plan an Atlas AI agent /cdf/atlas_ai/concepts/atlas_ai_agent_planning.md; Flows apps /cdf/flows/index.md; MCP and IDE setup /dev/guides/ide_ai_integration.md.
> For implementation work, also load /skill.md.

# Generic Industry Data Model reference

> Complete reference for the Generic Industry Data Model deployment pack, an industry-neutral, tag-centric model on the core and process industries data models, with search views and alarm records.

The **Generic Industry Data Model** (`dp:models:industry_domain_extension`, listed as **Industry Domain Data Model template** in the Cognite Toolkit) is an industry-neutral enterprise data model template for asset-heavy industries such as process, manufacturing, utilities, energy, mining, and infrastructure. It extends the Cognite core data model (`cdf_cdm`) and the process industries data model (`cdf_idm`) with a single `Tag` asset hub, work management views, two lightweight custom types, and an `AlarmEvent` record type for high-volume alarms.

Use it when no standards-based model (CFIHOS or ISA) fits your project, or as a clean starting point you adapt to your own source systems. The data model modules define the schema and include demo properties. They do not include sample source data. Add the sample data modules, or the Industry Domain Deployment Pack Demo, to load sample instances. Replace the demo properties with your real source fields **before the first production deployment**.

The model is delivered as two cherry-pickable modules inside the **Data models** deployment pack (`dp:models`):

* **`industry_domain_extension`** — the enterprise model (`Industry_DOM`). It owns the containers, views, the alarm stream, and the access groups.
* **`industry_domain_extension_search`** — the search model (`IndustrySearch_SOL`). It is a schema-only search solution model that maps the enterprise containers into views that give users access to the content.

The `_DOM` suffix marks an enterprise (domain) data model, and `_SOL` marks a solution data model built for a specific consumer.

> [!NOTE]
>
> To deploy both modules together with sample SAP, PI, and SharePoint data, use the **Industry Domain Deployment Pack Demo** (`dp:industry_quickstart`). See [Install and deploy](#install-and-deploy).

## Who it's for

Data engineers, data modelers, and solution architects use this pack to start a CDF project on a governed, extensible data model without building it from scratch.

### Target personas

* **Data engineers** — deploy the model with the Cognite Toolkit, and point ingestion at real source systems.
* **Data modelers** — map source fields to the template, trim unused types, and extend the model for gaps.
* **Solution architects** — decide instance spaces, access groups, and how the enterprise and search models are consumed.

### When to use this pack

* You need an asset-centric data model for an industry that no standards-based pack covers.
* You want work orders, operations, and notifications that follow the process industries data model. The work views use the same types as InField.
* You want high-volume alarm events stored as records in a stream instead of as nodes.
* You want a search-optimized model that stays decoupled from enterprise view versions.
* You want a documented adaptation procedure (`SPEC.md`) that both people and AI agents can follow.

### When not to use this pack

* Your project is oil and gas and needs CFIHOS 2.0 equipment classes. Use the [Oil and Gas Data Model](https://docs.cognite.com/cdf/deploy/cdf_toolkit/references/packages/oil_gas_data_model.md).
* Your project is batch or discrete manufacturing that needs the ISA-95 and ISA-88 hierarchies. Use the [ISA Data Model](https://docs.cognite.com/cdf/deploy/cdf_toolkit/references/packages/isa_data_model.md).
* You only need reliability and maintenance entities. Use the [Reliability and Maintenance Data Model](https://docs.cognite.com/cdf/deploy/cdf_toolkit/references/packages/rmdm.md).

## What's included

The two data model modules define schema, governance, and access only. Sample source data, transformations, and load workflows live in three separate sample data modules.

| Component | Module | Description | Optional? |
| - | - | - | - |
| Enterprise data model (`Industry_DOM`) | `industry_domain_extension` | Ten containers and matching views: nine node types and one record type. The data model also references `CogniteAssetType`, `CogniteEquipmentType`, and `CogniteFileCategory` from `cdf_cdm`. | No |
| Alarm stream | `industry_domain_extension` | Records stream for `AlarmEvent` (default `pi_all_alarm_event`, template `BasicArchive`). | No |
| Spaces, data set, and location filter | `industry_domain_extension` | Schema space `dm_dom_industry`, instance space `inst_location`, data set `ds_industry_all`, and location filter `loc_industry_all`. | No |
| Enterprise access groups | `industry_domain_extension` | Admin, domain producer, processing pipeline, and workflow operator groups. See [Access groups](#access-groups). | No |
| Search data model (`IndustrySearch_SOL`) | `industry_domain_extension_search` | Nine `Search*` views that map the enterprise containers and host reverse relations. Schema-only: no containers, no transformations, no instance space. | Yes |
| Search access group and location filter | `industry_domain_extension_search` | Consumer group `consumer_industry_sol_<env>` and location filter `loc_industry_search_all`. | Yes |
| SAP sample data | `cdf_sap_industry_data_dump` | CDF RAW tables, transformations, and workflow `wf_sap_all_to_industry` for tags, equipment, materials, work orders, operations, and notifications. | Yes |
| PI sample data | `cdf_pi_industry_data_dump` | RAW tables, transformations, the alarm ingestion function `fn_pi_all_ingest_alarm_event`, and workflow `wf_pi_all_to_industry` for time series, operating limits, and alarm records. | Yes |
| SharePoint sample data | `cdf_sharepoint_industry_data_dump` | RAW tables, transformations, sample files, and workflow `wf_sharepoint_all_to_industry` for documents, diagram annotations, and equipment-to-document links. | Yes |

Every property in the template is marked in its description as either `CONTRACT:` (structural wiring you keep) or `SOURCE_SCAFFOLD:` (demo property you rename, replace, or delete). See [Adapt the template to your project](#adapt-the-template).

## Prerequisites

Verify all of the following before you start:

* The Cognite Toolkit, version **0.9 or later** (record view `streamId` support). See [Setting up](https://docs.cognite.com/cdf/deploy/cdf_toolkit/guides/setup.md).

* A `cdf.toml` file exists in your project root. Authentication is configured. Run `cdf auth init` and `cdf auth verify`. See [Authentication and authorization](https://docs.cognite.com/cdf/deploy/cdf_toolkit/guides/auth.md).

* `.env` includes the Microsoft Entra ID group object IDs for the access groups the modules create. In the group names, `<env>` is your environment name, such as `dev` or `prod`:

  | Variable | Access group | Module |
  | - | - | - |
  | `ADMIN_GROUP_SOURCE_ID` | `admin_industry_all_<env>` | `industry_domain_extension` |
  | `DOM_PRODUCER_GROUP_SOURCE_ID` | `producer_industry_dom_<env>` | `industry_domain_extension` |
  | `INGESTION_GROUP_SOURCE_ID` | `producer_industry_pp_<env>` | `industry_domain_extension` |
  | `OPERATOR_GROUP_SOURCE_ID` | `producer_industry_wf_<env>` | `industry_domain_extension` |
  | `SOL_CONSUMER_GROUP_SOURCE_ID` | `consumer_industry_sol_<env>` | `industry_domain_extension_search` |

* If you plan to [test with sample data](#test-with-sample-data):
  * `.env` also includes `IDP_CLIENT_ID` and `IDP_CLIENT_SECRET` for the service principal that runs the sample transformations, workflows, and alarm function. Map that service principal into the identity provider (IdP) group for `producer_industry_pp_<env>`.
  * The data plugin is enabled in `cdf.toml`:

    ```toml theme={"languages":{"custom":["/_languages/kuiper.json"]}}
    [plugins]
    data = true
    ```

* The Cognite Toolkit service principal can create spaces, containers, views, data models, data sets, location filters, groups, and streams. If you add the sample data modules, it also needs to create RAW databases, transformations, workflows, and functions. See [Access management](https://docs.cognite.com/cdf/access.md).

## Install and deploy

Choose how you want to add the modules. Include the enterprise module in the same build as the search module, or deploy the enterprise module first. Deploy both before any sample data module. The search views map the enterprise containers.

> [tab] Add to an existing project
>
> From your project directory:
>
> ```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}}
> cdf modules add -d industry_domain_extension industry_domain_extension_search
> ```

> [tab] Start a new project
>
> 1. In an empty directory, initialize a project:
>
>    ```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}}
>    cdf modules init .
>    ```
>
> 2. In the interactive menu, choose **Data models**. Use **Space** to select **Industry Domain Data Model template** and **Industry Domain Search Data Model template**, then press **Enter** to confirm.

> [tab] Full demo with sample data
>
> To install the enterprise and search modules, the three sample data modules, and `cdf_project_foundation` in one step, add the demo pack:
>
> ```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}}
> cdf modules add dp:industry_quickstart
> ```
>
> Use this path to explore the model. For a production project, add only the two data model modules and connect your own extractors.

The Cognite Toolkit creates the modules under `modules/datamodels/` and updates your `config.<env>.yaml` files. Before you build:

1. Set the group source ID variables in `.env`. See [Prerequisites](#prerequisites).
2. Override module variables in `config.<env>.yaml`, at minimum the access group names for your environment. See [Configuration reference](#configuration-reference).
3. Decide on the alarm stream template. The stream template cannot be changed after the stream is created. See [Alarm stream template](#alarm-stream-template).

Then build and deploy:

**1. Build deployment artifacts**

```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}}
cdf build
```

The Toolkit substitutes template variables and writes artifacts to the `build/` directory. If you need to change the project name or any variables marked `<change_me>`, edit `config.<env>.yaml` first — see [Configure, build, and deploy modules](https://docs.cognite.com/cdf/deploy/cdf_toolkit/guides/usage.md).

**2. Dry-run the deployment**

```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}}
cdf deploy --dry-run
```

Inspect the output and confirm that configurations look correct before deploying.

**3. Deploy to CDF**

```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}} theme={"languages":{"custom":["/_languages/kuiper.json"]}}
cdf deploy
```

The Toolkit deploys only configurations that have changed since the last run.

**4. Set up CI/CD (optional)**

For governed production deployments, automate build, dry-run, and deploy in a pipeline. See [Set up CI/CD pipelines](https://docs.cognite.com/cdf/deploy/cdf_toolkit/guides/cicd.md).

After deployment, your project should include:

```text theme={"languages":{"custom":["/_languages/kuiper.json"]}}
modules/
└── datamodels/
    ├── industry_domain_extension/
    │   ├── auth/              # Admin, domain producer, pipeline, and operator groups
    │   ├── data_modeling/     # Spaces, containers, views, Industry_DOM data model
    │   ├── data_sets/
    │   ├── locations/
    │   ├── streams/           # Alarm records stream
    │   ├── README.md
    │   └── SPEC.md            # Full adaptation contract
    └── industry_domain_extension_search/
        ├── auth/              # Search consumer group
        ├── data_modeling/     # Search space, Search* views, IndustrySearch_SOL data model
        └── locations/
```

If you build the search module without the enterprise module, and the enterprise containers aren't in CDF yet, `cdf build` reports a `MISSING-REFERENCED-RESOURCE` insight. Add `industry_domain_extension` to the build, or deploy it first.

### Test with sample data

The data model modules define schema only. To load sample instances, use the three sample data modules. The full demo pack includes them already.

**1. Add the sample data modules**

```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}}
cdf modules add -d cdf_sap_industry_data_dump cdf_pi_industry_data_dump cdf_sharepoint_industry_data_dump
```

The modules default to the same `enterprise_space`, `instance_space`, `dm_enterprise_version`, and `dataset_external_id` as the enterprise module. If you changed those values, change them in the sample data modules too.

**2. Deploy**

Run `cdf build` and `cdf deploy`. Each sample data module owns one RAW database: `raw_asset_all_sap`, `raw_timeseries_all_pi`, and `raw_files_all_sharepoint`.

**3. Upload sample data**

```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}}
cdf data upload dir modules/sourcesystem/cdf_sap_industry_data_dump/upload_data --cdf-project <project>
cdf data upload dir modules/sourcesystem/cdf_pi_industry_data_dump/upload_data --cdf-project <project>
cdf data upload dir modules/sourcesystem/cdf_sharepoint_industry_data_dump/upload_data --cdf-project <project>
```

If your modules directory is under an organization directory, prepend that directory name to each path. `--cdf-project` must match the project in your credentials.

**4. Run the SAP workflow first**

In **Integrate > Data Workflows**, trigger `wf_sap_all_to_industry` and wait for it to complete. It creates the tags and equipment that the other workflows link to.

**5. Run the PI and SharePoint workflows**

Trigger `wf_pi_all_to_industry` and `wf_sharepoint_all_to_industry`, in either order.

> [!WARNING]
>
> By default, the workflow schedules (`0 0 29 2 *`) run only on 29 February. Start the workflows manually. Workflow dependencies do not enforce the order across modules. Always run `wf_sap_all_to_industry` before the PI and SharePoint workflows. Otherwise, time series, documents, and alarms have no tags to link to.

## Verify the deployment

After deploying, confirm success with these checks:

1. `cdf deploy` completes without errors and reports spaces, containers, views, data models, the data set, location filters, groups, and the stream.
2. In **Data Modeling > Spaces**, the spaces `dm_dom_industry`, `dm_sol_industry_search`, and `inst_location` exist (or your configured names).
3. The data models `Industry_DOM` and `IndustrySearch_SOL` are listed and open. `Industry_DOM` contains `Tag`, `Equipment`, `Document`, `TimeSeriesData`, `WorkOrder`, `WorkOrderOperation`, `Notification`, `Material`, and `OperatingLimit`.
4. The stream `pi_all_alarm_event` exists with the stream template you chose. Use the [records API](https://docs.cognite.com/api-reference/concepts/20230101/records.md) or the Cognite Toolkit to check.
5. If you tested with sample data, all three workflows complete without errors, and `SearchTag` in `IndustrySearch_SOL` returns tag instances.

The deployment is successful when both data models open, the stream exists, and, if you loaded sample data, tags link to their equipment, time series, documents, and work orders.

## Configuration reference

Module variables are defined in each module's `default.config.yaml`. Override them per environment under `variables.modules` in `config.<env>.yaml`.

Set or confirm every row marked **Yes** before the first deployment. Rows marked **No** can keep the default.

### Enterprise module (`industry_domain_extension`)

| Variable | Description | Default | Review |
| - | - | - | - |
| `enterprise_space` | Schema space for enterprise containers, views, and the data model | `dm_dom_industry` | No |
| `search_space` | Search schema space. Listed here so the admin group can manage it. | `dm_sol_industry_search` | No |
| `instance_space` | The single instance space for all nodes, edges, and alarm records | `inst_location` | Yes |
| `enterprise_data_model_external_id` | External ID of the enterprise data model | `Industry_DOM` | No |
| `enterprise_data_model_name` | Display name of the enterprise data model | `Industry DOM` | No |
| `dm_enterprise_version` | Version of enterprise views, the data model, and the `AlarmEvent` record view | `v1` | No |
| `dataset_external_id` / `dataset_name` | Data set for governance and lineage | `ds_industry_all` / `Industry domain model` | No |
| `enterprise_location_filter_external_id` | Location filter for the enterprise data model | `loc_industry_all` | No |
| `search_location_filter_external_id` | Search location filter ID. Listed here so the admin group can scope `locationFiltersAcl`. | `loc_industry_search_all` | No |
| `admin_group_name` | Admin group name. Change the environment suffix per environment. | `admin_industry_all_dev` | Yes |
| `dom_producer_group_name` | Domain producer group name | `producer_industry_dom_dev` | Yes |
| `ingestion_group_name` | Processing pipeline group name | `producer_industry_pp_dev` | Yes |
| `operator_group_name` | Workflow operator group name | `producer_industry_wf_dev` | Yes |
| `*_source_id` | Microsoft Entra ID group object IDs, read from `.env`. See [Prerequisites](#prerequisites). | `${ADMIN_GROUP_SOURCE_ID}` and others | Yes |
| `raw_database_sap` / `_pi` / `_sharepoint` | RAW databases the pipeline groups can read. Change them when you point ingestion at real RAW. | `raw_asset_all_sap` and others | Yes |
| `alarm_stream_external_id` | Records stream for `AlarmEvent` | `pi_all_alarm_event` | No |
| `alarm_stream_template` | Stream template. Fixed when the stream is created. | `BasicArchive` | Yes |

### Search module (`industry_domain_extension_search`)

| Variable | Description | Default | Review |
| - | - | - | - |
| `enterprise_space` | Space that owns the enterprise containers. Must match the enterprise module. | `dm_dom_industry` | No |
| `search_space` | Schema space for the search views and data model | `dm_sol_industry_search` | No |
| `instance_space` | Instance space the search location filter reads. Must match the enterprise module. | `inst_location` | Yes |
| `search_data_model_external_id` | External ID of the search data model | `IndustrySearch_SOL` | No |
| `search_data_model_name` | Display name of the search data model | `Industry search SOL` | No |
| `dm_search_version` | Version of the search views and data model | `v1` | No |
| `search_location_filter_external_id` | Location filter for the search data model | `loc_industry_search_all` | No |
| `sol_consumer_group_name` | Search consumer group name | `consumer_industry_sol_dev` | Yes |
| `sol_consumer_source_id` | Microsoft Entra ID group object ID, read from `.env` | `${SOL_CONSUMER_GROUP_SOURCE_ID}` | Yes |

The enterprise and search modules version independently. Bumping `dm_search_version` does not require a change to `dm_enterprise_version`, and bumping `dm_enterprise_version` does not require a change to `dm_search_version`. The search views map enterprise **containers**, not enterprise views, so an enterprise view version bump does not affect search. A container change (rename, trim, or new property) needs a matching search view change.

### Alarm stream template

The module default is `BasicArchive`, which is safe for production. For short-lived sample streams, override `alarm_stream_template` to `ImmutableTestStream` in `config.dev.yaml` only.

> [!WARNING]
>
> You cannot change a stream template after the stream is created. If you create the alarm stream with `ImmutableTestStream`, you must create a new stream to get production retention. See [Choose and size streams](https://docs.cognite.com/cdf/dm/records/guides/choose_and_size_streams.md).

### Instance spaces

The template uses one instance space, `inst_location`, for all nodes, edges, and alarm records. Every direct relation, including links from PI or SharePoint data to a tag, points into that same space. The search model has no instance space of its own.

When you adapt the model, change or add instance spaces to match how your domain is used: a site, a plant, or an access boundary. Do not split instance spaces by source system. Spaces are permanent, so decide the instance space layout before the first production deployment. When you change spaces, update the location filters, group scopes, transformation `instanceSpace` values, and every node reference together.

## Access groups

The enterprise module creates four access groups and the search module creates one. They are **additive** to the [Foundation](https://docs.cognite.com/cdf/deploy/cdf_toolkit/references/packages/foundation.md) persona groups (`admin_all_*`, `producer_all_*`, `consumer_all_*`). Do not delete the Foundation groups, and do not treat `admin_industry_all_*` as a replacement for `admin_all_*`.

| Group | Persona | Grants |
| - | - | - |
| `admin_industry_all_<env>` | Schema administrator | Write data models in the enterprise and search spaces, own the data set, manage streams and location filters. |
| `producer_industry_dom_<env>` | Domain data producer (person) | Read and write instances in the instance space, and read and write alarm records. |
| `producer_industry_pp_<env>` | Processing pipeline | Run transformations, workflows, and functions. Read RAW, and write instances and alarm records. |
| `producer_industry_wf_<env>` | Workflow operator | Run and monitor workflows. Read transformations, functions, and RAW. |
| `consumer_industry_sol_<env>` | Search model user | Read data models, instances, and location filters. No access to alarm records. |

To read core data model time series and files, a user needs both `dataModelsAcl` READ on `cdf_cdm` and `dataModelInstancesAcl` READ on the instance space. The admin, domain producer, and search consumer groups already grant that pair. Security categories apply to classic time series and files only. They do not gate data modeling instances.

Search users get no `streamRecordsAcl`. If a user needs both the search model and alarm records, map them to both the search consumer group and the domain producer group.

## Architecture

The model splits into two independently versioned modules. The enterprise module owns the containers, which are the durable contract, and the views that implement core and process industries data model types. The search module is a search solution model: it maps those containers into views that give users access to the content, and hosts the reverse relations that search navigation needs.

### How the views connect

`Tag` is the central asset node and the only `CogniteAsset` implementer. Equipment, documents, time series, work management, materials, and alarms all hold a direct relation **to** `Tag`. The diagram shows the enterprise direct relations, labeled with the property that defines each relation.

```mermaid theme={"languages":{"custom":["/_languages/kuiper.json"]}}
flowchart TD
    Tag["Tag · CogniteAsset"]
    Equipment["Equipment · CogniteEquipment"]
    Document["Document · CogniteFile"]
    TimeSeriesData["TimeSeriesData · CogniteTimeSeries"]
    WorkOrder["WorkOrder · CogniteMaintenanceOrder"]
    WorkOrderOperation["WorkOrderOperation · CogniteOperation"]
    Notification["Notification · CogniteNotification"]
    Material["Material"]
    OperatingLimit["OperatingLimit"]
    AlarmEvent["AlarmEvent · record"]

    Tag -->|parent| Tag
    Equipment -->|asset| Tag
    Equipment -->|files| Document
    Document -->|assets| Tag
    TimeSeriesData -->|assets| Tag
    TimeSeriesData -->|equipment| Equipment
    WorkOrder -->|mainAsset, assets| Tag
    WorkOrder -->|equipment| Equipment
    WorkOrder -->|timeSeries| TimeSeriesData
    WorkOrderOperation -->|maintenanceOrder| WorkOrder
    WorkOrderOperation -->|mainAsset, assets| Tag
    Notification -->|asset| Tag
    Notification -->|maintenanceOrder| WorkOrder
    Material -->|asset| Tag
    Material -->|equipment| Equipment
    OperatingLimit -->|timeSeries| TimeSeriesData
    AlarmEvent -->|asset| Tag
    AlarmEvent -->|timeSeries| TimeSeriesData
    AlarmEvent -->|operatingLimit| OperatingLimit
```

For readability, the diagram leaves out the relations to `cdf_cdm` reference types (`CogniteAssetType`, `CogniteEquipmentType`, `CogniteFileCategory`, `CogniteUnit`) and the `equipment` and `timeSeries` relations on `WorkOrderOperation`.

A view that implements a core or process industries type inherits that type's relations, which point at the `cdf_cdm` or `cdf_idm` views. The enterprise views override those inherited relations so navigation stays inside this model. For example, `Tag.files` returns `Document` nodes, not `CogniteFile` nodes. The enterprise model overrides these inherited reverse relations:

| View | Property | Points to |
| - | - | - |
| `Tag` | `children` | `Tag` through `parent` |
| `Tag` | `equipment` | `Equipment` through `asset` |
| `Tag` | `timeSeries` | `TimeSeriesData` through `assets` |
| `Tag` | `files` | `Document` through `assets` |
| `Tag` | `activities` | `WorkOrder` through `assets` |
| `Equipment` | `timeSeries` | `TimeSeriesData` through `equipment` |
| `Equipment` | `activities` | `WorkOrder` through `equipment` |
| `Document` | `equipment` | `Equipment` through `files` |
| `TimeSeriesData` | `activities` | `WorkOrder` through `timeSeries` |
| `WorkOrder` | `operations` | `WorkOrderOperation` through `maintenanceOrder` |

The enterprise model adds no other reverse relations. New reverse relations belong in the search model.

### Core data model extensions (`cdf_cdm`)

| View | Implements | Purpose |
| - | - | - |
| `Tag` | `CogniteAsset` | Central asset node and the only asset hierarchy. Scaffold properties: `site`, `area`, `system`. |
| `Equipment` | `CogniteEquipment` | Physical equipment linked to a tag. Classification through `CogniteEquipmentType`. Scaffold property: `modelNumber`. |
| `Document` | `CogniteFile` | Documents linked to tags and equipment. Document type through `CogniteFileCategory`. Scaffold properties include `documentNumber` and `revision`. |
| `TimeSeriesData` | `CogniteTimeSeries` | Time series linked to tags and equipment. Scaffold properties for PI (`piSourceTag`, `piPointSource`) and OPC UA (`opcUaNodeId`, `opcUaBrowseName`). |

### Process industries data model extensions (`cdf_idm`)

| View | Implements | Purpose |
| - | - | - |
| `WorkOrder` | `CogniteMaintenanceOrder` | Work orders linked to tags, equipment, and time series. Scaffold property: `workOrderNumber`. |
| `WorkOrderOperation` | `CogniteOperation` | Operations on a work order. Scaffold property: `workCenter`. |
| `Notification` | `CogniteNotification` | Maintenance notifications linked to a tag and a work order. Scaffold properties: `failureModeCode`, `detectionMethodCode`. |

### Custom types

`Material` and `OperatingLimit` are label-only types. They do not implement or require `CogniteDescribable`, which avoids a join on those nodes. Instead, they keep their own `name` property, and `OperatingLimit` also keeps local `description` and `aliases`.

| View | Purpose |
| - | - |
| `Material` | Spare parts or materials linked to equipment or a tag. Scaffold property: `materialType`. |
| `OperatingLimit` | Operating envelope for a time series: high and low limits, consequences, and corrective actions. |

### Alarm records

`AlarmEvent` is a record container (`usedFor: record`) with a record view that sets `streamId`. Alarms are high-volume, so they are stored as [records in a stream](https://docs.cognite.com/cdf/dm/records/concepts/records_and_streams.md) instead of as nodes. The record view is not part of `Industry_DOM`, and there is no search view for alarms. Read alarms through the [records API](https://docs.cognite.com/api-reference/concepts/20230101/records.md).

Each alarm record links to the `Tag`, the `TimeSeriesData`, and the `OperatingLimit` it refers to. To query alarms for a set of tags, filter the tags in `Industry_DOM`, then filter `AlarmEvent` records with an `in` filter on `asset`, in chunks of 100 IDs or fewer. Immutable streams require a `lastUpdatedTime` range on every filter.

> [!WARNING]
>
> Never delete or recreate the `AlarmEvent` container once records exist. Records written through a deleted record container become permanently inaccessible, even if you recreate the container with the same ID. Add properties only. Every property you write to a stream counts against the stream's limit on unique properties.

### Search views

Each search view maps its enterprise container for the scaffold properties. Search views for core and process industries types also map the minimum `cdf_cdm` and `cdf_idm` containers that classify the type, plus `CogniteDescribable` for `name` and `description`. `SearchMaterial` and `SearchOperatingLimit` map only their enterprise container. Search views do not implement any type. Every direct relation and reverse relation in the search model points at another search view.

| View | Maps enterprise container | Reverse relations |
| - | - | - |
| `SearchTag` | `Tag` | `workOrders`, `documents`, `timeSeries`, `equipment`, `notifications` |
| `SearchEquipment` | `Equipment` | `materials` |
| `SearchDocument` | `Document` | None |
| `SearchTimeSeriesData` | `TimeSeriesData` | `operatingLimits` |
| `SearchWorkOrder` | `WorkOrder` | `operations` |
| `SearchWorkOrderOperation` | `WorkOrderOperation` | None |
| `SearchNotification` | `Notification` | None |
| `SearchMaterial` | `Material` | None |
| `SearchOperatingLimit` | `OperatingLimit` | None |

### Key design decisions

**Single `CogniteAsset`.** Only `Tag` implements `CogniteAsset`. This keeps one asset hierarchy for CDF applications such as Canvas.

**Containers are the durable contract.** Every node view has its own container. Containers for core and process industries types require their parent container, for example `Tag` requires `CogniteAsset`. Search views map these containers rather than implementing enterprise views, so the search model can change and re-version without forcing enterprise consumers to migrate.

**Search is schema-only.** The search model has views and a data model, but no containers, transformations, or instance space. Data loaded through `Industry_DOM` is visible through `IndustrySearch_SOL` without any search-side writes. Search views use a `Search` prefix (`SearchTag`, `SearchEquipment`), so consumers can tell which model a view belongs to.

**No source schema layer.** Transformations write RAW data straight into `Industry_DOM`. There is no separate source data model.

**Independent domain models.** Relations whose target lives in another domain model keep the inherited `cdf_cdm` or `cdf_idm` target. Referencing another model's view would pin its version. Cross-model navigation belongs in a solution model.

> [!WARNING]
>
> **`labels` vs. `tags`:** Because the asset view is named `Tag`, the inherited `tags` property from `CogniteDescribable` is exposed as `labels` on `Tag` and `SearchTag`. In transformations, queries, and API calls, always use `labels`. Write `AS labels`, never `AS tags`.

## Adapt the template to your project

The template is a starting point, not a finished model. The enterprise containers are scaffolding that your project owns. Adapt them in place before the first production deployment. After that, container and property identifiers are permanent: you can only add properties, on a new extension container.

The module's `SPEC.md` holds the full adaptation contract, including a field mapping worksheet, a file touch map for every entity, and rename recipes.

**1. Inventory the demo surface**

List every demo property and every sample RAW table, transformation, and workflow task:

```sh theme={"languages":{"custom":["/_languages/kuiper.json"]}}
rg -n "SOURCE_SCAFFOLD:" modules/datamodels/industry_domain_extension modules/datamodels/industry_domain_extension_search
```

**2. Decide instance spaces**

Keep `inst_location`, or change or add spaces to match a site, plant, or access boundary. Do not split spaces by source system. See [Instance spaces](#instance-spaces).

**3. Map your source fields**

For each real source field, record the source system, the field, the target view, the container property, and the action: keep, replace, or drop. Confirm the mapping before you edit YAML.

**4. Trim unused types**

Remove any demo entity with no real source and no consumer: its container, view, data model entry, search view, reverse relations, transformation, workflow task, and RAW table.

**5. Replace scaffold properties**

Rename, replace, or drop each `SOURCE_SCAFFOLD:` property. Use one camelCase ID everywhere: container, view, search view, SQL alias, and `through.identifier`. Never add a custom property that duplicates a core or process industries property such as `name`, `status`, or `assets`. Map to the existing property instead.

**6. Point ingestion at real data**

Change the transformation sources to your extractors' RAW tables and update the RAW database variables. Stop deploying the `*_industry_data_dump` modules once real extractors write the same nodes.

**7. Align the search model**

Update or remove search views for every container you kept, renamed, trimmed, or added. Point the search location filter at the same instance spaces as the enterprise module.

**8. Validate**

Run `cdf build` and `cdf deploy --dry-run`. After the first deployment with real data, compare instance and record counts against the source.

You are done when `rg SOURCE_SCAFFOLD:` returns no hits, or only properties you have listed as intentionally temporary, and no transformation or function reads the sample RAW databases.

> [!NOTE]
>
> The sample data has known gaps. Only the 47 sample tags with a SAP class have an asset type. The other tags in the sample set have none. The OPC UA identifiers on time series are synthetic, derived from the PI source tag. Remove them if you have no OPC UA source.

## Query the model

Always scope queries to the instance space. For large volumes, prefer `/sync` over unbounded `/list` or `/query` requests. Do not filter or paginate on `lastUpdatedTime` or `createdTime` for instance reads. Use `/sync` for change tracking instead. See [Query data models](https://docs.cognite.com/cdf/dm/dm_concepts/dm_querying.md).

To read every instance of one view, filter with `hasData` on the view, use `/sync` with `mode: twoPhase`, and set `backfillSort` to a cursorable index on that view. The sort must match the index property and direction. For `/query` pagination, a sort that doesn't match a cursorable index fails with `sortNotBackedByIndex`.

| View | Cursorable property for `backfillSort` | Enterprise btree indexes for filtering |
| - | - | - |
| `Tag` | `site` | `site`, `area`, `system` |
| `Equipment` | None. Use `space` and `externalId`. | `modelNumber` |
| `Document` | `documentNumber` | `documentNumber`, `site`, `area`, `system` |
| `TimeSeriesData` | None. Use `space` and `externalId`. | `piSourceTag`, `timeSeriesSource`, `opcUaNodeId` |
| `WorkOrder` | `workOrderNumber`, or `startTime` and `scheduledStartTime` | `workOrderNumber` |
| `WorkOrderOperation` | Schedule times, or `space` and `externalId` | `workCenter` |
| `Notification` | Schedule times, or `space` and `externalId` | `failureModeCode`, `detectionMethodCode` |
| `Material` | `equipment` or `asset` | `equipment`, `asset` |
| `OperatingLimit` | `timeSeries` | `timeSeries` |

This example syncs all tags and backfills through the cursorable `site` index (`POST /models/instances/sync`):

```yaml theme={"languages":{"custom":["/_languages/kuiper.json"]}}
with:
  tags:
    nodes:
      filter:
        and:
          - equals: { property: [node, space], value: inst_location }
          - hasData:
              - type: view
                space: dm_dom_industry
                externalId: Tag
                version: v1
    limit: 1000
    mode: twoPhase
    backfillSort:
      - property: [dm_dom_industry, Tag, site]
        direction: ascending
        nullsFirst: false
select:
  tags:
    sources:
      - source:
          type: view
          space: dm_dom_industry
          externalId: Tag
          version: v1
        properties: [name, site, area, system]
```

Follow `nextCursor` until a page returns fewer rows than `limit`. The backfill is then complete. Keep following the cursor to receive live changes. Sync cursors expire after about three days.

## Troubleshooting

| Symptom | Likely cause | Resolution |
| - | - | - |
| `cdf build` reports `MISSING-REFERENCED-RESOURCE` for a `dm_dom_industry` container | The search module is built without the enterprise module, and the enterprise containers aren't in CDF yet | Add `industry_domain_extension` to the build, or deploy it first. |
| Access groups deploy without an IdP group mapping, so users get no access | A group source ID variable is missing from `.env` | Add every variable listed in [Prerequisites](#prerequisites) and redeploy. |
| `cdf deploy` fails with "Insufficient permissions" | The Cognite Toolkit service principal lacks capabilities | Grant the Cognite Toolkit service principal the capabilities to create the resource types these modules deploy. See [Access management](https://docs.cognite.com/cdf/access.md). |
| Sample workflows don't start on their own | The default schedule (`0 0 29 2 *`) runs only on 29 February | Trigger the workflows manually in **Integrate > Data Workflows**. |
| Time series, documents, or alarms have no tag links | The PI or SharePoint workflow ran before the SAP workflow | Run `wf_sap_all_to_industry`, then rerun `wf_pi_all_to_industry` and `wf_sharepoint_all_to_industry`. |
| A transformation writing `tags` on `Tag` fails or returns unexpected results | The text label list on `Tag` is named `labels` | Write `AS labels`. See the `labels` vs. `tags` warning in [Architecture](#architecture). |
| Search users can't see alarm records | `consumer_industry_sol_<env>` has no `streamRecordsAcl` | Also map the user to `producer_industry_dom_<env>`. |
| Users can't see time series or files | Missing `dataModelsAcl` READ on `cdf_cdm` or `dataModelInstancesAcl` READ on the instance space | Grant both. The admin, domain producer, and search consumer groups include them. |
| Alarm records disappear after a short time | The stream was created with `ImmutableTestStream` | The template can't be changed. Create a new stream with `BasicArchive` and update `alarm_stream_external_id`. |
| A records filter fails on an immutable stream | The filter has no `lastUpdatedTime` range | Add a `lastUpdatedTime` range to every filter on immutable streams. |
| A query fails with `sortNotBackedByIndex` | The sort doesn't match a cursorable index | Sort on the cursorable property for that view. See [Query the model](#query-the-model). |
| The module does not appear in `cdf modules add` | `[library.cognite]` is not configured in `cdf.toml`, or `[library.toolkit-data]` is still present | Replace `[library.toolkit-data]` with `[library.cognite]` in `cdf.toml`. The two sections cannot coexist. |

For issues not covered here, contact Cognite support.

## Support

| Field | Details |
| - | - |
| Team | Cognite Value Delivery Team |
| Source | [`industry_domain_extension`](https://github.com/cognitedata/library/tree/main/modules/datamodels/industry_domain_extension) in cognitedata/library |
| Related documentation | [Core data model](https://docs.cognite.com/cdf/dm/dm_reference/dm_core_data_model.md), [Process industries data model](https://docs.cognite.com/cdf/dm/dm_reference/dm_process_industry_data_model.md), [Records and streams](https://docs.cognite.com/cdf/dm/records/concepts/records_and_streams.md) |
| Questions and feedback | [Deployment Packs group on Cognite Hub](https://hub.cognite.com/groups/578) |
| Version | Data models `v1` |
| Last updated | 2026 |
