Datasets:
source_node_id stringlengths 16 56 ⌀ | target_node_id stringlengths 16 56 ⌀ | relationship_type stringclasses 25
values | properties_json stringlengths 2 10.2k ⌀ |
|---|---|---|---|
ep_sea_ser_star_trek_the_next_generation_s06_e01 | act_b92447925f229640 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s06_e01 | act_005d17b44bac6529 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s06_e01 | act_00581e0bc5aaf8fd | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s06_e01 | act_dff530ddd9212c5b | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s06_e01 | act_6857ccf82967fea9 | CONTAINS_ACT | {} |
writer_jeri_taylor | ep_sea_ser_star_trek_the_next_generation_s06_e01 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-27T14:44:27.488597+00:00", "full_credit_line": "Written by Jeri Taylor", "credit_type": "Written by"} |
writer_jeri_taylor | ep_sea_ser_star_trek_the_next_generation_s06_e13 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-03-02T13:04:28.109550+00:00", "full_credit_line": "Story by Jeri Taylor", "credit_type": "Story by"} |
writer_jeri_taylor | ep_sea_ser_star_trek_the_next_generation_s06_e26 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-03-03T18:38:04.021060+00:00", "full_credit_line": "Story by Jeri Taylor", "credit_type": "Story by"} |
act_b92447925f229640 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | PART_OF_EPISODE | {} |
act_b92447925f229640 | scene_2ccef0d989aa8a63 | CONTAINS_SCENE | {} |
act_b92447925f229640 | scene_886fe04678fd02ab | CONTAINS_SCENE | {} |
act_b92447925f229640 | scene_7474478bbea8bd04 | CONTAINS_SCENE | {} |
act_b92447925f229640 | scene_aa9450cc0c6f2091 | CONTAINS_SCENE | {} |
act_b92447925f229640 | scene_1de50470cbac9cde | CONTAINS_SCENE | {} |
act_b92447925f229640 | scene_1398d7866ae057e8 | CONTAINS_SCENE | {} |
act_b92447925f229640 | scene_cf901309113ccbf4 | CONTAINS_SCENE | {} |
act_b92447925f229640 | scene_6774b7dfe8d5341b | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | PART_OF_EPISODE | {} |
act_005d17b44bac6529 | scene_6430f96b60a56e4e | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | scene_53d59b6c511e0822 | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | scene_9abe6fbbb6fe1a4d | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | scene_0215ff6757c19408 | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | scene_4ae79630471e0171 | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | scene_6604ab50a6379c3d | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | scene_907e296ad6949a52 | CONTAINS_SCENE | {} |
act_005d17b44bac6529 | scene_6250b483c80456a1 | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | ep_sea_ser_star_trek_the_next_generation_s06_e01 | PART_OF_EPISODE | {} |
act_00581e0bc5aaf8fd | scene_158d06b1d8a7ad1d | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | scene_1fdd2dad9b01a9d1 | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | scene_6ff39c123bb0bf37 | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | scene_51d3f98cc2c52e3a | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | scene_2173e184f52d036a | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | scene_a57d85555ba6a5a6 | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | scene_832c7d674685eb08 | CONTAINS_SCENE | {} |
act_00581e0bc5aaf8fd | scene_73d90c68db6fc34b | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | ep_sea_ser_star_trek_the_next_generation_s06_e01 | PART_OF_EPISODE | {} |
act_dff530ddd9212c5b | scene_81fe4fd0a6d04175 | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | scene_102efd06045e63f1 | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | scene_38365791928ac3a8 | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | scene_53f1b6326ae748fa | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | scene_c92a4de684b708c3 | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | scene_f8dfb5ad6807de21 | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | scene_7e3ac50332984ee5 | CONTAINS_SCENE | {} |
act_dff530ddd9212c5b | scene_212e506c7bdb7e23 | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | PART_OF_EPISODE | {} |
act_6857ccf82967fea9 | scene_1dd999c197f96796 | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_c5f73c2070e531ab | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_90a7a9b58d26569d | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_696d8f650a35f31f | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_eabc810da89cf71c | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_2a0e60678b9c4d3c | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_e5d99c589a7fb667 | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_95172d83f335d806 | CONTAINS_SCENE | {} |
act_6857ccf82967fea9 | scene_1b7e91a321ca5de2 | CONTAINS_SCENE | {} |
scene_2ccef0d989aa8a63 | act_b92447925f229640 | PART_OF_ACT | {} |
scene_2ccef0d989aa8a63 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_2ccef0d989aa8a63 | beat_129f349e63ee228a | CONTAINS_BEAT | {} |
scene_2ccef0d989aa8a63 | beat_90879ca83dbe5f69 | CONTAINS_BEAT | {} |
scene_2ccef0d989aa8a63 | beat_7e577fa733461e52 | CONTAINS_BEAT | {} |
scene_886fe04678fd02ab | act_b92447925f229640 | PART_OF_ACT | {} |
scene_886fe04678fd02ab | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_886fe04678fd02ab | beat_87388746fbeac0c1 | CONTAINS_BEAT | {} |
scene_886fe04678fd02ab | beat_e1d81d66ed3c4542 | CONTAINS_BEAT | {} |
scene_7474478bbea8bd04 | act_b92447925f229640 | PART_OF_ACT | {} |
scene_7474478bbea8bd04 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_7474478bbea8bd04 | beat_208ed9277718b055 | CONTAINS_BEAT | {} |
scene_7474478bbea8bd04 | beat_921844529d5a08b8 | CONTAINS_BEAT | {} |
scene_7474478bbea8bd04 | beat_3e0ff4db320bd079 | CONTAINS_BEAT | {} |
scene_7474478bbea8bd04 | beat_41952dda5ac1761d | CONTAINS_BEAT | {} |
scene_7474478bbea8bd04 | beat_f2843c850af1c784 | CONTAINS_BEAT | {} |
scene_7474478bbea8bd04 | beat_e0ea93926b2721e3 | CONTAINS_BEAT | {} |
scene_aa9450cc0c6f2091 | act_b92447925f229640 | PART_OF_ACT | {} |
scene_aa9450cc0c6f2091 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_aa9450cc0c6f2091 | beat_1f0619c248190c50 | CONTAINS_BEAT | {} |
scene_aa9450cc0c6f2091 | beat_defb10e524cbb4fa | CONTAINS_BEAT | {} |
scene_aa9450cc0c6f2091 | beat_832b7300528c76c6 | CONTAINS_BEAT | {} |
scene_aa9450cc0c6f2091 | beat_fd2267069c504efb | CONTAINS_BEAT | {} |
scene_aa9450cc0c6f2091 | beat_e692458c6778fb4b | CONTAINS_BEAT | {} |
scene_1de50470cbac9cde | act_b92447925f229640 | PART_OF_ACT | {} |
scene_1de50470cbac9cde | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_1de50470cbac9cde | beat_c91dcadca9456e0d | CONTAINS_BEAT | {} |
scene_1de50470cbac9cde | beat_7a3ebe40f224ea2e | CONTAINS_BEAT | {} |
scene_1de50470cbac9cde | beat_91d2fe2139791b37 | CONTAINS_BEAT | {} |
scene_1de50470cbac9cde | beat_09f5c1aaa3e3cada | CONTAINS_BEAT | {} |
scene_1de50470cbac9cde | beat_d4fe635cf9277691 | CONTAINS_BEAT | {} |
scene_1398d7866ae057e8 | act_b92447925f229640 | PART_OF_ACT | {} |
scene_1398d7866ae057e8 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_1398d7866ae057e8 | beat_78e352cae17753a2 | CONTAINS_BEAT | {} |
scene_1398d7866ae057e8 | beat_c8fab2ee7d0946eb | CONTAINS_BEAT | {} |
scene_1398d7866ae057e8 | beat_cc51aafd3bd56084 | CONTAINS_BEAT | {} |
scene_1398d7866ae057e8 | beat_7ac0d83771a4c1ae | CONTAINS_BEAT | {} |
scene_1398d7866ae057e8 | beat_ffbafd14e0e8a94e | CONTAINS_BEAT | {} |
scene_1398d7866ae057e8 | beat_5867049f67406e90 | CONTAINS_BEAT | {} |
scene_cf901309113ccbf4 | act_b92447925f229640 | PART_OF_ACT | {} |
scene_cf901309113ccbf4 | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_cf901309113ccbf4 | beat_f9840cfe7622138b | CONTAINS_BEAT | {} |
scene_6774b7dfe8d5341b | act_b92447925f229640 | PART_OF_ACT | {} |
scene_6774b7dfe8d5341b | ep_sea_ser_star_trek_the_next_generation_s06_e01 | BELONGS_TO_EPISODE | {} |
scene_6774b7dfe8d5341b | beat_640a862fb9e110e5 | CONTAINS_BEAT | {} |
scene_6430f96b60a56e4e | act_005d17b44bac6529 | PART_OF_ACT | {} |
Star Trek: The Next Generation - Narrative Knowledge Graph
A rich narrative knowledge graph extracted from Star Trek: The Next Generation 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 | startrektng.s06 |
| Type | Season database |
| Episodes | 26 |
| Total nodes | 7,626 |
| Total edges | 22,731 |
| Schema version | 1.1.0 |
| Exported | 2026-03-14 |
Entity Breakdown
| Type | Count |
|---|---|
| Act | 133 |
| Agent | 473 |
| ConflictArc | 99 |
| Episode | 26 |
| Event | 1,323 |
| Location | 498 |
| Object | 1,494 |
| Organization | 139 |
| PlotBeat | 2,605 |
| SceneBoundary | 824 |
| Writer | 12 |
Graph Gravity Tiers
| Tier | Count | Description |
|---|---|---|
| anchor | 23 | Main characters / key locations |
| planet | 159 | Recurring entities |
| asteroid | 2,422 | 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, FORESHADOWING, INVOLVED_IN_ARC, INVOLVED_WITH, IN_EVENT, NARRATIVELY_FOLLOWS, OCCURS_IN, PARTICIPATED_AS, PART_OF, PART_OF_ACT ... and 5 more
Related Datasets
This is a single-season dataset containing entities and events as extracted from Season 6 screenplays.
- Megagraph (all seasons unified): brandburner/startrektng-mega-narrative-kg
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 |
tier |
string (nullable) | Graph Gravity tier |
Usage
from datasets import load_dataset
import pandas as pd
# Load from HuggingFace
ds = load_dataset("brandburner/startrektng-s06-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_startrektng_s06,
title = {Star Trek: The Next Generation Narrative Knowledge Graph},
author = {Fabula Pipeline},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/datasets/brandburner/startrektng-s06-narrative-kg}}
}
License
CC BY-SA 4.0
- Downloads last month
- 16