Datasets:
source_node_id stringlengths 16 48 ⌀ | target_node_id stringlengths 16 48 ⌀ | relationship_type stringclasses 26
values | properties_json stringlengths 2 12.1k ⌀ |
|---|---|---|---|
ep_sea_ser_star_trek_the_next_generation_s07_e01 | act_20003ac46caccf76 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s07_e01 | act_db394559d6648184 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s07_e01 | act_ee0fc9041539d5a8 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s07_e01 | act_76c9ef5d6f4c8335 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s07_e01 | act_b22bafaf20de6aa1 | CONTAINS_ACT | {} |
ep_sea_ser_star_trek_the_next_generation_s07_e01 | act_6bc732b3b72f16b4 | CONTAINS_ACT | {} |
act_20003ac46caccf76 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | PART_OF_EPISODE | {} |
act_20003ac46caccf76 | scene_eb80451dccdfbfba | CONTAINS_SCENE | {} |
act_20003ac46caccf76 | scene_48e979d6ddb15ba0 | CONTAINS_SCENE | {} |
act_20003ac46caccf76 | scene_0024d34ebd98018d | CONTAINS_SCENE | {} |
act_20003ac46caccf76 | scene_59e1b5165df92483 | CONTAINS_SCENE | {} |
act_20003ac46caccf76 | scene_32c74e1bb0da4976 | CONTAINS_SCENE | {} |
act_db394559d6648184 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | PART_OF_EPISODE | {} |
act_db394559d6648184 | scene_44c5e78cc92541e3 | CONTAINS_SCENE | {} |
act_db394559d6648184 | scene_8d6fb82d5e11e3b8 | CONTAINS_SCENE | {} |
act_db394559d6648184 | scene_33a8f29bde82376d | CONTAINS_SCENE | {} |
act_db394559d6648184 | scene_77174897f9c6948c | CONTAINS_SCENE | {} |
act_db394559d6648184 | scene_1fcb9bfc98c4b491 | CONTAINS_SCENE | {} |
act_ee0fc9041539d5a8 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | PART_OF_EPISODE | {} |
act_ee0fc9041539d5a8 | scene_4cf7ab1ce979d9ea | CONTAINS_SCENE | {} |
act_ee0fc9041539d5a8 | scene_7fe2ffabb35781de | CONTAINS_SCENE | {} |
act_ee0fc9041539d5a8 | scene_5100a48f016133d6 | CONTAINS_SCENE | {} |
act_ee0fc9041539d5a8 | scene_84312e86f6eabea0 | CONTAINS_SCENE | {} |
act_ee0fc9041539d5a8 | scene_46c7d9d6b753eac8 | CONTAINS_SCENE | {} |
act_76c9ef5d6f4c8335 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | PART_OF_EPISODE | {} |
act_76c9ef5d6f4c8335 | scene_1e522a8f462c4a3a | CONTAINS_SCENE | {} |
act_76c9ef5d6f4c8335 | scene_93d21a5b9379051b | CONTAINS_SCENE | {} |
act_76c9ef5d6f4c8335 | scene_854ce0cdd4c7e644 | CONTAINS_SCENE | {} |
act_76c9ef5d6f4c8335 | scene_d12fbdce2e1efbe7 | CONTAINS_SCENE | {} |
act_76c9ef5d6f4c8335 | scene_d183d96583e2cde7 | CONTAINS_SCENE | {} |
act_b22bafaf20de6aa1 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | PART_OF_EPISODE | {} |
act_b22bafaf20de6aa1 | scene_cb6c4ff416348bfc | CONTAINS_SCENE | {} |
act_b22bafaf20de6aa1 | scene_09da1f9ce13fd411 | CONTAINS_SCENE | {} |
act_b22bafaf20de6aa1 | scene_dca13aab5d7bd448 | CONTAINS_SCENE | {} |
act_b22bafaf20de6aa1 | scene_4ca162e81caa05cf | CONTAINS_SCENE | {} |
act_b22bafaf20de6aa1 | scene_99c1d02c6955db77 | CONTAINS_SCENE | {} |
act_6bc732b3b72f16b4 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | PART_OF_EPISODE | {} |
act_6bc732b3b72f16b4 | scene_1d68fc0f37f5cb31 | CONTAINS_SCENE | {} |
act_6bc732b3b72f16b4 | scene_ca7c0c2787fd7d6e | CONTAINS_SCENE | {} |
act_6bc732b3b72f16b4 | scene_6fcac94f7fc357d4 | CONTAINS_SCENE | {} |
act_6bc732b3b72f16b4 | scene_3d9a40822cfaf9e4 | CONTAINS_SCENE | {} |
act_6bc732b3b72f16b4 | scene_c204bba571be62aa | CONTAINS_SCENE | {} |
scene_eb80451dccdfbfba | act_20003ac46caccf76 | PART_OF_ACT | {} |
scene_eb80451dccdfbfba | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_eb80451dccdfbfba | beat_6b9756df030a1701 | CONTAINS_BEAT | {} |
scene_eb80451dccdfbfba | beat_4d0a85a0e26ffb76 | CONTAINS_BEAT | {} |
scene_eb80451dccdfbfba | beat_48dcc7d9c4a53619 | CONTAINS_BEAT | {} |
scene_eb80451dccdfbfba | beat_2d28f59d1daf5ccd | CONTAINS_BEAT | {} |
scene_eb80451dccdfbfba | beat_3946613f5fc3bc73 | CONTAINS_BEAT | {} |
scene_48e979d6ddb15ba0 | act_20003ac46caccf76 | PART_OF_ACT | {} |
scene_48e979d6ddb15ba0 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_48e979d6ddb15ba0 | beat_3c52742c53e58d02 | CONTAINS_BEAT | {} |
scene_48e979d6ddb15ba0 | beat_ccd44269ab2f4a04 | CONTAINS_BEAT | {} |
scene_48e979d6ddb15ba0 | beat_0a4858c8c9b2c840 | CONTAINS_BEAT | {} |
scene_48e979d6ddb15ba0 | beat_c85c34d751e747c6 | CONTAINS_BEAT | {} |
scene_48e979d6ddb15ba0 | beat_6c633d0b7f79f57a | CONTAINS_BEAT | {} |
scene_0024d34ebd98018d | act_20003ac46caccf76 | PART_OF_ACT | {} |
scene_0024d34ebd98018d | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_0024d34ebd98018d | beat_9d587170c0f0fde3 | CONTAINS_BEAT | {} |
scene_0024d34ebd98018d | beat_e6ac5a862c4d6027 | CONTAINS_BEAT | {} |
scene_0024d34ebd98018d | beat_9834cdf0d1f76821 | CONTAINS_BEAT | {} |
scene_0024d34ebd98018d | beat_6b97a638c5b7d625 | CONTAINS_BEAT | {} |
scene_59e1b5165df92483 | act_20003ac46caccf76 | PART_OF_ACT | {} |
scene_59e1b5165df92483 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_59e1b5165df92483 | beat_09ced9ac3b85e62e | CONTAINS_BEAT | {} |
scene_59e1b5165df92483 | beat_13d783438723ade7 | CONTAINS_BEAT | {} |
scene_59e1b5165df92483 | beat_bb783ff200969a0f | CONTAINS_BEAT | {} |
scene_59e1b5165df92483 | beat_41a2861bfd010890 | CONTAINS_BEAT | {} |
scene_59e1b5165df92483 | beat_dd6e361779146f4c | CONTAINS_BEAT | {} |
scene_32c74e1bb0da4976 | act_20003ac46caccf76 | PART_OF_ACT | {} |
scene_32c74e1bb0da4976 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_32c74e1bb0da4976 | beat_159654172f8d4623 | CONTAINS_BEAT | {} |
scene_32c74e1bb0da4976 | beat_305cd0f1e27302a8 | CONTAINS_BEAT | {} |
scene_44c5e78cc92541e3 | act_db394559d6648184 | PART_OF_ACT | {} |
scene_44c5e78cc92541e3 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_44c5e78cc92541e3 | beat_7e1799c6ee43b893 | CONTAINS_BEAT | {} |
scene_44c5e78cc92541e3 | beat_cb490394efc4225c | CONTAINS_BEAT | {} |
scene_44c5e78cc92541e3 | beat_5c8b59d470ba6cf1 | CONTAINS_BEAT | {} |
scene_44c5e78cc92541e3 | beat_64423a2250f97459 | CONTAINS_BEAT | {} |
scene_8d6fb82d5e11e3b8 | act_db394559d6648184 | PART_OF_ACT | {} |
scene_8d6fb82d5e11e3b8 | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_8d6fb82d5e11e3b8 | beat_6694a296165e4204 | CONTAINS_BEAT | {} |
scene_8d6fb82d5e11e3b8 | beat_2fce96a5eda6eab7 | CONTAINS_BEAT | {} |
scene_8d6fb82d5e11e3b8 | beat_40d5d284bf9e59b9 | CONTAINS_BEAT | {} |
scene_8d6fb82d5e11e3b8 | beat_c6f14bb8372da8e4 | CONTAINS_BEAT | {} |
scene_33a8f29bde82376d | act_db394559d6648184 | PART_OF_ACT | {} |
scene_33a8f29bde82376d | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_33a8f29bde82376d | beat_c4d65344853b1fe2 | CONTAINS_BEAT | {} |
scene_33a8f29bde82376d | beat_3b9016bd196e8e0b | CONTAINS_BEAT | {} |
scene_33a8f29bde82376d | beat_d6cd8267bde1134f | CONTAINS_BEAT | {} |
scene_33a8f29bde82376d | beat_7d9a4725e494e6e3 | CONTAINS_BEAT | {} |
scene_33a8f29bde82376d | beat_1e199a27b22a4703 | CONTAINS_BEAT | {} |
scene_77174897f9c6948c | act_db394559d6648184 | PART_OF_ACT | {} |
scene_77174897f9c6948c | ep_sea_ser_star_trek_the_next_generation_s07_e01 | BELONGS_TO_EPISODE | {} |
scene_77174897f9c6948c | beat_f5cc22463e406ad3 | CONTAINS_BEAT | {} |
scene_77174897f9c6948c | beat_2454acd4d08b3256 | CONTAINS_BEAT | {} |
scene_77174897f9c6948c | beat_58e73575dec7a1e9 | CONTAINS_BEAT | {} |
scene_77174897f9c6948c | beat_e9f358b796e0e6a9 | CONTAINS_BEAT | {} |
scene_77174897f9c6948c | beat_322d59a8ba0dab46 | CONTAINS_BEAT | {} |
scene_1fcb9bfc98c4b491 | act_db394559d6648184 | 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.s07 |
| Type | Season database |
| Episodes | 25 |
| Total nodes | 7,356 |
| Total edges | 22,992 |
| Schema version | 1.1.0 |
| Exported | 2026-03-14 |
Entity Breakdown
| Type | Count |
|---|---|
| Act | 135 |
| Agent | 392 |
| ConflictArc | 99 |
| Episode | 25 |
| Event | 1,295 |
| Location | 492 |
| Object | 1,489 |
| Organization | 115 |
| PlotBeat | 2,526 |
| SceneBoundary | 770 |
| Writer | 18 |
Graph Gravity Tiers
| Tier | Count | Description |
|---|---|---|
| anchor | 31 | Main characters / key locations |
| planet | 136 | Recurring entities |
| asteroid | 2,321 | 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 6 more
Related Datasets
This is a single-season dataset containing entities and events as extracted from Season 7 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-s07-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_s07,
title = {Star Trek: The Next Generation Narrative Knowledge Graph},
author = {Fabula Pipeline},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/datasets/brandburner/startrektng-s07-narrative-kg}}
}
License
CC BY-SA 4.0
- Downloads last month
- 23