Database Entities
Authors:
MArk Anthony Higgins - Sky Recursive Ai
MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: July 6th 2026
Revised Date: July 6th 2026
AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
SEMANTIC LIBRARY — DATABASE ENTITIES
FLOW ALGEBRA v1.0 | CATEGORY-LEVEL ONTOLOGY MAPPING
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/database-entities.html
Source index revised: 6 July 2026; constituent entries show 3 August 2026.
Status: Constructed category-level mapping, not a transcription of individual ontology specifications.
1. PURPOSE
Represent database structures, operations, integrity constraints and transitions as a bounded, recursive entity-and-relationship flow. Model relational database semantics explicitly; other database models require adapted constraints.
2. HST STATE
S_t = (I_t, R_t, B_t, K_t)
I_t: known database schema, records, query request, transaction state and observations.
R_t: relation graph, typing rules, query semantics, dependency edges and inference rules.
B_t: authorisation, integrity, isolation, resource and scope boundaries.
K_t: validated schema facts, provenance, indexes, statistics and execution knowledge.
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_t)
The argmax is a selection heuristic, not a guarantee of logical correctness; mandatory integrity constraints are checked independently.
3. ENTITY GRAPH — 14 INDEXED ONTOLOGIES
E01 DATABASE: logical collection of schemas, relations and transactional metadata.
E02 DATABASE_TABLE: named relation with columns and constraints.
E03 DATABASE_RECORD: persisted logical record identified by its schema and keys.
E04 DATABASE_COLUMN: named typed attribute with nullability and domain constraints.
E05 ROW_ENTITY: tuple instance in a table at a defined snapshot.
E06 PRIMARY_KEY: uniqueness and non-null identity constraint on one or more columns.
E07 FOREIGN_KEY: referential constraint between child and parent key values.
E08 INDEX: access structure that accelerates selected lookup paths.
E09 QUERY: declarative request over a database state.
E10 SQL_STATEMENT: concrete statement that may query or mutate database state.
E11 TRANSACTION: atomic unit of work subject to isolation and durability policy.
E12 VIEW: named derived relation from a stored query definition.
E13 STORED_PROCEDURE: stored executable routine with parameters and privileges.
E14 TRIGGER: event-bound routine invoked by supported database events.
4. RELATIONSHIPS
DATABASE contains TABLE; TABLE defines COLUMN and contains ROW_ENTITY.
DATABASE_RECORD corresponds_to ROW_ENTITY in a particular schema/snapshot context.
PRIMARY_KEY constrains TABLE columns; FOREIGN_KEY references parent candidate key.
INDEX indexes TABLE expressions/columns; QUERY reads TABLE or VIEW.
SQL_STATEMENT implements QUERY or data-definition/data-manipulation action.
TRANSACTION groups SQL_STATEMENT executions; VIEW derives_from QUERY.
STORED_PROCEDURE executes statements; TRIGGER responds_to defined events.
Every relationship must preserve schema identity, permissions and provenance.
5. EXECUTION FLOW
F0 Receive operation, identity, context and database snapshot.
F1 Resolve schema objects and dependencies.
F2 Validate names, types, privileges and parameter bindings.
F3 Expand candidate access paths or permissible mutations.
F4 Filter by integrity constraints, policy and transaction state.
F5 Select a valid plan using cost estimates or deterministic rules.
F6 Execute with concurrency control and error monitoring.
F7 Validate result and transactional obligations.
F8 Commit, roll back or return read-only result as applicable.
F9 Record provenance and update known state; repeat only if a new bounded task exists.
6. FORMAL RULES
R01: PK(t,k) => for all distinct rows a,b in t, key(a,k) != key(b,k), and key components are NOT NULL.
R02: FK(child,parent,k) => each non-null referencing key has a matching permitted parent key, subject to configured null semantics.
R03: WRITE_ALLOWED(u,t,op) iff privileges(u,t,op) and applicable policy checks pass.
R04: VALID_QUERY(q) requires resolvable references, well-typed expressions and permitted operations.
R05: COMMIT(tx) only after all enforced constraints and transactional checks succeed.
R06: ROLLBACK(tx) restores the transaction's uncommitted changes according to database guarantees.
R07: VIEW_RESULT(v,s) = evaluate(definition(v), snapshot(s)), unless materialisation semantics specify otherwise.
R08: INDEX_SELECTION affects access strategy, not the logical result of a correctly executed query.
R09: TRIGGER_EXECUTION obeys configured event, timing, recursion and privilege rules.
R10: RECURSE only while a finite work queue remains and resource/depth limits are satisfied.
7. MINI RECURSION ENGINE
function RESOLVE(node, visited, depth):
if depth > MAX_DEPTH: return BOUNDARY_STOP
if node in visited: return CYCLE_REFERENCE
visited := visited union {node}
for each dependency in ordered_dependencies(node):
verify dependency and access policy
RESOLVE(dependency, visited, depth + 1)
return VALIDATED_NODE
The routine is illustrative formal pseudocode, not executable software.
8. INFERENCE AND VALIDATION
Infer candidate join paths only where relationship evidence supports them.
Infer likely indexes from observed predicates, never assume an index exists.
Separate schema facts from estimates, hypotheses and execution observations.
Validate key uniqueness, referential integrity, type constraints and access rights.
Preserve three-valued SQL NULL semantics and database-specific dialect differences.
Avoid claiming serialisability, durability or termination without stated assumptions.
9. FAILURE AND BOUNDARIES
Failures: missing objects, ambiguous columns, type mismatch, constraint violation,
unauthorised operation, deadlock, timeout, lost connection, invalid plan or trigger recursion.
Response: stop unsafe execution, preserve error evidence, retry only when safe,
roll back when applicable, and expose unresolved state without fabricating success.
Execution guarantee is conditional on a valid schema, finite bounded workload,
correct implementation, resource availability and the configured transaction model.
10. TRI-MAPPING
ENTITY: database objects and constraints.
RELATIONSHIP: contains, references, derives, executes, constrains, indexes.
FLOW: input -> validation -> candidate expansion -> boundary filter -> execution -> verification -> state update.
11. CITATION AND LICENCE
Source: Kireth Research, Database Entities index (URL above).
Authors: Mark Anthony Higgins — Sky Recursive AI.
Use subject to the published Kireth Research Open Research Licence and citation requirements.
This mapping was newly constructed from the index's ontology categories and general database principles; it is not an extracted authoritative specification for each linked page.