Datasets:
source_node_id stringlengths 16 48 ⌀ | target_node_id stringlengths 16 48 ⌀ | relationship_type stringclasses 25
values | properties_json stringlengths 2 15.5k ⌀ |
|---|---|---|---|
ep_sea_ser_star_trek_the_next_generation_s05_e01 | act_185173c1fb606c77 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s05_e01 | act_c7f170661399f87d | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s05_e01 | act_84361bd984d9756c | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s05_e01 | act_db02d528e64e3e56 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s05_e01 | act_b84fda9958a2314c | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s05_e01 | act_888f762e14ff1193 | CONTAINS_ACT | {} |
writer_ronald_d_moore | ep_sea_ser_star_trek_the_next_generation_s05_e01 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-27T12:46:49.931477+00:00", "full_credit_line": "Written by Ronald D. Moore", "credit_type": "Written by"} |
writer_ronald_d_moore | ep_sea_ser_star_trek_the_next_generation_s05_e05 | CREDITED_ON | {"credit_position": 2, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-27T18:45:36.399234+00:00", "full_credit_line": "Teleplay by Ronald D. Moore", "credit_type": "Teleplay by"} |
writer_ronald_d_moore | ep_sea_ser_star_trek_the_next_generation_s05_e16 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-28T12:49:54.162283+00:00", "full_credit_line": "Teleplay by Ronald D. Moore", "credit_type": "Teleplay by"} |
writer_ronald_d_moore | ep_sea_ser_star_trek_the_next_generation_s05_e19 | CREDITED_ON | {"credit_position": 1, "group_type": "Team", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-02-28T17:48:12.432230+00:00", "full_credit_line": "Written by Ronald D. Moore & Naren Shankar", "credit_type": "Written by"} |
writer_ronald_d_moore | ep_sea_ser_star_trek_the_next_generation_s05_e24 | CREDITED_ON | {"credit_position": 1, "group_type": "Individual", "source": "BAML", "is_wga_standard": true, "writer_group": 1, "created_at": "2026-03-01T00:46:58.728130+00:00", "full_credit_line": "Written by Ronald D. Moore", "credit_type": "Written by"} |
act_185173c1fb606c77 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | PART_OF_EPISODE | {} |
act_185173c1fb606c77 | scene_48dc73fbec8f4fc2 | CONTAINS_SCENE | {} |
act_185173c1fb606c77 | scene_ef20e32d557507b0 | CONTAINS_SCENE | {} |
act_185173c1fb606c77 | scene_2e742bcafe40e88d | CONTAINS_SCENE | {} |
act_185173c1fb606c77 | scene_5fb967fce3eb44cc | CONTAINS_SCENE | {} |
act_c7f170661399f87d | ep_sea_ser_star_trek_the_next_generation_s05_e01 | PART_OF_EPISODE | {} |
act_c7f170661399f87d | scene_987cfa18bf7d6d85 | CONTAINS_SCENE | {} |
act_c7f170661399f87d | scene_114be0671b8321a7 | CONTAINS_SCENE | {} |
act_c7f170661399f87d | scene_bab9e822c630d497 | CONTAINS_SCENE | {} |
act_c7f170661399f87d | scene_3574debf62856390 | CONTAINS_SCENE | {} |
act_84361bd984d9756c | ep_sea_ser_star_trek_the_next_generation_s05_e01 | PART_OF_EPISODE | {} |
act_84361bd984d9756c | scene_62266b333fac6827 | CONTAINS_SCENE | {} |
act_84361bd984d9756c | scene_4f42a0d98aa48ee7 | CONTAINS_SCENE | {} |
act_84361bd984d9756c | scene_b526a6ee88881fa0 | CONTAINS_SCENE | {} |
act_84361bd984d9756c | scene_64aa509a94b6f545 | CONTAINS_SCENE | {} |
act_db02d528e64e3e56 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | PART_OF_EPISODE | {} |
act_db02d528e64e3e56 | scene_276cd0f3d18baf60 | CONTAINS_SCENE | {} |
act_db02d528e64e3e56 | scene_b86095b86018113d | CONTAINS_SCENE | {} |
act_db02d528e64e3e56 | scene_dbd6afd356dfd8fc | CONTAINS_SCENE | {} |
act_db02d528e64e3e56 | scene_f4ac33c9e7c539bf | CONTAINS_SCENE | {} |
act_b84fda9958a2314c | ep_sea_ser_star_trek_the_next_generation_s05_e01 | PART_OF_EPISODE | {} |
act_b84fda9958a2314c | scene_53873294cf98a143 | CONTAINS_SCENE | {} |
act_b84fda9958a2314c | scene_26e90ffa138b77ef | CONTAINS_SCENE | {} |
act_b84fda9958a2314c | scene_5ee0c279d7f89238 | CONTAINS_SCENE | {} |
act_b84fda9958a2314c | scene_37fc9ed7b74279cb | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | PART_OF_EPISODE | {} |
act_888f762e14ff1193 | scene_f33e3620483ad048 | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_92583b98465cd393 | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_07e290289ddc9a60 | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_33ffc09e2b6c0f05 | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_730f5ceb21c18f90 | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_54ae07ebf9670977 | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_99b1c3196ba88b3b | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_da9041b37c8ecc98 | CONTAINS_SCENE | {} |
act_888f762e14ff1193 | scene_a324cf88c3a0eaeb | CONTAINS_SCENE | {} |
scene_48dc73fbec8f4fc2 | act_185173c1fb606c77 | PART_OF_ACT | {} |
scene_48dc73fbec8f4fc2 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_48dc73fbec8f4fc2 | beat_44d42db08dcba66e | CONTAINS_BEAT | {} |
scene_48dc73fbec8f4fc2 | beat_c2e152e3f1368704 | CONTAINS_BEAT | {} |
scene_48dc73fbec8f4fc2 | beat_f3386b8e3f0847e8 | CONTAINS_BEAT | {} |
scene_ef20e32d557507b0 | act_185173c1fb606c77 | PART_OF_ACT | {} |
scene_ef20e32d557507b0 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_ef20e32d557507b0 | beat_81b1892b3b233d7e | CONTAINS_BEAT | {} |
scene_ef20e32d557507b0 | beat_585b17a96972846e | CONTAINS_BEAT | {} |
scene_2e742bcafe40e88d | act_185173c1fb606c77 | PART_OF_ACT | {} |
scene_2e742bcafe40e88d | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_2e742bcafe40e88d | beat_13bbab33d3c0509e | CONTAINS_BEAT | {} |
scene_2e742bcafe40e88d | beat_0c254f7b4bda5afd | CONTAINS_BEAT | {} |
scene_2e742bcafe40e88d | beat_079970ad71a93c5c | CONTAINS_BEAT | {} |
scene_2e742bcafe40e88d | beat_6d3435399a2df5e4 | CONTAINS_BEAT | {} |
scene_5fb967fce3eb44cc | act_185173c1fb606c77 | PART_OF_ACT | {} |
scene_5fb967fce3eb44cc | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_5fb967fce3eb44cc | beat_c7634cce9b21ccb3 | CONTAINS_BEAT | {} |
scene_987cfa18bf7d6d85 | act_c7f170661399f87d | PART_OF_ACT | {} |
scene_987cfa18bf7d6d85 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_987cfa18bf7d6d85 | beat_e0ffa512b91b4f10 | CONTAINS_BEAT | {} |
scene_987cfa18bf7d6d85 | beat_2c0b86716eca8b9d | CONTAINS_BEAT | {} |
scene_987cfa18bf7d6d85 | beat_3bb9af1063b7c3b4 | CONTAINS_BEAT | {} |
scene_987cfa18bf7d6d85 | beat_41de1465fc9861ce | CONTAINS_BEAT | {} |
scene_114be0671b8321a7 | act_c7f170661399f87d | PART_OF_ACT | {} |
scene_114be0671b8321a7 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_114be0671b8321a7 | beat_25f6f4c8661bd75a | CONTAINS_BEAT | {} |
scene_bab9e822c630d497 | act_c7f170661399f87d | PART_OF_ACT | {} |
scene_bab9e822c630d497 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_bab9e822c630d497 | beat_f711d4e151bbc83c | CONTAINS_BEAT | {} |
scene_bab9e822c630d497 | beat_80c2ab87b387616c | CONTAINS_BEAT | {} |
scene_bab9e822c630d497 | beat_8c4ba29f21e8e1c7 | CONTAINS_BEAT | {} |
scene_bab9e822c630d497 | beat_03b6a65cf29f58f1 | CONTAINS_BEAT | {} |
scene_3574debf62856390 | act_c7f170661399f87d | PART_OF_ACT | {} |
scene_3574debf62856390 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_3574debf62856390 | beat_e3beff79cfd83d2a | CONTAINS_BEAT | {} |
scene_3574debf62856390 | beat_e056f5777aae2b9e | CONTAINS_BEAT | {} |
scene_3574debf62856390 | beat_193283a93e3ca9ee | CONTAINS_BEAT | {} |
scene_3574debf62856390 | beat_8cce32069dfe8228 | CONTAINS_BEAT | {} |
scene_62266b333fac6827 | act_84361bd984d9756c | PART_OF_ACT | {} |
scene_62266b333fac6827 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_62266b333fac6827 | beat_427cad6388c985a9 | CONTAINS_BEAT | {} |
scene_62266b333fac6827 | beat_1af579519e7b9791 | CONTAINS_BEAT | {} |
scene_4f42a0d98aa48ee7 | act_84361bd984d9756c | PART_OF_ACT | {} |
scene_4f42a0d98aa48ee7 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_4f42a0d98aa48ee7 | beat_a3400ae72d200e9b | CONTAINS_BEAT | {} |
scene_4f42a0d98aa48ee7 | beat_f41cb7142bfea2e7 | CONTAINS_BEAT | {} |
scene_4f42a0d98aa48ee7 | beat_c08c2b8c4adb6224 | CONTAINS_BEAT | {} |
scene_4f42a0d98aa48ee7 | beat_51dc83c4e2af01b2 | CONTAINS_BEAT | {} |
scene_4f42a0d98aa48ee7 | beat_0abf8f64041804c3 | CONTAINS_BEAT | {} |
scene_b526a6ee88881fa0 | act_84361bd984d9756c | PART_OF_ACT | {} |
scene_b526a6ee88881fa0 | ep_sea_ser_star_trek_the_next_generation_s05_e01 | BELONGS_TO_EPISODE | {} |
scene_b526a6ee88881fa0 | beat_56cd5c69a86c1a4a | CONTAINS_BEAT | {} |
scene_b526a6ee88881fa0 | beat_c61dac01c4032292 | CONTAINS_BEAT | {} |
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.s05 |
| Type | Season database |
| Episodes | 26 |
| Total nodes | 7,659 |
| Total edges | 23,798 |
| Schema version | 1.1.0 |
| Exported | 2026-03-14 |
Entity Breakdown
| Type | Count |
|---|---|
| Act | 134 |
| Agent | 457 |
| ConflictArc | 108 |
| Episode | 26 |
| Event | 1,326 |
| Location | 454 |
| Object | 1,659 |
| Organization | 117 |
| PlotBeat | 2,552 |
| SceneBoundary | 798 |
| Writer | 28 |
Graph Gravity Tiers
| Tier | Count | Description |
|---|---|---|
| anchor | 38 | Main characters / key locations |
| planet | 189 | Recurring entities |
| asteroid | 2,460 | 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 5 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-s05-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_s05,
title = {Star Trek: The Next Generation Narrative Knowledge Graph},
author = {Fabula Pipeline},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/datasets/brandburner/startrektng-s05-narrative-kg}}
}
License
CC BY-SA 4.0
- Downloads last month
- 18