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 slug | Approximate count | Identifier format | Example ID | Upstream source |
|---|---|---|---|---|
| protein | 575,503 | UniProt accession | P38398 | UniProtKB / Swiss-Prot |
| trial | 589,453 | NCT identifier | NCT00001496 | ClinicalTrials.gov |
| disease | 139,194 | Mondo ID with underscore | MONDO_0016419 | Mondo Disease Ontology |
| gene | 566,984 | Official gene symbol | BRCA1 | UniProt / ClinVar |
| go | 28,507 | Gene Ontology ID | GO:0006281 | Gene Ontology Consortium |
Browse layer endpoints (https://lmmol.com)
| Path pattern | HTTP verb | Response fields | Description |
|---|---|---|---|
| /llms.txt | GET | text/plain | Self-contained machine guide for LLM agents |
| /index.json | GET | entity types, counts, listing paths | Root index of the knowledge graph |
| /index/list/TYPE/root.json | GET | count, shards | Sharding manifest for an entity type |
| /index/list/TYPE/N.json | GET | [{id, name}, ...] | Shard N with up to 1000 entity summaries |
| /nodes/TYPE/ID.json | GET | id, type, name, search_text, synonyms, native_xrefs, outbound_source_links, attributes, normalized, edges | Full entity node and its forward edges |
| /index/disease/MONDO_ID.json | GET | proteins, trials | Backlinks from a disease to its proteins and clinical trials |
| /index/gene/SYMBOL.json | GET | proteins | Backlinks from a gene symbol to its proteins |
| /index/clinvar/gene/SYMBOL.json | GET | diseases: [{id, name, significance}] | ClinVar variant-backed disease associations for a gene |
| /index/clinvar/disease/MONDO_ID.json | GET | genes: [{symbol, significance}] | ClinVar variant-backed gene associations for a disease |
Node object schema
| Field | Type | Description |
|---|---|---|
| id | string | Stable entity identifier (UniProt accession, NCT ID, MONDO_ID, gene symbol, or GO ID) |
| type | string | Entity type: protein, trial, disease, gene, or go |
| name | string | Primary human-readable name or study title |
| search_text | string | Concatenated descriptive text indexed for semantic vector search |
| synonyms | array of string | Alternative names, aliases, or gene symbols |
| native_xrefs | array of object | Cross-references from the upstream source record |
| outbound_source_links | array of string | Direct HTTPS URLs to the authoritative upstream database records |
| attributes | object | Type-specific key-value properties such as organism, phase, overall_status, or last_update_year |
| normalized | boolean | True when a disease node resolves to a canonical MONDO_* identifier |
| edges | array of object | Forward directional links with relation, source ({type, id}), and target ({type, id}) |
Edge relations
| Relation name | Source type | Target type | Meaning |
|---|---|---|---|
| protein_disease | protein | disease | Protein is associated with the target Mondo disease |
| protein_has_gene | protein | gene | Protein is encoded by the target gene symbol |
| protein_annotated_with_go | protein | go | Protein is annotated with the target Gene Ontology term |
| protein_references_paper | protein | publication | Protein record cites the target literature reference |
| trial_disease | trial | disease | Clinical trial studies the target Mondo disease condition |
| trial_references_paper | trial | publication | Clinical trial cites the target literature reference |
Semantic search API and filters
| Field or filter | Location | Type / example | Description |
|---|---|---|---|
| queryVector | POST body | array of 384 floats | Required L2-normalized mean-pooled embedding from all-MiniLM-L6-v2 |
| topK | POST body | integer (e.g. 10) | Maximum number of ranked hits to return |
| indexes | POST body | ["proteins", "trials"] | Target vector indexes to search |
| filters.proteins.organism | POST body | string (e.g. "9606") | Filter proteins by NCBI taxonomy ID (9606 is human) |
| filters.proteins.has_disease_link | POST body | boolean (true) | Restrict to proteins that have at least one disease edge |
| filters.trials.phase | POST body | string (e.g. "Phase 3") | Filter clinical trials by study phase |
| filters.trials.overall_status | POST body | string (e.g. "Recruiting") | Filter clinical trials by recruitment status |
| filters.trials.last_update_year | POST body | integer (e.g. 2024) | Filter clinical trials by year of last update |
Query embedding configuration
| Parameter | Required value |
|---|---|
| Model | Xenova/all-MiniLM-L6-v2 (or sentence-transformers/all-MiniLM-L6-v2) |
| Revision | 751bff37182d3f1213fa05d7196b954e230abad9 |
| Pooling | mean |
| Normalize | true |
| Vector dimension | 384 |
HTTP status codes and curl exit codes
| Code | Layer | Meaning |
|---|---|---|
| 200 | HTTP browse / search | Request succeeded and returned valid JSON |
| 404 | HTTP browse | Requested entity ID, shard number, or backlink entry does not exist |
| 0 | curl / mdbook CLI | Command completed successfully |
| 22 | curl -f / --fail | Server returned an HTTP error response (4xx or 5xx) |