Expand description
ChEBI in-memory chemical knowledge queries (AST-05). ChEBI chemical knowledge queries over an imported Quin slice (AST-05).
Bounded, in-memory APIs over caller-supplied &[NQuin] (and optional
ChebiRecord index). Encoding must
match crate::q42::chebi_map (subjects = q_hash(accession), predicates
chebi:accession / hasName / hasParent / fromRelease).
No network. No Host/Vibe invoke IDs. Empty / ambiguous / limit paths fail
closed with QueryError.
Structs§
- Chemical
Hit - One bounded chemical resolve / index hit (compact + cold licence note).
- Evidence
Hit - Provenance row from
chebi:fromRelease. - Query
Limits - Caller ceilings for multi-hit and subgraph operations.
- Relation
Hit - Parent / child edge discovered from
chebi:hasParentQuins. - Release
Description - Cold summary of one release / imported asset slice.
Enums§
- Query
Error - Typed query failures — empty / ambiguous / limit paths never succeed quietly.
- Uncertainty
- Evidence certainty attached to every hit.
Functions§
- describe_
release - Describe one release / asset slice: counts + licence obligation stub.
- export_
subgraph_ into - Export Quins for the seed compound and related compounds within
max_depth. - format_
chebi_ accession - Format
CHEBI:{id}into a caller stack buffer; returns the UTF-8 prefix used. - lookup_
children_ into - Look up children that declare
chebi:hasParentpointing atparent_accession. - lookup_
evidence_ into - Look up
chebi:fromReleaseprovenance for an accession. - lookup_
parents_ into - Look up parent edges (
chebi:hasParent) for a child accession. - normalize_
accession_ query - Normalize a resolve query to a canonical
CHEBI:{id}accession string. - resolve_
chemical_ into - Resolve a chemical by accession (
CHEBI:{id}) or bare numeric id intoout.