Business Identification Rules
Configure business identification rules for an entity type to match and disambiguate entities during knowledge creation or import. Both primary key modes support business identification rules, but their role in the disambiguation process varies by primary key mode.
Prerequisites
At least one entity type must exist in the current model. For more information, see Create an entity type.
Background
The role of business identification rules differs between the two primary key modes.
Primary key mode | Role | Priority |
business primary key | These rules provide a supplementary fuzzy deduplication layer. Exact matching on the primary key is the primary method of identification. The system then uses these rules to capture near-duplicate entities that have different primary key values but are semantically similar. | The system first performs an exact match on the primary key. If no match is found, the system triggers the identification rules to perform a fuzzy match. |
system-generated primary key | These rules are the primary identification mechanism. The | The system directly performs rule-based matching without an exact primary key matching step. |
Limitations
You can configure business identification rules only for entity type properties that are indexed.
Permissions
Workspace administrators and modelers can create and manage business identification rules.
Create a business identification rule
On the Dataphin homepage, choose Knowledge Graph > Model Design from the top menu bar.
Select a workspace from the top menu bar. In the model configuration library on the left, click an entity type name. At the top of the Entity Type Configuration pane, click Configure Business Recognition Rules.
Below the list of business identification rules, click Create Recognition Rule. The list displays all existing identification rules.
The system evaluates multiple rules in parallel and selects the one with the highest score. If scores are tied, the rule that appears first in the list takes precedence. The list includes the rule name, identification attributes, match threshold, auto-association threshold, and status. Click Rule Matching Preview to enter test data and validate the matching effectiveness of your rules.
In the Create Business Recognition Rule dialog box, configure the following parameters.
Parameter
Description
Rule name
Enter a display name for the rule. It can contain any characters and be up to 64 characters long.
Identification attribute configuration
Attribute name: Select from the entity type's properties. Each property can be selected only once.
Data type: Displays the property's data type. This field is read-only.
Matching policy: Includes exact match, fuzzy match (edit distance), fuzzy match (inclusion), equals, numeric range match, date range match, and semantic similarity match.
exact match: Property values must be identical. Matches are case-sensitive. This applies to String, RegexString, Enum, URL, and Email data types.
fuzzy match (edit distance): This matching strategy is available when full-text search is enabled for the entity type property. It calculates similarity based on the Levenshtein edit distance and applies to String and RegexString data types. When you select this strategy, you must also configure the Strategy configuration (Similarity Threshold).
NoteYou can use this strategy only after you install the Neo4j edit distance plugin.
fuzzy match (inclusion): This matching strategy is available when full-text search is enabled for the entity type property. It checks if one value contains another and applies to String and RegexString data types.
equals: Property values must be equal. This applies to Integer, Float, Boolean, Date, BigInteger, Enum, and Timestamp data types.
numeric range match: Values are considered a match if they fall within a specified tolerance range. This applies to Integer, Float, BigInteger, and Decimal data types. When you select this strategy, you must also configure the Strategy configuration (Tolerance Value).
date range match: Values are considered a match if they fall within a specified number of days. This applies to Date and Timestamp data types. When you select this strategy, you must also configure the Tolerance Days.
semantic similarity match: Calculates text semantic similarity (cosine similarity) based on an LLM embedding. This strategy applies only to the String data type. When you select this strategy, you must also configure the Strategy configuration (Similarity Threshold).
NoteThe semantic similarity match strategy is available only when semantic detection is enabled for the selected identification attribute.
The semantic similarity match strategy uses the vector model configured for the entity's workspace.
Strategy configuration:
For fuzzy match (edit distance) and semantic similarity match strategies, you must enter a Similarity Threshold. The default value is 0.8.
For the numeric range match strategy, you must enter a Tolerance Value. The default is 0 for the Integer data type and 0.01 for the Float data type.
For the date range match strategy, you must enter the Tolerance Days. The default value is 0.
Weight: Assign a weight to each identification attribute. The sum of all weights must be 1.
NoteYou can add a maximum of 5 identification attributes to a single rule.
Global threshold settings
Overall match threshold: Enter a weighted composite score threshold for all attributes (range [0.0, 1.0]). The default is 0.8. When the composite score meets this threshold, the system flags the result as a candidate match.
Auto-association threshold: After you select Enable Auto-association, you can enter an auto-association threshold (range [0.0, 1.0]). The default is 0.95. When the composite score reaches this threshold, the system automatically associates the new record with an existing entity.
Click OK to save the rule.
Multi-rule evaluation and priority
When multiple business identification rules are configured for the same entity type, the disambiguation engine runs a two-stage process: candidate recall and aggregated scoring.
Candidate recall and pool construction
Each enabled rule independently performs a recall query and returns a set of candidates, not a single candidate.
For example, if you use a rule with name and birth year to query for Zhang San 1990, and multiple duplicate entities already exist in the graph, the query might match several entity IDs simultaneously.
Rule 1 candidate set = [ (ID=1001, score=0.92), (ID=1002, score=0.88), … ] Rule 2 candidate set = [ (ID=1001, score=0.75), (ID=1003, score=0.82), … ] Rule 3 candidate set = [ (ID=1002, score=0.90), … ]The candidate sets from all rules are merged and deduplicated by entity ID to form a candidate pool. If a candidate is matched by multiple rules, the scores from each rule are retained separately for subsequent aggregation.
candidate pool = { ID=1001: { Rule 1: 0.92, Rule 2: 0.75, Rule 3: No Match }, ID=1002: { Rule 1: 0.88, Rule 2: No Match, Rule 3: 0.90 }, ID=1003: { Rule 1: No Match, Rule 2: 0.82, Rule 3: No Match }, … }NoteEach rule returns the top-K candidates (default is 50, adjustable in workspace-level settings). After deduplication, the candidate pool is limited to 200 candidates. If this limit is exceeded, candidates with the lowest recall scores are removed.
Parallel evaluation of each candidate in the pool
After the candidate pool is constructed, the engine runs all enabled rules to evaluate each candidate entity in the pool in parallel. If a rule did not initially match a candidate during recall, the system calculates a score for that rule. This ensures that every candidate is scored by every rule.
Score set for candidate entity X = { Rule 1: 0.92, Rule 2: 0.75, Rule 3: 0.88 }Independent rating by rule
Each rule independently rates a candidate based on its own thresholds, without comparing its score to other rules.
Rule rating
Condition
auto-association
Rule score ≥ This rule's auto-association threshold
Candidate match
This rule's overall match threshold ≤ Rule score < This rule's auto-association threshold
Mismatch
Rule score < This rule's overall match threshold
Rating aggregation
A candidate's final rating is its highest rating across all rules (auto-association > candidate match > mismatch).
Final sorting and tie-handling in the candidate pool
Steps 1-4 explain how to aggregate scores from multiple rules for a single candidate. However, if multiple entities in the pool share the highest rating—a scenario often caused by historical duplicate data or overly broad rules—the system does not arbitrarily pick one. Instead, it handles the situation based on the following rules:
Sorting keys for candidates (compared in descending order of priority):
Final rating (descending):
auto-association > candidate match > mismatchDisplay score (descending): The original score from the winning rule.
Winning rule priority (ascending): Rules that appear higher in the rule list have higher priority.
entity ID (lexicographical, ascending): This serves only as a stability tiebreaker to ensure identical inputs produce identical outputs and is not used for business-level decisions.
Based on the number of true ties at the highest rating (meaning candidates have identical values for the first three sorting keys and differ only by ID), the system handles the result in one of three ways:
Highest rating
True ties
Action
Final status
auto-association
1 (unique winner)
Directly associate with this candidate.
auto-association
auto-association
≥ 2
Forbid auto-association and downgrade the overall result to
candidate match. All tied candidates are displayed together for user selection.candidate match
candidate match
1 to N
The top-K candidates (default is 5) are displayed in sorted order for manual selection.
candidate match
Mismatch
-
If no valid candidates are found, the system creates a new entity based on the primary key mode.
No match
Handling of disabled rules
Disabled rules are not used for candidate recall or evaluation and do not affect the construction of the candidate pool or the final decision. Disabling all rules is equivalent to having no rules configured.
NoteYou can still select disabled rules in the disambiguation settings of the Offline Integration-Knowledge Graph Output Component.