Skip to main content

Knowledge Graph

The knowledge graph is GospeLib's "zoom out" — shifting perspective from reading individual passages to seeing the web of connections across all scripture. The primary visualization is a constellation metaphor: scripture passages as stars, connections as lines of light.

Mental Model

"Zoom out from the page to see the sky."

Every passage in scripture is connected to others via cross-references, topical links, shared terminology, prophetic echoes, and scholarly annotations. The graph makes these invisible connections visible and navigable.

Constellation View

Three Concentric Orbits

When viewing a passage's connections, the graph renders three orbits around a center node:

OrbitDistanceContent
InnerCloseDirect cross-references (explicitly linked in footnotes)
MiddleMediumTopical connections (shared TG/BD entries)
OuterFarScholarly / inferred connections (commentary links, word studies, AI-suggested parallels)

Node Types

TypeVisualSizeColor
PassageFilled circleProportional to reference countCorpus identity color
TopicRounded squareStandardcolor.semantic.topical
PersonCircle with person silhouetteStandardcolor.doctrinal.history (brown)
PlaceDiamondStandardcolor.doctrinal.history (brown)
LexicalCircle with "H" or "G"Smallcolor.corpus.ot / color.corpus.nt

Passage nodes are sized by connection density — heavily cross-referenced passages (like Isaiah 53 or 3 Nephi 11) appear larger, creating natural visual hubs.

Edge Types

TypeVisualColor
Cross-referenceSolid linecolor.semantic.crossReference
TopicalDashed linecolor.semantic.topical
ManuscriptDotted linecolor.semantic.manuscript
ScholarlyThin solidcolor.semantic.scholarly
TempleDouble linecolor.semantic.temple
PropheticWavy linecolor.semantic.prophetic

Line opacity scales with edge strength — a passage with 12 cross-references to another passage shows a thick, bright line; a passage with one tentative scholarly connection shows a thin, faded line.

Interaction Patterns

Tap Node → Preview Card

Tapping any node in the constellation reveals a preview card floating beside the node:

ContentDetails
HeaderPassage reference or topic name
PreviewFirst 2–3 verses of text (passage) or definition summary (topic)
Connections"12 cross-references, 3 topical links"
Action"Open" → navigates to passage in reader

Double-Tap → Navigate

Double-tapping a node makes it the new center of the constellation. The graph re-renders with the tapped node at center, its connections becoming the new orbits. Animation: zoom-in-and-recenter, 350ms smoothInOut.

Pinch → Zoom Level

GestureEffect
Pinch inMore detail — smaller nodes appear, more edges visible
Pinch outLess detail — only major hubs visible, fewer edges
Two-finger rotateRotates the constellation view

Zoom level defines a detail threshold — at maximum zoom-out, only passages with 5+ connections appear; at maximum zoom-in, every connection is visible.

Graph List View

An alternative to the visual constellation for users who prefer textual interface or for accessibility:

ColumnContent
PassageReference with corpus color indicator
TypeRelationship type badge
StrengthConnection count
PreviewFirst line of connected passage

The list is sortable by passage order, connection type, or strength. All filtering options from the constellation view apply.

Whisper Cards

Context-aware suggestion cards that appear at the bottom of the reader, offering connections the user hasn't explored yet:

Five Whisper Types

TypeTriggerContent
CFMCurrent Come Follow Me lesson week"This passage is in this week's lesson – see related verses"
ParallelReader is in a passage with strong parallel"Compare with [parallel passage] — shared language and themes"
Unread ConnectionUser has read passage A but not connected passage B"You've studied Isaiah 53 — this connects to Mosiah 14"
SimilarAI-detected thematic similarity"Similar theme: [passage] discusses [concept]"
TempleTemple-related passage detected"Temple connection: [description]"

Whisper Card Visual

PropertyValue
SurfaceChrome, elevation 1, radius.md
HeightCompact — one or two lines max
PositionDocked at bottom of reader, above navigation
DismissSwipe down or tap ✕
FrequencyMaximum one card per reading session per passage
note

Whisper cards are never intrusive. They appear only when the user pauses reading (no scroll for 3+ seconds) and are limited to one per passage per session.