Dataset Viewer
Auto-converted to Parquet Duplicate
source_node_id
stringlengths
16
34
target_node_id
stringlengths
16
34
relationship_type
stringclasses
24 values
properties_json
stringlengths
2
9.12k
ep_sea_ser_happy_valley_s02_e01
act_b145f2761ad1296d
CONTAINS_ACT
{}
ep_sea_ser_happy_valley_s02_e01
act_bcc3adf035dc697b
CONTAINS_ACT
{}
writer_sally_wainwright
ep_sea_ser_happy_valley_s02_e01
CREDITED_ON
{"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-19T16:40:38.873757+00:00", "full_credit_line": "By Sally Wainwright", "credit_type": "Written by"}
act_b145f2761ad1296d
ep_sea_ser_happy_valley_s02_e01
PART_OF_EPISODE
{}
act_b145f2761ad1296d
scene_8d688e7454fe0493
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_d6e2f0e7649fb5cb
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_34b5957475ab9cf2
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_125ffe00a5028c8f
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_189f5433dde01611
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_308cd674cf2cc787
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_c0fbeb8c1a683c24
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_bc1ea77bf1fef981
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_61f07c11b1114966
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_f2a403390db8e4e8
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_d1469a443bdf0f08
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_95836382e04ef712
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_7d944973928c73e0
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_12fa83c2429f2488
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_dab7483c0eda1101
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_2f83a31ae0987f47
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_87f5dee8e408faf0
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_20e07a383d5298e0
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_0f832f71f9a9f067
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_79dc5cb5c84c7d7d
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_59a16cb1194ae13d
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_71b843f6af4f500e
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_fe54e7812f2bf444
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_e7966956e93d4734
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_4d381b95eea3debc
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_68d6f9f0902bc28a
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_3d4e3bfbbb899a91
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_adb946406057cda1
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_66fc77ed94a21c83
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_d29c133321879f80
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_c583aa7acc1e7c9d
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_fd389f2b465e8a99
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_d094f0e28f27aeb9
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_6c13ff200e36e836
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_adc107ed2544b637
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_1caf0b2ed06e2a57
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_f44ed696ef025c41
CONTAINS_SCENE
{}
act_b145f2761ad1296d
scene_bfdfd6ab7c55c5a1
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
ep_sea_ser_happy_valley_s02_e01
PART_OF_EPISODE
{}
act_bcc3adf035dc697b
scene_287ed972c07b175b
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_05029aed46412069
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_3dc2b9201839f4ab
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_f39bd5af3e1b1f3b
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_5b5e445dbe1b69e0
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_14fb553acecb9876
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_a538743b5dbd9c21
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_e759b768c0589a31
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_cce0b02abe650ca3
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_e131d3103e6a8621
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_f68b564b56b4c890
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_f6acc0a27b7800b7
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_09cdf0dddb0fd6b6
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_7ddce9d21723f162
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_937f7a848859a625
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_ad2f0e831e87ad7c
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_445e12b309733c09
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_4e18c1e315d0cc8c
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_6bae8e224a01320e
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_53473a1575c29f4e
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_3b2800df7a69fca4
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_8ae86e7cea1c014b
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_7409215500a651ea
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_63733c266b80035f
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_e04300040fef6352
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_0639ea4f0733112b
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_4b3bce02a296e825
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_ac0e2761d1e7a747
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_3ab614613bb129ec
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_3c1790933492a6ea
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_ede66bb32e9e7dcd
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_48273e624131a40e
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_1057d459e527ebc5
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_0f62860231c14843
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_3285731bb0ac368a
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_53a9d4d7e004ebc3
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_7f6ffdcaa0a5244c
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_137cd32c05a54c61
CONTAINS_SCENE
{}
act_bcc3adf035dc697b
scene_f9b30e5f3160f16b
CONTAINS_SCENE
{}
scene_8d688e7454fe0493
act_b145f2761ad1296d
PART_OF_ACT
{}
scene_8d688e7454fe0493
ep_sea_ser_happy_valley_s02_e01
BELONGS_TO_EPISODE
{}
scene_8d688e7454fe0493
beat_8d2cee5cf471f91b
CONTAINS_BEAT
{}
scene_d6e2f0e7649fb5cb
act_b145f2761ad1296d
PART_OF_ACT
{}
scene_d6e2f0e7649fb5cb
ep_sea_ser_happy_valley_s02_e01
BELONGS_TO_EPISODE
{}
scene_d6e2f0e7649fb5cb
beat_b24f15511338bc0e
CONTAINS_BEAT
{}
scene_34b5957475ab9cf2
act_b145f2761ad1296d
PART_OF_ACT
{}
scene_34b5957475ab9cf2
ep_sea_ser_happy_valley_s02_e01
BELONGS_TO_EPISODE
{}
scene_34b5957475ab9cf2
beat_c1db22990ea1054d
CONTAINS_BEAT
{}
scene_34b5957475ab9cf2
beat_2cb185dd83ee7857
CONTAINS_BEAT
{}
scene_34b5957475ab9cf2
beat_86a33994743f112d
CONTAINS_BEAT
{}
scene_125ffe00a5028c8f
act_b145f2761ad1296d
PART_OF_ACT
{}
scene_125ffe00a5028c8f
ep_sea_ser_happy_valley_s02_e01
BELONGS_TO_EPISODE
{}
scene_125ffe00a5028c8f
beat_a6ffaa55d66c72dd
CONTAINS_BEAT
{}
scene_189f5433dde01611
act_b145f2761ad1296d
PART_OF_ACT
{}
scene_189f5433dde01611
ep_sea_ser_happy_valley_s02_e01
BELONGS_TO_EPISODE
{}
scene_189f5433dde01611
beat_fe4432552a2d13bf
CONTAINS_BEAT
{}
scene_308cd674cf2cc787
act_b145f2761ad1296d
PART_OF_ACT
{}
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.s02
Type Season database
Episodes 6
Total nodes 2,876
Total edges 7,673
Schema version 1.1.0
Exported 2026-02-24

Entity Breakdown

Type Count
Act 17
Agent 224
ConflictArc 29
Episode 6
Event 468
Location 277
Object 575
Organization 71
PlotBeat 860
SceneBoundary 348
Writer 1

Graph Gravity Tiers

Tier Count Description
anchor 23 Main characters / key locations
planet 143 Recurring entities
asteroid 981 Minor / one-off entities

Relationship Types

AFFILIATED_WITH, BELONGS_TO_EPISODE, 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, PART_OF_ARC ... 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-s02-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_s02,
  title = {Happy Valley Narrative Knowledge Graph},
  author = {Fabula Pipeline},
  year = {2026},
  publisher = {HuggingFace},
  howpublished = {\url{https://huggingface.co/datasets/brandburner/happyvalley2-s02-narrative-kg}}
}

License

CC BY-SA 4.0

Downloads last month
7