Skip to main content

Glycoprotein 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
Glycoprotein Ontology — Macromolecular Entities
Version: 1.0 | Locale: en-GB | Encoding: UTF-8
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/macromolecular-entities/glycoprotein-ontology.html
Status: Formal ontology specification; rules require an implementation/runtime to execute.

FLOW "GlycoproteinOntology" v1.0

1. SCOPE
  domain := BiologicalEntities.MacromolecularEntities
  subject := Glycoprotein
  purpose := classify, relate, validate, and reason about proteins with covalently attached glycans.
  open_world := true
  evidence_policy := distinguish observed, inferred, and unknown assertions.

2. TYPED ENTITIES
  ENTITY Macromolecule {id: IRI, label: String}
  ENTITY Protein extends Macromolecule {sequence: Optional[String]}
  ENTITY Glycoprotein extends Protein {glycosylation_sites: Set[Site]}
  ENTITY Glycan {id: IRI, composition: Optional[Map[Monosaccharide, Integer]], topology: Optional[Graph]}
  ENTITY Monosaccharide {id: IRI, name: String}
  ENTITY Site {residue_index: PositiveInteger, residue: AminoAcid, chain_id: Optional[String]}
  ENTITY AminoAcid {code: String}
  ENTITY GlycosidicLinkage {donor: Entity, acceptor: Entity, position: Optional[String]}
  ENTITY GlycosylationEvent {protein: Protein, glycan: Glycan, site: Site, mechanism: GlycosylationType}
  ENTITY Enzyme {id: IRI, role: EnzymeRole}
  ENTITY CellularCompartment {id: IRI, name: String}
  ENTITY BiologicalFunction {id: IRI, label: String}
  ENTITY Evidence {source: IRI, method: String, date: Optional[Date], confidence: Real[0,1]}
  ENTITY Assertion {subject: Entity, predicate: Predicate, object: Entity, evidence: Set[Evidence]}

3. ENUMERATIONS
  GlycosylationType := {N_LINKED, O_LINKED, C_MANNOSYLATION, GPI_ANCHOR, OTHER, UNKNOWN}
  EnzymeRole := {GLYCOSYLTRANSFERASE, GLYCOSIDASE, OTHER}
  EvidenceStatus := {OBSERVED, INFERRED, UNVERIFIED, CONTRADICTED}
  SiteStatus := {CONFIRMED, PREDICTED, UNKNOWN}

4. RELATIONSHIPS
  IS_A(Glycoprotein, Protein)
  IS_A(Protein, Macromolecule)
  HAS_GLYCAN(Glycoprotein, Glycan)
  ATTACHED_AT(Glycan, Site)
  HAS_RESIDUE(Protein, AminoAcid)
  MODIFIED_BY(Protein, GlycosylationEvent)
  CATALYSED_BY(GlycosylationEvent, Enzyme)
  LOCATED_IN(Protein, CellularCompartment)
  PARTICIPATES_IN(Glycoprotein, BiologicalFunction)
  SUPPORTED_BY(Assertion, Evidence)
  DERIVED_FROM(Assertion, Assertion)
  SEMANTIC_EQUIVALENT_TO(Entity, Entity)
  SEMANTIC_DISTINCT_FROM(Entity, Entity)

5. DEFINITIONS AND CLASSIFICATION
  RULE GP_001:
    IF Protein(p) AND Glycan(g) AND COVALENTLY_ATTACHED(g,p)
    THEN Glycoprotein(p) AND HAS_GLYCAN(p,g).

  RULE GP_002:
    IF GlycosylationEvent(e) AND e.mechanism = N_LINKED
    THEN e.site.residue = Asparagine.

  RULE GP_003:
    IF GlycosylationEvent(e) AND e.mechanism = O_LINKED
    THEN REQUIRE experimentally_supported_site_or_explicit_linkage(e).
    NOTE Serine and threonine are common O-glycosylation sites but not exhaustive.

  RULE GP_004:
    IF sequence_contains(p, "N-X-S/T") AND X != Proline
    THEN POSSIBLE_N_GLYCOSYLATION_SITE(p, position_of_N).
    NOTE A sequon alone does not establish actual glycosylation.

  RULE GP_005:
    IF HAS_GLYCAN(p,g) AND GLYCAN_STRUCTURE_CONFIRMED(g)
    THEN CLASSIFY_GLYCAN_BY_STRUCTURE(g).

  RULE GP_006:
    IF GPI_ANCHORED(p)
    THEN ANCHOR_TYPE(p, GPI_ANCHOR).
    NOTE GPI anchoring is distinguished from conventional N- and O-linked protein glycosylation.

