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
7.62k
ep_sea_ser_doctor_who_s09_e01
act_3e4be2a57d7b4d1c
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s09_e01
act_67a851580d4bf261
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s09_e01
act_288ae57da448fddd
CONTAINS_ACT
{}
act_3e4be2a57d7b4d1c
ep_sea_ser_doctor_who_s09_e01
PART_OF_EPISODE
{}
act_3e4be2a57d7b4d1c
scene_08924b121fb0aad6
CONTAINS_SCENE
{}
act_3e4be2a57d7b4d1c
scene_76b66ec5a63fb658
CONTAINS_SCENE
{}
act_3e4be2a57d7b4d1c
scene_6d5083c809efe23a
CONTAINS_SCENE
{}
act_3e4be2a57d7b4d1c
scene_3b5a4ddcf2358e92
CONTAINS_SCENE
{}
act_3e4be2a57d7b4d1c
scene_3dd3b5d80a9e87cf
CONTAINS_SCENE
{}
act_3e4be2a57d7b4d1c
scene_f7aa623ddf6e1990
CONTAINS_SCENE
{}
act_3e4be2a57d7b4d1c
scene_32c2da09dd611f1f
CONTAINS_SCENE
{}
act_3e4be2a57d7b4d1c
scene_784be40747a969cf
CONTAINS_SCENE
{}
act_67a851580d4bf261
ep_sea_ser_doctor_who_s09_e01
PART_OF_EPISODE
{}
act_67a851580d4bf261
scene_3a19b4237031efab
CONTAINS_SCENE
{}
act_67a851580d4bf261
scene_f7aed155270542af
CONTAINS_SCENE
{}
act_67a851580d4bf261
scene_dc9583a1fbd02b0a
CONTAINS_SCENE
{}
act_67a851580d4bf261
scene_c3a8a94dd8cfc700
CONTAINS_SCENE
{}
act_67a851580d4bf261
scene_ebaae532b9d38422
CONTAINS_SCENE
{}
act_67a851580d4bf261
scene_894a1533b13de46b
CONTAINS_SCENE
{}
act_67a851580d4bf261
scene_1cae1dbb8b74c957
CONTAINS_SCENE
{}
act_67a851580d4bf261
scene_135d926a67d4efd7
CONTAINS_SCENE
{}
act_288ae57da448fddd
ep_sea_ser_doctor_who_s09_e01
PART_OF_EPISODE
{}
act_288ae57da448fddd
scene_3f768512d538a51f
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_c2c8cedd4ecb6dac
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_8f7e7b4c1bdf011d
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_1c3650638a45c794
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_cd08598dc67e4b62
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_19789a13abf3f974
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_d470241713f14405
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_6baafd8675e775f6
CONTAINS_SCENE
{}
act_288ae57da448fddd
scene_39191f994c2044e9
CONTAINS_SCENE
{}
scene_08924b121fb0aad6
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_08924b121fb0aad6
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_08924b121fb0aad6
beat_4d25825cac2d3b2e
CONTAINS_BEAT
{}
scene_08924b121fb0aad6
beat_3e0082b4ac13e6be
CONTAINS_BEAT
{}
scene_76b66ec5a63fb658
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_76b66ec5a63fb658
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_76b66ec5a63fb658
beat_4c500595d1ae7a03
CONTAINS_BEAT
{}
scene_76b66ec5a63fb658
beat_581e45158685c81b
CONTAINS_BEAT
{}
scene_76b66ec5a63fb658
beat_02d3a9a62a4c274e
CONTAINS_BEAT
{}
scene_76b66ec5a63fb658
beat_097c5ee9dafc84cb
CONTAINS_BEAT
{}
scene_76b66ec5a63fb658
beat_6acaf5c4259de677
CONTAINS_BEAT
{}
scene_6d5083c809efe23a
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_6d5083c809efe23a
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_6d5083c809efe23a
beat_aff22955e0f3863c
CONTAINS_BEAT
{}
scene_6d5083c809efe23a
beat_75f2adb7cfaaeff0
CONTAINS_BEAT
{}
scene_6d5083c809efe23a
beat_49ee9c119c7dabe6
CONTAINS_BEAT
{}
scene_3b5a4ddcf2358e92
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_3b5a4ddcf2358e92
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_3b5a4ddcf2358e92
beat_4d79d09374637115
CONTAINS_BEAT
{}
scene_3b5a4ddcf2358e92
beat_f2ad7818b2ff33bc
CONTAINS_BEAT
{}
scene_3b5a4ddcf2358e92
beat_f04e1d504075424f
CONTAINS_BEAT
{}
scene_3b5a4ddcf2358e92
beat_1850ece23316b8bc
CONTAINS_BEAT
{}
scene_3b5a4ddcf2358e92
beat_77e42c6cb732f12d
CONTAINS_BEAT
{}
scene_3dd3b5d80a9e87cf
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_3dd3b5d80a9e87cf
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_3dd3b5d80a9e87cf
beat_3395ba7a572c6503
CONTAINS_BEAT
{}
scene_3dd3b5d80a9e87cf
beat_102813ff18b31afb
CONTAINS_BEAT
{}
scene_3dd3b5d80a9e87cf
beat_e1740617de0065ed
CONTAINS_BEAT
{}
scene_f7aa623ddf6e1990
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_f7aa623ddf6e1990
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_f7aa623ddf6e1990
beat_b1ea450c152bceb2
CONTAINS_BEAT
{}
scene_f7aa623ddf6e1990
beat_c7cde390853d5086
CONTAINS_BEAT
{}
scene_32c2da09dd611f1f
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_32c2da09dd611f1f
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_32c2da09dd611f1f
beat_a43f23a3f319ad2f
CONTAINS_BEAT
{}
scene_32c2da09dd611f1f
beat_346977d258afba49
CONTAINS_BEAT
{}
scene_32c2da09dd611f1f
beat_a524885ce4b90f75
CONTAINS_BEAT
{}
scene_32c2da09dd611f1f
beat_899546e4bcc263c3
CONTAINS_BEAT
{}
scene_784be40747a969cf
act_3e4be2a57d7b4d1c
PART_OF_ACT
{}
scene_784be40747a969cf
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_784be40747a969cf
beat_9ff1162aa0011031
CONTAINS_BEAT
{}
scene_3a19b4237031efab
act_67a851580d4bf261
PART_OF_ACT
{}
scene_3a19b4237031efab
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_3a19b4237031efab
beat_436240054b1e5291
CONTAINS_BEAT
{}
scene_3a19b4237031efab
beat_fdcefceecc72422c
CONTAINS_BEAT
{}
scene_3a19b4237031efab
beat_c2392a0f52b1b92f
CONTAINS_BEAT
{}
scene_f7aed155270542af
act_67a851580d4bf261
PART_OF_ACT
{}
scene_f7aed155270542af
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_f7aed155270542af
beat_332debf3131ca1dc
CONTAINS_BEAT
{}
scene_f7aed155270542af
beat_13b394984c87b834
CONTAINS_BEAT
{}
scene_dc9583a1fbd02b0a
act_67a851580d4bf261
PART_OF_ACT
{}
scene_dc9583a1fbd02b0a
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_dc9583a1fbd02b0a
beat_076599cf0a373c39
CONTAINS_BEAT
{}
scene_c3a8a94dd8cfc700
act_67a851580d4bf261
PART_OF_ACT
{}
scene_c3a8a94dd8cfc700
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_c3a8a94dd8cfc700
beat_db8fe8db5bb22033
CONTAINS_BEAT
{}
scene_c3a8a94dd8cfc700
beat_a6b51ebe1eb0464a
CONTAINS_BEAT
{}
scene_ebaae532b9d38422
act_67a851580d4bf261
PART_OF_ACT
{}
scene_ebaae532b9d38422
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_ebaae532b9d38422
beat_783244ff359ef0a6
CONTAINS_BEAT
{}
scene_ebaae532b9d38422
beat_61127b8f1fc32735
CONTAINS_BEAT
{}
scene_ebaae532b9d38422
beat_7596c6f6e23745d0
CONTAINS_BEAT
{}
scene_894a1533b13de46b
act_67a851580d4bf261
PART_OF_ACT
{}
scene_894a1533b13de46b
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_894a1533b13de46b
beat_f9c782765b0887be
CONTAINS_BEAT
{}
scene_894a1533b13de46b
beat_7a16af6844880099
CONTAINS_BEAT
{}
scene_1cae1dbb8b74c957
act_67a851580d4bf261
PART_OF_ACT
{}
scene_1cae1dbb8b74c957
ep_sea_ser_doctor_who_s09_e01
BELONGS_TO_EPISODE
{}
scene_1cae1dbb8b74c957
beat_f8a33d37ea72467a
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.s09
Type Season database
Episodes 26
Total nodes 4,104
Total edges 14,259
Schema version 1.2.0
Exported 2026-08-05

Entity Breakdown

Type Count
Act 72
Agent 159
ConflictArc 89
Episode 26
Event 796
Location 230
Object 495
Organization 56
PlotBeat 1,518
SceneBoundary 546
Theme 111
Writer 6

Graph Gravity Tiers

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

License

CC BY-SA 4.0

Downloads last month
34