Datasets:
source_node_id stringlengths 18 34 ⌀ | target_node_id stringlengths 16 34 ⌀ | relationship_type stringclasses 24
values | properties_json stringlengths 2 8.91k |
|---|---|---|---|
ep_sea_ser_happy_valley_s01_e01 | act_8b858081fbe07ab1 | CONTAINS_ACT | {} |
ep_sea_ser_happy_valley_s01_e01 | act_827029e2e7e11bd5 | CONTAINS_ACT | {} |
ep_sea_ser_happy_valley_s01_e01 | act_20e3357713c08364 | CONTAINS_ACT | {} |
writer_sally_wainwright | ep_sea_ser_happy_valley_s01_e01 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-18T12:36:08.214571+00:00", "full_credit_line": "HAPPY VALLEY. EPISODE ONE. BY SALLY WAINWRIGHT 1.", "credit_type": "Written by"} |
writer_sally_wainwright | ep_sea_ser_happy_valley_s01_e02 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-18T15:50:35.123714+00:00", "full_credit_line": "HAPPY VALLEY. EPISODE TWO. BY SALLY WAINWRIGHT 1.", "credit_type": "Written by"} |
writer_sally_wainwright | ep_sea_ser_happy_valley_s01_e03 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-18T19:01:50.542864+00:00", "full_credit_line": "HAPPY VALLEY. EPISODE THREE. BY SALLY WAINWRIGHT 1.", "credit_type": "Written by"} |
writer_sally_wainwright | ep_sea_ser_happy_valley_s01_e04 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": false, "writer_group": 1, "created_at": "2026-02-18T22:26:57.532458+00:00", "full_credit_line": "HAPPY VALLEY. EPISODE FOUR. BY SALLY WAINWRIGHT.", "credit_type": "Written by"} |
writer_sally_wainwright | ep_sea_ser_happy_valley_s01_e05 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": false, "writer_group": 1, "created_at": "2026-02-19T01:54:01.860667+00:00", "full_credit_line": "HAPPY VALLEY. EPISODE FIVE. BY SALLY WAINWRIGHT. 1.", "credit_type": "Written by"} |
writer_sally_wainwright | ep_sea_ser_happy_valley_s01_e06 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-19T04:54:13.889721+00:00", "full_credit_line": "HAPPY VALLEY. EPISODE SIX. BY SALLY WAINWRIGHT. 1.", "credit_type": "Written by"} |
act_8b858081fbe07ab1 | ep_sea_ser_happy_valley_s01_e01 | PART_OF_EPISODE | {} |
act_8b858081fbe07ab1 | scene_1eef59f964bbd293 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_24cee963c84be956 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_aff4e04b05ad6b93 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_d385ad081e064a48 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_ffc768223fafbacd | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_0137b13a8f99f7f6 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_a253ba0bea544f95 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_5ecf88e7563c470d | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_00ede9c2baa5a3cb | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_b946c374ac558dc5 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_73a5703a9d995e88 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_7014370d863760ae | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_62c44022ea36331b | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_6a20628f9cdb933b | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_5363d4d5fec50570 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_831b813fe3f153a1 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_06765043e563017f | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_dea4ed373a8fa20c | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_c0c1d86e27e1ee49 | CONTAINS_SCENE | {} |
act_8b858081fbe07ab1 | scene_43bdaa4cd537b794 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | ep_sea_ser_happy_valley_s01_e01 | PART_OF_EPISODE | {} |
act_827029e2e7e11bd5 | scene_6405bb98529ca9b9 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_7903c02819121d9c | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_de8a27e2b12cfdbe | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_32168e4228ffb95c | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_f9dc592c755ce7da | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_9240b172809a9e79 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_c2a3a5f969d9eb75 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_84233ffa0d5dfaa0 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_78a987dc022c0c5a | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_b31bca2988e1a2ca | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_d196402c3df91c46 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_032a048d7eef06d3 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_8f3e234e82294dd7 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_5cffce3f559f68bf | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_13860fe64540e8bb | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_d4b6b80cbcd26b70 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_8a7b4e6085e886ef | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_8f841505f9a78852 | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_a67321ac22cb36ad | CONTAINS_SCENE | {} |
act_827029e2e7e11bd5 | scene_e7a15c81a832ee13 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | ep_sea_ser_happy_valley_s01_e01 | PART_OF_EPISODE | {} |
act_20e3357713c08364 | scene_50efbb53713a5474 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_87e160a0e47a8598 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_d26dcc6039ea6a63 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_7bdba80192c56ce4 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_edad222bb9b7e897 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_845546d8e3fa2ab8 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_61750523895dc998 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_74686111e596eb0b | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_d0af6ee77262af21 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_368e60a2aaa0b7f1 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_517c54d431cfbe43 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_f1c77977d65841f4 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_f0d5541f4f7fffc8 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_7bdf7276d9ab1b35 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_3f06aff7cfdb86d1 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_11f1d248aa7f79da | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_3fb5d43dabdd6ef9 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_5c03371d125488ca | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_efb46c75b599a749 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_160d865fc1196556 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_d99b1180e02c44e2 | CONTAINS_SCENE | {} |
act_20e3357713c08364 | scene_2a683f4aea3b1b55 | CONTAINS_SCENE | {} |
scene_1eef59f964bbd293 | act_8b858081fbe07ab1 | PART_OF_ACT | {} |
scene_1eef59f964bbd293 | ep_sea_ser_happy_valley_s01_e01 | BELONGS_TO_EPISODE | {} |
scene_1eef59f964bbd293 | beat_702d8004cd8d24f1 | CONTAINS_BEAT | {} |
scene_1eef59f964bbd293 | beat_880ffd0da106e109 | CONTAINS_BEAT | {} |
scene_24cee963c84be956 | act_8b858081fbe07ab1 | PART_OF_ACT | {} |
scene_24cee963c84be956 | ep_sea_ser_happy_valley_s01_e01 | BELONGS_TO_EPISODE | {} |
scene_24cee963c84be956 | beat_c309b3e5aa1dacf8 | CONTAINS_BEAT | {} |
scene_24cee963c84be956 | beat_8974e4f942b3410b | CONTAINS_BEAT | {} |
scene_24cee963c84be956 | beat_31fa40fe99be197d | CONTAINS_BEAT | {} |
scene_24cee963c84be956 | beat_f4a070edf96e9d24 | CONTAINS_BEAT | {} |
scene_24cee963c84be956 | beat_3d57b467c5cee913 | CONTAINS_BEAT | {} |
scene_24cee963c84be956 | beat_f8a68bd8d17a2602 | CONTAINS_BEAT | {} |
scene_aff4e04b05ad6b93 | act_8b858081fbe07ab1 | PART_OF_ACT | {} |
scene_aff4e04b05ad6b93 | ep_sea_ser_happy_valley_s01_e01 | BELONGS_TO_EPISODE | {} |
scene_aff4e04b05ad6b93 | beat_ddc31a205638ce44 | CONTAINS_BEAT | {} |
scene_d385ad081e064a48 | act_8b858081fbe07ab1 | PART_OF_ACT | {} |
scene_d385ad081e064a48 | ep_sea_ser_happy_valley_s01_e01 | BELONGS_TO_EPISODE | {} |
scene_d385ad081e064a48 | beat_fd28cd3982633fd0 | CONTAINS_BEAT | {} |
scene_d385ad081e064a48 | beat_b5066f08a6578a6d | CONTAINS_BEAT | {} |
scene_d385ad081e064a48 | beat_98ae537191f9795e | CONTAINS_BEAT | {} |
scene_d385ad081e064a48 | beat_79cd7be46327cf42 | CONTAINS_BEAT | {} |
scene_ffc768223fafbacd | act_8b858081fbe07ab1 | PART_OF_ACT | {} |
scene_ffc768223fafbacd | ep_sea_ser_happy_valley_s01_e01 | BELONGS_TO_EPISODE | {} |
scene_ffc768223fafbacd | beat_ba6f439481efbcbc | CONTAINS_BEAT | {} |
scene_ffc768223fafbacd | beat_f3fec9eff95adc52 | CONTAINS_BEAT | {} |
scene_ffc768223fafbacd | beat_0b4be866039423ef | CONTAINS_BEAT | {} |
End of preview. Expand in Data Studio
Happy Valley - Narrative Knowledge Graph
A rich narrative knowledge graph extracted from Happy Valley screenplays using the Fabula pipeline. Contains characters, locations, objects, organizations, events, themes, and conflict arcs with full participation semantics and Graph Gravity importance tiers.
Dataset Overview
| Metric | Value |
|---|---|
| Source database | happyvalley2.s01 |
| Type | Season database |
| Episodes | 6 |
| Total nodes | 2,924 |
| Total edges | 8,333 |
| Schema version | 1.1.0 |
| Exported | 2026-02-24 |
Entity Breakdown
| Type | Count |
|---|---|
| Act | 18 |
| Agent | 195 |
| ConflictArc | 26 |
| Episode | 6 |
| Event | 519 |
| Location | 266 |
| Object | 557 |
| Organization | 52 |
| PlotBeat | 907 |
| SceneBoundary | 377 |
| Writer | 1 |
Graph Gravity Tiers
| Tier | Count | Description |
|---|---|---|
| anchor | 0 | Main characters / key locations |
| planet | 0 | Recurring entities |
| asteroid | 1,070 | Minor / one-off entities |
Relationship Types
AFFILIATED_WITH, BELONGS_TO_EPISODE, CALLBACK, CAUSAL, CHARACTER_CONTINUITY, CONTAINS_ACT, CONTAINS_BEAT, CONTAINS_SCENE, CREDITED_ON, EMOTIONAL_ECHO, ESCALATION, FORESHADOWING, INVOLVED_IN_ARC, INVOLVED_WITH, IN_EVENT, NARRATIVELY_FOLLOWS, OCCURS_IN, PARTICIPATED_AS, PART_OF, PART_OF_ACT ... and 4 more
Files
| File | Description |
|---|---|
nodes.parquet |
All graph nodes with properties |
edges.parquet |
All relationships with properties |
positions.parquet |
3D layout coordinates for visualization |
meta.json |
Dataset metadata and entity counts |
Schema
Nodes (nodes.parquet)
| Column | Type | Description |
|---|---|---|
node_id |
string | Unique node identifier (UUID) |
primary_label |
string | Node type (Agent, Location, Event, etc.) |
name |
string | Display name |
description |
string | Foundational description |
tier |
string (nullable) | Graph Gravity tier: anchor / planet / asteroid |
episode_count |
int (nullable) | Number of distinct episodes entity appears in |
first_episode_seq |
int (nullable) | First appearance episode |
last_episode_seq |
int (nullable) | Last appearance episode |
properties_json |
string | Full node properties as JSON |
Edges (edges.parquet)
| Column | Type | Description |
|---|---|---|
source_node_id |
string | Source node UUID |
target_node_id |
string | Target node UUID |
relationship_type |
string | Relationship type (e.g., PARTICIPATED_AS) |
properties_json |
string | Edge properties as JSON |
Positions (positions.parquet)
| Column | Type | Description |
|---|---|---|
node_id |
string | Node UUID |
x, y, z |
float | 3D coordinates |
size |
float | Node size (Graph Gravity weighted) |
r, g, b |
int | RGB color by entity type |
community |
int | Louvain community index |
tier |
string (nullable) | Graph Gravity tier |
Usage
from datasets import load_dataset
import pandas as pd
# Load from HuggingFace
ds = load_dataset("brandburner/happyvalley2-s01-narrative-kg")
# Or load parquet directly
nodes = pd.read_parquet("nodes.parquet")
edges = pd.read_parquet("edges.parquet")
# Filter to anchor characters
anchors = nodes[(nodes['primary_label'] == 'Agent') & (nodes['tier'] == 'anchor')]
# Build a NetworkX graph
import networkx as nx
G = nx.DiGraph()
for _, n in nodes.iterrows():
G.add_node(n['node_id'], label=n['primary_label'], name=n['name'])
for _, e in edges.iterrows():
G.add_edge(e['source_node_id'], e['target_node_id'], type=e['relationship_type'])
Citation
@misc{fabula_happyvalley2_s01,
title = {Happy Valley Narrative Knowledge Graph},
author = {Fabula Pipeline},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/datasets/brandburner/happyvalley2-s01-narrative-kg}}
}
License
CC BY-SA 4.0
- Downloads last month
- 13