6. GLYCAN STRUCTURAL MODEL
  GLYCAN_GRAPH(g) := (monosaccharide_nodes, linkage_edges)
  REQUIRE acyclic_or_cyclic_status_explicit_if_known(g)
  REQUIRE linkage_positions_nullable_if_unknown(g)
  VALIDATE each confirmed linkage references existing residues.
  PRESERVE branching, anomeric configuration, and linkage positions when observed.
  NEVER infer complete glycan topology from composition alone.

7. BIOLOGICAL FUNCTIONS
  POSSIBLE_FUNCTIONS := {
    cell_cell_recognition,
    cell_adhesion,
    receptor_signalling,
    immune_recognition,
    protein_folding_and_quality_control,
    protein_stability,
    trafficking,
    extracellular_matrix_interactions
  }
  RULE GP_007:
    IF PARTICIPATES_IN(p,f) AND SUPPORTED_BY(assertion(p,f), evidence)
    THEN FUNCTION_ANNOTATION(p,f,evidence).
  NOTE No function is universal to all glycoproteins.

8. BIOLOGICAL PROCESS MODEL
  PROCESS N_LINKED_GLYCOSYLATION:
    input := protein_acceptor, lipid_linked_oligosaccharide_donor
    event := oligosaccharyltransferase_mediated_transfer
    context := endoplasmic_reticulum
    output := N_glycosylated_protein
    subsequent_steps := optional_processing_in_ER_and_Golgi

  PROCESS O_LINKED_GLYCOSYLATION:
    input := protein_acceptor, activated_sugar_donor
    event := enzyme_mediated_sugar_transfer
    context := pathway_dependent
    output := O_glycosylated_protein
    NOTE Different O-glycosylation pathways occur in different compartments.

  PROCESS GLYCAN_REMODELLING:
    input := glycoprotein
    transformations := glycosidase_removal OR glycosyltransferase_addition
    output := altered_glycoform

9. GLYCOFORM REASONING
  ENTITY Glycoform {protein_backbone: Protein, occupied_sites: Set[Site], glycan_assignments: Map[Site,Glycan]}
  RULE GP_008:
    IF SAME_PROTEIN_BACKBONE(a,b) AND DIFFERENT_GLYCAN_ASSIGNMENT(a,b)
    THEN DISTINCT_GLYCOFORMS(a,b).
  RULE GP_009:
    IF DIFFERENT_SITE_OCCUPANCY(a,b)
    THEN DISTINCT_GLYCOFORMS(a,b).
  NOTE Glycoforms may differ in occupancy, composition, connectivity, or stereochemistry.

10. INFERENCE AND CONSTRAINTS
  RULE GP_010:
    IF Glycoprotein(p) THEN Protein(p).
  RULE GP_011:
    IF HAS_GLYCAN(p,g) AND ATTACHED_AT(g,s)
    THEN GLYCOSYLATED_SITE(p,s).
  RULE GP_012:
    IF EVIDENCE_SUPPORTS(e, assertion) AND e.confidence >= threshold
    THEN ASSERT_WITH_PROVENANCE(assertion,e).
  CONSTRAINT C_001: confidence must be within [0,1].
  CONSTRAINT C_002: residue indices must be positive and valid for known sequences.
  CONSTRAINT C_003: a predicted sequon is not equivalent to an observed occupied site.
  CONSTRAINT C_004: missing glycan evidence does not prove absence of glycosylation.
  CONSTRAINT C_005: glycoprotein is not synonymous with proteoglycan; model overlaps and distinctions explicitly.

