lmmol reference

Reference tables for lmmol entity types, static browse URLs, node and edge fields, semantic search parameters, embedding specifications, and HTTP status codes.

Entity types and identifiers

Type slugApproximate countIdentifier formatExample IDUpstream source
protein575,503UniProt accessionP38398UniProtKB / Swiss-Prot
trial589,453NCT identifierNCT00001496ClinicalTrials.gov
disease139,194Mondo ID with underscoreMONDO_0016419Mondo Disease Ontology
gene566,984Official gene symbolBRCA1UniProt / ClinVar
go28,507Gene Ontology IDGO:0006281Gene Ontology Consortium

Browse layer endpoints (https://lmmol.com)

Path patternHTTP verbResponse fieldsDescription
/llms.txtGETtext/plainSelf-contained machine guide for LLM agents
/index.jsonGETentity types, counts, listing pathsRoot index of the knowledge graph
/index/list/TYPE/root.jsonGETcount, shardsSharding manifest for an entity type
/index/list/TYPE/N.jsonGET[{id, name}, ...]Shard N with up to 1000 entity summaries
/nodes/TYPE/ID.jsonGETid, type, name, search_text, synonyms, native_xrefs, outbound_source_links, attributes, normalized, edgesFull entity node and its forward edges
/index/disease/MONDO_ID.jsonGETproteins, trialsBacklinks from a disease to its proteins and clinical trials
/index/gene/SYMBOL.jsonGETproteinsBacklinks from a gene symbol to its proteins
/index/clinvar/gene/SYMBOL.jsonGETdiseases: [{id, name, significance}]ClinVar variant-backed disease associations for a gene
/index/clinvar/disease/MONDO_ID.jsonGETgenes: [{symbol, significance}]ClinVar variant-backed gene associations for a disease

Node object schema

FieldTypeDescription
idstringStable entity identifier (UniProt accession, NCT ID, MONDO_ID, gene symbol, or GO ID)
typestringEntity type: protein, trial, disease, gene, or go
namestringPrimary human-readable name or study title
search_textstringConcatenated descriptive text indexed for semantic vector search
synonymsarray of stringAlternative names, aliases, or gene symbols
native_xrefsarray of objectCross-references from the upstream source record
outbound_source_linksarray of stringDirect HTTPS URLs to the authoritative upstream database records
attributesobjectType-specific key-value properties such as organism, phase, overall_status, or last_update_year
normalizedbooleanTrue when a disease node resolves to a canonical MONDO_* identifier
edgesarray of objectForward directional links with relation, source ({type, id}), and target ({type, id})

Edge relations

Relation nameSource typeTarget typeMeaning
protein_diseaseproteindiseaseProtein is associated with the target Mondo disease
protein_has_geneproteingeneProtein is encoded by the target gene symbol
protein_annotated_with_goproteingoProtein is annotated with the target Gene Ontology term
protein_references_paperproteinpublicationProtein record cites the target literature reference
trial_diseasetrialdiseaseClinical trial studies the target Mondo disease condition
trial_references_papertrialpublicationClinical trial cites the target literature reference

Semantic search API and filters

Field or filterLocationType / exampleDescription
queryVectorPOST bodyarray of 384 floatsRequired L2-normalized mean-pooled embedding from all-MiniLM-L6-v2
topKPOST bodyinteger (e.g. 10)Maximum number of ranked hits to return
indexesPOST body["proteins", "trials"]Target vector indexes to search
filters.proteins.organismPOST bodystring (e.g. "9606")Filter proteins by NCBI taxonomy ID (9606 is human)
filters.proteins.has_disease_linkPOST bodyboolean (true)Restrict to proteins that have at least one disease edge
filters.trials.phasePOST bodystring (e.g. "Phase 3")Filter clinical trials by study phase
filters.trials.overall_statusPOST bodystring (e.g. "Recruiting")Filter clinical trials by recruitment status
filters.trials.last_update_yearPOST bodyinteger (e.g. 2024)Filter clinical trials by year of last update

Query embedding configuration

ParameterRequired value
ModelXenova/all-MiniLM-L6-v2 (or sentence-transformers/all-MiniLM-L6-v2)
Revision751bff37182d3f1213fa05d7196b954e230abad9
Poolingmean
Normalizetrue
Vector dimension384

HTTP status codes and curl exit codes

CodeLayerMeaning
200HTTP browse / searchRequest succeeded and returned valid JSON
404HTTP browseRequested entity ID, shard number, or backlink entry does not exist
0curl / mdbook CLICommand completed successfully
22curl -f / --failServer returned an HTTP error response (4xx or 5xx)