Dataset Viewer
Auto-converted to Parquet Duplicate
source_node_id
stringlengths
16
39
target_node_id
stringlengths
16
39
relationship_type
stringclasses
27 values
properties_json
stringlengths
2
7.59k
ep_sea_ser_doctor_who_s20_e01
act_1b46dfa278fb3810
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s20_e01
act_5d670f3e8f903d42
CONTAINS_ACT
{}
ep_sea_ser_doctor_who_s20_e01
act_e9de6d9c7da31907
CONTAINS_ACT
{}
act_1b46dfa278fb3810
ep_sea_ser_doctor_who_s20_e01
PART_OF_EPISODE
{}
act_1b46dfa278fb3810
scene_7da964dd8885e2f8
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_32cbdd61472d9a9b
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_85959605316b6e71
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_1c4a6c6742eef499
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_eeade649d1cbe5d0
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_6f352c75531b7e87
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_8ec694ef2e44a9e6
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_278e26279f4a96bb
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_ee4005ad6f2901b9
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_e4761cbe5062f57f
CONTAINS_SCENE
{}
act_1b46dfa278fb3810
scene_353ad9728be8e8b7
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
ep_sea_ser_doctor_who_s20_e01
PART_OF_EPISODE
{}
act_5d670f3e8f903d42
scene_44fabc9566312d30
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_c02a3fb7a48d7889
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_2d1e3500654944b1
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_871f503054c655c4
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_8d40e67a286a402e
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_6ea3d19616c685fd
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_d4657dd1ab678ff5
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_13c8c5dc8a050111
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_87fb1f5bcb8bcb4d
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_28982f1c2aa0a5db
CONTAINS_SCENE
{}
act_5d670f3e8f903d42
scene_904cab89c24b097c
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
ep_sea_ser_doctor_who_s20_e01
PART_OF_EPISODE
{}
act_e9de6d9c7da31907
scene_28ee6cfc44b6d78f
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_224452e67b8d93aa
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_23d5ed7d8f86c7a7
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_b60c7ad202a24e1e
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_fd46e3cfb3203364
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_0212b233c8631d88
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_3a934339f39301fd
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_47ed0b0cee414d36
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_b12f992e417c7882
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_6dd6e8d42eccfcbe
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_51316bf00280dab6
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_0f058b8bdb9f06f9
CONTAINS_SCENE
{}
act_e9de6d9c7da31907
scene_4c86acd0ab881f50
CONTAINS_SCENE
{}
scene_7da964dd8885e2f8
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_7da964dd8885e2f8
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_7da964dd8885e2f8
beat_90160c62e98d31c2
CONTAINS_BEAT
{}
scene_7da964dd8885e2f8
beat_25f1b74abdcda262
CONTAINS_BEAT
{}
scene_32cbdd61472d9a9b
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_32cbdd61472d9a9b
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_32cbdd61472d9a9b
beat_e661529d9a0c4061
CONTAINS_BEAT
{}
scene_32cbdd61472d9a9b
beat_02c9ebde9b69db02
CONTAINS_BEAT
{}
scene_85959605316b6e71
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_85959605316b6e71
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_85959605316b6e71
beat_3db0a2e419e63a9d
CONTAINS_BEAT
{}
scene_85959605316b6e71
beat_b3d17442e2fd25b5
CONTAINS_BEAT
{}
scene_85959605316b6e71
beat_5d5ccb3eff01f65e
CONTAINS_BEAT
{}
scene_1c4a6c6742eef499
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_1c4a6c6742eef499
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_1c4a6c6742eef499
beat_d61c93f9dd181e43
CONTAINS_BEAT
{}
scene_1c4a6c6742eef499
beat_7659ad9614af58c6
CONTAINS_BEAT
{}
scene_eeade649d1cbe5d0
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_eeade649d1cbe5d0
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_eeade649d1cbe5d0
beat_dc547f31da83036b
CONTAINS_BEAT
{}
scene_eeade649d1cbe5d0
beat_9d87c6c0fb8fffb3
CONTAINS_BEAT
{}
scene_eeade649d1cbe5d0
beat_4fe4bc8ff9bb43d5
CONTAINS_BEAT
{}
scene_6f352c75531b7e87
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_6f352c75531b7e87
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_6f352c75531b7e87
beat_49f556585f3f3727
CONTAINS_BEAT
{}
scene_8ec694ef2e44a9e6
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_8ec694ef2e44a9e6
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_8ec694ef2e44a9e6
beat_63ad56cbd8b8bade
CONTAINS_BEAT
{}
scene_8ec694ef2e44a9e6
beat_541a34a08989ad46
CONTAINS_BEAT
{}
scene_8ec694ef2e44a9e6
beat_e569fa71e33a1ab3
CONTAINS_BEAT
{}
scene_278e26279f4a96bb
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_278e26279f4a96bb
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_278e26279f4a96bb
beat_b7e321dc2a95b8fa
CONTAINS_BEAT
{}
scene_278e26279f4a96bb
beat_7c999ce25ac98ae1
CONTAINS_BEAT
{}
scene_ee4005ad6f2901b9
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_ee4005ad6f2901b9
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_ee4005ad6f2901b9
beat_2d8924d65453be94
CONTAINS_BEAT
{}
scene_e4761cbe5062f57f
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_e4761cbe5062f57f
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_e4761cbe5062f57f
beat_824c70d5c5509b18
CONTAINS_BEAT
{}
scene_353ad9728be8e8b7
act_1b46dfa278fb3810
PART_OF_ACT
{}
scene_353ad9728be8e8b7
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_353ad9728be8e8b7
beat_8ae0afdc83cf2da3
CONTAINS_BEAT
{}
scene_353ad9728be8e8b7
beat_a0c8b49991fadcfb
CONTAINS_BEAT
{}
scene_44fabc9566312d30
act_5d670f3e8f903d42
PART_OF_ACT
{}
scene_44fabc9566312d30
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_44fabc9566312d30
beat_c049ad59a1200029
CONTAINS_BEAT
{}
scene_44fabc9566312d30
beat_621adf4d6abbb355
CONTAINS_BEAT
{}
scene_44fabc9566312d30
beat_d437f83eb55da5b4
CONTAINS_BEAT
{}
scene_44fabc9566312d30
beat_08cd4037373209fa
CONTAINS_BEAT
{}
scene_c02a3fb7a48d7889
act_5d670f3e8f903d42
PART_OF_ACT
{}
scene_c02a3fb7a48d7889
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_c02a3fb7a48d7889
beat_29f30f4de852670d
CONTAINS_BEAT
{}
scene_c02a3fb7a48d7889
beat_8ce064dfd9553a3e
CONTAINS_BEAT
{}
scene_2d1e3500654944b1
act_5d670f3e8f903d42
PART_OF_ACT
{}
scene_2d1e3500654944b1
ep_sea_ser_doctor_who_s20_e01
BELONGS_TO_EPISODE
{}
scene_2d1e3500654944b1
beat_dd95ebdc8f3c2266
CONTAINS_BEAT
{}
scene_2d1e3500654944b1
beat_5aafe14f03b3be11
CONTAINS_BEAT
{}
scene_871f503054c655c4
act_5d670f3e8f903d42
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.s20
Type Season database
Episodes 23
Total nodes 4,601
Total edges 15,075
Schema version 1.2.0
Exported 2026-08-05

Entity Breakdown

Type Count
Act 62
Agent 147
ConflictArc 105
Episode 23
Event 944
Location 199
Object 467
Organization 23
PlotBeat 1,808
SceneBoundary 739
Theme 77
Writer 7

Graph Gravity Tiers

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

License

CC BY-SA 4.0

Downloads last month
42