Dataset Viewer
Auto-converted to Parquet Duplicate
source_node_id
stringlengths
16
37
target_node_id
stringlengths
16
35
relationship_type
stringclasses
27 values
properties_json
stringlengths
2
6.86k
ep_sea_ser_doctor_who_s18_e01
act_a73338bb4eebea81
CONTAINS_ACT
{}
act_a73338bb4eebea81
ep_sea_ser_doctor_who_s18_e01
PART_OF_EPISODE
{}
act_a73338bb4eebea81
scene_6f0b07770bf1983e
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_4069def111440865
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_8b1045d3186d35b9
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_b7ac6e6495cdb7d7
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_8fd857ea098a701c
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_1ba9ecb41a439147
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_984dc4585c81a40c
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_6725433134919cd8
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_ba133bbc01ed9cec
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_7fe1c575873e29ab
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_0e5cf7f121ef460e
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_9319fd5b7360652c
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_67024ba1d17dedfd
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_19ff1b1c16d424ba
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_884823102428129e
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_c4db60361d8f90c4
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_c3573ffba6109bd2
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_b409af4d0a60df75
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_be7c32ef1ef1ced8
CONTAINS_SCENE
{}
act_a73338bb4eebea81
scene_a56ec12cb9a5e97b
CONTAINS_SCENE
{}
scene_6f0b07770bf1983e
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_6f0b07770bf1983e
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_6f0b07770bf1983e
beat_0fe1c4be4ca2b8ad
CONTAINS_BEAT
{}
scene_6f0b07770bf1983e
beat_928090fa8be16480
CONTAINS_BEAT
{}
scene_4069def111440865
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_4069def111440865
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_4069def111440865
beat_203b677ed8633abe
CONTAINS_BEAT
{}
scene_4069def111440865
beat_c95f2756ecb29b18
CONTAINS_BEAT
{}
scene_4069def111440865
beat_ec774ed73917f07e
CONTAINS_BEAT
{}
scene_8b1045d3186d35b9
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_8b1045d3186d35b9
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_8b1045d3186d35b9
beat_6cfc4d106cb060b2
CONTAINS_BEAT
{}
scene_8b1045d3186d35b9
beat_d9bd30249e58ea94
CONTAINS_BEAT
{}
scene_8b1045d3186d35b9
beat_0f5a8f4b77600a25
CONTAINS_BEAT
{}
scene_8b1045d3186d35b9
beat_deff26c77fa2c62d
CONTAINS_BEAT
{}
scene_b7ac6e6495cdb7d7
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_b7ac6e6495cdb7d7
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_b7ac6e6495cdb7d7
beat_fc314f206f1619ba
CONTAINS_BEAT
{}
scene_8fd857ea098a701c
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_8fd857ea098a701c
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_8fd857ea098a701c
beat_05e14c9c60f6d081
CONTAINS_BEAT
{}
scene_8fd857ea098a701c
beat_2388b812704b301c
CONTAINS_BEAT
{}
scene_8fd857ea098a701c
beat_4ef479154b9bb488
CONTAINS_BEAT
{}
scene_8fd857ea098a701c
beat_82be7a21ad1a1773
CONTAINS_BEAT
{}
scene_1ba9ecb41a439147
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_1ba9ecb41a439147
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_1ba9ecb41a439147
beat_68387462a43f899c
CONTAINS_BEAT
{}
scene_1ba9ecb41a439147
beat_b5f30dd7beb1d816
CONTAINS_BEAT
{}
scene_1ba9ecb41a439147
beat_4ffb53e148c115fb
CONTAINS_BEAT
{}
scene_984dc4585c81a40c
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_984dc4585c81a40c
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_984dc4585c81a40c
beat_bba6bca323a9e100
CONTAINS_BEAT
{}
scene_984dc4585c81a40c
beat_b43f48a59005c932
CONTAINS_BEAT
{}
scene_984dc4585c81a40c
beat_47cfb18d859aeee9
CONTAINS_BEAT
{}
scene_984dc4585c81a40c
beat_ed9ce0e182deba9c
CONTAINS_BEAT
{}
scene_984dc4585c81a40c
beat_c37901b79581bb35
CONTAINS_BEAT
{}
scene_6725433134919cd8
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_6725433134919cd8
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_6725433134919cd8
beat_52535aa67ce00a47
CONTAINS_BEAT
{}
scene_6725433134919cd8
beat_0cfea6b838cae95e
CONTAINS_BEAT
{}
scene_6725433134919cd8
beat_bf8327b940d2f0d0
CONTAINS_BEAT
{}
scene_ba133bbc01ed9cec
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_ba133bbc01ed9cec
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_ba133bbc01ed9cec
beat_08d2fae1fc537f21
CONTAINS_BEAT
{}
scene_ba133bbc01ed9cec
beat_27d68fb311539bc3
CONTAINS_BEAT
{}
scene_ba133bbc01ed9cec
beat_cb462e209ad7a53c
CONTAINS_BEAT
{}
scene_7fe1c575873e29ab
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_7fe1c575873e29ab
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_7fe1c575873e29ab
beat_cc1db350e3ff369c
CONTAINS_BEAT
{}
scene_0e5cf7f121ef460e
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_0e5cf7f121ef460e
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_0e5cf7f121ef460e
beat_6c19663a12b27dfd
CONTAINS_BEAT
{}
scene_9319fd5b7360652c
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_9319fd5b7360652c
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_9319fd5b7360652c
beat_11f7cdbd618544dc
CONTAINS_BEAT
{}
scene_9319fd5b7360652c
beat_e6cb83b14e5cb61f
CONTAINS_BEAT
{}
scene_67024ba1d17dedfd
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_67024ba1d17dedfd
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_67024ba1d17dedfd
beat_83e78ec8f74a7283
CONTAINS_BEAT
{}
scene_67024ba1d17dedfd
beat_b4056df84503ed76
CONTAINS_BEAT
{}
scene_67024ba1d17dedfd
beat_92d153f28102a6a2
CONTAINS_BEAT
{}
scene_67024ba1d17dedfd
beat_a25f8833ca1a343d
CONTAINS_BEAT
{}
scene_19ff1b1c16d424ba
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_19ff1b1c16d424ba
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_19ff1b1c16d424ba
beat_752fa9715638f9bf
CONTAINS_BEAT
{}
scene_19ff1b1c16d424ba
beat_ec2e2eef9ef2ce04
CONTAINS_BEAT
{}
scene_19ff1b1c16d424ba
beat_888ef82120003065
CONTAINS_BEAT
{}
scene_19ff1b1c16d424ba
beat_ac79af3d1867ba00
CONTAINS_BEAT
{}
scene_884823102428129e
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_884823102428129e
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_884823102428129e
beat_605ecee9db6c7178
CONTAINS_BEAT
{}
scene_c4db60361d8f90c4
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_c4db60361d8f90c4
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_c4db60361d8f90c4
beat_549b438ea695bd1c
CONTAINS_BEAT
{}
scene_c3573ffba6109bd2
act_a73338bb4eebea81
PART_OF_ACT
{}
scene_c3573ffba6109bd2
ep_sea_ser_doctor_who_s18_e01
BELONGS_TO_EPISODE
{}
scene_c3573ffba6109bd2
beat_c4a152aaf00eb2e3
CONTAINS_BEAT
{}
scene_b409af4d0a60df75
act_a73338bb4eebea81
PART_OF_ACT
{}
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.s18
Type Season database
Episodes 28
Total nodes 3,949
Total edges 14,166
Schema version 1.2.0
Exported 2026-08-05

Entity Breakdown

Type Count
Act 66
Agent 145
ConflictArc 109
Episode 28
Event 766
Location 193
Object 482
Organization 41
PlotBeat 1,470
SceneBoundary 547
Theme 94
Writer 8

Graph Gravity Tiers

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

License

CC BY-SA 4.0

Downloads last month
42