name, aliases, and the fields you use for matching before you train a model or run a pipeline. Entity matching compares strings. Diagram annotation looks up tag text against asset names and aliases. When match fields are empty or aliases do not survive tokenization, the model drops candidates in a blocking step. You get no suggested match, not an error.
This procedure is for data engineers who already populated the industrial knowledge graph. Read About contextualization for assets (functional locations), tags, and identities, and About entity matching for how tokenization and scoring work.
For production pipelines, the CDF Entity Matching deployment pack includes an aliases update function. It builds aliases from each instance’s name with regular expressions, on time series, assets, and files. Entity matching and File Annotation both use those aliases. File Annotation does not write its own. The name value still has to be something the pattern can match.
Prerequisites
Before you start:- Functional locations exist as
CogniteAssetnodes with stablenamevalues. See About contextualization. - You know which property entity matching reads on sources and targets (by default
nameon both sides; production pipelines often usealiaseson time series). - You can write to the views that hold
CogniteDescribableproperties (name,aliases). See core data model.
A functional location is a
CogniteAsset in the industrial knowledge graph. It is not a location filter, which scopes search and 3D to a physical site.Populate targets and sources
1
Populate name on every match target
Set
name on each CogniteAsset (and CogniteEquipment if you match to equipment) to the engineering tag or functional identifier you expect in source systems, for example P-101 or 11-PDN-26540J-60.Use the tag string from P&IDs and control systems, not a serial number or maintenance work-order ID. See About contextualization.2
Add aliases that survive tokenization
Populate
aliases on the same nodes with alternative strings entity matching should recognize. The entity matching tokenizer splits on letters and numbers and removes punctuation. See Detecting matches for the full rule set.Follow these rules when you build alias lists:- Store the full tag, not only a pre-stripped form. If
nameis11-PDN-26540J-60, also add aliases such asPDN-26540Jor26540J-60if sources use those variants. Do not store only11,PDN,26540as your only aliases. - Keep leading zeros when they are significant in source data. If historians emit
P-0101, add that form even whennameisP-101. - Add abbreviations explicitly. If operators write
PTfor pressure transmitter, add bothPTand the spelled-out form (or the reverse) as aliases. Blocking can then pair tokens across systems.
aliases during transformations or in a one-off load. Aliases also improve search when smarter search is enabled on your project.3
Align source-side match fields
On time series or other sources, confirm the field configured in the matching pipeline contains comparable text.
- In the Cognite Data Fusion (CDF) UI, check which match fields you select in Match entities.
- In a production pipeline, the CDF Entity Matching deployment pack often uses
aliaseson the entity view. That pack’s aliases update function writes those aliases fromnamebefore matching, including on files that File Annotation reads. You still need anamethe pattern can match.
externalId unless you configure it as a match field.4
Layer aliases from mechanical to authoritative
Build alias coverage in three tiers. Start simple before you rely on machine learning. The table below summarizes what to add at each tier.
Prefer authoritative mapping tables and deterministic rules before fuzzy matching. See Choose a contextualization approach.
5
Survey rename and deprecated-tag artifacts
Search source systems and existing CDF loads for rename lists, deprecated tag spreadsheets, and engineering standards that define allowed abbreviations. Load those strings into
aliases on the current CogniteAsset, not as new enterprise identities.If a tag was voided but still appears on old P&IDs, add it as an alias on the replacement asset. Diagram annotation needs that alias to resolve historical drawings.6
Verify before you run matching
Spot-check a sample of sources against targets:
- Pick ten time series (or files) you expect to match.
- Read their configured match field and the target
name/aliases. - Confirm at least one shared token would survive tokenization. For example,
11-PDN-26540J-60shares tokensPDN,26540, andJwith aliases that include those substrings. - Run a small quick match or a scoped pipeline on that sample before you process the full data set.
Troubleshooting
If matching or diagram annotation still fails after you complete the steps above, use this table to narrow the cause before you tune model parameters or parser configuration.Next steps
- Operate matching and annotation to scope pipelines, configure incremental reruns, and preserve SME-confirmed links.
- Match entities in Cognite Data Fusion, or deploy the CDF Entity Matching deployment pack for production pipelines.
- Parse diagrams or use the File Annotation deployment pack once asset
nameandaliasesresolve diagram tags. - Return to About contextualization if you need to revisit enterprise identity or site scoping.