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.9k
⌀
ep_sea_ser_doctor_who_s11_e01
act_c6e2b7bfe3fc2c8b
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s11_e01
act_28c157da62694940
CONTAINS_ACT
{}
act_c6e2b7bfe3fc2c8b
ep_sea_ser_doctor_who_s11_e01
PART_OF_EPISODE
{}
act_c6e2b7bfe3fc2c8b
scene_45964026f6c5c273
CONTAINS_SCENE
{}
act_c6e2b7bfe3fc2c8b
scene_fae4c5568774bb59
CONTAINS_SCENE
{}
act_c6e2b7bfe3fc2c8b
scene_c0400b5126603a3e
CONTAINS_SCENE
{}
act_c6e2b7bfe3fc2c8b
scene_570734b75c57c7dd
CONTAINS_SCENE
{}
act_c6e2b7bfe3fc2c8b
scene_40c8c17d94b8401f
CONTAINS_SCENE
{}
act_c6e2b7bfe3fc2c8b
scene_4f8311a24eee3e55
CONTAINS_SCENE
{}
act_c6e2b7bfe3fc2c8b
scene_11bc65feae3a6768
CONTAINS_SCENE
{}
act_c6e2b7bfe3fc2c8b
scene_e397606393946435
CONTAINS_SCENE
{}
act_28c157da62694940
ep_sea_ser_doctor_who_s11_e01
PART_OF_EPISODE
{}
act_28c157da62694940
scene_b709e9af6982f8b4
CONTAINS_SCENE
{}
act_28c157da62694940
scene_c96b5f10acb7a491
CONTAINS_SCENE
{}
act_28c157da62694940
scene_a5168bab2ea311f8
CONTAINS_SCENE
{}
act_28c157da62694940
scene_da2b5afdc852c8c1
CONTAINS_SCENE
{}
act_28c157da62694940
scene_7bb5871ea6307567
CONTAINS_SCENE
{}
act_28c157da62694940
scene_9271e9886c201b0f
CONTAINS_SCENE
{}
act_28c157da62694940
scene_410ea31fd730b64e
CONTAINS_SCENE
{}
act_28c157da62694940
scene_a157d50326848bd7
CONTAINS_SCENE
{}
act_28c157da62694940
scene_6acd131c21b7ee1d
CONTAINS_SCENE
{}
scene_45964026f6c5c273
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_45964026f6c5c273
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_45964026f6c5c273
beat_34011d382f70a02e
CONTAINS_BEAT
{}
scene_45964026f6c5c273
beat_bb59acdd5074d77b
CONTAINS_BEAT
{}
scene_45964026f6c5c273
beat_d0da35981e21f296
CONTAINS_BEAT
{}
scene_45964026f6c5c273
beat_de5f151e7a292284
CONTAINS_BEAT
{}
scene_45964026f6c5c273
beat_bc37cf9f7acc5b4a
CONTAINS_BEAT
{}
scene_fae4c5568774bb59
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_fae4c5568774bb59
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_fae4c5568774bb59
beat_5b7f582b1783e92e
CONTAINS_BEAT
{}
scene_fae4c5568774bb59
beat_cd54637b5b6c7aec
CONTAINS_BEAT
{}
scene_fae4c5568774bb59
beat_396b2ed745b4e659
CONTAINS_BEAT
{}
scene_fae4c5568774bb59
beat_9ad6a19da6da0918
CONTAINS_BEAT
{}
scene_c0400b5126603a3e
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_c0400b5126603a3e
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_c0400b5126603a3e
beat_9c0a8221434de741
CONTAINS_BEAT
{}
scene_c0400b5126603a3e
beat_b400e23b1b103cfc
CONTAINS_BEAT
{}
scene_c0400b5126603a3e
beat_84da7ca53baed054
CONTAINS_BEAT
{}
scene_c0400b5126603a3e
beat_a8637bd5f92215dd
CONTAINS_BEAT
{}
scene_570734b75c57c7dd
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_570734b75c57c7dd
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_570734b75c57c7dd
beat_4514de1596cf8d3f
CONTAINS_BEAT
{}
scene_570734b75c57c7dd
beat_1f4980c90911efdf
CONTAINS_BEAT
{}
scene_40c8c17d94b8401f
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_40c8c17d94b8401f
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_40c8c17d94b8401f
beat_7d72db9024ebaf6d
CONTAINS_BEAT
{}
scene_40c8c17d94b8401f
beat_653e75b3fd758798
CONTAINS_BEAT
{}
scene_40c8c17d94b8401f
beat_2239c789dff40ac7
CONTAINS_BEAT
{}
scene_40c8c17d94b8401f
beat_788fd5d620541a95
CONTAINS_BEAT
{}
scene_40c8c17d94b8401f
beat_d980aab29e32e870
CONTAINS_BEAT
{}
scene_4f8311a24eee3e55
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_4f8311a24eee3e55
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_4f8311a24eee3e55
beat_9c901a8c6e9d701a
CONTAINS_BEAT
{}
scene_4f8311a24eee3e55
beat_6d74b828dcd21c4e
CONTAINS_BEAT
{}
scene_4f8311a24eee3e55
beat_38ce37d697cd19bb
CONTAINS_BEAT
{}
scene_4f8311a24eee3e55
beat_83597eba9cb5610e
CONTAINS_BEAT
{}
scene_4f8311a24eee3e55
beat_3554b2af3f4dec12
CONTAINS_BEAT
{}
scene_11bc65feae3a6768
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_11bc65feae3a6768
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_11bc65feae3a6768
beat_d3691306f2e6d234
CONTAINS_BEAT
{}
scene_11bc65feae3a6768
beat_487b2e7d679d56b1
CONTAINS_BEAT
{}
scene_11bc65feae3a6768
beat_4269ab13f1a3a2f1
CONTAINS_BEAT
{}
scene_11bc65feae3a6768
beat_68d385e21a544420
CONTAINS_BEAT
{}
scene_11bc65feae3a6768
beat_63a66e617cf53120
CONTAINS_BEAT
{}
scene_e397606393946435
act_c6e2b7bfe3fc2c8b
PART_OF_ACT
{}
scene_e397606393946435
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_e397606393946435
beat_8ccf5e2547a2e20b
CONTAINS_BEAT
{}
scene_e397606393946435
beat_9ad890065964a8ee
CONTAINS_BEAT
{}
scene_e397606393946435
beat_009daa1e23a52835
CONTAINS_BEAT
{}
scene_b709e9af6982f8b4
act_28c157da62694940
PART_OF_ACT
{}
scene_b709e9af6982f8b4
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_b709e9af6982f8b4
beat_f36375bea5e3c3c6
CONTAINS_BEAT
{}
scene_b709e9af6982f8b4
beat_6ef21f91acc4777b
CONTAINS_BEAT
{}
scene_b709e9af6982f8b4
beat_6077b8900b745fdf
CONTAINS_BEAT
{}
scene_b709e9af6982f8b4
beat_67c9494fc67ec552
CONTAINS_BEAT
{}
scene_b709e9af6982f8b4
beat_9726ef37aa475493
CONTAINS_BEAT
{}
scene_c96b5f10acb7a491
act_28c157da62694940
PART_OF_ACT
{}
scene_c96b5f10acb7a491
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_c96b5f10acb7a491
beat_efb73921f1078d2f
CONTAINS_BEAT
{}
scene_a5168bab2ea311f8
act_28c157da62694940
PART_OF_ACT
{}
scene_a5168bab2ea311f8
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_a5168bab2ea311f8
beat_df878172ef61a714
CONTAINS_BEAT
{}
scene_a5168bab2ea311f8
beat_2f8cd3b09d130c41
CONTAINS_BEAT
{}
scene_da2b5afdc852c8c1
act_28c157da62694940
PART_OF_ACT
{}
scene_da2b5afdc852c8c1
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_da2b5afdc852c8c1
beat_17faedb7dbd66a7d
CONTAINS_BEAT
{}
scene_da2b5afdc852c8c1
beat_51529cd84376ce33
CONTAINS_BEAT
{}
scene_da2b5afdc852c8c1
beat_95ff4b8237a11b11
CONTAINS_BEAT
{}
scene_7bb5871ea6307567
act_28c157da62694940
PART_OF_ACT
{}
scene_7bb5871ea6307567
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_7bb5871ea6307567
beat_cf3f70c38898c9d1
CONTAINS_BEAT
{}
scene_7bb5871ea6307567
beat_baf913807ebf8fc3
CONTAINS_BEAT
{}
scene_7bb5871ea6307567
beat_c3ba8864d28b8698
CONTAINS_BEAT
{}
scene_7bb5871ea6307567
beat_82595130c9d0f3b7
CONTAINS_BEAT
{}
scene_7bb5871ea6307567
beat_34fb736e7dfb5f2c
CONTAINS_BEAT
{}
scene_9271e9886c201b0f
act_28c157da62694940
PART_OF_ACT
{}
scene_9271e9886c201b0f
ep_sea_ser_doctor_who_s11_e01
BELONGS_TO_EPISODE
{}
scene_9271e9886c201b0f
beat_a1811afae34d1a32
CONTAINS_BEAT
{}
scene_9271e9886c201b0f
beat_97f13a6764253c9f
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.s11
Type Season database
Episodes 26
Total nodes 4,024
Total edges 14,318
Schema version 1.2.0
Exported 2026-08-05

Entity Breakdown

Type Count
Act 65
Agent 158
ConflictArc 93
Episode 26
Event 761
Location 247
Object 548
Organization 55
PlotBeat 1,426
SceneBoundary 531
Theme 109
Writer 5

Graph Gravity Tiers

Tier Count Description
anchor 31 Main characters / key locations
planet 232 Recurring entities
asteroid 745 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 11 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-s11-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_s11,
  title = {Doctor Who Narrative Knowledge Graph},
  author = {Fabula Pipeline},
  year = {2026},
  publisher = {HuggingFace},
  howpublished = {\url{https://huggingface.co/datasets/brandburner/doctorwho-s11-narrative-kg}}
}

License

CC BY-SA 4.0

Downloads last month
104