Dataset Viewer
Auto-converted to Parquet Duplicate
source_node_id
stringlengths
16
34
target_node_id
stringlengths
16
34
relationship_type
stringclasses
27 values
properties_json
stringlengths
2
8.32k
ep_sea_ser_doctor_who_s04_e01
act_4b591a00ce35f89f
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s04_e01
act_f0233722278c8aad
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s04_e01
act_92bf3feb8366d143
CONTAINS_ACT
{}
act_4b591a00ce35f89f
ep_sea_ser_doctor_who_s04_e01
PART_OF_EPISODE
{}
act_4b591a00ce35f89f
scene_14fdc76aaf8a0179
CONTAINS_SCENE
{}
act_4b591a00ce35f89f
scene_0389176d399946c2
CONTAINS_SCENE
{}
act_4b591a00ce35f89f
scene_e2cbc53b41b3a652
CONTAINS_SCENE
{}
act_4b591a00ce35f89f
scene_70bacd6a489e762d
CONTAINS_SCENE
{}
act_4b591a00ce35f89f
scene_129732f8f9bcfb56
CONTAINS_SCENE
{}
act_4b591a00ce35f89f
scene_41fd43792cfbc8b6
CONTAINS_SCENE
{}
act_4b591a00ce35f89f
scene_dbee164a7ca0d1b9
CONTAINS_SCENE
{}
act_f0233722278c8aad
ep_sea_ser_doctor_who_s04_e01
PART_OF_EPISODE
{}
act_f0233722278c8aad
scene_7114551ee5aeed11
CONTAINS_SCENE
{}
act_f0233722278c8aad
scene_379f260b3b87f9d9
CONTAINS_SCENE
{}
act_f0233722278c8aad
scene_06a8f3f6c6bb21d4
CONTAINS_SCENE
{}
act_f0233722278c8aad
scene_1664f72ad9206c59
CONTAINS_SCENE
{}
act_f0233722278c8aad
scene_178452bca6d7ed25
CONTAINS_SCENE
{}
act_f0233722278c8aad
scene_31723baeb3045845
CONTAINS_SCENE
{}
act_f0233722278c8aad
scene_0f26c9fc59d485c9
CONTAINS_SCENE
{}
act_92bf3feb8366d143
ep_sea_ser_doctor_who_s04_e01
PART_OF_EPISODE
{}
act_92bf3feb8366d143
scene_d8f1b85b411bf7e6
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_fab4c244f8db20c9
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_e052d660cd24d6ff
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_21311bda92cc7777
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_d1f3bdab724aa54b
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_596c9add18762f23
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_80fc7c2bd112e011
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_818536f9087b74bb
CONTAINS_SCENE
{}
act_92bf3feb8366d143
scene_5842164958ae66fe
CONTAINS_SCENE
{}
scene_14fdc76aaf8a0179
act_4b591a00ce35f89f
PART_OF_ACT
{}
scene_14fdc76aaf8a0179
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_14fdc76aaf8a0179
beat_78f374899b783255
CONTAINS_BEAT
{}
scene_14fdc76aaf8a0179
beat_afc05fe58eb1ad50
CONTAINS_BEAT
{}
scene_14fdc76aaf8a0179
beat_21131a52a444bb4e
CONTAINS_BEAT
{}
scene_14fdc76aaf8a0179
beat_a18b6cab560dcce9
CONTAINS_BEAT
{}
scene_0389176d399946c2
act_4b591a00ce35f89f
PART_OF_ACT
{}
scene_0389176d399946c2
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_0389176d399946c2
beat_9251e406d611cd41
CONTAINS_BEAT
{}
scene_0389176d399946c2
beat_c4681e2e8ffba7f8
CONTAINS_BEAT
{}
scene_0389176d399946c2
beat_c5f1a4864ad2b829
CONTAINS_BEAT
{}
scene_e2cbc53b41b3a652
act_4b591a00ce35f89f
PART_OF_ACT
{}
scene_e2cbc53b41b3a652
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_e2cbc53b41b3a652
beat_e055c8459c4c0792
CONTAINS_BEAT
{}
scene_e2cbc53b41b3a652
beat_6efbb7de8b6ee7dc
CONTAINS_BEAT
{}
scene_e2cbc53b41b3a652
beat_65ebea5a9a40e99e
CONTAINS_BEAT
{}
scene_70bacd6a489e762d
act_4b591a00ce35f89f
PART_OF_ACT
{}
scene_70bacd6a489e762d
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_70bacd6a489e762d
beat_00faa1f73f546904
CONTAINS_BEAT
{}
scene_70bacd6a489e762d
beat_b1a84d4729ea90ed
CONTAINS_BEAT
{}
scene_129732f8f9bcfb56
act_4b591a00ce35f89f
PART_OF_ACT
{}
scene_129732f8f9bcfb56
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_129732f8f9bcfb56
beat_6c488ab6aced3814
CONTAINS_BEAT
{}
scene_129732f8f9bcfb56
beat_286352aaec35f188
CONTAINS_BEAT
{}
scene_129732f8f9bcfb56
beat_2d0c907a4af8c0e9
CONTAINS_BEAT
{}
scene_129732f8f9bcfb56
beat_46c9605119d0c1e2
CONTAINS_BEAT
{}
scene_41fd43792cfbc8b6
act_4b591a00ce35f89f
PART_OF_ACT
{}
scene_41fd43792cfbc8b6
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_41fd43792cfbc8b6
beat_2a1058ceb797ebe3
CONTAINS_BEAT
{}
scene_41fd43792cfbc8b6
beat_a597d00257f7648d
CONTAINS_BEAT
{}
scene_41fd43792cfbc8b6
beat_07a835efda93a5c3
CONTAINS_BEAT
{}
scene_41fd43792cfbc8b6
beat_712eb5024e48b130
CONTAINS_BEAT
{}
scene_41fd43792cfbc8b6
beat_59c31ea0ef4659c4
CONTAINS_BEAT
{}
scene_41fd43792cfbc8b6
beat_608dba227d3a67d4
CONTAINS_BEAT
{}
scene_41fd43792cfbc8b6
beat_95fb075e6578cbcc
CONTAINS_BEAT
{}
scene_dbee164a7ca0d1b9
act_4b591a00ce35f89f
PART_OF_ACT
{}
scene_dbee164a7ca0d1b9
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_dbee164a7ca0d1b9
beat_496a9177501c4638
CONTAINS_BEAT
{}
scene_dbee164a7ca0d1b9
beat_5fe7b221e471cdc2
CONTAINS_BEAT
{}
scene_dbee164a7ca0d1b9
beat_d4dda0fe9de6bc49
CONTAINS_BEAT
{}
scene_7114551ee5aeed11
act_f0233722278c8aad
PART_OF_ACT
{}
scene_7114551ee5aeed11
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_7114551ee5aeed11
beat_d1307694ccad4262
CONTAINS_BEAT
{}
scene_379f260b3b87f9d9
act_f0233722278c8aad
PART_OF_ACT
{}
scene_379f260b3b87f9d9
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_379f260b3b87f9d9
beat_c5069f2de34d5f7b
CONTAINS_BEAT
{}
scene_379f260b3b87f9d9
beat_8e5dd171c7a6e12d
CONTAINS_BEAT
{}
scene_379f260b3b87f9d9
beat_feb8713101e93b32
CONTAINS_BEAT
{}
scene_379f260b3b87f9d9
beat_98b6076bba4d0a8b
CONTAINS_BEAT
{}
scene_06a8f3f6c6bb21d4
act_f0233722278c8aad
PART_OF_ACT
{}
scene_06a8f3f6c6bb21d4
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_06a8f3f6c6bb21d4
beat_62f2f0559ce94215
CONTAINS_BEAT
{}
scene_06a8f3f6c6bb21d4
beat_609616f7f36b4a00
CONTAINS_BEAT
{}
scene_06a8f3f6c6bb21d4
beat_eb6e4f25b265d64a
CONTAINS_BEAT
{}
scene_06a8f3f6c6bb21d4
beat_35dd35137daa5ea7
CONTAINS_BEAT
{}
scene_1664f72ad9206c59
act_f0233722278c8aad
PART_OF_ACT
{}
scene_1664f72ad9206c59
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_1664f72ad9206c59
beat_5e55b9f71e1c5b67
CONTAINS_BEAT
{}
scene_178452bca6d7ed25
act_f0233722278c8aad
PART_OF_ACT
{}
scene_178452bca6d7ed25
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_178452bca6d7ed25
beat_515c3022f3faac47
CONTAINS_BEAT
{}
scene_178452bca6d7ed25
beat_78358c207faf27be
CONTAINS_BEAT
{}
scene_31723baeb3045845
act_f0233722278c8aad
PART_OF_ACT
{}
scene_31723baeb3045845
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_31723baeb3045845
beat_f0141d8b7e0f0fa6
CONTAINS_BEAT
{}
scene_31723baeb3045845
beat_b5161300fa7a1ec2
CONTAINS_BEAT
{}
scene_31723baeb3045845
beat_f46fec088e36e7c6
CONTAINS_BEAT
{}
scene_0f26c9fc59d485c9
act_f0233722278c8aad
PART_OF_ACT
{}
scene_0f26c9fc59d485c9
ep_sea_ser_doctor_who_s04_e01
BELONGS_TO_EPISODE
{}
scene_0f26c9fc59d485c9
beat_f85684fc93ad9438
CONTAINS_BEAT
{}
scene_0f26c9fc59d485c9
beat_5816696e6064c1ca
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.s04
Type Season database
Episodes 43
Total nodes 6,313
Total edges 24,457
Schema version 1.2.0
Exported 2026-08-05

Entity Breakdown

Type Count
Act 117
Agent 308
ConflictArc 116
Episode 43
Event 1,147
Location 373
Object 1,187
Organization 132
PlotBeat 1,960
SceneBoundary 740
Theme 181
Writer 9

Graph Gravity Tiers

Tier Count Description
anchor 33 Main characters / key locations
planet 310 Recurring entities
asteroid 1,657 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 4 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-s04-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_s04,
  title = {Doctor Who Narrative Knowledge Graph},
  author = {Fabula Pipeline},
  year = {2026},
  publisher = {HuggingFace},
  howpublished = {\url{https://huggingface.co/datasets/brandburner/doctorwho-s04-narrative-kg}}
}

License

CC BY-SA 4.0

Downloads last month
51