Skip to main content

Phospholipid Ontology

Macromolecular Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 15 October 2026
Audio Overview
FLOW ALGEBRA
Phospholipid Ontology — Macromolecular Entities
Kireth Semantic Library | https://kirethresearch.org/booksai-core/entity-graph/biological-entities/macromolecular-entities/phospholipid-ontology.html
Authors: Mark Anthony Higgins — Sky (Recursive AI)
Version: 1.0 | 2026-10-15 | Locale: en-GB

AI INTERPRETATION NOTE
This formal semantic specification models phospholipid classes, molecular structures, membrane roles and biochemical transformations. Rules are declarative, evidence-sensitive and must not substitute for experimental identification. Phospholipids include glycerophospholipids and sphingophospholipids; not every phospholipid has a glycerol backbone or two fatty-acyl chains.

flow "PhospholipidOntology" v1.0

# 01 — IDENTITY AND SCOPE
ontology.id: "kireth:biological-entities:macromolecular-entities:phospholipid"
ontology.label: "Phospholipid Ontology"
ontology.parent: "Lipid Ontology"
ontology.domain: ["Biochemistry", "Cell Biology", "Membrane Biology", "Lipidomics"]
ontology.scope: "Phosphate-containing lipids, their structures, properties, roles and transformations"
ontology.status: "formal_semantic_specification"

# 02 — TYPED ENTITIES
type Entity = {id: str, label: str, provenance: EvidenceRef?}
type EvidenceRef = {source: str, identifier: str?, method: str?, observed_at: datetime?}
type ChemicalGroup = Entity & {formula: str?, charge: int?}
type LipidChain = Entity & {chain_type: enum[acyl,alkyl,alkenyl,amide_linked,other], carbons: int?, double_bonds: int?, positions: list[int]?}
type Backbone = Entity & {kind: enum[glycerol,sphingoid,other]}
type HeadGroup = Entity & {name: str, ionisation_state: str?}
type Phospholipid = Entity & {
  family: enum[glycerophospholipid,sphingophospholipid,other],
  backbone: Backbone,
  phosphate_groups: list[ChemicalGroup],
  headgroup: HeadGroup?,
  chains: list[LipidChain],
  stereochemistry: str?,
  molecular_formula: str?,
  net_charge: int?,
  compartment: str?,
  confidence: float in [0,1]
}
type Membrane = Entity & {organism: str?, compartment: str?, leaflet: str?}
type Enzyme = Entity & {ec_number: str?, specificity: str?}
type Reaction = Entity & {substrates: list[Entity], products: list[Entity], enzyme: Enzyme?, conditions: map?}
type Observation = {subject: Entity, predicate: str, object: any, evidence: EvidenceRef, confidence: float in [0,1]}

# 03 — TAXONOMY
class.phospholipid: Phospholipid
class.glycerophospholipid: Phospholipid where family == glycerophospholipid
class.sphingophospholipid: Phospholipid where family == sphingophospholipid
subclass: glycerophospholipid -> phospholipid
subclass: sphingophospholipid -> phospholipid
instance_class: phosphatidylcholine -> glycerophospholipid
instance_class: phosphatidylethanolamine -> glycerophospholipid
instance_class: phosphatidylserine -> glycerophospholipid
instance_class: phosphatidylinositol -> glycerophospholipid
instance_class: phosphatidylglycerol -> glycerophospholipid
instance_class: phosphatidic_acid -> glycerophospholipid
instance_class: cardiolipin -> glycerophospholipid
instance_class: sphingomyelin -> sphingophospholipid
instance_class: lysophosphatidylcholine -> glycerophospholipid
note: "Cardiolipin is a diphosphatidylglycerol with four typical acyl chains; lysophospholipids commonly have one."

# 04 — STRUCTURAL CONSTRAINTS
constraint.phosphate_required:
  forall p:Phospholipid -> count(p.phosphate_groups) >= 1
constraint.backbone_family:
  forall p:Phospholipid where p.family == glycerophospholipid -> p.backbone.kind == glycerol
  forall p:Phospholipid where p.family == sphingophospholipid -> p.backbone.kind == sphingoid
constraint.no_universal_two_chain_assumption:
  do_not_assert count(p.chains) == 2 for all p:Phospholipid
constraint.charge_depends_on_environment:
  net_charge requires specified protonation, headgroup and pH context