11. RECURSIVE SEMANTIC REASONING
  FUNCTION EXPAND_RELATIONS(entity, visited, depth, max_depth):
    IF depth >= max_depth OR entity IN visited THEN RETURN {}.
    next_visited := visited UNION {entity}
    direct := VERIFIED_RELATIONS(entity)
    RETURN direct UNION UNION_OVER(
      r IN direct,
      EXPAND_RELATIONS(r.object, next_visited, depth+1, max_depth)
    )
  INVARIANT: provenance propagates through every inferred path.
  INVARIANT: inferred confidence cannot exceed the weakest required premise without calibrated justification.
  INVARIANT: terminate traversal on visited nodes or depth bound.

12. CONFIDENCE
  CONFIDENCE(assertion) := CALIBRATED_EVIDENCE_SCORE(assertion.evidence)
  DEFAULT_UNKNOWN_CONFIDENCE := null
  EVIDENCE_PRIORITY := direct_structural_measurement > curated_experimental_annotation > computational_prediction > unsupported_claim
  CONFLICT_POLICY := retain conflicting evidence; flag for review; do not silently overwrite.
  NOTE Evidence priority is contextual, not a universal numerical formula.

13. SEMANTIC_EQUIVALENCE
  CANONICAL_LABEL := "glycoprotein"
  LEXICAL_ALIASES := {"glycosylated protein"}
  RULE GP_013:
    IF exact_same_biological_entity(a,b) AND compatible_structural_identity(a,b)
    THEN SEMANTIC_EQUIVALENT_TO(a,b).
  RULE GP_014:
    IF merely_similar_names(a,b) THEN DO_NOT_INFER_IDENTITY(a,b).
  DISTINGUISH := {glycoprotein, glycolipid, proteoglycan, free_glycan, glycopeptide}

14. FLOW_HASH
  HASH_INPUT := canonicalise({flow_name, version, entity_schema, relation_schema, rules, constraints})
  FLOW_HASH := SHA256(UTF8(HASH_INPUT))
  REQUIRE deterministic key ordering and stable Unicode normalisation.
  NOTE Runtime computes hash; no fabricated hash value is supplied.

15. UPDATE_MODEL
  UPDATE_MODEL(event):
    VALIDATE(event.schema)
    RETAIN(previous_version)
    APPLY(event) WITH provenance
    RECOMPUTE(affected_inferences)
    INVALIDATE(stale_derived_assertions)
    RECOMPUTE(FLOW_HASH)
    EMIT(versioned_change_record)
  CONFLICT_RESOLUTION := evidence_based_review
  AUDIT := {timestamp, changed_entity, old_value, new_value, source, reviewer}

16. AI_CONSUMPTION
  AI_CONSUMPTION:
    format := typed_entity_relation_rule_graph
    machine_readable := true
    provenance_required := true
    unknown_values := explicit_null
    uncertainty_preserved := true
    inference_mode := bounded_recursive
    outputs := {classified_entities, verified_relationships, inferred_relationships, evidence_traces, conflicts}
    prohibit := {fabricated_experimental_results, unverified_site_assertions, false_equivalence}

17. EXAMPLE INFERENCE (ILLUSTRATIVE ONLY)
  INPUT:
    Protein(P1)
    Glycan(G1)
    COVALENTLY_ATTACHED(G1,P1)
    ATTACHED_AT(G1,Site(S1))
  APPLY: GP_001, GP_010, GP_011
  OUTPUT:
    Glycoprotein(P1)
    HAS_GLYCAN(P1,G1)
    GLYCOSYLATED_SITE(P1,S1)
  STATUS: hypothetical example; not a claim about an identified protein.

18. VALIDATION CHECKLIST
  [ ] Protein and glycan identifiers resolve.
  [ ] Covalent linkage evidence or inference status is explicit.
  [ ] Site numbering uses a specified reference sequence.
  [ ] N-linked, O-linked, and other modifications are not conflated.
  [ ] Glycan composition is not mistaken for full topology.
  [ ] Provenance and confidence are retained.
  [ ] Recursion terminates.
  [ ] Version changes update affected inferences.
  [ ] FLOW_HASH can be deterministically computed.

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