Dataset Viewer
Auto-converted to Parquet Duplicate
source_node_id
stringlengths
16
41
target_node_id
stringlengths
16
36
relationship_type
stringclasses
27 values
properties_json
stringlengths
2
22.4k
ep_sea_ser_doctor_who_s14_e01
act_b3bcdbe645d0a40f
CONTAINS_ACT
{}
act_b3bcdbe645d0a40f
ep_sea_ser_doctor_who_s14_e01
PART_OF_EPISODE
{}
act_b3bcdbe645d0a40f
scene_67fd26e112a1b8af
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_7b15c8c8ba3616af
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_c58a29b1540c9390
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_70b30aa39b1edcd2
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_2cb591d512b931ee
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_6e5641e410b7d7b7
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_403ad17a0ab68272
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_3deee803b6aef140
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_f0166bbfe8c9d1e7
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_fd1a38ed296f5c1a
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_2fb12f477256cbcc
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_63fc5a389abac68b
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_38a651eb8c32caf9
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_93c8bfbd3af07091
CONTAINS_SCENE
{}
act_b3bcdbe645d0a40f
scene_c9f05e6bd36e6843
CONTAINS_SCENE
{}
scene_67fd26e112a1b8af
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_67fd26e112a1b8af
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_67fd26e112a1b8af
beat_467d35aa37c74465
CONTAINS_BEAT
{}
scene_67fd26e112a1b8af
beat_9fa90cfde381f869
CONTAINS_BEAT
{}
scene_67fd26e112a1b8af
beat_6c7ba57719b3a69c
CONTAINS_BEAT
{}
scene_7b15c8c8ba3616af
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_7b15c8c8ba3616af
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_7b15c8c8ba3616af
beat_985ed14c52443a10
CONTAINS_BEAT
{}
scene_7b15c8c8ba3616af
beat_a0003b9114ab2dfc
CONTAINS_BEAT
{}
scene_7b15c8c8ba3616af
beat_4cc478bba9330939
CONTAINS_BEAT
{}
scene_7b15c8c8ba3616af
beat_59098a8be9b248d4
CONTAINS_BEAT
{}
scene_7b15c8c8ba3616af
beat_0d56c5e679a7fdea
CONTAINS_BEAT
{}
scene_c58a29b1540c9390
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_c58a29b1540c9390
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_c58a29b1540c9390
beat_3f4254b49d3a15fc
CONTAINS_BEAT
{}
scene_c58a29b1540c9390
beat_1a6c790c24ea32f4
CONTAINS_BEAT
{}
scene_c58a29b1540c9390
beat_46509ced05f26f93
CONTAINS_BEAT
{}
scene_c58a29b1540c9390
beat_e27b5ca617a64c26
CONTAINS_BEAT
{}
scene_c58a29b1540c9390
beat_84de8a013157c939
CONTAINS_BEAT
{}
scene_c58a29b1540c9390
beat_766a899437ef1d66
CONTAINS_BEAT
{}
scene_70b30aa39b1edcd2
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_70b30aa39b1edcd2
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_70b30aa39b1edcd2
beat_5d7b3098e53f5784
CONTAINS_BEAT
{}
scene_70b30aa39b1edcd2
beat_d664103e3c13f21f
CONTAINS_BEAT
{}
scene_2cb591d512b931ee
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_2cb591d512b931ee
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_2cb591d512b931ee
beat_a0b3de8bb63f759e
CONTAINS_BEAT
{}
scene_6e5641e410b7d7b7
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_6e5641e410b7d7b7
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_6e5641e410b7d7b7
beat_4bb1aefadbdd800e
CONTAINS_BEAT
{}
scene_6e5641e410b7d7b7
beat_0b087acd3d0303a8
CONTAINS_BEAT
{}
scene_6e5641e410b7d7b7
beat_197725bc11036b1e
CONTAINS_BEAT
{}
scene_6e5641e410b7d7b7
beat_a9ba313d79132d52
CONTAINS_BEAT
{}
scene_403ad17a0ab68272
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_403ad17a0ab68272
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_403ad17a0ab68272
beat_420944eb3ed3ba90
CONTAINS_BEAT
{}
scene_403ad17a0ab68272
beat_5bc53c5805fa59d0
CONTAINS_BEAT
{}
scene_403ad17a0ab68272
beat_6c9cc846cfb149e4
CONTAINS_BEAT
{}
scene_403ad17a0ab68272
beat_89dd918074d2b9d2
CONTAINS_BEAT
{}
scene_3deee803b6aef140
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_3deee803b6aef140
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_3deee803b6aef140
beat_a7a3d55a7486d152
CONTAINS_BEAT
{}
scene_3deee803b6aef140
beat_66338fe786e0a61e
CONTAINS_BEAT
{}
scene_3deee803b6aef140
beat_5d05f6646341331a
CONTAINS_BEAT
{}
scene_f0166bbfe8c9d1e7
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_f0166bbfe8c9d1e7
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_f0166bbfe8c9d1e7
beat_f2e81526920093ab
CONTAINS_BEAT
{}
scene_f0166bbfe8c9d1e7
beat_c051a560e4417665
CONTAINS_BEAT
{}
scene_f0166bbfe8c9d1e7
beat_d483d3b1175e8826
CONTAINS_BEAT
{}
scene_f0166bbfe8c9d1e7
beat_6037f14890753edc
CONTAINS_BEAT
{}
scene_f0166bbfe8c9d1e7
beat_047b613400853244
CONTAINS_BEAT
{}
scene_fd1a38ed296f5c1a
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_fd1a38ed296f5c1a
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_fd1a38ed296f5c1a
beat_bf7e32a62bc947ac
CONTAINS_BEAT
{}
scene_fd1a38ed296f5c1a
beat_b19b7442069e3cbd
CONTAINS_BEAT
{}
scene_fd1a38ed296f5c1a
beat_ef6d97b6190709ae
CONTAINS_BEAT
{}
scene_fd1a38ed296f5c1a
beat_71fd00ee061f1535
CONTAINS_BEAT
{}
scene_2fb12f477256cbcc
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_2fb12f477256cbcc
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_2fb12f477256cbcc
beat_680efba076a517f5
CONTAINS_BEAT
{}
scene_2fb12f477256cbcc
beat_21916903c63df104
CONTAINS_BEAT
{}
scene_2fb12f477256cbcc
beat_b28cebf8ed929d21
CONTAINS_BEAT
{}
scene_2fb12f477256cbcc
beat_bff6a04c19d41924
CONTAINS_BEAT
{}
scene_63fc5a389abac68b
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_63fc5a389abac68b
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_63fc5a389abac68b
beat_8bc046508a8fb6fc
CONTAINS_BEAT
{}
scene_63fc5a389abac68b
beat_1469348bb1bd970e
CONTAINS_BEAT
{}
scene_63fc5a389abac68b
beat_99e8b9c90be11d60
CONTAINS_BEAT
{}
scene_63fc5a389abac68b
beat_2b40505e67d6afd3
CONTAINS_BEAT
{}
scene_38a651eb8c32caf9
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_38a651eb8c32caf9
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_38a651eb8c32caf9
beat_c415a49e7ecee4eb
CONTAINS_BEAT
{}
scene_93c8bfbd3af07091
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_93c8bfbd3af07091
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_93c8bfbd3af07091
beat_3881f86149d4a8b0
CONTAINS_BEAT
{}
scene_93c8bfbd3af07091
beat_8eb16567a98b1b7f
CONTAINS_BEAT
{}
scene_93c8bfbd3af07091
beat_976ae1068a9b0452
CONTAINS_BEAT
{}
scene_c9f05e6bd36e6843
act_b3bcdbe645d0a40f
PART_OF_ACT
{}
scene_c9f05e6bd36e6843
ep_sea_ser_doctor_who_s14_e01
BELONGS_TO_EPISODE
{}
scene_c9f05e6bd36e6843
beat_eee993cb5e3b0714
CONTAINS_BEAT
{}
scene_c9f05e6bd36e6843
beat_380f6262ce9de600
CONTAINS_BEAT
{}
beat_467d35aa37c74465
beat_bf7e32a62bc947ac
SYMBOLIC_PARALLEL
{"strength": "medium", "description": "The Doctor and Sarah\u2019s witty banter about the TARDIS's impossible dimensions\u2014playfully confronting the unknown\u2014contrasts sharply with the Doctor\u2019s later frantic efforts to understand and warn about the Mandragora Helix. Both involve engaging with forces beyond ...
beat_6c7ba57719b3a69c
beat_1469348bb1bd970e
EMOTIONAL_ECHO
{"strength": "medium", "description": "The Doctor\u2019s earlier witty banter about taste and wit (showing curiosity and brilliance) finds a dark echo in his desperate attempt to warn Federico about an existential cosmic threat\u2014only to be mocked. The contrast between intellectual play and desperate warning highlig...
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.s14
Type Season database
Episodes 26
Total nodes 3,947
Total edges 12,905
Schema version 1.2.0
Exported 2026-08-05

Entity Breakdown

Type Count
Act 72
Agent 187
ConflictArc 97
Episode 26
Event 710
Location 224
Object 668
Organization 28
PlotBeat 1,337
SceneBoundary 475
Theme 118
Writer 5

Graph Gravity Tiers

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

License

CC BY-SA 4.0

Downloads last month
43