# i2 Analyst's Notebook Import Specification (kremlin-security-record)

Use IBM i2 Analyst's Notebook Import Specifications (`Home -> Import -> Import from File`)
to load this package. Two workflows are supported:

1. Two-pass import (recommended): import `kremlin-security-record_entities.csv` first to load entity
   attributes (`mentions`, `streams`, `first_seen`, `raw_type`), then import
   `kremlin-security-record_links.csv` and match link ends on Entity Identity (`from_id` and `to_id`).
2. One-pass quick import: import `kremlin-security-record_links.csv` alone; it carries `from_id`,
   `to_id`, `from`, `to`, `from_type`, and `to_type` so icons and identities still populate.

## Common Import Wizard settings

| Setting | Value |
| --- | --- |
| Encoding | `UTF-8` (plain UTF-8 without BOM by default so column 1 headers never get prefixed with `ï»¿`; re-export with `--bom` only if opening in Windows Excel first) |
| Column delimiter | Comma (`,`), text qualifier Double Quote (`"`), first row contains headers |
| Entity matching | Match strictly on Identity (`id` in entities CSV, `from_id` / `to_id` in links CSV); do not match on `label`, because Analyst's Notebook merges entities by case-sensitive Identity and matching on label creates duplicate nodes |
| Link multiplicity | `Multiple` (keeps repeated dated quotes between the same two actors as separate links instead of overwriting them) |
| Blank handling | `Ignore Blank` on optional date, timestamp, and attribute fields |
| Date format | ISO `YYYY-MM-DD` |

## Pass 1: `kremlin-security-record_entities.csv` (Entity import)

| Column | i2 Analyst's Notebook mapping | Notes |
| --- | --- | --- |
| `id` | Entity Identity | Unique deterministic key (matches `from_id` / `to_id`) |
| `label` | Entity Label | Canonical display name |
| `type` | Entity Type (from column) | Standard palette: `Person`, `Organization`, `Location`, `Event`, `Document`, `Commodity`, `Account`, `Vehicle`, `Telephone`, `Entity` |
| `raw_type` | Attribute (Text) | Original extracted type before palette normalization |
| `mentions` | Attribute (Number) | Edge-endpoint mention count |
| `streams` | Attribute (Number) | Distinct outlets/sources mentioning the entity |
| `first_seen` | Attribute (Date) | Earliest observed ISO date (`YYYY-MM-DD`) |

## Pass 2: `kremlin-security-record_links.csv` (Link import)

| Column | i2 Analyst's Notebook mapping | Notes |
| --- | --- | --- |
| `from_id` | End 1 Identity | Exact match to `kremlin-security-record_entities.csv` `id` |
| `to_id` | End 2 Identity | Exact match to `kremlin-security-record_entities.csv` `id` |
| `from` | End 1 Label | Display label for End 1 |
| `to` | End 2 Label | Display label for End 2 |
| `from_type` | End 1 Type (from column) | Standard palette entity type for End 1 |
| `to_type` | End 2 Type (from column) | Standard palette entity type for End 2 |
| `link_label` | Link Label | Relationship predicate / verb |
| `direction` | Link Direction | Fixed `End 1 to End 2` (or map `Source to Target` -> `1`) |
| `strength` | Link Strength | `Confirmed` (solid), `Unconfirmed` (dashed), `Tentative` (dotted) |
| `date` | Link Date & Time (Date) | ISO `YYYY-MM-DD` broadcast/source date |
| `timestamp` | Card / Attribute (Text) | Human-readable `HH:MM:SS` offset into the recording |
| `ts_offset_s` | Attribute (Number) | Machine offset in seconds |
| `source_outlet` | Attribute (Text) | Broadcaster, channel, or publication |
| `speaker` | Attribute (Text) | Best-effort segment speaker label |
| `quote` | Link Card (Summary / Text) | Verbatim transcript evidence quote |
| `confidence` | Attribute (Number) | Extraction confidence (`0.0` to `1.0`) |
| `source_id` | Attribute (Text) | Portable source identifier |
| `provenance_match` | Attribute (Text) | Quote-to-audio alignment grade (`exact`, `fuzzy`, `none`) |

Every link carries `quote`, `date`, `timestamp`, `source_outlet`, and `source_id` so an analyst
can trace any chart link back to the exact second of the source recording.
