Dataset Viewer
Auto-converted to Parquet Duplicate
source_node_id
stringlengths
16
35
target_node_id
stringlengths
16
35
relationship_type
stringclasses
27 values
properties_json
stringlengths
2
6.72k
ep_sea_ser_doctor_who_s12_e01
act_0d64708953b41a91
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s12_e01
act_1a10dd3ad39e3080
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s12_e01
act_541c793b50f46ada
CONTAINS_ACT
{}
act_0d64708953b41a91
ep_sea_ser_doctor_who_s12_e01
PART_OF_EPISODE
{}
act_0d64708953b41a91
scene_12e753853325b665
CONTAINS_SCENE
{}
act_0d64708953b41a91
scene_b3988dfa2c915839
CONTAINS_SCENE
{}
act_0d64708953b41a91
scene_5c1a6e6ac65bb16b
CONTAINS_SCENE
{}
act_0d64708953b41a91
scene_afa8af077e4c13f3
CONTAINS_SCENE
{}
act_0d64708953b41a91
scene_558f7db438012ca5
CONTAINS_SCENE
{}
act_0d64708953b41a91
scene_a6bc1171f96a04c1
CONTAINS_SCENE
{}
act_1a10dd3ad39e3080
ep_sea_ser_doctor_who_s12_e01
PART_OF_EPISODE
{}
act_1a10dd3ad39e3080
scene_3e29f88342a19aba
CONTAINS_SCENE
{}
act_1a10dd3ad39e3080
scene_c1198f34d265b346
CONTAINS_SCENE
{}
act_1a10dd3ad39e3080
scene_5851434f1163572e
CONTAINS_SCENE
{}
act_1a10dd3ad39e3080
scene_3ee4dc234d6bf5ef
CONTAINS_SCENE
{}
act_1a10dd3ad39e3080
scene_413d75f4c982a2f3
CONTAINS_SCENE
{}
act_1a10dd3ad39e3080
scene_213d04796c6b82ac
CONTAINS_SCENE
{}
act_541c793b50f46ada
ep_sea_ser_doctor_who_s12_e01
PART_OF_EPISODE
{}
act_541c793b50f46ada
scene_7ac2a441e6045e17
CONTAINS_SCENE
{}
act_541c793b50f46ada
scene_e83e9c0a1e3a1e9c
CONTAINS_SCENE
{}
act_541c793b50f46ada
scene_00055d1f585e3799
CONTAINS_SCENE
{}
act_541c793b50f46ada
scene_8d5b360658079be5
CONTAINS_SCENE
{}
act_541c793b50f46ada
scene_50baa2bbd5b04d95
CONTAINS_SCENE
{}
act_541c793b50f46ada
scene_07c2f671565755bc
CONTAINS_SCENE
{}
act_541c793b50f46ada
scene_a66eac7fab3c2a4d
CONTAINS_SCENE
{}
act_541c793b50f46ada
scene_d1a9df91078fc0ff
CONTAINS_SCENE
{}
scene_12e753853325b665
act_0d64708953b41a91
PART_OF_ACT
{}
scene_12e753853325b665
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_12e753853325b665
beat_38654eed4dfdd9e5
CONTAINS_BEAT
{}
scene_12e753853325b665
beat_8e9ae12ebfbe0d5f
CONTAINS_BEAT
{}
scene_12e753853325b665
beat_0095241caf570e56
CONTAINS_BEAT
{}
scene_12e753853325b665
beat_f5bbe1514f33b3f2
CONTAINS_BEAT
{}
scene_12e753853325b665
beat_8509e8724eb8f9f2
CONTAINS_BEAT
{}
scene_b3988dfa2c915839
act_0d64708953b41a91
PART_OF_ACT
{}
scene_b3988dfa2c915839
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_b3988dfa2c915839
beat_ba789f38d2040829
CONTAINS_BEAT
{}
scene_b3988dfa2c915839
beat_052801d12d97e98c
CONTAINS_BEAT
{}
scene_b3988dfa2c915839
beat_0366e35e2b652cf3
CONTAINS_BEAT
{}
scene_5c1a6e6ac65bb16b
act_0d64708953b41a91
PART_OF_ACT
{}
scene_5c1a6e6ac65bb16b
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_5c1a6e6ac65bb16b
beat_8e5738ac1a1106b0
CONTAINS_BEAT
{}
scene_5c1a6e6ac65bb16b
beat_b0c8d2ba1cb5b146
CONTAINS_BEAT
{}
scene_5c1a6e6ac65bb16b
beat_838c1fcf3e03785a
CONTAINS_BEAT
{}
scene_afa8af077e4c13f3
act_0d64708953b41a91
PART_OF_ACT
{}
scene_afa8af077e4c13f3
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_afa8af077e4c13f3
beat_49d063a06a558e4d
CONTAINS_BEAT
{}
scene_558f7db438012ca5
act_0d64708953b41a91
PART_OF_ACT
{}
scene_558f7db438012ca5
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_558f7db438012ca5
beat_d5e402b1f5b74c33
CONTAINS_BEAT
{}
scene_558f7db438012ca5
beat_ef284dbef4729464
CONTAINS_BEAT
{}
scene_558f7db438012ca5
beat_46087ef924e46ce6
CONTAINS_BEAT
{}
scene_558f7db438012ca5
beat_589e0126ab7906aa
CONTAINS_BEAT
{}
scene_a6bc1171f96a04c1
act_0d64708953b41a91
PART_OF_ACT
{}
scene_a6bc1171f96a04c1
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_a6bc1171f96a04c1
beat_a2770f9648182b11
CONTAINS_BEAT
{}
scene_a6bc1171f96a04c1
beat_c5cd432aca5ea1a9
CONTAINS_BEAT
{}
scene_3e29f88342a19aba
act_1a10dd3ad39e3080
PART_OF_ACT
{}
scene_3e29f88342a19aba
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_3e29f88342a19aba
beat_f19a39ef0193bd85
CONTAINS_BEAT
{}
scene_3e29f88342a19aba
beat_72d70d583dd4a288
CONTAINS_BEAT
{}
scene_3e29f88342a19aba
beat_56f17f946d8e02dd
CONTAINS_BEAT
{}
scene_3e29f88342a19aba
beat_77baeda2a766a818
CONTAINS_BEAT
{}
scene_c1198f34d265b346
act_1a10dd3ad39e3080
PART_OF_ACT
{}
scene_c1198f34d265b346
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_c1198f34d265b346
beat_dcd08c27f336033a
CONTAINS_BEAT
{}
scene_c1198f34d265b346
beat_4da25bbff5447482
CONTAINS_BEAT
{}
scene_5851434f1163572e
act_1a10dd3ad39e3080
PART_OF_ACT
{}
scene_5851434f1163572e
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_5851434f1163572e
beat_463856b38ac5e09f
CONTAINS_BEAT
{}
scene_5851434f1163572e
beat_0bc3cea206118288
CONTAINS_BEAT
{}
scene_5851434f1163572e
beat_16596b4d31429dc9
CONTAINS_BEAT
{}
scene_3ee4dc234d6bf5ef
act_1a10dd3ad39e3080
PART_OF_ACT
{}
scene_3ee4dc234d6bf5ef
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_3ee4dc234d6bf5ef
beat_df527a2ff03b3106
CONTAINS_BEAT
{}
scene_3ee4dc234d6bf5ef
beat_df256ef7e49bc4c6
CONTAINS_BEAT
{}
scene_3ee4dc234d6bf5ef
beat_65c825ca17dc8707
CONTAINS_BEAT
{}
scene_413d75f4c982a2f3
act_1a10dd3ad39e3080
PART_OF_ACT
{}
scene_413d75f4c982a2f3
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_413d75f4c982a2f3
beat_692c23e0f804b025
CONTAINS_BEAT
{}
scene_413d75f4c982a2f3
beat_c33ddca7377ee81c
CONTAINS_BEAT
{}
scene_413d75f4c982a2f3
beat_739cc70e4077c582
CONTAINS_BEAT
{}
scene_213d04796c6b82ac
act_1a10dd3ad39e3080
PART_OF_ACT
{}
scene_213d04796c6b82ac
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_213d04796c6b82ac
beat_5f22c7d8d784eb4b
CONTAINS_BEAT
{}
scene_213d04796c6b82ac
beat_7c6d8613a22698e6
CONTAINS_BEAT
{}
scene_213d04796c6b82ac
beat_7a325da00d41e604
CONTAINS_BEAT
{}
scene_7ac2a441e6045e17
act_541c793b50f46ada
PART_OF_ACT
{}
scene_7ac2a441e6045e17
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_7ac2a441e6045e17
beat_e7486ab1f5c87263
CONTAINS_BEAT
{}
scene_7ac2a441e6045e17
beat_d8f1fe698e274891
CONTAINS_BEAT
{}
scene_7ac2a441e6045e17
beat_6b7a40bd94a2fa5d
CONTAINS_BEAT
{}
scene_7ac2a441e6045e17
beat_0c3ed09ba916fcf3
CONTAINS_BEAT
{}
scene_e83e9c0a1e3a1e9c
act_541c793b50f46ada
PART_OF_ACT
{}
scene_e83e9c0a1e3a1e9c
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_e83e9c0a1e3a1e9c
beat_7d2399bf7bbfba0c
CONTAINS_BEAT
{}
scene_e83e9c0a1e3a1e9c
beat_3c86a9682da89ece
CONTAINS_BEAT
{}
scene_e83e9c0a1e3a1e9c
beat_246f81bd17788b6b
CONTAINS_BEAT
{}
scene_00055d1f585e3799
act_541c793b50f46ada
PART_OF_ACT
{}
scene_00055d1f585e3799
ep_sea_ser_doctor_who_s12_e01
BELONGS_TO_EPISODE
{}
scene_00055d1f585e3799
beat_fa450846f80802bf
CONTAINS_BEAT
{}
End of preview. Expand in Data Studio

