Datasets:
source_node_id stringlengths 16 34 ⌀ | target_node_id stringlengths 16 48 ⌀ | relationship_type stringclasses 25
values | properties_json stringlengths 2 17.7k ⌀ |
|---|---|---|---|
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 | {} |
beat_eba6a6194976b751 | beat_6ac122a9d27d8039 | CAUSAL | {"strength": "strong", "description": "Q's abrupt appearance and assertion of authority on the bridge immediately leads to his ultimatum commanding humanity's retreat, provoking Picard's demand for Q's identity and Conn's readiness to fight.", "global_id": "ger_narrativeconnection_ba765421dbcb", "created_at": "2025-07-... |
beat_6ac122a9d27d8039 | beat_efce4c9e6ff01723 | CAUSAL | {"strength": "strong", "description": "Conn's attempt to draw his phaser in response to Q's ultimatum results in Q freezing him solid, which escalates the confrontation and demonstrates Q's power.", "global_id": "ger_narrativeconnection_ac53d70cee06", "created_at": "2025-07-29T09:40:50.161000000+00:00", "connection_uui... |
beat_efce4c9e6ff01723 | beat_0d63935db4987fdf | CHARACTER_CONTINUITY | {"strength": "strong", "description": "Picard's immediate reaction to Conn being frozen\u2014administering orders for medical aid and confronting Q\u2014reflects his steadfast leadership and moral resolve in crisis.", "global_id": "ger_narrativeconnection_c2176a2dd427", "created_at": "2025-07-29T09:40:50.178000000+00:0... |
beat_8e93586228083543 | beat_61b22c78aa9a5389 | ESCALATION | {"strength": "strong", "description": "Q's initial Elizabethan condemnation escalates through various historical guises to a more direct indictment of humanity's savagery and expansion of violence in space, heightening tension with Picard's impassioned defense.", "global_id": "ger_narrativeconnection_fdd0f9665f0c", "cr... |
beat_0401dbac57fdcfec | beat_0153904dd79366a4 | NARRATIVELY_FOLLOWS | {"strength": "medium", "description": "Picard's bold assertion of no fear toward Q's accusations sets the stage for Q's dramatic vanishing act, signaling a narrative pivot to the crew's resolve in the face of threat.", "global_id": "ger_narrativeconnection_9b55863c8372", "created_at": "2025-07-29T09:40:50.285000000+00:... |
beat_6f7fc03f6996614e | beat_399cdcdd7505e5a2 | CAUSAL | {"strength": "strong", "description": "Picard's command for maximum acceleration to outmaneuver the hostile force leads directly to the Enterprise initiating warp and accelerating toward the enemy, driving the chase sequence.", "global_id": "ger_narrativeconnection_a273c7968a5d", "created_at": "2025-07-29T09:40:50.3170... |
beat_bef6fceb3ad0f54b | beat_2ff615f38055070d | CAUSAL | {"strength": "strong", "description": "Data's signaling of battle stations precedes the ship's unprecedented saucer separation maneuver, marking a tactical escalation in response to Q's threat.", "global_id": "ger_narrativeconnection_cbc9dae3fdca", "created_at": "2025-07-29T09:40:50.318000000+00:00", "connection_uuid":... |
beat_2ff615f38055070d | beat_a2f45c8d508b475d | CHARACTER_CONTINUITY | {"strength": "medium", "description": "Picard's recording of the saucer separation moment demonstrates his leadership's procedural nature and documents a pivotal operational milestone during the crisis.", "global_id": "ger_narrativeconnection_683523b67a04", "created_at": "2025-07-29T09:40:50.319000000+00:00", "connecti... |
beat_7a0742b287c72504 | beat_ffbd55fe82247dc6 | NARRATIVELY_FOLLOWS | {"strength": "strong", "description": "The Starfleet crew's confinement in Q's surreal courtroom immediately leads to the official presentation of the charges against humanity, progressing the trial narrative.", "global_id": "ger_narrativeconnection_5a9f821461d3", "created_at": "2025-07-29T09:40:50.321000000+00:00", "c... |
beat_7a0742b287c72504 | beat_9bc8c98dc66099c5 | TEMPORAL | {"strength": "medium", "description": "The courtroom scene's conclusion transitions temporally to the Enterprise's return course to Farpoint Station, marking a narrative shift from trial to mission execution.", "global_id": "ger_narrativeconnection_72a888c80bf7", "created_at": "2025-07-29T09:40:50.399000000+00:00", "co... |
beat_b195838999cdf278 | beat_14f0ae1e6e5662e9 | EMOTIONAL_ECHO | {"strength": "strong", "description": "Tasha and Troi's freezing by Q intensifies the courtroom's brutal atmosphere, fueling Picard's refusal to be silenced and his challenge to Q's authority, reflecting character resilience under threat.", "global_id": "ger_narrativeconnection_fc49467e3ba8", "created_at": "2025-07-29T... |
beat_f2bb766153e68b2c | beat_79c9317f26d8cfc8 | CAUSAL | {"strength": "strong", "description": "Picard's refusal to plead and call for fairness forces Q to unfreeze Troi and Tasha, showing Picard's tactical maneuvering affects Q's actions even in an arbitrary court.", "global_id": "ger_narrativeconnection_1e2a7845011a", "created_at": "2025-07-29T09:40:50.350000000+00:00", "c... |
beat_c4840713231ee63e | beat_2107a75fbb63c57b | CAUSAL | {"strength": "strong", "description": "Picard's proposal for a genuine test of humanity's worth directly prompts Q to designate Farpoint Station as the proving ground, escalating the trial into an active mission.", "global_id": "ger_narrativeconnection_fc544aa9d49f", "created_at": "2025-07-29T09:40:50.351000000+00:00",... |
beat_2107a75fbb63c57b | beat_1d38593c70bffd4c | NARRATIVELY_FOLLOWS | {"strength": "medium", "description": "Q's declaration of Farpoint as the test site is immediately followed by the court's adjournment, transitioning the narrative from trial to impending confrontation.", "global_id": "ger_narrativeconnection_330921f6d4cc", "created_at": "2025-07-29T09:40:50.352000000+00:00", "connecti... |
beat_18bed8a53f105c73 | beat_91b7219094bbd304 | CAUSAL | {"strength": "strong", "description": "Riker's arrival at Farpoint Station leads directly to his initial cautious engagement with Zorn, establishing foundational character and setting dynamics critical to the unfolding mystery.", "global_id": "ger_narrativeconnection_0978ad9e194f", "created_at": "2025-07-29T09:40:50.35... |
beat_91b7219094bbd304 | beat_f8330328ac48551f | THEMATIC_PARALLEL | {"strength": "strong", "description": "Zorn's polite yet evasive engagement with Riker parallels his later private angry warnings, reflecting the theme of surface civility masking deeper secrets and tensions at Farpoint Station.", "global_id": "ger_narrativeconnection_2901170f3a67", "created_at": "2025-07-29T09:40:50.3... |
beat_f8330328ac48551f | beat_7ddb0cf4e79118e9 | CHARACTER_CONTINUITY | {"strength": "strong", "description": "Zorn's private expression of paranoia and secretive warnings reflects and deepens the mystery established during his polite official exchanges with Riker, indicating hidden tensions at Farpoint.", "global_id": "ger_narrativeconnection_e66b08192930", "created_at": "2025-07-29T09:40... |
beat_49f8e7746652e3ef | beat_08f6521a6b1c61bc | CHARACTER_CONTINUITY | {"strength": "medium", "description": "Riker's social encounter with Beverly and Wesley initiates, and Wesley's candidness disarms tension, setting the tone for their evolving interpersonal relationships aboard the Enterprise.", "global_id": "ger_narrativeconnection_cfb56c29e8a0", "created_at": "2025-07-29T09:40:50.354... |
beat_7473c138624d9513 | beat_161c14bba325d994 | THEMATIC_PARALLEL | {"strength": "medium", "description": "The Bandi merchant's uncanny ability to fulfill Beverly's desires parallels the earlier mysterious and seemingly perfect construction of Farpoint Station, underscoring themes of enigmatic perfection and possible manipulation.", "global_id": "ger_narrativeconnection_1dc2eda43ce4", ... |
beat_b6585d06b79cd750 | beat_8afca12865e2b974 | CHARACTER_CONTINUITY | {"strength": "strong", "description": "Riker's formal arrival on the bridge and Picard's guarded acceptance initiate a dynamic of leadership testing and mutual evaluation, crucial for their developing partnership and command cohesion.", "global_id": "ger_narrativeconnection_9152a703339b", "created_at": "2025-07-29T09:4... |
beat_60cb00615c4a3150 | beat_826d9173afea12f8 | CAUSAL | {"strength": "strong", "description": "Picard's briefing about the lethal seriousness of Q's trial leads directly to challenging Riker to immediately prove his readiness by manually docking the saucer module, emphasizing the trial's operational stakes.", "global_id": "ger_narrativeconnection_f0818eafb367", "created_at"... |
beat_269746d7790273ed | beat_39e6c87085ed4ff7 | NARRATIVELY_FOLLOWS | {"strength": "medium", "description": "Riker's manual control of the docking maneuver culminates in the final lock-up, demonstrating his competence and reinforcing command trust established in earlier beats.", "global_id": "ger_narrativeconnection_ef5999256eb9", "created_at": "2025-07-29T09:40:50.386000000+00:00", "con... |
beat_a19a4184df94f432 | beat_682915f7d37d7cc5 | CHARACTER_CONTINUITY | {"strength": "strong", "description": "The initial tense exchange between Picard and Riker, probing Riker's past decisions and loyalty, culminates in Riker's firm declaration of loyalty and autonomy, solidifying their complex leadership dynamic.", "global_id": "ger_narrativeconnection_d29abee18efa", "created_at": "2025... |
beat_0ad1339462f0f5b9 | beat_9d7b08a15897dc86 | THEMATIC_PARALLEL | {"strength": "medium", "description": "Picard's discomfort with children aboard the Enterprise echoes Wesley's candid presence and interactions with Riker and Beverly, highlighting themes of familial integration and leadership challenges aboard the ship.", "global_id": "ger_narrativeconnection_3f4bad089263", "created_a... |
beat_077982ebca372d54 | beat_b0c12bfb493d2fc3 | CHARACTER_CONTINUITY | {"strength": "strong", "description": "Picard's confrontation with Beverly about their shared painful history is met with her firm professionalism and refusal to let personal tragedy affect her duties, underscoring their complex emotional relationship.", "global_id": "ger_narrativeconnection_766c0f12f9b6", "created_at"... |
beat_62fde4d83ed73e2e | beat_719b4e12b22295eb | CAUSAL | {"strength": "strong", "description": "Q's sudden reappearance and ultimatum on the main viewer provoke Worf's defensive reaction and Picard's insistence on procedure, reinforcing command discipline amid omnipotent threat.", "global_id": "ger_narrativeconnection_936212010eb1", "created_at": "2025-07-29T09:40:50.3880000... |
beat_719b4e12b22295eb | beat_1cbad22cb522f09c | CHARACTER_CONTINUITY | {"strength": "medium", "description": "Picard's critique of Worf's defensive action and encouragement for improvement exemplify his leadership style, fostering trust and mentorship that Riker recognizes and respects.", "global_id": "ger_narrativeconnection_2363481f36bc", "created_at": "2025-07-29T09:40:50.389000000+00:... |
beat_719b4e12b22295eb | beat_719b4e12b22295eb | CHARACTER_CONTINUITY | {"strength": "strong", "description": "Picard's firm resolve to adhere to Standard Operating Procedures despite Q's threats asserts his leadership philosophy, impressing Riker and setting the mission's resolute tone.", "global_id": "ger_narrativeconnection_7378ed86d74b", "created_at": "2025-07-29T09:40:50.390000000+00:... |
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_1 | arc_cf473813a289 | PART_OF_ARC | {"role": "START"} |
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 | {} |
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.s01 |
| Type | Season database |
| Episodes | 26 |
| Total nodes | 7,729 |
| Total edges | 18,999 |
| Schema version | 1.1.0 |
| Exported | 2026-03-14 |
Entity Breakdown
| Type | Count |
|---|---|
| Act | 144 |
| Agent | 271 |
| ConflictArc | 135 |
| Episode | 26 |
| Event | 1,544 |
| Location | 285 |
| Object | 717 |
| Organization | 132 |
| PlotBeat | 3,698 |
| SceneBoundary | 744 |
| Theme | 5 |
| Writer | 28 |
Graph Gravity Tiers
| Tier | Count | Description |
|---|---|---|
| anchor | 70 | Main characters / key locations |
| planet | 855 | Recurring entities |
| asteroid | 480 | Minor / one-off entities |
Relationship Types
AFFILIATED_WITH, BELONGS_TO_EPISODE, CALLBACK, CAUSAL, CHARACTER_CONTINUITY, CREDITED_ON, EMOTIONAL_ECHO, ESCALATION, EXEMPLIFIES_THEME, FORESHADOWING, INVOLVED_IN_ARC, INVOLVED_WITH, IN_EVENT, NARRATIVELY_FOLLOWS, OCCURS_IN, OWNS, PARTICIPATED_AS, PART_OF, PART_OF_ACT, PART_OF_ARC ... and 5 more
Related Datasets
This is a single-season dataset containing entities and events as extracted from Season 1 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-s01-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_s01,
title = {Star Trek The Next Generation Narrative Knowledge Graph},
author = {Fabula Pipeline},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/datasets/brandburner/startrektng-s01-narrative-kg}}
}
License
CC BY-SA 4.0
- Downloads last month
- 18