Types and Constants

Core Types

SemanticSpacetime.STTypeType
STType

The Semantic Spacetime link type spectrum. Links are classified along a signed integer axis from -EXPRESS to +EXPRESS:

  • NEAR (0): proximity / similarity
  • LEADSTO (±1): causal / temporal ordering
  • CONTAINS (±2): containment / membership
  • EXPRESS (±3): expressive properties / attributes
SemanticSpacetime.NodePtrType
NodePtr

Two-part pointer identifying a node by its text-size class and position within that class.

SemanticSpacetime.NodeType
Node

A 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.ArrowEntryType
ArrowEntry

An entry in the arrow directory, mapping a named relationship to its Semantic Spacetime type and integer pointer.

SemanticSpacetime.EtcType
Etc

Classification of a node as Event, Thing, and/or Concept. These are not mutually exclusive.

SemanticSpacetime.NodeDirectoryType
NodeDirectory

In-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.ST_ZEROConstant
ST_ZERO

Offset constant equal to Int(EXPRESS) (3), used to map signed ST type values (-3..+3) to 1-based array indices (1..7).

SemanticSpacetime.ST_TOPConstant
ST_TOP

Total number of ST channels (7). Equal to ST_ZERO + Int(EXPRESS) + 1. Used to size incidence lists on nodes.

SemanticSpacetime.LT128Constant
LT128

Text size class constant for strings shorter than 128 characters (value 4).

SemanticSpacetime.n_channelFunction
n_channel(s::AbstractString) -> Int

Determine the text size class (n-gram bucket) for a string, based on the number of spaces (word count proxy) and length.