Datasets:
source_node_id
stringlengths 18
34
| target_node_id
stringlengths 19
48
| relationship_type
stringclasses 8
values | properties_json
stringlengths 2
1.67k
|
---|---|---|---|
act_300e2d52c7dc03cb
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
act_782829932dce519a
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
act_f971dcd3b7a8c9be
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
act_60d5bc1fbacf0166
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
act_917ab9bb5b3fde70
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
act_fde8c85897574257
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
scene_b745f6b160590e73
|
act_300e2d52c7dc03cb
|
PART_OF_ACT
|
{}
|
scene_b745f6b160590e73
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_80c62ca3fecd769b
|
act_300e2d52c7dc03cb
|
PART_OF_ACT
|
{}
|
scene_80c62ca3fecd769b
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_59fb7413be07345e
|
act_300e2d52c7dc03cb
|
PART_OF_ACT
|
{}
|
scene_59fb7413be07345e
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_38530633fa8335f7
|
act_300e2d52c7dc03cb
|
PART_OF_ACT
|
{}
|
scene_38530633fa8335f7
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_149e768e992533aa
|
act_782829932dce519a
|
PART_OF_ACT
|
{}
|
scene_149e768e992533aa
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_8d2223c8a45d2eeb
|
act_782829932dce519a
|
PART_OF_ACT
|
{}
|
scene_8d2223c8a45d2eeb
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_ac721efcf7f63d6e
|
act_782829932dce519a
|
PART_OF_ACT
|
{}
|
scene_ac721efcf7f63d6e
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_e98c79c897173b71
|
act_782829932dce519a
|
PART_OF_ACT
|
{}
|
scene_e98c79c897173b71
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_7df5bf586d4f3aef
|
act_f971dcd3b7a8c9be
|
PART_OF_ACT
|
{}
|
scene_7df5bf586d4f3aef
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_b6d88ecaae9ac2d5
|
act_f971dcd3b7a8c9be
|
PART_OF_ACT
|
{}
|
scene_b6d88ecaae9ac2d5
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_b4b6eba682d5e8ff
|
act_f971dcd3b7a8c9be
|
PART_OF_ACT
|
{}
|
scene_b4b6eba682d5e8ff
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_76b05495380c7db7
|
act_f971dcd3b7a8c9be
|
PART_OF_ACT
|
{}
|
scene_76b05495380c7db7
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_0b356d90eb15dec9
|
act_60d5bc1fbacf0166
|
PART_OF_ACT
|
{}
|
scene_0b356d90eb15dec9
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_f1a32ff85ee68e40
|
act_60d5bc1fbacf0166
|
PART_OF_ACT
|
{}
|
scene_f1a32ff85ee68e40
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_f0a8582fe7f74bb0
|
act_60d5bc1fbacf0166
|
PART_OF_ACT
|
{}
|
scene_f0a8582fe7f74bb0
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_381dfab681508018
|
act_60d5bc1fbacf0166
|
PART_OF_ACT
|
{}
|
scene_381dfab681508018
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_7aad565bff376c0b
|
act_917ab9bb5b3fde70
|
PART_OF_ACT
|
{}
|
scene_7aad565bff376c0b
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_57c7d48fa92d73ad
|
act_917ab9bb5b3fde70
|
PART_OF_ACT
|
{}
|
scene_57c7d48fa92d73ad
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_b7070cd021e6ed84
|
act_917ab9bb5b3fde70
|
PART_OF_ACT
|
{}
|
scene_b7070cd021e6ed84
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_ace764b2cea81252
|
act_917ab9bb5b3fde70
|
PART_OF_ACT
|
{}
|
scene_ace764b2cea81252
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_8b6bf617f01a0c7d
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_8b6bf617f01a0c7d
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_e67825232e5c7a29
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_e67825232e5c7a29
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_fc169ea6c97e9bae
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_fc169ea6c97e9bae
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_becc572247d6918f
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_becc572247d6918f
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_829c35bac0b1490f
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_829c35bac0b1490f
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_5cac83383278d9ce
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_5cac83383278d9ce
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_e98fe730defb418a
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_e98fe730defb418a
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_8242f0a1a9e1f643
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_8242f0a1a9e1f643
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
scene_e713b7bf94baca12
|
act_fde8c85897574257
|
PART_OF_ACT
|
{}
|
scene_e713b7bf94baca12
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
BELONGS_TO_EPISODE
|
{}
|
cand_evt_scene_b745f6b160590e73_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_b745f6b160590e73_1
|
scene_b745f6b160590e73
|
OCCURS_IN
|
{}
|
cand_evt_scene_b745f6b160590e73_2
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_b745f6b160590e73_2
|
scene_b745f6b160590e73
|
OCCURS_IN
|
{}
|
cand_evt_scene_b745f6b160590e73_3
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_b745f6b160590e73_3
|
scene_b745f6b160590e73
|
OCCURS_IN
|
{}
|
cand_evt_scene_80c62ca3fecd769b_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_80c62ca3fecd769b_1
|
scene_80c62ca3fecd769b
|
OCCURS_IN
|
{}
|
cand_evt_scene_80c62ca3fecd769b_2
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_80c62ca3fecd769b_2
|
scene_80c62ca3fecd769b
|
OCCURS_IN
|
{}
|
cand_evt_scene_80c62ca3fecd769b_3
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_80c62ca3fecd769b_3
|
scene_80c62ca3fecd769b
|
OCCURS_IN
|
{}
|
cand_evt_scene_59fb7413be07345e_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_59fb7413be07345e_1
|
scene_59fb7413be07345e
|
OCCURS_IN
|
{}
|
cand_evt_scene_38530633fa8335f7_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_38530633fa8335f7_1
|
scene_38530633fa8335f7
|
OCCURS_IN
|
{}
|
cand_evt_scene_38530633fa8335f7_2
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_38530633fa8335f7_2
|
scene_38530633fa8335f7
|
OCCURS_IN
|
{}
|
cand_evt_scene_149e768e992533aa_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_149e768e992533aa_1
|
scene_149e768e992533aa
|
OCCURS_IN
|
{}
|
cand_evt_scene_149e768e992533aa_2
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_149e768e992533aa_2
|
scene_149e768e992533aa
|
OCCURS_IN
|
{}
|
cand_evt_scene_8d2223c8a45d2eeb_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_8d2223c8a45d2eeb_1
|
scene_8d2223c8a45d2eeb
|
OCCURS_IN
|
{}
|
cand_evt_scene_8d2223c8a45d2eeb_2
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_8d2223c8a45d2eeb_2
|
scene_8d2223c8a45d2eeb
|
OCCURS_IN
|
{}
|
cand_evt_scene_ac721efcf7f63d6e_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_ac721efcf7f63d6e_1
|
scene_ac721efcf7f63d6e
|
OCCURS_IN
|
{}
|
cand_evt_scene_e98c79c897173b71_1
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_e98c79c897173b71_1
|
scene_e98c79c897173b71
|
OCCURS_IN
|
{}
|
cand_evt_scene_e98c79c897173b71_2
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_e98c79c897173b71_2
|
scene_e98c79c897173b71
|
OCCURS_IN
|
{}
|
cand_evt_scene_e98c79c897173b71_3
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_e98c79c897173b71_3
|
scene_e98c79c897173b71
|
OCCURS_IN
|
{}
|
cand_evt_scene_e98c79c897173b71_4
|
ep_sea_ser_star_trek_the_next_generation_s01_e01
|
PART_OF_EPISODE
|
{}
|
cand_evt_scene_e98c79c897173b71_4
|
scene_e98c79c897173b71
|
OCCURS_IN
|
{}
|
Dataset Card for Star Trek: The Next Generation Season 1 Narrative Knowledge Graph
Dataset Description
Dataset Summary
A comprehensive narrative knowledge graph extracted from all 26 episodes of Star Trek: The Next Generation Season 1. This dataset represents characters, locations, objects, organizations, events, and their complex relationships as a labeled property graph (LPG), suitable for graph machine learning, visualization, and narrative analysis research.
Important: This dataset contains multiple configurations. Load specific parts:
from datasets import load_dataset
# Load nodes
nodes = load_dataset("brandburner/fabula-tng-season1", "nodes")
# Load edges with rich narrative properties
edges = load_dataset("brandburner/fabula-tng-season1", "edges")
# Load 3D positions
positions = load_dataset("brandburner/fabula-tng-season1", "positions")
Supported Tasks
- Graph Machine Learning: Node classification, link prediction, graph embeddings
- Narrative Analysis: Story structure analysis, character arc tracking, plot development
- Knowledge Graph Completion: Entity resolution, relationship inference
- Graph Visualization: 3D interactive narrative visualization with pre-computed positions
- Question Answering: Graph-based QA over narrative content
- Recommendation: Character and episode similarity analysis
Languages
- English (screenplay text and descriptions)
Dataset Structure
Data Instances
Example node (Captain Picard):
{
"node_id": "agent_4fa456b0c9d2",
"primary_label": "Agent",
"name": "Jean-Luc Picard",
"description": "Captain of the USS Enterprise, a thoughtful and diplomatic leader...",
"episode": 1,
"act": 1,
"scene": "3",
"properties_json": "{\"canonical_name\":\"Jean-Luc Picard\",\"character_type\":\"main\",...}"
}
Example edge (participation relationship with rich narrative properties):
{
"source_node_id": "agent_4fa456b0c9d2",
"target_node_id": "event_7b3c892f1a56",
"relationship_type": "PARTICIPATED_AS",
"properties_json": "{\"emotional_state_at_event\":\"From contemplative curiosity to controlled anger\",\"observed_status\":\"Captain Jean-Luc Picard commands the USS Enterprise with calm authority...\",\"goals_at_event\":[\"Ensure crew safety\",\"Challenge Q's ultimatum\"],\"beliefs_at_event\":[\"Humanity deserves a fair chance\"]}"
}
Data Fields
Nodes Dataset
node_id
: Unique identifier (UUID)primary_label
: Entity type (Agent/Location/Object/Organization/Event/SceneBoundary/Episode)name
: Canonical name or titledescription
: Detailed descriptionepisode
: Episode number (1-26)act
: Act number within episodescene
: Scene identifierproperties_json
: Full properties as JSON string
Edges Dataset
source_node_id
: Source entity UUIDtarget_node_id
: Target entity UUIDrelationship_type
: Type of relationshipproperties_json
: Rich relationship properties as JSON (73% of edges have properties)- PARTICIPATED_AS: emotional_state, goals, beliefs, observed_status, traits
- INVOLVED_WITH: involvement description, status before/after
- IN_EVENT: atmosphere, significance, environmental details
- OWNS: ownership type, confidence, inference reason
Positions Dataset
node_id
: Entity UUIDx
,y
,z
: 3D coordinates (computed via node2vec→UMAP)size
: Visual size based on degree centralityr
,g
,b
: RGB color values by entity typecommunity
: Community cluster ID (Louvain algorithm)
Data Splits
Single split containing the complete graph for all 26 episodes.
Dataset Creation
Curation Rationale
Created to provide researchers with a rich, structured narrative dataset that captures the complex relationships and story elements in a major science fiction series. Enables research at the intersection of NLP, knowledge graphs, and computational narratology.
Source Data
Initial Data Collection
Original screenplay texts from Star Trek: The Next Generation Season 1 (1987-1988).
Annotation Process
Automated extraction using the Fabula V2 pipeline:
- Parsing: Hybrid regex/LLM screenplay parsing
- Decomposition: Hierarchical structure extraction (Episodes→Acts→Scenes)
- Entity Synthesis: LLM-powered entity identification and description
- Relationship Extraction: Semantic relationship establishment
- Harmonization: Cross-episode entity resolution and deduplication
- Enrichment: Property and description enhancement
Personal and Sensitive Information
The dataset contains only fictional character names and narrative elements from a television series. No personal information about real individuals is included.
Considerations for Using the Data
Social Impact of Dataset
This dataset promotes research in:
- Computational narrative understanding
- Graph-based representation learning
- Digital humanities and cultural studies
- Accessible visualization of complex narratives
Discussion of Biases
The dataset reflects the narrative choices and cultural perspectives present in the original 1987-1988 television series. Researchers should be aware of potential period-specific representations.
Other Known Limitations
- Limited to Season 1 (26 episodes)
- Entity extraction may have minor inconsistencies
- Some relationships may be inferred rather than explicit
- Temporal ordering within scenes is approximate
Additional Information
Dataset Curators
Created using the Fabula V2 narrative analysis pipeline.
Licensing Information
Dataset structure and extracted knowledge graph: CC BY-NC 4.0 Original content: © Paramount Pictures Corporation
Citation Information
@dataset{fabula_tng_s1_2025,
title={Star Trek: The Next Generation Season 1 - Narrative Knowledge Graph},
author={Fabula V2 Pipeline},
year={2025},
publisher={HuggingFace},
url={https://huggingface.co/datasets/[username]/fabula-tng-season1}
}
Contributions
Thanks to the Fabula V2 development team and the open-source communities behind Neo4j, ChromaDB, and BAML.
- Downloads last month
- 127