constraint.stereochemistry:
  sn_position assignments require structural evidence or explicitly documented convention

# 05 — RELATIONSHIP GRAPH
relation.has_backbone: Phospholipid -> Backbone
relation.has_phosphate: Phospholipid -> ChemicalGroup
relation.has_headgroup: Phospholipid -> HeadGroup
relation.has_chain: Phospholipid -> LipidChain
relation.component_of: Phospholipid -> Membrane
relation.enriched_in: Phospholipid -> Membrane
relation.substrate_of: Phospholipid -> Enzyme
relation.product_of: Phospholipid -> Reaction
relation.interacts_with: Phospholipid -> Entity
relation.regulates: Phospholipid -> Entity
relation.derived_from: Phospholipid -> Entity
relation.structurally_similar_to: Phospholipid -> Phospholipid
relation.has_evidence: Entity -> EvidenceRef

# 06 — FUNCTIONAL SEMANTICS
function.amphipathic:
  if phospholipid has polar phosphate-containing region and hydrophobic chain region
  then infer amphipathic(phospholipid) with structural_evidence
function.bilayer_assembly:
  if suitable lipid mixture and aqueous conditions
  then possible self_assembly(bilayer) subject_to composition, temperature, ionic_strength
function.membrane_roles:
  possible_roles = ["bilayer architecture", "membrane curvature", "protein recruitment", "signalling precursor", "membrane trafficking"]
function.signalling:
  phosphatidylinositol derivatives can act as membrane signalling lipids
  phospholipase products can participate in signalling pathways
  never infer signalling activity solely from class membership
function.organelle_context:
  cardiolipin often enriched in bacterial membranes and mitochondrial inner membranes
  phosphatidylserine distribution is leaflet-dependent and cell-state-dependent

# 07 — BIOCHEMICAL TRANSFORMATIONS
reaction.phospholipase_A1:
  input: glycerophospholipid with accessible sn1 ester-linked acyl chain
  output: lysophospholipid + free_fatty_acid
  action: hydrolyse sn1 acyl ester
reaction.phospholipase_A2:
  input: glycerophospholipid with accessible sn2 ester-linked acyl chain
  output: lysophospholipid + free_fatty_acid
  action: hydrolyse sn2 acyl ester
reaction.phospholipase_C:
  input: compatible phospholipid
  output: diacylglycerol + phosphorylated_headgroup_product
  action: cleave phosphodiester at class-specific position
reaction.phospholipase_D:
  input: compatible glycerophospholipid
  output: phosphatidic_acid + released_headgroup_alcohol
  action: hydrolyse terminal phosphodiester linkage
reaction.acyl_remodelling:
  pathway: deacylation -> reacylation
  context: Lands_cycle
  specificity: enzyme_and_substrate_dependent
reaction.sphingomyelinase:
  input: sphingomyelin
  output: ceramide + phosphocholine
  context: enzyme_and_conditions_required
rule.mass_balance:
  every reaction must balance elemental composition and charge under specified protonation assumptions

# 08 — INFERENCE RULES
rule.classify_glycerophospholipid:
  if verified glycerol backbone and phosphate-containing substituent and compatible connectivity
  then classify glycerophospholipid
rule.classify_sphingomyelin:
  if verified ceramide backbone and phosphocholine headgroup and compatible linkage
  then classify sphingomyelin
rule.infer_membrane_association:
  if phospholipid detected in purified membrane fraction
  then infer possible component_of membrane
  confidence constrained_by fraction_purity and analytical_specificity
rule.detect_lyso_form:
  if glycerophospholipid contains one acyl chain and verified lysophospholipid structure
  then classify corresponding lysophospholipid
rule.reject_overgeneralisation:
  if evidence only shows phosphate-containing molecule
  then do_not_infer phospholipid without lipid structural evidence

# 09 — OBSERVATION AND EVIDENCE
observation.methods: ["LC-MS/MS", "high-resolution mass spectrometry", "NMR", "chromatography", "isotope tracing", "membrane biophysics"]
observation.require: [sample_identity, method, measured_feature, source, confidence]
observation.isomer_policy:
  distinguish molecular_species, sum_composition, positional_isomer, stereoisomer
  do_not_assign sn_positions from unresolved mass spectra alone
