Skip to main content

Molecular Structure Data Ontology

Biological Data Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
KIRETH SEMANTIC LIBRARY — FLOW ALGEBRA
Molecular Structure Data Entity Ontology
Version: 1.0 | Date: 2026-10-28 | Encoding: UTF-8
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/biological-data-entities/molecular-structure-data-ontology.html
Status: Original companion formalisation based on ontology subject; not a verified transcription of page content.
Authors: Kireth Research; Sky — Recursive AI (companion formalisation)
Citation: Cite the source URL and this Flow Algebra file when reusing.

1. PURPOSE
Represent experimental and computational molecular structure datasets with explicit links between molecules, atoms, residues, coordinates, experimental methods, models, uncertainties, versions and provenance. Prevent inferred structural claims from being mistaken for measured observations.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current molecular structure dataset and query context
R_t: typed relations and transformation rules
B_t: admissibility, physical, semantic and provenance constraints
K_t: validated background knowledge, evidence and uncertainty
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(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, evidence_t)
Stop when the query is resolved, no admissible expansion remains, or the iteration budget is exhausted.

3. ENTITY CLASSES
MolecularStructureData: dataset describing molecular geometry or conformational ensembles.
MolecularEntity: protein, nucleic acid, complex, ligand or other molecular system.
StructureModel: a particular coordinate model or conformer.
StructureEnsemble: collection of alternative models or frames.
Atom: chemically identified atomic site.
Residue: polymer unit with chain and residue identifiers.
Chain: molecular chain or subunit.
Bond: typed chemical connectivity assertion.
CoordinateSet: positions with coordinate system and length units.
ExperimentalMethod: X-ray crystallography, cryo-EM, NMR or other method.
ComputationalMethod: prediction, simulation, docking or refinement method.
DensityMap: volumetric experimental reconstruction or electron density.
SecondaryStructureAnnotation: helix, sheet or other structural annotation.
StructuralFeature: domain, motif, binding pocket, interface or contact.
QualityMetric: resolution, model confidence, geometry or validation measure.
ProvenanceRecord: origin, accession, software, date, version and licence.

4. TYPED RELATIONSHIPS
structureData -> describes -> molecularEntity
structureData -> contains -> structureModel
structureModel -> includes -> chain
chain -> contains -> residue
residue -> contains -> atom
atom -> hasCoordinate -> coordinateSet
atom -> connectedBy -> bond
structureModel -> supportedBy -> experimentalMethod
structureModel -> generatedBy -> computationalMethod
structureModel -> alignedTo -> referenceStructure
structureModel -> annotatedWith -> structuralFeature
structureModel -> evaluatedBy -> qualityMetric
structureData -> hasProvenance -> provenanceRecord
structureEnsemble -> contains -> structureModel
structureModel -> associatedWith -> densityMap

5. DATA CONSTRAINTS
C1: Coordinate units and reference frames must be declared.
C2: Atom identifiers must be unique within a model and alt-location context.
C3: Chain, residue and atom membership must remain consistent.
C4: Missing atoms and unresolved regions are explicit, not silently reconstructed.
C5: Experimental observations and computational predictions have distinct evidence labels.
C6: Resolution and confidence metrics are method-specific; never compare as interchangeable scores.
C7: All derived geometries record method, parameters, version and input provenance.
C8: Structural alignment never implies identical function or common ancestry on its own.
C9: Distances, angles and contacts require specified atom selection and units.
C10: Alternate conformations and biological assemblies must not be collapsed without disclosure.

6. FLOW PATHWAYS
P1 INGEST: identify file format (PDB, mmCIF, MMTF or equivalent) -> parse metadata -> verify identifiers -> record provenance.
P2 NORMALISE: standardise entity identifiers -> retain original chain numbering -> map units and reference frames -> mark absent values.
P3 VALIDATE: test geometry and topology -> check completeness -> review method-specific quality -> record warnings.
P4 RELATE: map chains to sequences -> annotate domains and ligands -> construct typed structural relationships.
P5 COMPARE: choose matched atom sets -> align models -> calculate RMSD or other metric -> preserve selection and uncertainty.
P6 INFER: propose contacts, pockets or conformational differences -> test constraints -> label hypotheses and evidence.
P7 EXPORT: serialise validated graph -> attach provenance and confidence -> produce reusable semantic representation.

7. INFERENCE RULES
R1: IF structureModel contains atom coordinates AND valid units THEN geometric distances may be computed.
R2: IF two models have explicit atom correspondence THEN alignment-based comparison is admissible.
R3: IF a model has unresolved residues THEN claims about their geometry are unsupported.
R4: IF a ligand lies near a protein pocket THEN report spatial proximity; binding is not established without further evidence.
R5: IF a structure is predicted THEN report prediction-specific confidence, not experimental resolution.
R6: IF a structure ensemble shows conformational variation THEN retain ensemble variability in derived assertions.
R7: IF provenance or coordinate frame is absent THEN lower confidence and require review before downstream reuse.

8. MINI RECURSION ENGINE
function resolve(query, state, depth, maxDepth):
  if depth >= maxDepth: return unresolved("iteration limit")
  candidates = expand(query, state.R)
  admissible = filter(candidates, state.B)
  ranked = rank(admissible, state.K, provenance, uncertainty)
  if ranked is empty: return unresolved("no supported candidate")
  best = ranked[0]
  if sufficientEvidence(best): return validated(best)
  return resolve(refine(query, best), update(state, best), depth + 1, maxDepth)

9. TRI-MAPPING
Entity graph: molecule -> model -> chain -> residue -> atom -> coordinate.
Relationship graph: containment, derivation, evidence, alignment, annotation and provenance.
Flow graph: ingest -> normalise -> validate -> relate -> compare -> infer -> export.

10. MAPPING TABLE
Input                         Transformation                  Output
Structure file                Parse and validate             Typed structure entities
Atom positions                Unit-aware geometry            Distance and angle observations
Sequence and structure        Residue correspondence        Sequence–structure mapping
Alternative models            Alignment and comparison       Conformational differences
Method metadata               Evidence classification        Experimental/predicted status
Quality metrics               Method-aware evaluation        Qualified confidence assertions

11. CONFIDENCE AND EVIDENCE
Store evidence_type, method, input_accession, software_version, validation_status, uncertainty, confidence_scope and timestamp.
Confidence must be calibrated within the relevant method and task. Missing information is 'unknown', not zero. Conflicting evidence remains visible.

12. CONDITIONAL EXECUTION GUARANTEE
If inputs are parseable, identifiers are consistent, units are known, and validation constraints hold, the flow yields a provenance-linked representation or a clearly marked unresolved result. It does not guarantee biological function, molecular stability, binding affinity or scientific truth.

13. AI SEARCH FLOW
QUERY: molecular structure data entity
INTENT: identify, classify, compare or validate structural datasets
ENTITY_PATH: BiologicalDataEntity -> MolecularStructureData -> StructureModel -> MolecularEntity
SEARCH_TERMS: molecular coordinates; structural biology; protein structure; nucleic acid structure; PDB; mmCIF; cryo-EM; crystallography; NMR; structural prediction
RETRIEVAL: match entity type, accession, molecular system, method and provenance
RANKING: evidence relevance -> metadata completeness -> validation quality -> uncertainty -> freshness
OUTPUT: supported structural assertions with source links, constraints and confidence labels
FALLBACK: unresolved with missing-data explanation

14. HOW TO READ
Follow the entity graph to determine what is represented; the relationship graph to establish what is linked; and the flow graph to determine which operations are permitted. Treat inferred claims as provisional unless supported by independent evidence.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