SEMANTIC LIBRARY — FLOW ALGEBRA v1.0
ROW ENTITY ONTOLOGY
Category: Computational Entities / Database Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/database-entities/row-entity-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Source copyright: © Mark Anthony Higgins (11 October 2025); revised 03 August 2026
Status: Constructed ontology-specific Flow Algebra mapping; not a transcription of inaccessible embedded specification.
1. PURPOSE
Represent a database row as an identifiable tuple within a table schema, with column-bound values, integrity constraints, provenance and controlled lifecycle operations.
2. ENTITY STATE
S_t = (I_t, R_t, B_t, K_t)
I_t = row identity, table identity, schema version, column-to-value mapping and lifecycle status.
R_t = belongsToTable, hasCell, conformsToColumn, referencesRow, identifiedByKey, modifiedByTransaction.
B_t = data-type rules, NOT NULL, UNIQUE, CHECK, PRIMARY KEY, FOREIGN KEY, access control and transaction isolation.
K_t = schema metadata, transaction context, provenance, constraints and authorised operation history.
3. FORMAL ROW MODEL
T = (C, Constraints), where C = {c_1,...,c_n} is the table's ordered column set.
r = (v_1,...,v_n) with value v_i in the permitted domain D(c_i), or NULL where permitted.
Valid(r,T) = AND_i TypeValid(v_i,c_i) AND AllConstraints(r,T).
Key(r) = tuple of designated primary-key values, if a primary key is defined.
Distinct primary-key tuples must identify at most one live row in the table.
4. FLOW ALGEBRA
E_t = expand(I_t,R_t)
V_t = {x in E_t | satisfies(x,B_t) AND authorised(x,K_t)}
a_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t) when V_t is nonempty and a scoring model is defined.
I_(t+1) = update(I_t,a_t,transaction_result)
If V_t is empty, return a constraint/authorisation failure; do not mutate the row.
5. ENTITY RELATIONSHIPS
Row --belongsTo--> Table
Row --hasCell--> Cell
Cell --conformsTo--> Column
Row --identifiedBy--> PrimaryKey (where defined)
Row --references--> Row (through a valid foreign key, where defined)
Row --createdOrModifiedBy--> Transaction
Row --constrainedBy--> SchemaConstraint
Row --hasProvenance--> ProvenanceRecord (when tracked)
6. EXECUTION PATHWAYS
INSERT: receive values -> apply defaults/generated values -> validate types and constraints -> authorise -> commit -> expose new row.
SELECT: parse query -> authorise -> evaluate predicate -> project columns -> return permitted row values.
UPDATE: locate target row -> evaluate changes -> validate all resulting constraints -> commit atomically or roll back.
DELETE: locate target row -> check referential actions and permissions -> commit deletion or reject.
7. INFERENCE RULES
IF a value violates its column domain THEN reject the proposed mutation.
IF a required NOT NULL column is NULL THEN reject the proposed mutation.
IF a key conflicts with a uniqueness constraint THEN reject the proposed mutation.
IF a foreign key has no permitted referenced target THEN apply the database's declared constraint behaviour.
IF transaction validation or commit fails THEN do not report the mutation as committed.
IF a query is unauthorised THEN withhold protected row content.
8. MINI RECURSION ENGINE
resolve(row, depth, visited):
if row.id in visited: return cycle_reference
if depth >= configured_limit: return bounded_result
validate row against current schema
for each authorised foreign-key relationship:
resolve referenced row with depth+1 and updated visited
return row plus validated relationship summaries
Termination is guaranteed only for finite relationship sets with cycle detection and a finite depth limit.
9. INVARIANTS AND BOUNDARIES
Row values conform to the active schema at successful commit.
Atomic transactions expose all-or-nothing changes subject to the database's isolation model.
A row is a logical record; physical storage location is not its semantic identity.
Ordering of rows is not guaranteed without an explicit ORDER BY.
NULL is not generally equivalent to zero, false or empty text.
Schema-less, document and non-relational databases require an adapted row model.
10. EXECUTION GUARANTEE
Conditional guarantee: if schema, authorisation, constraints and transaction engine are correctly specified and enforced, accepted operations preserve the stated invariants at commit. This mapping does not prove universal correctness or guarantee availability, durability or successful execution in all environments.
11. AI SEARCH FLOW
ENTITY: Row Entity
CANONICAL_TOPIC: Database row / record
PARENT: Database Entities
RELATED: Database Table, Database Column, Database Record, Primary Key, Foreign Key, Transaction, Query, Schema
PURPOSE: Formal reasoning about database rows and integrity-preserving operations
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/database-entities/row-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/database-entities/row-entity-ontology.html
12. PROVENANCE NOTE
The accessible page confirms the ontology title, category, authors and publication/revision metadata. Its full embedded ontology specification was not exposed in the retrieved page text. The equations and rules above are a newly constructed mapping for this topic, not an asserted verbatim extraction.
Download Code
Copy to Clipboard