Types and Constants
Core Types
SemanticSpacetime.STType — Type
STTypeThe Semantic Spacetime link type spectrum. Links are classified along a signed integer axis from -EXPRESS to +EXPRESS:
NEAR(0): proximity / similarityLEADSTO(±1): causal / temporal orderingCONTAINS(±2): containment / membershipEXPRESS(±3): expressive properties / attributes
SemanticSpacetime.NodePtr — Type
NodePtrTwo-part pointer identifying a node by its text-size class and position within that class.
SemanticSpacetime.ClassedNodePtr — Type
Integer index within a text-size class lane.
SemanticSpacetime.ArrowPtr — Type
Integer index into the arrow directory.
SemanticSpacetime.ContextPtr — Type
Integer index into the context directory.
SemanticSpacetime.Node — Type
NodeA node in the Semantic Spacetime graph. Stores text content, chapter membership, sequence status, ETC classification, self-pointer, and incidence lists for each ST channel.
SemanticSpacetime.Link — Type
LinkA typed, weighted, contextual edge to a destination node.
SemanticSpacetime.ArrowEntry — Type
ArrowEntryAn entry in the arrow directory, mapping a named relationship to its Semantic Spacetime type and integer pointer.
SemanticSpacetime.ContextEntry — Type
ContextEntryAn entry in the context directory, mapping a context string to its integer pointer.
SemanticSpacetime.Etc — Type
EtcClassification of a node as Event, Thing, and/or Concept. These are not mutually exclusive.
SemanticSpacetime.PageMap — Type
PageMapTracks the layout position of a node within a chapter for page-view display.
SemanticSpacetime.Appointment — Type
AppointmentAn appointed "from" node points to a collection of "to" nodes by the same arrow type.
SemanticSpacetime.NodeDirectory — Type
NodeDirectoryIn-memory directory of all nodes, bucketed by text size class. Short n-grams use hash maps for fast lookup; longer strings use vectors with linear search (power-law frequency distribution means these are rare).
Constants
SemanticSpacetime.NO_NODE_PTR — Constant
NO_NODE_PTRSentinel NodePtr(0, 0) representing the absence of a node pointer.
SemanticSpacetime.ST_ZERO — Constant
ST_ZEROOffset constant equal to Int(EXPRESS) (3), used to map signed ST type values (-3..+3) to 1-based array indices (1..7).
SemanticSpacetime.ST_TOP — Constant
ST_TOPTotal number of ST channels (7). Equal to ST_ZERO + Int(EXPRESS) + 1. Used to size incidence lists on nodes.
SemanticSpacetime.CAUSAL_CONE_MAXLIMIT — Constant
CAUSAL_CONE_MAXLIMITDefault maximum number of results for causal cone search operations (100).
SemanticSpacetime.N1GRAM — Constant
N1GRAMText size class constant for single-word n-grams (value 1).
SemanticSpacetime.N2GRAM — Constant
N2GRAMText size class constant for two-word n-grams (value 2).
SemanticSpacetime.N3GRAM — Constant
N3GRAMText size class constant for three-word n-grams (value 3).
SemanticSpacetime.LT128 — Constant
LT128Text size class constant for strings shorter than 128 characters (value 4).
SemanticSpacetime.LT1024 — Constant
LT1024Text size class constant for strings shorter than 1024 characters (value 5).
SemanticSpacetime.GT1024 — Constant
GT1024Text size class constant for strings of 1024 characters or longer (value 6).
SemanticSpacetime.SCREENWIDTH — Constant
SCREENWIDTHDefault terminal screen width (120 characters) for text rendering.
SemanticSpacetime.LEFTMARGIN — Constant
LEFTMARGINLeft margin (5 characters) for terminal text rendering.
SemanticSpacetime.RIGHTMARGIN — Constant
RIGHTMARGINRight margin (5 characters) for terminal text rendering.
SemanticSpacetime.CREDENTIALS_FILE — Constant
CREDENTIALS_FILEFilename for database credentials, looked up in the user's home directory (~/.SSTorytime).
SemanticSpacetime.n_channel — Function
n_channel(s::AbstractString) -> IntDetermine the text size class (n-gram bucket) for a string, based on the number of spaces (word count proxy) and length.