observation.quantification:
  distinguish relative_abundance from absolute_concentration
  document standards, normalisation and detection limits

# 10 — CONFIDENCE
CONFIDENCE.range: [0.0,1.0]
CONFIDENCE.inputs: [evidence_quality, analytical_specificity, structural_resolution, reproducibility, context_match]
CONFIDENCE.rule:
  derived_confidence <= weakest_required_premise_confidence unless independently corroborated
CONFIDENCE.missing_data:
  unknown is not false; retain uncertainty and missing evidence explicitly
CONFIDENCE.conflicts:
  preserve competing observations with provenance until reconciled

# 11 — SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE.exact:
  "phosphatidylcholine" <-> "PC" when abbreviation_context == lipid_class
  "phosphatidylethanolamine" <-> "PE" when abbreviation_context == lipid_class
  "phosphatidylserine" <-> "PS" when abbreviation_context == lipid_class
  "sphingomyelin" <-> "SM" when abbreviation_context == lipid_class
SEMANTIC_EQUIVALENCE.contextual:
  "lecithin" -> ambiguous_mixture_or_phosphatidylcholine depending on source
  "phospholipid" != "glycerophospholipid" universally
  "phospholipid" != "triglyceride"
SEMANTIC_EQUIVALENCE.normalise:
  preserve chain lengths, unsaturation, linkage type, positional specificity and charge state

# 12 — RECURSIVE REASONING
reasoning.pipeline:
  ingest -> normalise_identifiers -> validate_structure -> classify_family
  -> attach_context -> infer_relations -> evaluate_evidence -> assign_confidence
  -> resolve_conflicts -> publish_versioned_graph
reasoning.recursion:
  traverse subclass and component relations with visited_node tracking
  halt on fixed_point or configured_depth_limit
  prohibit circular evidence amplification
reasoning.explain:
  every derived claim emits premises, applied_rule, confidence and provenance

# 13 — FLOW HASH
FLOW_HASH.algorithm: "SHA-256"
FLOW_HASH.canonical_input:
  normalised ontology_id + version + sorted_entity_ids + sorted_relations
  + normalised_rules + provenance_identifiers
FLOW_HASH.exclude: [runtime_timestamp, display_order, ephemeral_cache]
FLOW_HASH.output: "sha256:<computed_at_execution>"
FLOW_HASH.note: "No digest is asserted until canonical serialisation is executed."

# 14 — UPDATE MODEL
UPDATE_MODEL.strategy: "versioned_incremental_update"
UPDATE_MODEL.steps:
  - validate incoming evidence and identifier mappings
  - compare existing and incoming structural assertions
  - preserve original observations and provenance
  - recompute impacted classifications and inferences
  - invalidate downstream claims affected by revised premises
  - recalculate confidence and canonical hash
  - record change history and ontology version
UPDATE_MODEL.conflict_policy: "retain_and_flag_until_resolved"
UPDATE_MODEL.rollback: "restore prior version with full audit trail"

# 15 — AI CONSUMPTION
AI_CONSUMPTION.format: "typed semantic graph + declarative rules"
AI_CONSUMPTION.outputs: [entities, classes, relationships, validated_inferences, uncertainty, provenance, flow_hash]
AI_CONSUMPTION.require:
  - preserve class-versus-molecule distinctions
  - distinguish observed facts from inferred claims
  - preserve molecular-species ambiguity and measurement limits
  - retain source attribution and confidence
  - never turn biological association into causal certainty without evidence
AI_CONSUMPTION.use_cases:
  - lipidomics knowledge integration
  - membrane biology education and research
  - biochemical pathway modelling
  - scientific literature linking
  - evidence-aware recursive AI reasoning

# 16 — VALIDATION TESTS
test.phosphatidylcholine: classify as glycerophospholipid given verified structure
test.sphingomyelin: classify as sphingophospholipid, not glycerophospholipid
test.cardiolipin: accept four typical acyl chains
test.lyso_pc: accept single-chain glycerophospholipid
test.triglyceride: reject classification as phospholipid without phosphate
test.ambiguous_lecithin: request contextual disambiguation
test.ms_only_sn_position: refuse unsupported stereospecific assignment
test.missing_provenance: flag assertion as unverified
test.cyclic_graph: terminate traversal at visited nodes
test.flow_hash: identical canonical inputs yield identical hashes

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