Doctor Who - Narrative Knowledge Graph

A rich narrative knowledge graph extracted from Doctor Who 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 doctorwho.s12
Type Season database
Episodes 20
Total nodes 3,160
Total edges 11,042
Schema version 1.2.0
Exported 2026-08-05

Entity Breakdown

Type Count
Act 50
Agent 117
ConflictArc 60
Episode 20
Event 596
Location 164
Object 497
Organization 51
PlotBeat 1,114
SceneBoundary 397
Theme 88
Writer 6

Graph Gravity Tiers

Tier Count Description
anchor 11 Main characters / key locations
planet 204 Recurring entities
asteroid 614 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, EXEMPLIFIES_THEME, FORESHADOWING, INVOLVED_IN_ARC, INVOLVED_WITH, IN_EVENT, NARRATIVELY_FOLLOWS, OCCURS_IN, PARTICIPATED_AS, PART_OF ... and 7 more

Related Datasets

This is a single-season dataset containing entities and events as extracted from Season 12 screenplays.

Note: The megagraph is not a simple union of season datasets. Cross-season entities are reconciled through a Global Entity Registry (GER), receiving new canonical UUIDs and distilled descriptions. Graph Gravity tiers are recalculated across all episodes. Use individual season datasets for single-season analysis; use the megagraph for cross-season analysis.

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 (seeded, deterministic)
tier string (nullable) Graph Gravity tier

Layout method (schema ≥ 1.2.0): Coordinates are derived from the entities' semantic text embeddings (UMAP with a fixed seed and PCA initialization), so narratively similar entities sit near each other. Non-embedded nodes (events, scenes, episodes, etc.) are placed at the weighted barycenter of their narrative neighbours. The layout is deterministic: re-exporting an unchanged graph reproduces identical coordinates, and lightly-changed graphs keep comparable layouts. Not comparable with positions published under schema ≤ 1.1.0, which used a non-deterministic node2vec structural embedding. See meta.json → positions for the exact method and coverage stats.

Usage

from datasets import load_dataset
import pandas as pd

# Load from HuggingFace
ds = load_dataset("brandburner/doctorwho-s12-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_doctorwho_s12,
  title = {Doctor Who Narrative Knowledge Graph},
  author = {Fabula Pipeline},
  year = {2026},
  publisher = {HuggingFace},
  howpublished = {\url{https://huggingface.co/datasets/brandburner/doctorwho-s12-narrative-kg}}
}

License

CC BY-SA 4.0

Downloads last month
50