Skip to main content

Database 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 ONTOLOGY
FLOW ALGEBRA v1.0 | DATABASE ENTITIES

AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/database-entities/database-ontology-2.html
SOURCE PAGE: Database Ontology; revised 03 August 2026.
STATUS: Constructed ontology-specific Flow Algebra mapping; not a transcription of inaccessible embedded specifications.

1. PURPOSE
Represent a database as a stateful information system that stores, organises, validates, retrieves and updates records while preserving declared constraints and transactional semantics.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = database schema, records, indexes, metadata and current requests.
R_t = integrity constraints, access policies, query semantics, transaction rules.
B_t = resource limits, isolation boundaries, capacity, latency and permissions.
K_t = known schema mappings, statistics, provenance and operational history.

3. ENTITIES
Database, DatabaseEngine, Schema, Table, Collection, Record, Field, Key, Index, Query, Transaction, Constraint, User, Role, Permission, Log, Snapshot, Replica, Backup.

4. RELATIONSHIPS
Database CONTAINS Schema.
Schema DEFINES Table or Collection.
Table CONTAINS Record.
Record HAS Field.
Constraint VALIDATES Record.
Index REFERENCES Field and RecordLocation.
Query READS or MODIFIES Record.
Transaction GROUPS Operations.
Role GRANTS Permission.
Log RECORDS CommittedChange.
Snapshot CAPTURES DatabaseState.
Replica COPIES CommittedState subject to replication policy.

5. FLOW ALGEBRA CORE
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and authorised(x) and valid(x)}
a_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, a_t, observed_result_t)

Here P is a policy-dependent ranking/selection score, not necessarily a calibrated probability. No update occurs if V_t is empty.

6. QUERY EXECUTION FLOW
REQUEST -> AUTHENTICATE -> AUTHORISE -> PARSE -> VALIDATE -> PLAN -> EXECUTE -> VERIFY -> RESPOND
QueryPlan = optimise(legal_plans(query, schema, indexes), cost_model)
Result = execute(QueryPlan, snapshot_or_isolation_view)
A read-only query must not modify logical database contents.

7. WRITE / TRANSACTION FLOW
BEGIN -> READ -> CHECK CONSTRAINTS -> APPLY TENTATIVE CHANGES -> COMMIT OR ROLLBACK -> LOG -> ACKNOWLEDGE
Commit(T) permitted only if all required constraints and isolation conditions hold.
On failure: rollback uncommitted effects, report error, preserve committed state.
Atomicity, consistency, isolation and durability are conditional on the selected database engine and configuration.

8. INFERENCE RULES
IF referenced primary key absent THEN reject dependent foreign-key write unless schema permits deferred resolution.
IF permission denied THEN reject request without exposing protected data.
IF unique constraint violated THEN reject conflicting write.
IF transaction conflicts under chosen isolation THEN retry, abort or serialise per policy.
IF index exists and is applicable THEN include indexed access among candidate plans.
IF backup verification fails THEN do not classify backup as recoverable.
IF replication lag exceeds policy threshold THEN mark replica stale for freshness-sensitive reads.

9. MINI RECURSION ENGINE
function RESOLVE(request, state, depth):
  if depth > MAX_DEPTH: return BOUNDARY_EXCEEDED
  candidates = expand(request, state.rules)
  valid = filter(candidates, state.boundaries, state.permissions)
  if valid is empty: return NO_VALID_PATH
  choice = select(valid, state.knowledge)
  result = execute_or_decompose(choice)
  if result requires_subtask: return RESOLVE(result.subtask, updated_state, depth + 1)
  return verify(result)

This is a descriptive execution mapping; real implementations must use bounded recursion, termination checks and safe transaction handling.

10. VALIDATION AND GUARANTEES
Validate schema compatibility, field types, keys, referential integrity, authorisation, query parameters and result provenance.
Guarantees are conditional: valid inputs, functioning hardware, appropriate engine configuration, correct implementation and declared consistency model.
No universal guarantee of availability, performance, isolation or recoverability is implied.

11. EXAMPLE FLOW
Input: Insert customer record with unique customer_id.
Expand: derive table, fields, permissions, key and index checks.
Filter: reject missing required fields, duplicate customer_id or denied access.
Select: valid insert plan.
Execute: stage row in transaction, verify constraints, commit and log.
Output: committed record identifier, or a specific failure without partial commit.

12. CROSS-ONTOLOGY LINKS
Database Ontology -> Data Entities, Information Entities, Storage Entities, File System Ontology, Algorithm Ontology, Software Service Ontology, Security Entities, Monitoring Entities.

13. CITATION
Mark Anthony Higgins and Sky Recursive AI, "Database Ontology", Kireth Research Semantic Library, source URL above. This Flow Algebra mapping was constructed from the topic and visible page metadata; consult the original page for authoritative specifications and licensing terms.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