Skip to main content

Database Record Ontology

Database Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
SEMANTIC LIBRARY — DATABASE RECORD ONTOLOGY
FLOW ALGEBRA v1.0 | Database Entities | UTF-8 TXT

AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/database-entities/database-record-ontology.html
SOURCE PAGE: Database Record Ontology; revised 03 August 2026.
STATUS: Constructed topic-level Flow Algebra mapping. The full embedded specification was not exposed in the accessible page text; this is not a verbatim transcription.

1. PURPOSE
Model a database record as an identifiable, schema-constrained collection of field values within a table, with lifecycle, integrity, provenance and transaction semantics.

2. STATE MODEL (HST)
S_t = (I_t, R_t, B_t, K_t)
I_t = record identifier, table identifier, field/value mapping, version, status and provenance.
R_t = schema relationships, keys, constraints, transactions and referential links.
B_t = permitted operations, access controls, integrity constraints and isolation boundaries.
K_t = schema knowledge, query context, transaction snapshot and validation rules.

3. ENTITY GRAPH
ENTITIES: Database, Table, Schema, Record, Column, FieldValue, PrimaryKey, ForeignKey, Constraint, Index, Transaction, AuditEvent.
RELATIONS:
  Record --belongsTo--> Table
  Table --conformsTo--> Schema
  Record --hasValueFor--> Column
  Record --identifiedBy--> PrimaryKey
  Record --referencesVia--> ForeignKey
  Record --modifiedBy--> Transaction
  Record --describedBy--> AuditEvent

4. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfiesSchema(x) AND satisfiesConstraints(x) AND authorised(x, B_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, outcome_t)
Note: P is a ranking or selection model only when multiple valid candidates exist; it is not a substitute for deterministic database constraints.

5. RECORD OPERATION FLOWS
CREATE: input -> schema mapping -> type checks -> uniqueness/foreign-key checks -> transaction write -> commit -> record identity.
READ: query -> authorisation -> snapshot selection -> predicate evaluation -> record projection -> output.
UPDATE: locate -> authorise -> compare version/lock -> validate changes -> transactional update -> commit -> audit.
DELETE: locate -> authorise -> apply referential policy -> transactional deletion or tombstone -> commit -> audit.

6. INFERENCE RULES
IF field violates its declared type THEN reject mutation.
IF primary key is duplicated THEN reject insertion or update.
IF a required non-null field is absent THEN reject mutation unless a valid default applies.
IF a foreign-key reference is invalid THEN enforce the configured referential constraint.
IF an optimistic concurrency version mismatches THEN report conflict and require retry or resolution.
IF a transaction rolls back THEN its uncommitted changes must not be presented as committed.
IF a read is unauthorised THEN do not disclose protected field values.

7. RECURSIVE PROCESSING ENGINE
For each requested record operation:
  1. Resolve table and schema.
  2. Resolve dependencies and referential relationships.
  3. Validate access and candidate state.
  4. Execute within an appropriate transaction.
  5. Validate integrity and commit or roll back.
  6. Update state and provenance.
  7. Traverse dependent records only when permitted and required by referential rules.
Termination: finite dependency traversal with visited-set cycle detection and bounded retries.

8. BOUNDARIES AND GUARANTEES
- Identity is stable within the relevant key and database scope, not necessarily globally.
- Transactional atomicity and isolation depend on the database engine and configuration.
- Referential actions (restrict, cascade, set null) must follow the actual schema.
- Auditability requires an explicitly configured audit mechanism.
- A successful validation does not guarantee availability or durability without a successful commit and applicable storage guarantees.

9. TRI-MAPPING
ENTITY: Record -> STRUCTURE: keyed field/value mapping -> PROCESS: create/read/update/delete.
RELATION: ForeignKey -> STRUCTURE: referenced key -> PROCESS: integrity verification.
BOUNDARY: Constraint -> STRUCTURE: schema predicate -> PROCESS: accept/reject.
STATE: Version -> STRUCTURE: concurrency token -> PROCESS: conflict detection.

10. EXAMPLE EXECUTION
Input: update customer record id=42, set status='active', expected_version=7.
Check: record exists, caller authorised, status valid, version equals 7.
Action: update fields and increment version in one transaction.
Output: committed record with version 8; otherwise reject and preserve committed state.

11. CITATION AND LICENCE
Cite source page and authors above. Open Research Licence terms, where applicable, should be checked at the publisher's site. This document is an independently constructed explanatory Flow Algebra representation.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