> For the complete documentation index, see [llms.txt](https://docs.mithrl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mithrl.com/knowledge-graph/public-kg-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.mithrl.com/~gitbook/mcp).

# Mithrl-1 API (GraphQL)

The public knowledge-graph read API. Read-only by construction — there is no `Mutation` and no `Subscription` — and every `Edge` it returns carries its provenance. This API returns data and evidence only; scoring, ranking, and analysis live in the workflow tier.

The page and batch ceilings quoted in the argument descriptions below are the platform **defaults**. A deployment may configure them lower, and the two kinds of ceiling surface differently: a page request above the effective page ceiling is clamped and succeeds (its connection fields describe whether data remains), while a batch input above the effective batch ceiling (such as an over-cap `subjects` list) is rejected with the effective limit reported in the `platform.invalid_input` error message — so treat a rejection's stated limit as authoritative over this reference.

For uploads, analysis runs, status monitoring, and artifact downloads, see [Running and managing Inference](https://docs.mithrl.com/guides/workflow-cli.md).

## Queries

### `node`

Single-node lookup by CURIE. Accepts either the canonical CURIE or any identifier the build merged into that entity and publishes on `Node.equivalentCuries` — both return the same node, whose `id` is always the canonical CURIE. Null means the CURIE is well-formed but absent from the active build (an unknown vocabulary is absence, not an error). A `curie` that is not shaped `prefix:local` — empty, whitespace-only, no colon, or an empty half — is rejected with `platform.invalid_input`, so a malformed request is never answered as absence. An alias that two different nodes both claim is also rejected with `platform.invalid_input`, naming the candidates rather than silently picking one.

Returns `Node`.

| Argument | Type  | Default | Description                                                                                      |
| -------- | ----- | ------- | ------------------------------------------------------------------------------------------------ |
| `curie`  | `ID!` | —       | CURIE of the node to fetch, e.g. `HGNC:1100`. Canonical or any of the node's `equivalentCuries`. |

### `neighbors`

Filtered 1-hop expansion around a node. Cursor-paginated — page with `first` and `after` to walk a hub node's complete neighbourhood, following `cursor` until it comes back null. `totalCount` on the first page reports the node's full matching degree, so you can tell how much is still unfetched.

Returns `EdgeConnection!`.

| Argument           | Type                 | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------ | -------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `curie`            | `ID!`                | —       | Canonical CURIE of the node to expand around.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `predicate`        | `Predicate`          | —       | Keep only edges with this relationship. Omit for every predicate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `direction`        | `Direction!`         | `BOTH`  | Which side of the edge the neighbour sits on, relative to `curie`. Defaults to both.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `neighborCategory` | `Category`           | —       | Keep only neighbours in this category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `qualifiers`       | `[QualifierFilter!]` | —       | Match on edge qualifiers, e.g. direction of effect. Distinct filters AND; a filter's own `anyOf` is an OR. Pushed down to the store, so unlike `source` below this does not affect `totalCount`/pagination correctness. Each `name` must be a key this build carries: read them from `schemaSummary.qualifiers`, since an unlisted key is rejected as `platform.invalid_input`.                                                                                                                                                            |
| `source`           | `String`             | —       | Keep only edges contributed by this knowledge source. Matched case-insensitively, so a source's branded spelling (`DoRothEA`, `OpenTargets`) selects the same edges as the form reported in `knowledgeSources`. Applied after retrieval, so a page can come back holding fewer edges than `first` — or none — while later pages still hold matches: follow `cursor` until it is null rather than stopping at the first short page. `totalCount` is not reported when this filter is in use, since the count is taken before it is applied. |
| `first`            | `Int!`               | `50`    | Maximum edges to return. Clamped to 100; asking for more succeeds with `truncated: true` rather than failing.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `after`            | `String`             | —       | The `cursor` from the previous page. Cursors are keyset-based and stable across calls, so paging a node's neighbourhood cannot drift, skip, or repeat an edge. Omit it for the first page.                                                                                                                                                                                                                                                                                                                                                 |
| `taxon`            | `ID`                 | —       | Keep only neighbours in this organism, as an NCBITaxon CURIE (e.g. `NCBITaxon:9606` for human). A neighbour claiming no organism is kept — chemicals, diseases and pathways claim none — so only one positively claiming a different organism is dropped. Pushed down to the store, so `totalCount` and pagination stay correct (unlike `source` above).                                                                                                                                                                                   |

### `edges`

Bulk 1-hop edges by relationship type, optionally anchored to a bounded list of subject and/or object CURIEs. Cursor-paginated — page with `first` and `after`.

Supply exactly one of `predicate` or `predicates`. `totalCount` is reported when `subjects` and/or `objects` anchor the scan, and null otherwise.

Returns `EdgeConnection!`.

| Argument          | Type                 | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------- | -------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `predicate`       | `Predicate`          | —       | One relationship to scan for. Supply this or `predicates`, never both and never neither — the field has no un-filtered form.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `predicates`      | `[Predicate!]`       | —       | Scan for any of these relationships in one call — the answer to "any therapeutic edge between these two nodes", which otherwise costs one call per relationship. Matched as an OR; every other filter still ANDs against it. At most 10 per call, and an over-cap, empty or duplicate-only list is rejected rather than truncated. Supply this or `predicate`, never both. `participates_in` names the same stored relationship as `has_participant` with the endpoints swapped, so a list pairing it with any other relationship cannot be combined with `subjects`, `objects`, `subjectCategory` or `objectCategory` — those constraints would have to describe both sides at once. That combination is rejected; issue the aliased relationship as its own call. |
| `subjectCategory` | `Category`           | —       | Keep only edges whose subject is in this category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `objectCategory`  | `Category`           | —       | Keep only edges whose object is in this category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `source`          | `String`             | —       | Keep only edges contributed by this knowledge source. A single source, not a list. Matched case-insensitively, so a source's branded spelling (`DoRothEA`, `OpenTargets`) selects the same edges as the form reported in `knowledgeSources`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `qualifiers`      | `[QualifierFilter!]` | —       | Match on edge qualifiers, e.g. direction of effect. The only structured edge filter. Distinct filters AND; a filter's own `anyOf` is an OR. Pushed down to the store, so it composes correctly with pagination, and it narrows `totalCount` on an anchored scan the same way every other filter here does. Each `name` must be a key this build carries: read them from `schemaSummary.qualifiers`, since an unlisted key is rejected as `platform.invalid_input`.                                                                                                                                                                                                                                                                                                  |
| `qualifier`       | `QualifierFilter`    | —       | Deprecated singular predecessor of `qualifiers`. Still pushed down to the store (treated as `qualifiers: [qualifier]` when `qualifiers` is not also supplied), so it composes correctly with pagination, same as `qualifiers` does. **Deprecated:** Use `qualifiers` instead — it accepts a list, so several filters can AND together. Kept for the overlap window; removed no earlier than the next major version.                                                                                                                                                                                                                                                                                                                                                 |
| `subjects`        | `[ID!]`              | —       | Anchor the scan to edges whose subject is one of these CURIEs — the bulk, paginated replacement for predicate-filtered outgoing scans over them; not a general substitute for `neighbors`, whose `predicate` is optional and whose `direction` defaults to both, since a relationship filter is required here and only the edge subject is anchored. Duplicates and blanks are dropped first; the subject cap of 100 applies to what remains, and an over-cap or all-blank list is rejected rather than truncated. Omit the argument entirely for an un-anchored whole-network scan; an empty list is a contract error, not a widening.                                                                                                                             |
| `objects`         | `[ID!]`              | —       | Anchor the scan to edges whose object is one of these CURIEs — the mirror of `subjects`, and the one that reaches relations the graph stores object-first, such as `gene_associated_with_condition` or `has_participant`. Same rules as `subjects`: duplicates and blanks are dropped first, the object cap of 100 applies to what remains, and an over-cap or all-blank list is rejected rather than truncated. Supplying this **with** `subjects` narrows to edges running from one of those subjects to one of these objects — an AND, not a union. For edges touching either set, issue two calls.                                                                                                                                                              |
| `first`           | `Int!`               | `100`   | Maximum edges per page. Clamped to 100; asking for more succeeds with `truncated: true` rather than failing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `after`           | `String`             | —       | The `cursor` from the previous page. Cursors are keyset-based and stable across calls, so a paged scan cannot drift or repeat rows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

### `resolve`

Batch entity resolution. Map names/CURIEs to canonical Nodes, ranked by match quality. Handles gene symbols, aliases and dbSNP rsIDs alike: a caller working from the gold Parquet files directly should call this instead of hand-joining `nodes.parquet` on `name`/`synonyms`, since it already covers the alias and rsID cases such a join would otherwise miss.

Returns `[Node!]!`.

| Argument    | Type         | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ----------- | ------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `names`     | `[String!]!` | —       | Names or CURIEs to resolve. Blank entries are dropped first; the cap of 100 applies to what remains, and an over-cap batch is rejected rather than truncated — so no name you supplied is silently left unconsidered.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `category`  | `Category`   | —       | Only consider candidates in this category. When it is omitted (the default), `resolve` matches across every category and returns whatever the name matches, with nothing in the ranking marking where the entity type changes: on dev's `v1-20260909-0cc51a-academic` build, `resolve(names: ["TP53"])` returns three Gene rows and two Protein rows (`UniProtKB:P04637`, `UniProtKB:P02340`). Read each row's `category` rather than assuming the one you had in mind. This is not a filter applied to a fixed result set — it changes which rows come back, because `limitEach` bounds the page per input name across all categories at once. Rows of another category therefore displace rows of the one you wanted: the same query with `category: Gene` returns five Gene rows, two of which (`NCBIGene:9540`, `NCBIGene:7158`) the uncategorised call had no room for. Pass `category` whenever you know the entity type you are after, and especially when something downstream takes a single row as the answer — uncategorised, that row is drawn from a page where a different entity type can outrank the one you want. |
| `limitEach` | `Int!`       | `5`     | Maximum candidates returned per input name, best match first. Clamped to 10.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `taxon`     | `ID`         | —       | Restrict to one organism, as an NCBITaxon CURIE (e.g. `NCBITaxon:9606` for human). Nodes that claim no organism are kept — a disease, a chemical or a pathway has none — so only a node positively claiming a DIFFERENT organism is excluded. Applied before `limitEach` cuts each name's list, so a correct human match cannot be lost to the cut.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

### `variantsInRegion`

SequenceVariant nodes whose GRCh38 span overlaps `[start, end]`: a genomic coordinate range lookup, the positional counterpart to `resolve`'s symbol lookup. Results are keyset-paginated; pass the returned cursor as `after` to continue. Requires a build with the variant position index; older builds report the operation as unsupported.

Returns `VariantConnection!`.

| Argument | Type      | Default | Description                                                                                                                                                                                                                  |
| -------- | --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chrom`  | `String!` | —       | The chromosome name (e.g. `"7"`, `"X"`). A leading `"chr"`, in any case, is stripped before matching, so `"chr7"` and `"7"` are equivalent.                                                                                  |
| `start`  | `Int!`    | —       | 1-based, inclusive window start. Must be >= 1; a smaller value is rejected with `platform.invalid_input`.                                                                                                                    |
| `end`    | `Int!`    | —       | 1-based, inclusive window end. Must be >= `start`, and the window width (`end - start + 1`) must not exceed 2,000,000 base pairs; either violation is rejected with `platform.invalid_input` rather than silently corrected. |
| `first`  | `Int!`    | `50`    | Maximum variants to return. Clamped to 100; asking for more succeeds at that page size rather than failing.                                                                                                                  |
| `after`  | `String`  | —       | Opaque cursor returned by the previous page for this same region.                                                                                                                                                            |

### `membership`

Bulk term membership — gene→terms or term→members — for a set of genes, a single term, or a set of terms.

Returns `[MembershipSet!]!`.

| Argument         | Type         | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------- | ------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `predicate`      | `Predicate!` | —       | The membership relationship to query. Three families are backed by an aggregate: pathway membership (`participates_in`, `has_participant`), disease association (`gene_associated_with_condition`) and class membership (`has_member`, `member_of` — pharmacologic and ontology classes, the MED-RT/ATC drug-class families among them). Any other member of this enum is rejected with `platform.invalid_input`, `regulates` included: it is accepted by `enrichment` but not here, because a regulator is not a term its targets belong to. `schemaSummary.opPredicates` returns this same list under `membership`. Where a family names two predicates they are equivalent here: they are inverses, the graph stores both orientations, and this aggregate always answers over their union. Membership is therefore a claim about the relation, not about which way a given source wrote the triple — a gene is reported as belonging to a pathway whether the stored edge runs gene→pathway or pathway→gene. |
| `genes`          | `[ID!]`      | —       | Entity CURIEs to look up membership *for*, populating `terms` on each result. Duplicates and blanks are dropped first; the cap of 100 applies to what remains, and an over-cap batch is rejected rather than truncated. Supply this or `term`, not both.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `term`           | `ID`         | —       | A single term CURIE to look up the *members of*, populating `members`. Supply exactly one of `genes`, `term` and `terms`. Prefer `terms` for more than one term: it is the same answer in one call.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `terms`          | `[ID!]`      | —       | Term CURIEs to look up the *members of*, one result per term, populating `members` on each — `term` batched. Duplicates and blanks are dropped first; at most 100 terms per call, and an over-cap batch is rejected rather than truncated. Use this instead of one call per term. Everything is still per set: `memberCount`, `truncated` and `memberOffset` are each that term's own, and a term nothing asserts membership in comes back as an empty set rather than being dropped, so a result can always be joined back to its request by value.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `memberLimit`    | `Int`        | —       | Maximum members returned per set. Clamped to 200; omitted means that same ceiling. A set with more reports `truncated: true` and its true size in `memberCount` — continue with `memberOffset`, do not re-issue with a larger `memberLimit`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `memberOffset`   | `Int!`       | `0`     | Skip this many members of every set, in CURIE order, before returning `memberLimit` of them. Successive offsets partition a set with no overlap and no gaps; `memberOffset` on the result echoes the window that was served. An offset past a set's size returns that set with an empty list and its true `memberCount`, which is how the walk ends.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `includeSources` | `Boolean!`   | `False` | Ask for per-member attribution: `knowledgeSources` and `memberSources` on each result, instead of null. Off by default because it costs the aggregate its fast path. Pass it whenever the answer will be attributed to anyone — a term's own vocabulary is NOT the source of its membership. Sources republish one another's term identifiers, so a `REACT:` pathway's members can be, and often are, asserted by `ctd` or `ensembl` and never by Reactome.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

### `paths`

Connecting paths between two nodes, constrained by a predicate whitelist and a hop bound (<= 5). A path asserts connection, and the returned routes are a bounded selection of the connecting set: select `pathsMeta` with the same arguments to learn whether the set was cut and which selection chose what came back.

There is no qualifier or direction filter here. Filtering routes by mechanism, meaning by a direction of effect, an aspect, or a polarity composed along the route, is what `signedExpansion` answers: its hops carry `reachedCategory`, `aspects` and `polarity` for exactly that. Narrow a `paths` query with `predicateWhitelist`, `taxon` and `interiorCategories`, and read each hop's `qualifiers` to judge mechanism after the fact.

The returned routes are chosen, then cut to `first`. Two routes are one answer when they reach the same nodes through an identity restatement (`exactMatch` / `sameAs` / `closeMatch`) AND assert the same other relationships; the variant that is dropped stays reachable via `neighbors` and `queryEdges` under the identity closure, and via `explainEdge`. Routes that pass through a restatement to assert DIFFERENT things are different answers and all come back. What survives is then taken round-robin over predicate signatures, so one signature cannot spend the whole of `first` while the rest of the connecting set goes unseen. With a single signature present it still takes every slot. The spread follows whichever order `pathsMeta.ranking` reports: under `SHORTEST_FIRST` it runs one hop length at a time, so a longer route never displaces a shorter one that was left out, and under `DEGREE_RANKED` it runs in specificity order, where a longer route through selective nodes is meant to come ahead of a shorter one through a hub.

A smaller `first` returns a subset of a larger one's routes in the same order, not a prefix of them: the spread reaches further into each signature as the budget grows. Repeating a query returns the same routes.

Returns `[Path!]!`.

| Argument                | Type           | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------- | -------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source`                | `ID!`          | —       | CURIE to start from. The traversal is UNDIRECTED: a route may use any edge in either orientation, so `source` and `target` name the two endpoints rather than a direction of travel. Each returned hop still reports its own true subject, predicate and object, so orientation is readable per hop. A well-formed endpoint CURIE the active build does not hold is refused with `platform.not_found`, rather than answered with an empty list. This differs from `node(curie:)`, which returns null for an absent CURIE: `paths` cannot distinguish "no route" from "no such node" in its result type, so it reports the missing endpoint instead of letting an empty list stand for both.                                                                                                                                                                                                                                                                                                                                                                                       |
| `target`                | `ID!`          | —       | CURIE to reach. Swapping it with `source` returns the same routes written the other way round; it will not find routes an empty result missed. If a query returns nothing, widen `maxHops`, drop `predicateWhitelist` / `interiorCategories` / `taxon`, or set `includeStructural: true`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `predicateWhitelist`    | `[Predicate!]` | —       | Only traverse these relationships. Strongly recommended: without it, paths are merely connected rather than mechanistically meaningful. A whitelist under which no route connects the endpoints returns the empty list, not an error: restricting traversal to relationships that happen to connect nothing is a well-formed question with an empty answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `maxHops`               | `Int!`         | `2`     | Maximum path length. Must be 5 or fewer; a larger value is rejected. Depth 5 is served only by builds carrying the integer-id artifacts; other builds refuse it with `platform.not_available_on_build`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `first`                 | `Int!`         | `100`   | Maximum paths to return. Clamped to 1000 — above the page ceiling, because a path is a whole route and enumeration cost is flat in this limit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `includeEvidence`       | `Boolean!`     | `True`  | Attach per-hop provenance (knowledge sources and publications). Default true. Set false for broad enumeration: a screening result's evidence belongs to the shortlisted paths (read it per hop via explainEdge), and each hop's shown edge is one representative of possibly several parallel assertions. Edges then carry empty provenance lists. This flag does not govern sign. Every hop Edge carries `qualifiers`, `qualifiedPredicate`, `signAmbiguous` and `signUnverified` whatever it is set to. What `paths` lacks is a sign composed along the whole route and any qualifier or direction-of-effect filter; `signedExpansion` is the verb for those. Deprecated in favour of `evidence`, which says the same thing in three states instead of two. `evidence` supersedes this flag whenever both are present. **Deprecated:** Use `evidence`. `includeEvidence: true` is `evidence: FULL`, `false` is `evidence: NONE`.                                                                                                                                                |
| `taxon`                 | `ID`           | —       | Restrict to one organism, as an NCBITaxon CURIE (e.g. `NCBITaxon:9606` for human). Nodes that claim no organism are kept — a disease, a chemical or a pathway has none — so only a node positively claiming a DIFFERENT organism is excluded. It constrains EVERY node on the route, not just the endpoints, so a route reported for one organism cannot run through another one's node. An endpoint claiming a different organism is rejected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `includeStructural`     | `Boolean!`     | `False` | When false (the default), path interiors exclude organism-taxon, clinical-trial and study nodes, and hops over `in_taxon` and `chemically_similar_to` are not walked: these connect almost everything to everything and carry no mechanism. Set true to include them. The two endpoints are never excluded, so a taxon or trial named as an endpoint still gets its routes; a direct `in_taxon` edge between the endpoints is still withheld by default, since the predicate rule applies to every hop. The default also drops a route that reaches an interior node over `close_match`: such a hop restates the node before it rather than stepping to a new one. `exact_match` and `same_as` stay walkable (they join two CURIEs for one entity, so the route may be the only way to a claim). A direct `close_match` edge between the two endpoints is kept, and a pair carrying `close_match` alongside another predicate keeps its route and is shown with the other predicate. A `predicateWhitelist` replaces the predicate rules (it already names every hop you accept). |
| `interiorCategories`    | `[Category!]`  | —       | Restrict the route's INTERIOR to these categories. An interior node is admitted when ANY of the categories it carries is in this set, matched against the node's full category list rather than against one primary category, so a node typed as several things is admitted on any one of them. The two endpoints are exempt, so a source or target of any category still gets its routes, and a 1-hop route has no interior to constrain. Applied inside the traversal rather than to the finished list, so the route budget is spent on routes that satisfy it: a pair the constrained graph connects is reported as connected, not as unconnected. An omitted or empty list narrows nothing. Use it to keep a route on the entity types a mechanism runs through, such as genes, proteins and pathways, instead of through a publication or an anatomical grouping.                                                                                                                                                                                                            |
| `maxIntermediateDegree` | `Int`          | —       | Refuse any route whose INTERIOR passes through a node with more than this many distinct undirected neighbours. The two endpoints are exempt, so a hub named as `source` or `target` still gets its routes, and a 1-hop route has no interior to constrain. This is the same degree the specificity ranking weights by, so it is the same number a low `pdp` reflects: a CTD chemical hub such as `CHEBI:15377` carries about 59,000 neighbours where a Reactome reaction carries single digits. Omitted means no ceiling. Applied inside the traversal rather than to the finished list, so the route budget is spent on routes that satisfy it. Served only by builds carrying the integer-id artifacts; others refuse it with `platform.not_available_on_build`. Combining it with `taxon` additionally needs the build's in-memory organism column, and a build without that column refuses the pair with the same code: ask for one or the other.                                                                                                                             |
| `evidence`              | `PathEvidence` | —       | How much provenance each hop carries: `NONE`, `TIER` or `FULL`. The routes returned are the same whichever is chosen. Omitted, `includeEvidence` decides, `true` reading as `FULL` and `false` as `NONE`; supplied, this wins and `includeEvidence` is ignored. `TIER` is the middle state `includeEvidence` cannot express: how each hop is known, without paying to read its citations, which is most of the cost of an evidence-bearing query.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

### `pathsMeta`

How much of the connecting set a `paths` query covered, and which selection chose the routes it returned. Takes the arguments `paths` takes; select the pair in one document with the same arguments and one traversal runs, described by `pathsMeta` and enumerated by `paths`. That pair costs 400: one traversal, two charges, because each field carries the full `paths` weight of 200 on its own. Selected alone it runs the traversal and returns the description without the routes.

Returns `PathsMeta!`.

| Argument                | Type           | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------- | -------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source`                | `ID!`          | —       | CURIE to start from. The traversal is UNDIRECTED: a route may use any edge in either orientation, so `source` and `target` name the two endpoints rather than a direction of travel. Each returned hop still reports its own true subject, predicate and object, so orientation is readable per hop. A well-formed endpoint CURIE the active build does not hold is refused with `platform.not_found`, rather than answered with an empty list. This differs from `node(curie:)`, which returns null for an absent CURIE: `paths` cannot distinguish "no route" from "no such node" in its result type, so it reports the missing endpoint instead of letting an empty list stand for both.                                                                                                                                                                                                                                                                                                                                                                                       |
| `target`                | `ID!`          | —       | CURIE to reach. Swapping it with `source` returns the same routes written the other way round; it will not find routes an empty result missed. If a query returns nothing, widen `maxHops`, drop `predicateWhitelist` / `interiorCategories` / `taxon`, or set `includeStructural: true`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `predicateWhitelist`    | `[Predicate!]` | —       | Only traverse these relationships. Strongly recommended: without it, paths are merely connected rather than mechanistically meaningful. A whitelist under which no route connects the endpoints returns the empty list, not an error: restricting traversal to relationships that happen to connect nothing is a well-formed question with an empty answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `maxHops`               | `Int!`         | `2`     | Maximum path length. Must be 5 or fewer; a larger value is rejected. Depth 5 is served only by builds carrying the integer-id artifacts; other builds refuse it with `platform.not_available_on_build`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `first`                 | `Int!`         | `100`   | Maximum paths to return. Clamped to 1000 — above the page ceiling, because a path is a whole route and enumeration cost is flat in this limit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `includeEvidence`       | `Boolean!`     | `True`  | Attach per-hop provenance (knowledge sources and publications). Default true. Set false for broad enumeration: a screening result's evidence belongs to the shortlisted paths (read it per hop via explainEdge), and each hop's shown edge is one representative of possibly several parallel assertions. Edges then carry empty provenance lists. This flag does not govern sign. Every hop Edge carries `qualifiers`, `qualifiedPredicate`, `signAmbiguous` and `signUnverified` whatever it is set to. What `paths` lacks is a sign composed along the whole route and any qualifier or direction-of-effect filter; `signedExpansion` is the verb for those. Deprecated in favour of `evidence`, which says the same thing in three states instead of two. `evidence` supersedes this flag whenever both are present. **Deprecated:** Use `evidence`. `includeEvidence: true` is `evidence: FULL`, `false` is `evidence: NONE`.                                                                                                                                                |
| `taxon`                 | `ID`           | —       | Restrict to one organism, as an NCBITaxon CURIE (e.g. `NCBITaxon:9606` for human). Nodes that claim no organism are kept — a disease, a chemical or a pathway has none — so only a node positively claiming a DIFFERENT organism is excluded. It constrains EVERY node on the route, not just the endpoints, so a route reported for one organism cannot run through another one's node. An endpoint claiming a different organism is rejected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `includeStructural`     | `Boolean!`     | `False` | When false (the default), path interiors exclude organism-taxon, clinical-trial and study nodes, and hops over `in_taxon` and `chemically_similar_to` are not walked: these connect almost everything to everything and carry no mechanism. Set true to include them. The two endpoints are never excluded, so a taxon or trial named as an endpoint still gets its routes; a direct `in_taxon` edge between the endpoints is still withheld by default, since the predicate rule applies to every hop. The default also drops a route that reaches an interior node over `close_match`: such a hop restates the node before it rather than stepping to a new one. `exact_match` and `same_as` stay walkable (they join two CURIEs for one entity, so the route may be the only way to a claim). A direct `close_match` edge between the two endpoints is kept, and a pair carrying `close_match` alongside another predicate keeps its route and is shown with the other predicate. A `predicateWhitelist` replaces the predicate rules (it already names every hop you accept). |
| `interiorCategories`    | `[Category!]`  | —       | Restrict the route's INTERIOR to these categories. An interior node is admitted when ANY of the categories it carries is in this set, matched against the node's full category list rather than against one primary category, so a node typed as several things is admitted on any one of them. The two endpoints are exempt, so a source or target of any category still gets its routes, and a 1-hop route has no interior to constrain. Applied inside the traversal rather than to the finished list, so the route budget is spent on routes that satisfy it: a pair the constrained graph connects is reported as connected, not as unconnected. An omitted or empty list narrows nothing. Use it to keep a route on the entity types a mechanism runs through, such as genes, proteins and pathways, instead of through a publication or an anatomical grouping.                                                                                                                                                                                                            |
| `maxIntermediateDegree` | `Int`          | —       | Refuse any route whose INTERIOR passes through a node with more than this many distinct undirected neighbours. The two endpoints are exempt, so a hub named as `source` or `target` still gets its routes, and a 1-hop route has no interior to constrain. This is the same degree the specificity ranking weights by, so it is the same number a low `pdp` reflects: a CTD chemical hub such as `CHEBI:15377` carries about 59,000 neighbours where a Reactome reaction carries single digits. Omitted means no ceiling. Applied inside the traversal rather than to the finished list, so the route budget is spent on routes that satisfy it. Served only by builds carrying the integer-id artifacts; others refuse it with `platform.not_available_on_build`. Combining it with `taxon` additionally needs the build's in-memory organism column, and a build without that column refuses the pair with the same code: ask for one or the other.                                                                                                                             |
| `evidence`              | `PathEvidence` | —       | How much provenance each hop carries: `NONE`, `TIER` or `FULL`. The routes returned are the same whichever is chosen. Omitted, `includeEvidence` decides, `true` reading as `FULL` and `false` as `NONE`; supplied, this wins and `includeEvidence` is ignored. `TIER` is the middle state `includeEvidence` cannot express: how each hop is known, without paying to read its citations, which is most of the cost of an evidence-bearing query.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

### `apiVersion`

The public KG API schema version (semver major.minor).

Returns `String!`.

### `search`

Free-text node search. Use `resolve` instead when you already have a list of names or CURIEs to map to canonical identities. Every result carries `matchType`, saying how it matched — check it before treating a hit as the entity you asked for, since a `SYNONYM` match can return a broader or narrower concept whose preferred name shares no words with the query.

Returns `[Node!]!`.

| Argument   | Type       | Default | Description                                                                                                                                                                                                                                                                                  |
| ---------- | ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`    | `String!`  | —       | Free-text search string. Matched against names and synonyms only — a genomic coordinate such as `chr12:56,700,000` is matched as literal text and returns nothing, because there is no coordinate-to-node lookup in this API. Resolve genes by symbol or CURIE and variants by rsID instead. |
| `category` | `Category` | —       | Restrict results to this category.                                                                                                                                                                                                                                                           |
| `first`    | `Int!`     | `20`    | Maximum nodes to return, best match first. Clamped to 100.                                                                                                                                                                                                                                   |

### `searchNodes`

Free-text node search with an organism filter, reporting what the filter removed. Same matching and same ranking as `search` — use this one whenever you care about species. The filter is applied in the graph store ahead of `first`, so the page holds `first` matches in your organism rather than the remainder of a mixed-species page, and `excludedByOrganism` tells you which species were dropped and how many matches each accounted for. Without `organism` this is `search` plus an envelope, and the exclusion fields are empty.

Returns `NodeSearchResult!`.

| Argument   | Type       | Default | Description                                                                                                                                                                                                                                                                                                                            |
| ---------- | ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`    | `String!`  | —       | Free-text search string. Matched against names and synonyms only — a genomic coordinate such as `chr12:56,700,000` is matched as literal text and returns nothing, because there is no coordinate-to-node lookup in this API. Resolve genes by symbol or CURIE and variants by rsID instead.                                           |
| `category` | `Category` | —       | Restrict results to this category.                                                                                                                                                                                                                                                                                                     |
| `first`    | `Int!`     | `20`    | Maximum nodes to return, best match first. Clamped to 100.                                                                                                                                                                                                                                                                             |
| `organism` | `ID`       | —       | Keep only entities in this organism, as an NCBITaxon CURIE (e.g. `NCBITaxon:9606` for human). An entity claiming no organism is kept — chemicals, diseases and pathways claim none — so only one positively claiming a different organism is dropped. Applied before `first`, and what it dropped is reported in `excludedByOrganism`. |

### `subgraph`

Induced neighbourhood around a seed set: the collected nodes plus every edge between them. `maxHops` must be <= 2. Expansion is undirected: a seed collects both its subjects and its objects at every hop. For directed expansion use `neighbors(direction:)`, or `signedExpansion` when you also need the resolved sign of each hop.

Returns `Subgraph!`.

| Argument     | Type           | Default | Description                                                                                                                                                                                                                                                                                                                              |
| ------------ | -------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `seeds`      | `[ID!]!`       | —       | CURIEs to build the neighbourhood around. Duplicates and blanks are dropped first; the cap of 25 applies to what remains, and an over-cap set is rejected rather than truncated. Capped well below other batch limits because every seed is its own traversal frontier.                                                                  |
| `maxHops`    | `Int!`         | `1`     | How far to expand from each seed. Must be 2 or fewer; a larger value is **rejected** rather than quietly reduced, so you never receive a smaller neighbourhood than you asked for.                                                                                                                                                       |
| `predicates` | `[Predicate!]` | —       | Only traverse these relationships. The same list bounds both the expansion and the edges returned, so a node is here only because a listed relationship reached it; omit it to traverse every relationship. Duplicates are dropped first; the cap of 10 applies to what remains, and an over-cap list is rejected rather than truncated. |
| `nodeLimit`  | `Int!`         | `60`    | Maximum nodes to collect. Clamped to 100, and reported via `truncatedNodes`. Edges are bounded separately — see `truncatedEdges`.                                                                                                                                                                                                        |

### `enrichment`

Hypergeometric over-representation of a gene set against pathway, disease, regulator or class terms. `pValue` is RAW — no multiple-testing correction is applied, because this list is truncated to `first` and an FDR over a truncated, sorted slice would be invalid. Apply correction yourself over the full test set.

**Deprecated:** Use `enrichmentReport`, which returns these same rows alongside the background size, the seed accounting, the tested-term count a correction needs and the seeds this build does not hold. A bare list carries none of them, so neither `foldEnrichment` nor `pValue` can be reproduced or corrected from it. Kept for the overlap window; removed no earlier than the next major version.

Returns `[EnrichmentResult!]!`.

| Argument    | Type         | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ----------- | ------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `genes`     | `[ID!]!`     | —       | The gene set to test for over-representation. Duplicates and blanks are dropped first (a repeated gene would inflate the hypergeometric overlap); the cap of 100 applies to what remains, and an over-cap set is rejected rather than truncated, since a silently truncated set would change the statistics. A set with nothing left after that drop — empty as supplied, or every entry blank — is rejected with `platform.invalid_input`, not answered with an empty result: there is no set to test, and an empty ranking would read as "nothing is enriched".                                                                                                                                                                                                                                                                                                                                                                                                  |
| `predicate` | `Predicate!` | —       | Which term family to test against. Four are backed by an aggregate: pathways (`participates_in`, `has_participant`), diseases (`gene_associated_with_condition`), regulators (`regulates`) and classes (`has_member`, `member_of` — pharmacologic and ontology class membership, the MED-RT/ATC drug-class families among them). Any other member of this enum is rejected with `platform.invalid_input`. `schemaSummary.opPredicates` returns this same list under `enrichment`. Where a family names two predicates they are inverses, the graph stores both orientations, and this aggregate tests against their union. The background set and every term size are computed over that union, so the p-values reflect all the evidence rather than whichever orientation a source happened to write. `regulates` is accepted here and rejected by `membership`: a regulator is not a term its targets belong to. Every other family here is available there too. |
| `first`     | `Int!`       | `20`    | Maximum terms to return, lowest p-value first. Clamped to 50. Note this truncation is why `pValue` is left uncorrected — see `EnrichmentResult`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

### `enrichmentReport`

Hypergeometric over-representation of a gene set against pathway, disease, regulator or class terms, with the background and seed accounting the p-values are conditioned on. `pValue` is RAW: correct it yourself over `testedCount`, which is the whole hypothesis family rather than the `first` rows returned.

Returns `EnrichmentReport!`.

| Argument    | Type         | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ----------- | ------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `genes`     | `[ID!]!`     | —       | The gene set to test for over-representation. Duplicates and blanks are dropped first (a repeated gene would inflate the hypergeometric overlap); the cap of 100 applies to what remains, and an over-cap set is rejected rather than truncated, since a silently truncated set would change the statistics. A set with nothing left after that drop — empty as supplied, or every entry blank — is rejected with `platform.invalid_input`, not answered with an empty result: there is no set to test, and an empty ranking would read as "nothing is enriched".                                                                                                                                                                                                                                                                                                                                                                                                  |
| `predicate` | `Predicate!` | —       | Which term family to test against. Four are backed by an aggregate: pathways (`participates_in`, `has_participant`), diseases (`gene_associated_with_condition`), regulators (`regulates`) and classes (`has_member`, `member_of` — pharmacologic and ontology class membership, the MED-RT/ATC drug-class families among them). Any other member of this enum is rejected with `platform.invalid_input`. `schemaSummary.opPredicates` returns this same list under `enrichment`. Where a family names two predicates they are inverses, the graph stores both orientations, and this aggregate tests against their union. The background set and every term size are computed over that union, so the p-values reflect all the evidence rather than whichever orientation a source happened to write. `regulates` is accepted here and rejected by `membership`: a regulator is not a term its targets belong to. Every other family here is available there too. |
| `first`     | `Int!`       | `20`    | How many terms `results` carries, ranked by p-value ascending. Clamped to 50. It bounds `results` only: `testedCount` still reports the full family.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

### `explainEdge`

The backing evidence for one asserted triple, or null when no such edge exists. Edges are directed: if this returns null, try swapping subject and object.

Returns `Edge`.

| Argument    | Type        | Default | Description                                                                                                                                                                                                                                                                                              |
| ----------- | ----------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `subject`   | `ID!`       | —       | CURIE of the entity the assertion is made about.                                                                                                                                                                                                                                                         |
| `object`    | `ID!`       | —       | CURIE of the entity on the receiving end.                                                                                                                                                                                                                                                                |
| `predicate` | `Predicate` | —       | Narrow to one relationship. Omit and every predicate connecting the pair is matched; one representative row is returned — the highest `knowledgeLevel`, then the alphabetically first predicate — and `parallelAssertions` says how many rows the pair has. Supply a predicate for a determinate answer. |

### `schemaSummary`

The active build's identity, vocabularies and knowledge-source versions — the provenance a run records to be reproducible.

Returns `SchemaSummary!`.

### `dwpcRanking`

Rank what a source reaches along one named mechanism, degree-calibrated.

Walks a curated metapath — a typed hop sequence — from `source`, scores every target it reaches by degree-weighted path count, and calibrates that score against a permutation null that preserves typed degree. The calibrated number is `z`, and it is the quantity to rank on: the raw `dwpc` correlates +0.567 with target degree (it is largely a popularity measure), while `z` correlates −0.043.

**z ranks; z is not a p-value.** See the caveat on the `z` field itself — the null is right-skewed and the normal-tail reading does not apply.

Supply `target` to score one pair; omit it to rank everything the metapath reaches. Read every score alongside its `support`: the head of a z ranking is dominated by very-low-degree targets, and no minimum-support floor is applied.

Returns `DwpcRanking!`.

| Argument       | Type        | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------- | ----------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source`       | `ID!`       | —       | CURIE to score from. Must hold the metapath's starting category — a compound for a compound-first metapath — or nothing is reached.                                                                                                                                                                                                                                                                                                                              |
| `metapath`     | `Metapath!` | —       | Which mechanism to walk, by name. Metapaths are curated rather than author-supplied: each name has a permutation null table provisioned against the serving build, which is what makes `z` available at all.                                                                                                                                                                                                                                                     |
| `target`       | `ID`        | —       | Score this one target instead of ranking all of them. The result is a ranking of one, so `results` still carries the score. A pair reached by no route scores an exact 0.0 — a measurement, not a failure.                                                                                                                                                                                                                                                       |
| `first`        | `Int!`      | `100`   | How many ranked targets to return. Clamped to 500. Note the ranking is computed over EVERY reached target and then trimmed — a calibrated top-10 is not a re-sort of the raw top-10, which is the whole point of calibrating. `targetCount` reports how many were reached. Zero or a negative value is rejected with `platform.invalid_input` rather than clamped. Note this differs from `search`, which clamps a non-positive `first` up to 1 and answers 200. |
| `includePaths` | `Boolean!`  | `False` | Return the concrete routes behind the score. Single-pair reads only — ignored when `target` is absent, where it would enumerate routes to every target reached.                                                                                                                                                                                                                                                                                                  |
| `pathLimit`    | `Int!`      | `20`    | How many routes to show when `includePaths` is set. Clamped to 200. `support.pathsComplete` says whether the listing is the whole set.                                                                                                                                                                                                                                                                                                                           |

### `signedExpansion`

Walk the signed, directed neighbourhood of a seed set — the primitive for the causal part of a mechanism.

Every hop comes back with its sign already resolved: the direction of effect, the aspect it is about, and whether the sources behind it disagree. The sign is composed server-side from the graph's own kernel, which is the point of the field — reading the `object_direction` qualifier yourself inverts every Perturb-seq edge in the graph, because Perturb-seq records the effect on a gene under a KNOCKDOWN of its regulator and the regulatory sign is the product of the two directions.

Use this rather than `paths` whenever direction of effect matters. `paths` walks undirected between two pinned endpoints, takes no qualifier filter and attaches no sign, so it answers connection, not mechanism.

Signs compose along consecutive hops by multiplication, and only across the three default aspects — see `aspects`. Composition itself is left to you: this returns a flat list of hops with `hop`, `anchor` and `reached`, not assembled chains.

Returns `SignedExpansion!`.

| Argument          | Type            | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ----------------- | --------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `seeds`           | `[ID!]!`        | —       | CURIEs to expand from. Duplicates and blanks are dropped first, case-insensitively; at most 100 seeds per call, and an over-cap batch is rejected rather than truncated. `seeds` on the result names the ones that matched a node, so a typo is distinguishable from a gene with no signed wiring.                                                                                                                                                                                                                                                                                                                                     |
| `direction`       | `Direction!`    | `OUT`   | Which way to walk from each seed. `OUT` treats the seed as the subject (what it regulates), `IN` as the object (what regulates it), `BOTH` unions them. This changes which hops are returned, never what `sign` means: the sign always describes the stored subject's effect on the stored object, so on an `IN` hop it is the reached node's effect on the anchor.                                                                                                                                                                                                                                                                    |
| `maxHops`         | `Int!`          | `1`     | How many hops to walk. Must be 2 or fewer; a larger value is rejected, not clamped — unbounded expansion is not on offer, and a clamp would answer a shallower question than you asked without saying so. Hop 2 expands from hop 1's targets, bounded by `frontierLimit`.                                                                                                                                                                                                                                                                                                                                                              |
| `predicates`      | `[Predicate!]`  | —       | Which relationships carry the propagation. Defaults to `regulates` and `affects`, which together hold the signed gene-to-gene layer: `regulates` carries SIGNOR and DoRothEA, `affects` carries Perturb-seq and CTD. Naming a predicate that asserts no direction returns hops with `sign: UNSIGNED`.                                                                                                                                                                                                                                                                                                                                  |
| `aspects`         | `[SignAspect!]` | —       | Which object aspects to keep. Defaults to `ACTIVITY`, `EXPRESSION` and `ABUNDANCE` — the three signs compose across in any combination. Post-translational and transport aspects are excluded by default rather than absent: a direction attaches to an aspect, and a decreased phosphorylation does not determine the direction of downstream expression without a conversion rule the graph does not assert. Name them here to get them. An edge that states NO aspect passes any allowlist. SIGNOR and DoRothEA assert a mode of regulation without one, so excluding those would drop most of the layer this field exists to walk. |
| `polarity`        | `SignPolarity`  | —       | Keep only hops resolving to this sign. Omit for all of them. Filtering to `UNSIGNED` returns both the hops nothing signs and the hops whose sources conflict — `signConflict` separates the two.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `reachedCategory` | `Category`      | —       | Keep only hops whose reached node holds this category. The propagation layer is gene-to-gene, and without this an `IN` walk from a gene also returns the chemicals asserted to act on it.                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `taxon`           | `ID`            | —       | Restrict the REACHED node to one organism, as an NCBITaxon CURIE (e.g. `NCBITaxon:9606`). Nodes claiming no organism are kept, so only a node positively claiming a different one is excluded. Never applied to the seeds: you named those, and a filter that could empty its own starting point would report an absent mechanism for a mistyped taxon.                                                                                                                                                                                                                                                                                |
| `source`          | `String`        | —       | Keep only hops a given knowledge source contributed, matched case-insensitively against the graph's own slugs (`signor`, `dorothea`, `perturbseq`, `ctd`). A single source, not a list. The filter applies to the rows the sign is resolved over, so restricting to one source can resolve a hop that conflicts across all of them.                                                                                                                                                                                                                                                                                                    |
| `first`           | `Int!`          | `100`   | Maximum hops to return. Clamped to 500 — a page size, so asking for more succeeds with `truncated: true` rather than failing. There is no cursor: narrow the walk instead of paging a neighbourhood.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `frontierLimit`   | `Int`           | —       | How many of hop 1's targets hop 2 expands from, in CURIE order. Defaults to 500, which is also the maximum; a larger value is rejected. `frontierTruncated` says whether the cut bit. Ignored at `maxHops: 1`.                                                                                                                                                                                                                                                                                                                                                                                                                         |

### `pairScore`

Score one drug × disease pair with a served scoring arm, and show the routes behind it.

Walks every metapath in the arm's basis from `source` to `target`, reads each calibrated `z` (the same numbers `dwpcRanking` returns for those shapes), and feeds them to the arm's frozen model. The response carries the arm's binding sentence as `claim`; that sentence is the only description of `score` this API stands behind. Neither arm predicts clinical success, and neither explains a mechanism.

`paths` are the concrete routes behind the score, ranked ACROSS shapes by how much the arm leaned on each shape for this pair times the route's share of that shape's count. Read `shapes[].contribution` beside them: a route is listed as evidence only when its shape pushed the score up.

Cost: one calibrated walk per shape in the arm's basis — 17 for `EXPLORATORY`, 160 for `CLINICAL` — plus one route walk per shape that pushed the score up, so a `CLINICAL` read takes several seconds.

Returns `PairScore!`.

| Argument    | Type          | Default | Description                                                                                                                                                 |
| ----------- | ------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source`    | `ID!`         | —       | Compound CURIE. Must hold the arms' starting category — a compound.                                                                                         |
| `target`    | `ID!`         | —       | Disease CURIE.                                                                                                                                              |
| `arm`       | `ScoringArm!` | —       | Which arm answers. Scores are comparable within an arm, not across arms.                                                                                    |
| `pathLimit` | `Int!`        | `20`    | How many routes to return across all shapes, best first. Clamped to 200. `pathsComplete` says whether every contributing shape's listing was the whole set. |

## Types

### `ArmPath`

One concrete route behind the pair's score, tagged with the shape it instantiates. `rank` orders routes ACROSS shapes: the shape's positive contribution for this pair times the route's share of that shape's count. Routes of shapes that pulled the score down are not listed as evidence for it.

| Field      | Type       | Description                                                                              |
| ---------- | ---------- | ---------------------------------------------------------------------------------------- |
| `shapeId`  | `String!`  | The shape this route instantiates.                                                       |
| `metapath` | `Metapath` | Its catalogue name, when exposed.                                                        |
| `hops`     | `Int!`     | How many relationships the route crosses.                                                |
| `nodes`    | `[Node!]!` | Source first, target last.                                                               |
| `pdp`      | `Float!`   | This route's own degree-weighted contribution to its shape's count. Raw, not calibrated. |
| `rank`     | `Float!`   | Cross-shape ordering key: contribution(shape) × pdp / dwpc(shape).                       |

### `CategoryCount`

One category the active build carries, with how many nodes have it. Read it to gauge sparsity before querying: a category with a handful of nodes will answer most questions with an empty page.

| Field       | Type      | Description                                                                                                                                                                                                           |
| ----------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`      | `String!` | The category, as a member of `Category`.                                                                                                                                                                              |
| `nodeCount` | `Int!`    | Nodes carrying this category in the active build. Several raw stored values can coerce onto one member of `Category` (`NamedThing` collects every value the public enum does not cover), and this count is their sum. |

### `DwpcCalibration`

The permutation null this request was calibrated against, and its identity. Present on every response; `available: false` when no table applied.

| Field                   | Type                 | Description                                                                                                                                                                                                                                 |
| ----------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `available`             | `Boolean!`           | True when a null table for this metapath was found beside the serving build and consulted. False means every `z` in this response is null and the raw scores are all you have — check `unavailableReason`.                                  |
| `unavailableReason`     | `ZWithheldReason`    | Why no table applied. Null when `available` is true.                                                                                                                                                                                        |
| `unavailableDetail`     | `String`             | The graph's own sentence for the above. Null when `available` is true.                                                                                                                                                                      |
| `buildId`               | `String`             | The graph build the table was measured on. A table that does not describe the build being served is REFUSED outright rather than used, so this always matches the serving build when it is present.                                         |
| `costFunctionId`        | `String`             | Which scoring function the null was measured under, including the evidence-weighting policy. Part of the table's identity: a table measured under a different one is refused, not reused.                                                   |
| `algorithmVersion`      | `Int`                | The permutation algorithm generation the table was measured with.                                                                                                                                                                           |
| `permutations`          | `Int`                | How many permuted graphs the moments were pooled over.                                                                                                                                                                                      |
| `swapMultiplier`        | `Int`                | Edge swaps per edge in each permutation — how thoroughly the graph was shuffled.                                                                                                                                                            |
| `converged`             | `Boolean`            | Whether the permutation sweep's moments had settled when it stopped. False is not an error, but a z from an unconverged table is a coarser instrument — read `convergedMassFraction` before drawing fine distinctions between near-equal z. |
| `convergedMassFraction` | `Float`              | The fraction of scored mass sitting in cells whose moments had settled.                                                                                                                                                                     |
| `minCell`               | `Int`                | The minimum number of pooled pairs a degree cell must hold before it publishes moments. Cells below it withhold rather than publish a noisy z.                                                                                              |
| `targetsWithoutZ`       | `Int`                | How many of the reached targets — across the whole ranking, not just the returned page — could not be calibrated. Null on a single-pair read, where the result's own `zWithheld` says it.                                                   |
| `withheld`              | `[ZWithheldCount!]!` | The breakdown of `targetsWithoutZ` by reason. Empty when every reached target was calibrated.                                                                                                                                               |

### `DwpcPath`

One concrete route behind a single-pair score.

| Field   | Type       | Description                                                                                                          |
| ------- | ---------- | -------------------------------------------------------------------------------------------------------------------- |
| `hops`  | `Int!`     | How many relationships this route crosses — the metapath's length.                                                   |
| `nodes` | `[Node!]!` | Source first, target last.                                                                                           |
| `pdp`   | `Float!`   | This route's own degree-weighted contribution. The `pdp` of every route sums to `dwpc` when `pathsComplete` is true. |

### `DwpcRanking`

A calibrated ranking along one named metapath. With a `target` it holds exactly one result; without one it holds every target the metapath reaches, best first.

| Field          | Type               | Description                                                                                                                                                                                                                                                                                                      |
| -------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source`       | `ID!`              | The entity the metapath was walked from.                                                                                                                                                                                                                                                                         |
| `target`       | `ID`               | The single target scored, or null when this is a ranking over all reached targets.                                                                                                                                                                                                                               |
| `metapath`     | `Metapath!`        | The catalogue name that was walked.                                                                                                                                                                                                                                                                              |
| `metapathHops` | `[MetapathHop!]!`  | What that name expands to, so the number can be checked against its definition.                                                                                                                                                                                                                                  |
| `orderedBy`    | `DwpcOrdering`     | Which quantity `results` is sorted on. `Z` when the ranking was calibrated — note this is reported even when every individual `z` was withheld, because a null WAS consulted. `DWPC` when it was not, in which case the order is degree-confounded. Null on a single-pair read, where there is nothing to order. |
| `results`      | `[DwpcResult!]!`   | Scored targets, best first.                                                                                                                                                                                                                                                                                      |
| `targetCount`  | `Int!`             | How many targets the metapath reaches in total, before `first` trims the page.                                                                                                                                                                                                                                   |
| `truncated`    | `Boolean!`         | True when `targetCount` exceeds what `results` holds.                                                                                                                                                                                                                                                            |
| `exact`        | `Boolean!`         | True when every score is a path count. The one shape that could not be exact is refused rather than approximated, so this is true on every response you receive.                                                                                                                                                 |
| `correction`   | `String!`          | Which argument makes the count exact — how repeated node positions were handled.                                                                                                                                                                                                                                 |
| `damping`      | `Float!`           | The degree-damping exponent the score was computed with. Fixed by the catalogue entry's null table: calibration is only meaningful against a null measured under the same cost function, so this is not a caller's choice.                                                                                       |
| `calibration`  | `DwpcCalibration!` | The null this was measured against.                                                                                                                                                                                                                                                                              |
| `paths`        | `[DwpcPath!]`      | The concrete routes behind a single-pair score. Only populated for a `target` read with `includePaths: true`; null otherwise.                                                                                                                                                                                    |

### `DwpcResult`

One scored endpoint of the metapath. A single-pair read returns exactly one of these; a ranking returns many, best first.

| Field       | Type           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `node`      | `Node!`        | The target entity this score is about.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `dwpc`      | `Float!`       | The RAW degree-weighted path count: every typed route from the source to this target along the metapath, each route discounted by the degree of the nodes it passes through. Exact — a path count, not a sample. It is NOT comparable across targets of different connectivity. Measured rank correlation with target degree is +0.567, so a ranking on this number is substantially a ranking on popularity. That is what `z` exists to remove; prefer `z` wherever it is present, and use this only to compare like with like.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `z`         | `Float`        | The CALIBRATED score: how far this target's `dwpc` sits above what the same metapath produces for an equally-connected pair, measured against a permutation null that preserves typed degree. Rank correlation with target degree is −0.043, against the raw score's +0.567 — this is the one number here that survives the question *is this big for a pair this connected?* **z RANKS. z IS NOT A p-VALUE.** Do not convert it to a probability, a significance level, or a false-discovery rate, and do not read `z = 2` as any particular tail. The null is strongly right-skewed — median per-cell coefficient of variation 1.8, and 27 of 176 cells above 10 — so the normal-tail arithmetic a z-score invites does not apply. Concretely: an observed score of exactly 0.0 sits at a median z of −0.57, where a normal null would require −∞. Use it to order candidates against each other; nothing more. Null when the score could not be calibrated. When it is null, `zWithheld` says why — a null `z` NEVER means zero, and never means a low score. |
| `zWithheld` | `ZWithheld`    | Non-null on exactly the results whose `z` is null. This is how you distinguish "not calibratable here" from "calibrated, and unremarkable".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `support`   | `DwpcSupport!` | The evidence behind the score. Read it with `z`, not after it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

### `DwpcSupport`

How much graph stands behind this result's score. Read it alongside `z`, always.

The top of a z ranking is dominated by TINY-DEGREE targets — a disease associated with a single gene, where the source happens to bind that gene, scores z ≈ 20. Those are real excursions under the null and not artifacts, but whether "shares one gene with a rare disease" is *biologically* interesting is a judgement calibration cannot make for you. No minimum-support floor is applied; this is how you apply your own.

| Field           | Type      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `targetDegree`  | `Int`     | The target's TYPED degree at the metapath's final hop — how many ways the target can be reached along that relationship, counted over the whole graph. This is the exact quantity the null is bucketed on, so it is the number the calibration keyed on rather than a general-purpose connectivity count. `1` marks the degree-1 head described above. Null when nothing read a degree — an UNCALIBRATED ranking never does. Null means unknown, never zero: a returned result is reachable by construction. |
| `pathCount`     | `Int`     | How many distinct routes are SHOWN in `paths`, not how many exist. Only populated on a single-pair read with `includePaths: true`; null otherwise. Check `pathsComplete` before reading it as a total.                                                                                                                                                                                                                                                                                                       |
| `pathsComplete` | `Boolean` | True when `paths` is every route, so `pathCount` IS the total. False when the listing was cut at `pathLimit`. Null when paths were not requested.                                                                                                                                                                                                                                                                                                                                                            |

### `Edge`

A directed assertion — `subject predicate object` — with the evidence behind it. Provenance is never optional: every edge carries `knowledgeSources` and `publications`, which may be empty but are never absent. This API returns data and provenance only; it does no scoring, ranking, or analysis.

| Field                | Type         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| -------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `subject`            | `ID!`        | CURIE of the entity the assertion is made about.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `object`             | `ID!`        | CURIE of the entity on the receiving end.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `predicate`          | `Predicate`  | The relationship asserted. A predicate outside `Predicate` reads as `related_to`, with the source's own spelling kept in `originalPredicates` — so this is populated on every edge, and the field is nullable only for compatibility.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `qualifiedPredicate` | `Predicate`  | The predicate that applies once this edge's qualifiers are read with it. On an `affects` edge carrying `object_aspect: expression` and `object_direction: increased`, a `qualifiedPredicate` of `causes` makes the full statement *causes increased expression of* — a signed, causal claim. Null means the source asserted no such refinement, and the edge should be read as the unqualified `predicate` alone. Select it whenever direction of effect matters: `predicate` on its own is the deliberately broad rollup that keeps qualified and unqualified edges retrievable by the same query, so two edges reading `affects` can be opposite claims.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `qualifiers`         | `JSON`       | Refinements of the assertion, such as direction of effect. Filter on these with the `qualifier` argument. Read these together with `qualifiedPredicate`, not on their own: the aspect and direction here say *what* changed and *which way*, while `qualifiedPredicate` says whether the source claimed causation. A selection set that omits both cannot distinguish a chemical that increases a gene's expression from one that decreases it — both edges read `affects`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `knowledgeLevel`     | `String`     | How firmly the assertion is held, e.g. `knowledge_assertion` or `prediction`. On a `paths` hop this is the representative row's own value — one of the fields that does NOT aggregate over the hop's parallel rows (`knowledgeLevel`, `properties`, `publicationsInfo`), because a merge of two rows' answers would state something neither row holds. See `parallelAssertions`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `agentType`          | `String`     | What produced the assertion, e.g. `manual_agent` or `automated_agent`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `knowledgeSources`   | `[String!]!` | The knowledge sources contributing this edge. Part of the mandatory provenance envelope. Aligned index-for-index with `knowledgeLevels` and `agentTypes`: `knowledgeLevels[i]`/`agentTypes[i]` is the claim made by `knowledgeSources[i]`. `allKnowledgeLevels` is NOT part of this alignment — it is the unreduced union of every claim ever made on the edge, and can be a different length than this list. On a `paths`/`subgraph` hop this is the **union** across every gold row sharing the hop's triple — see `parallelAssertions` — not one row's, because a hop is a node pair and stands for all of them. `knowledgeLevels` and `agentTypes` are unioned *with* it, as one tuple keyed on the source, so the index alignment above holds on a hop exactly as it does on an edge, and no source is listed twice.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `knowledgeLevels`    | `[String!]!` | Per-source `knowledgeLevel` claim. Aligned index-for-index with `knowledgeSources` (`knowledgeLevels[i]` is the claim made by `knowledgeSources[i]`) — one entry per unique contributing source, not aligned with `allKnowledgeLevels`, which is a separate, unreduced union. On a `paths`/`subgraph` hop this is the **union** across the hop's parallel rows, unioned as one tuple with `knowledgeSources`/`agentTypes` so the alignment survives. Where one source made two different claims across those rows, one of them is the entry here — deterministic per build (the first in gold row order), NOT precedence-ranked the way the edge's own reduction is — and every level is still present in `allKnowledgeLevels`, so nothing is lost. Measured on the `v1-20260830` build, some source's parallel rows disagree on `knowledgeLevel` for 2,454 of 37,145,722 triples (0.0066%).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `agentTypes`         | `[String!]!` | Per-source `agentType` claim. Aligned index-for-index with `knowledgeSources` (`agentTypes[i]` is the claim made by `knowledgeSources[i]`) — one entry per unique contributing source. On a `paths`/`subgraph` hop this is the **union** across the hop's parallel rows, unioned as one tuple with `knowledgeSources`/`knowledgeLevels` so the alignment survives. Where one source made two different claims across those rows, the entry here is the one that came in the same row as that source's `knowledgeLevels` entry — chosen the same deterministic, non-precedence-ranked way, so the pair always reads as one real row (see `knowledgeLevels`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `allKnowledgeLevels` | `[String!]!` | Sorted unique union of every contributing source **row's** `knowledgeLevel` claim ever made on this edge, unreduced. Per row, not per source: that is the distinction the field exists for, since a source contributes exactly one entry to `knowledgeLevels` and it is that source's second and third rows this preserves. NOT aligned with `knowledgeSources`, `knowledgeLevels`, or `agentTypes` — it can be a different length than any of them (a source that both curated and measured the same triple contributes one aligned entry to `knowledgeLevels` but two entries here). Testing whether `allKnowledgeLevels` contains `observation` is the source-agnostic "is this edge measurement-backed by at least one source?" filter — the one `knowledgeLevel`/`knowledgeLevels` alone cannot answer, since either can pick a non-observation value even when an observation also backs the edge. On a `paths`/`subgraph` hop this is the sorted unique union across every gold row sharing the hop's triple (see `parallelAssertions`), so the measurement-backed filter means the same thing on a hop as on an edge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `originalPredicates` | `[String!]!` | The contributing source's own predicate spellings, before canonicalization — e.g. `["inactivates"]` for an edge stored as `regulates`. Often the only place an unqualified edge's polarity survives. Spellings are published bare, in the same form as `predicate`. On a `paths` hop this is the **union** across the hop's rows (see `parallelAssertions`), and null whenever the hop's sign is withheld — a source's own spelling states the same polarity in prose, so `signAmbiguous` / `signUnverified` withhold this too.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `originalSubjects`   | `[String!]!` | The subject's CURIE as originally asserted by the contributing source(s), before canonicalization. One entry per distinct source-asserted pairing. **Read `originalSubjects[i]` together with `originalObjects[i]` as a pair, never positionally against `subject`/`object`.** The two lists are aligned with each other and with nothing else — `originalSubjects[i]` is not required to be the same endpoint as `subject`. It differs from the canonical `subject` on roughly a quarter of edges, for three distinct reasons this field cannot tell apart on its own: 1. **Cross-vocabulary merge** — the source's native identifier was merged onto a different-prefix canonical node (an HMDB id onto a CHEBI node, a UniProtKB id onto an NCBIGene node). 2. **Order-free predicate** — for a symmetric predicate (the `interactsWith` / `physicallyInteractsWith` / `inComplexWith` family) the canonical endpoints are SORTED into a stable order while these are left in the order the source asserted, so `originalSubjects[i]` routinely corresponds to the canonical `object` with no vocabulary merge involved at all. 3. **Inverted predicate** — where canonicalization inverted the source's predicate, subject and object were swapped and these were deliberately not, so the original subject IS the canonical object. Preserving the source's asserted direction is what this field is for. On a `paths`/`subgraph` hop this is the **union** across every gold row sharing the hop's triple (see `parallelAssertions`), deduplicated as PAIRS so the pairwise alignment survives. A small population of pipeline-minted `exactMatch` edges (the synthetic survivors of an identifier-conflation decision) carry the pipeline's own claim here rather than any source's assertion. |
| `originalObjects`    | `[String!]!` | The object's CURIE as originally asserted by the contributing source(s), before canonicalization. One entry per distinct source-asserted pairing. **Read `originalObjects[i]` together with `originalSubjects[i]` as a pair, never positionally against `subject`/`object`.** It differs from the canonical `object` on roughly a quarter of edges, for the same three distinct reasons listed on `originalSubjects` — a cross-vocabulary merge, an order-free predicate whose canonical endpoints were sorted while these were left in source order, or an inverted predicate that swapped the canonical endpoints and deliberately not these. On a `paths`/`subgraph` hop it is the same pair-deduplicated union across the hop's rows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `publications`       | `[ID!]!`     | Publication CURIEs backing this edge. Part of the mandatory provenance envelope. On a `paths` hop this is the **union** across every gold row sharing the hop's triple, not the one row's the hop's other detail comes from: a hop asserted by five parallel rows citing four papers lists all four. `parallelAssertions` says how many rows stand behind it, and `evidenceTruncated` whether the union is complete.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `publicationsInfo`   | `JSON`       | Per-publication detail when a source supplies it, keyed by publication CURIE. Results that return many edges apply a cap of 5 publications per edge and shorten long evidence sentences; when anything was left out, a `_truncated` entry alongside the publication CURIEs records how many there really are. That name is reserved: a source key of `_truncated` is moved aside and the entry names where it went. `explainEdge` returns the detail in full for a single edge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `properties`         | `JSON`       | Source-specific edge attributes with no typed field. Untyped by design — no key is guaranteed, including any notion of score or confidence. Results that return many edges keep every key but bound each value, cutting a long list to a cap of 20 entries and shortening long text; when anything was left out, a `_truncated` entry records which keys were cut and by how much. That name is reserved: a source key of `_truncated` is moved aside and the entry names where it went. `explainEdge` returns the values in full for a single edge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `signAmbiguous`      | `Boolean`    | True when this edge's sign could not be determined because two rows behind the same `paths` hop assert OPPOSITE directions of effect, so neither could be attached without picking one at random. `qualifiedPredicate`, `originalPredicates` and the direction entry of `qualifiers` are withheld in that case; the rest of `qualifiers` — the aspect, the species, the tissue, the molecular form — stays, because none of it was in dispute. Only a genuine disagreement about the DIRECTION sets this. Rows that differ on anything else (a different aspect, a different source's wording, a spelling of the same polarity, or a row that states no direction at all) agree as far as this field is concerned. Do not read a null `qualifiedPredicate` here as "the source asserted no sign" without first checking this field (and `signUnverified`) — that reading is only safe when neither is true. Null (not `false`) on every edge with nothing ambiguous to report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `signUnverified`     | `Boolean`    | True when this edge's sign could not be confirmed because the evidence lookup behind a `paths` hop was truncated before every row could be checked -- an unseen row disagreeing with this hop's sign can't be ruled out, even though nothing actually observed conflicts. Distinct from `signAmbiguous`, which means a disagreement was SEEN: this means the check itself was incomplete. The same fields are withheld as for `signAmbiguous` — the direction, not the whole qualifier set. Null (not `false`) on every edge with nothing left unverified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `signConflict`       | `Boolean`    | True when the graph asserts BOTH directions of effect for this edge's subject on its object for the same `objectAspect`, so the edge carries no direction. A mechanism composing signs hop by hop must treat such a hop as unsigned: the majority side is not evidence, it is how many curators happened to write the claim down. Scoped to the aspect. Opposite directions about `expression` and about `activity` are two claims about different quantities and do not contest each other, so each aspect gets its own verdict. Rows stating no direction, and rows marked `negated` (a refuted claim is not a vote against the claim it refutes), take no part. Wider than `signAmbiguous`: that field compares only the rows sharing this hop's `predicate`, inside the rows the evidence budget could read — hence its `signUnverified` companion. This one spans predicates and every row of the group, so it is never truncated and needs no companion. An edge can carry either without the other. Null (not `false`) on every edge with no conflict to report, and on every result shape that does not compute it. On a `signedExpansion` hop, read `signConflict` on the hop rather than here: it is the same verdict, and the hop is what the group is.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `parallelAssertions` | `Int`        | How many gold assertions the single returned edge stands for. Read it before treating that edge's evidence as the whole story: `1` means it is, and a larger number means several rows back the same link. On a `paths` hop: the rows sharing the hop's `subject predicate object`. `knowledgeSources`, `publications` and `originalPredicates` are the UNION over those rows; `predicate`, the orientation, `knowledgeLevel`, `properties` and `publicationsInfo` are the one representative row's. Exact, never a floor. It counts rows under THIS predicate only; `parallelPredicates` names the other predicates on the pair. On `explainEdge`: the rows matching the pair, and the `predicate` argument when one is supplied. Nothing is unioned there — the returned row carries its own evidence and the others are not returned, so a count above `1` means the answer is one of several. It is a floor rather than an exact count when `evidenceTruncated` is true. Null on `edges`, `neighbors` and `subgraph`, which resolve a real edge row and so stand for exactly one assertion.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `parallelPredicates` | `[String!]`  | Every distinct predicate gold holds between this `paths` hop's two nodes, sorted, including `predicate` itself. A hop is a node pair and shows ONE edge — the best-evidenced one, by `knowledgeLevel` class, then alphabetically — so this is what that one edge stands for. A pair that both `treats` and `has_adverse_event` lists both, and `edges(subject:, object:)` on the pair returns the rows behind each. Distinct from `parallelAssertions`, which counts the rows sharing this hop's `subject predicate object` and so never sees a sibling under another predicate, and from `originalPredicates`, which is the representative row's own pre-mapping provenance. Null on `edges`, `neighbors` and `subgraph`, which resolve a real edge row rather than summarising a pair.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `publicationCount`   | `Int`        | How many distinct publications back this `paths` hop: the size of the deduped union `publications` carries. Null means *not counted*, never zero publications: a hop read with `includeEvidence: false` had no evidence read at all, and the result shapes that resolve a single edge row (`edges`, `neighbors`, `subgraph`) do not compute it. Read `publications` itself to distinguish a counted zero, which arrives as this field set to `0` and an empty list. Deduped, so it can be lower than the length of a list a caller assembles by hand across hops, and subject to `evidenceTruncated` the same way `publications` is: on a truncated hop it counts the rows read, and `parallelAssertions` says how many there were.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `evidenceTruncated`  | `Boolean`    | True when the read behind this edge stopped short of its parallel rows, so `parallelAssertions` is a floor. On a `paths` hop the hop had more parallel rows than the evidence read covers, so `knowledgeSources` / `publications` / `originalPredicates` are the union over the rows READ and not over all of them. On `explainEdge` the pair filled the row read, so at least `parallelAssertions` rows exist. Distinct from `signUnverified`, which is about the sign check rather than the union, and which a hop with an observed disagreement does not carry. Null (not `false`) whenever the read is complete.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

### `EdgeConnection`

One page of edges. Both `edges` and `neighbors` are cursor-paginated and return this shape.

Pass the returned `cursor` back as `after` to fetch the next page, and stop when it is null. Cursors are opaque and keyset-based, and because a build is immutable a cursor stays **stable across calls** — a paged walk cannot drift, skip, or repeat rows the way offset paging does. To retrieve a hub node's complete neighbourhood, keep following `cursor` until it comes back null; `totalCount` on the first page tells you how many edges to expect in total.

This is a flat page of edges rather than Relay-style `edges { node }` nesting, so `items` holds the edges directly, and the entities those edges reference are resolved alongside in `nodes` rather than repeated on every edge.

| Field           | Type         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `items`         | `[Edge!]!`   | The edges on this page.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `nodes`         | `[Node!]!`   | The entities this page's edges reference, fully resolved — one entry per distinct CURIE appearing as a `subject` or `object` in `items`, in first-appearance order. Join on `Node.id`. This is what makes a page of edges readable on its own: every endpoint's label, category, and organism arrive with it, rather than costing a `node` lookup per identifier. Entries are the same shape `node` returns for the same entity, so `name`, `category`, `inTaxon`, `description`, and the rest are populated wherever the build has them. Populated by both `neighbors` and `edges`. An entry is never omitted for a CURIE that appears in `items` — a join over this list can always account for every endpoint. An entity the build cannot resolve is therefore present with its `id` alone and its other fields empty, which means *not resolvable in this build*, not *absent from the entity*. |
| `cursor`        | `String`     | Opaque pointer to the next page. Null when there are no further pages.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `truncated`     | `Boolean!`   | True when a cap cut this page short of natural exhaustion — a platform page ceiling, an internal cap, or a post-filter applied to a full page. Do not branch on it to decide whether to keep paging: follow `cursor` whenever it is non-null, and a null `cursor` with `truncated: true` means the result is exhausted and this page is the whole result.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `totalCount`    | `Int`        | Total edges matching the query, across every page — not just this one, and after every filter the query named. Null means *not counted*, never zero matches. Sent by `neighbors` on the first page of a walk, so a caller can tell how much of a node's neighbourhood is still unfetched. Sent by `edges` on the first page of a scan anchored with `subjects` and/or `objects`, where those anchors bound the count; an un-anchored `edges` scan leaves it null, since counting the whole network costs as much as scanning it. Null on continuation pages of both, which do not recount.                                                                                                                                                                                                                                                                                                          |
| `unknownCuries` | `[String!]!` | The CURIEs you asked about that this build holds no entity for. Empty on a page whose anchor exists, and empty on `edges` and `path`, which take no anchor. An anchor listed here returns zero edges because the graph does not contain it, which is otherwise indistinguishable from an entity that exists and has no edges.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

### `EnrichmentReport`

A seed-set enrichment together with the accounting its p-values are conditioned on: the background, how much of the seed set reached it, and how large the hypothesis family was.

**The population.** `backgroundSize` counts the *seed side* of the relation being tested: entities carrying at least one edge of it, not every entity in the build. For `participates_in` / `has_participant` that population is further narrowed to the node categories your own seeds carry, so a gene list is scored against the gene part of each pathway. `gene_associated_with_condition` and `regulates` are not narrowed: their population is the whole seed side of the relation.

**Reproducing a row.** `foldEnrichment` is `(overlap / seedsInBackground) / (setSize / backgroundSize)`, and `pValue` is the right-tailed hypergeometric probability over the same four numbers. Correct the p-values over `testedCount`, not over the rows returned: `first` truncates the ranking, and `candidateCut` reports a second cut below it.

| Field               | Type                   | Description                                                                                                                                                                                                                                                                                               |
| ------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `results`           | `[EnrichmentResult!]!` | The over-represented terms, lowest p-value first, truncated to `first`.                                                                                                                                                                                                                                   |
| `backgroundSize`    | `Int!`                 | Size of the statistical population the test draws from: entities on the seed side of the queried relation, narrowed to your seeds' own categories for pathway enrichment only. This is the hypergeometric `M`.                                                                                            |
| `seedsInBackground` | `Int!`                 | How many of your seeds the population actually contains. This is the hypergeometric `n`, and the denominator of the observed rate in `foldEnrichment`. Lower than `seedCount` whenever a seed is absent from the build or carries no edge of this relation.                                               |
| `seedCount`         | `Int!`                 | How many distinct seeds were submitted, after blanks and case-insensitive duplicates were dropped. Counts every seed, including ones the build does not hold.                                                                                                                                             |
| `testedCount`       | `Int!`                 | How many terms had a non-zero overlap with your seed set, counted before any truncation. This is the hypothesis family: apply multiple-testing correction over this number, not over the length of `results`.                                                                                             |
| `candidateCut`      | `Boolean!`             | True when more terms overlapped the seed set than the store scores in one call, so `results` ranks the highest-overlap candidates rather than the full family. The returned p-values are unaffected, but a term with a small overlap and a very small term size may be missing from the ranking entirely. |
| `unknownCuries`     | `[String!]!`           | The seeds you passed that this build holds no entity for. Each one silently shrinks `seedsInBackground`, which changes every p-value, so check this before reading the ranking.                                                                                                                           |

### `EnrichmentResult`

One over-represented term from a seed-set enrichment.

**`pValue` is raw and uncorrected** — a right-tailed hypergeometric probability with no multiple-testing correction applied. None is applied here on purpose: correction has to run over the complete set of tested terms, and this list is already sorted and truncated to `first`, so a q-value computed from it would be wrong in a way that looks right. If you need FDR, apply it yourself over an untruncated result set.

| Field            | Type       | Description                                                                                                                                                                                                                                                                                                                                                                                                              |
| ---------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `term`           | `ID!`      | CURIE of the over-represented term.                                                                                                                                                                                                                                                                                                                                                                                      |
| `name`           | `String`   | Human-readable label for the term.                                                                                                                                                                                                                                                                                                                                                                                       |
| `category`       | `Category` | Category of the term, e.g. `Pathway` or `Disease`.                                                                                                                                                                                                                                                                                                                                                                       |
| `pValue`         | `Float!`   | Raw right-tailed hypergeometric p-value. **Uncorrected** — apply multiple-testing correction yourself, over the full untruncated set of tested terms.                                                                                                                                                                                                                                                                    |
| `foldEnrichment` | `Float`    | Observed overlap divided by the overlap expected by chance. Null when it is undefined.                                                                                                                                                                                                                                                                                                                                   |
| `overlap`        | `Int!`     | How many of your queried entities belong to this term.                                                                                                                                                                                                                                                                                                                                                                   |
| `setSize`        | `Int!`     | Total size of the term in the background set. For `participates_in` / `has_participant` (pathway) and `has_member` / `member_of` (class), this is restricted to the members that share your queried entities' categories, so it does not depend on *which* entities you queried but does depend on their type. For `gene_associated_with_condition` and `regulates`, it is the full relation side, unscoped by category. |

### `KnowledgeSourceVersion`

A knowledge source contributing to the active build, with the version of that source the build ingested. Record both to make a run reproducible.

| Field     | Type      | Description                                                                       |
| --------- | --------- | --------------------------------------------------------------------------------- |
| `name`    | `String!` | Name of the knowledge source, e.g. `DoRothEA`.                                    |
| `version` | `String`  | The source's own version string as ingested. Null when the source publishes none. |

### `MemberAttribution`

Which knowledge sources assert one membership. A membership relation is the union of both stored orientations and of every source that wrote one, so a set's members do not all come from the term's own vocabulary — this says, per member, who actually asserted it.

| Field              | Type         | Description                                                                                                                                                                                                                                         |
| ------------------ | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `member`           | `ID!`        | The member CURIE this attribution is about.                                                                                                                                                                                                         |
| `knowledgeSources` | `[String!]!` | The knowledge sources asserting this membership, as the graph's own source slugs (`reactome`, `ctd`, `ensembl`), sorted. Empty when the backing edges record no knowledge source: the membership is in the graph, but nothing says who asserted it. |

### `MemberName`

The graph's display name for one member or term in a membership window.

| Field    | Type      | Description                                       |
| -------- | --------- | ------------------------------------------------- |
| `member` | `ID!`     | The member or term CURIE this name is about.      |
| `name`   | `String!` | The graph's display name for this member or term. |

### `MembershipSet`

Set membership for one term, answering either direction: the members belonging to a term, or the terms a queried entity belongs to. Which of `members` and `terms` is populated depends on how you queried.

| Field              | Type                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------ | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `term`             | `ID!`                  | The CURIE this set is about — a term when you queried by term, an entity when you queried by genes.                                                                                                                                                                                                                                                                                                                                                |
| `name`             | `String`               | The graph's display name for `term`; null when the graph has none.                                                                                                                                                                                                                                                                                                                                                                                 |
| `category`         | `String`               | The Biolink category of `term`; null when unknown.                                                                                                                                                                                                                                                                                                                                                                                                 |
| `members`          | `[ID!]`                | The entities belonging to `term`. Populated when you queried by `term`; null otherwise.                                                                                                                                                                                                                                                                                                                                                            |
| `terms`            | `[ID!]`                | The terms `term` belongs to. Populated when you queried by `genes`; null otherwise.                                                                                                                                                                                                                                                                                                                                                                |
| `memberNames`      | `[MemberName!]`        | The graph's display names for the returned window, omitting entries whose CURIE has no name. In the `terms_by_gene` direction these entries name the terms; in `members_by_term` they name the genes. Null when the internal group carried no `member_names`, which means the store was too old or did not answer names.                                                                                                                           |
| `memberCount`      | `Int`                  | The true size of the set, which exceeds the length of the returned list when `truncated` is true. Use it rather than counting the list.                                                                                                                                                                                                                                                                                                            |
| `truncated`        | `Boolean!`             | True when members exist beyond the returned window rather than the window being all of them. Read `memberCount` for the true size, and continue with `memberOffset`.                                                                                                                                                                                                                                                                               |
| `memberOffset`     | `Int!`                 | Where in the set this window starts — the `memberOffset` the answer was produced for. The window is `[memberOffset, memberOffset + len(list))` of the set ordered by CURIE, so successive offsets partition the set with no overlap and no gaps.                                                                                                                                                                                                   |
| `unknown`          | `Boolean!`             | True when this build holds no entity with this CURIE. An empty set with `unknown: false` is an entity the graph contains that belongs to nothing; an empty set with `unknown: true` is a CURIE the graph does not contain at all.                                                                                                                                                                                                                  |
| `knowledgeSources` | `[String!]`            | Every knowledge source asserting a membership in this set, sorted — the union over `memberSources`. Null when you did not pass `includeSources: true`; null means *not asked for*, never *nothing asserts this*.                                                                                                                                                                                                                                   |
| `memberSources`    | `[MemberAttribution!]` | Per-member attribution, one entry per returned member, in the same order. Null when you did not pass `includeSources: true`. Read this rather than assuming the term's vocabulary is the source of its membership. A pathway CURIE says who *named the pathway*, not who asserted that a gene is in it: several sources republish one another's pathway identifiers, so a `REACT:` pathway routinely has members no Reactome release ever claimed. |

### `MetapathHop`

One hop of the metapath, so a returned score is auditable.

| Field       | Type      | Description                                               |
| ----------- | --------- | --------------------------------------------------------- |
| `predicate` | `String!` | The relationship this hop traverses.                      |
| `direction` | `String!` | `out`, `in`, or `either` — how the hop is traversed.      |
| `category`  | `String`  | The category the hop's far end must hold, if constrained. |

### `Node`

A knowledge-graph entity, resolved to its canonical identity.

| Field              | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------ | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`               | `ID!`           | Canonical CURIE for this entity, e.g. `HGNC:1100`. Stable within a build.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `name`             | `String`        | Preferred human-readable label.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `category`         | `Category`      | Primary category. Null only when the entity carries no category at all — a category outside `Category` reads as `NamedThing`, not null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `allCategories`    | `[Category!]!`  | The categories this entity satisfies, in no particular order and without repeats. A category outside `Category` reads as `NamedThing` rather than being dropped silently.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `description`      | `String`        | Free-text definition, when a contributing source supplies one.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `synonyms`         | `[String!]!`    | Alternative names, including source-specific spellings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `equivalentCuries` | `[ID!]!`        | CURIEs that denote this same entity and were merged into it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `xrefs`            | `[ID!]!`        | Cross-references to other vocabularies. Unlike `equivalentCuries` these are related identifiers, not asserted identity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `sources`          | `[String!]!`    | Knowledge sources that contributed this entity's own record — its identity, label and attributes. Not the sources of the assertions it participates in; those are on each `Edge.knowledgeSources`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `publications`     | `[ID!]!`        | Publication CURIEs cited by this entity's own record (e.g. the paper a curated concept was defined in). Not the union of citations across its edges; those are on each `Edge.publications`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `inTaxon`          | `ID`            | Species CURIE, e.g. `NCBITaxon:9606` for human.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `properties`       | `JSON`          | Source-specific attributes with no typed field. Untyped by design — no key is guaranteed, so treat every read as optional.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `matchType`        | `NodeMatchType` | How this entity matched the query, on a `search` or `resolve` result. Null on `lookup` and the node envelopes attached to edge pages, which return entities, not matches. Null on a `search` or `resolve` result too if the active build does not report one.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `matchedSynonyms`  | `[String!]!`    | The alternative names that matched the query, on a `search` result. Populated whenever a synonym matched, independently of `matchType` — a query can match the preferred name and a synonym at once. Empty when nothing matched by synonym, and on every field other than `search`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `candidateTotal`   | `Int`           | On a `resolve` result, the number of candidates that competed for this node's query name — populated only when it exceeds the number `resolve` actually returned for that name (`limitEach` cut the list short). Null when the returned set was already complete for curated nodes, or on every field other than `resolve`. Free-text corpus nodes (trial and study titles) are counted only when fewer than `limitEach` curated nodes matched, because the ranking never places a corpus node above a curated one: a symbol that is a substring of thousands of trial titles reports its curated matches, not the titles. The count therefore describes the window, not the match set, and can jump between two adjacent `limitEach` values when a corpus node first enters the window. |
| `matchScore`       | `Int`           | How strongly this entity matched, on a `search` or `resolve` result: an opaque rank combining match strength (an exact name beats an exact synonym beats a substring), whether the entity comes from a curated vocabulary or from corpus free text, and whether it is of the requested `category` and organism. Higher is better, and it is meaningful ONLY as a comparison between rows of the same response — not a similarity, and not stable across builds. Null on every other field, and on a build that does not report one.                                                                                                                                                                                                                                                      |
| `matchedNames`     | `[String!]!`    | On a `resolve` result, which of the queried `names` this entity was returned for — more than one when several names matched it equally strongly. A name that matched it at a different strength gets its own row, so a row's `matchScore` always describes how the entity matched the names on that row. `resolve` returns one flat ranked list across all names, so this is what maps a result back onto the input it answers. Empty on every field other than `resolve`.                                                                                                                                                                                                                                                                                                               |

### `NodeSearchResult`

A `searchNodes` result: the page of matches, plus what the `organism` filter removed to produce it.

The filter runs in the store, ahead of `first`, so the page holds `first` matches in the organism you asked for rather than whatever survived a mixed-species window. That is the correct order, and it is also why the exclusions are reported here: a page cannot show what is not on it, and a short — or empty — result would otherwise be indistinguishable from an entity the graph does not hold. Check `excludedByOrganism` before reading an empty `results` as a negative finding.

Both exclusion fields are empty when no `organism` was given, and when one was given and removed nothing. A node claiming no organism is never removed — chemicals, diseases and pathways claim none — so it never appears here either.

| Field                | Type                    | Description                                                                                                                                                     |
| -------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `results`            | `[Node!]!`              | The matching entities, best match first.                                                                                                                        |
| `excludedByOrganism` | `[OrganismExclusion!]!` | What the `organism` filter removed, largest first — one entry per organism, over every match rather than the returned page. Empty when nothing was removed.     |
| `excludedCount`      | `Int!`                  | Total matches the `organism` filter removed. The sum of `excludedByOrganism`'s counts, so the two always agree; read it when you only need the headline number. |

### `OpPredicates`

The predicates one field accepts, where that field accepts fewer than the whole `Predicate` enum. Ask with anything else and the call is rejected with `platform.invalid_input`.

| Field        | Type         | Description                                                                               |
| ------------ | ------------ | ----------------------------------------------------------------------------------------- |
| `op`         | `String!`    | The query field the list applies to, spelled as it appears on `Query`, e.g. `enrichment`. |
| `predicates` | `[String!]!` | Every predicate this field accepts, sorted. Each is a member of `Predicate`.              |

### `OrganismExclusion`

One organism a `searchNodes` request's `organism` filter removed, and how many matches it removed. Counted over every match, not just the page — so this reports exclusions that ranked below `first` too.

| Field      | Type   | Description                                                     |
| ---------- | ------ | --------------------------------------------------------------- |
| `organism` | `ID!`  | The organism whose matches were removed, as an NCBITaxon CURIE. |
| `count`    | `Int!` | How many matches this organism accounted for.                   |

### `PairScore`

A drug × disease pair scored by one arm. Read `claim` before `score`: it is the arm's binding sentence, and the only description of the number this API stands behind. Neither arm predicts clinical success; neither explains a mechanism (that is the Mechanism-of-Action workflow). `score` is null when a shape the arm needs could not be calibrated AND the arm refuses to impute it; see `shapes[].imputed` and `zWithheld`.

| Field           | Type                    | Description                                                                                                                                                                                                                                                  |
| --------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `source`        | `ID!`                   | The compound scored.                                                                                                                                                                                                                                         |
| `target`        | `ID!`                   | The disease scored.                                                                                                                                                                                                                                          |
| `arm`           | `ScoringArm!`           | Which arm answered.                                                                                                                                                                                                                                          |
| `score`         | `Float`                 | The arm's output. For `CLINICAL`, the gradient boost's probability-scale score. For `EXPLORATORY`, the preregistered blend of standardised head logits — a z-like number, not a probability. Scores are comparable WITHIN an arm and build, not across arms. |
| `claim`         | `String!`               | The arm's binding sentence, verbatim. Every response carries it.                                                                                                                                                                                             |
| `modelVersion`  | `String!`               | Digest of the served model manifest — the exact frozen fit this number came from.                                                                                                                                                                            |
| `buildId`       | `String!`               | The graph build the arm was fit and served on.                                                                                                                                                                                                               |
| `calibration`   | `DwpcCalibration`       | The null tables the per-shape `z` values were read from; null when no shape was calibrated.                                                                                                                                                                  |
| `shapes`        | `[ShapeContribution!]!` | One entry per shape in the arm's basis.                                                                                                                                                                                                                      |
| `imputed`       | `[String!]!`            | Shape ids the arm imputed for this pair.                                                                                                                                                                                                                     |
| `paths`         | `[ArmPath!]!`           | Top routes across shapes, best first, at most `pathLimit`.                                                                                                                                                                                                   |
| `pathCount`     | `Int!`                  | How many routes were ranked before `pathLimit` trimmed the list.                                                                                                                                                                                             |
| `pathsComplete` | `Boolean!`              | True when every contributing shape's route listing was the whole set behind its count.                                                                                                                                                                       |

### `Path`

One connecting route between two entities: the nodes traversed and the edges joining them. A path asserts connection, not mechanism — read the edges' provenance to judge whether the route is meaningful.

| Field   | Type       | Description                                                  |
| ------- | ---------- | ------------------------------------------------------------ |
| `hops`  | `Int!`     | Number of edges traversed on this route.                     |
| `nodes` | `[Node!]!` | Every node on the route, in order from source to target.     |
| `edges` | `[Edge!]!` | The edges joining those nodes, each with its own provenance. |

### `PathsMeta`

What a `paths` query cost and covered: whether the connecting set was cut, how many routes came back, and which selection chose them. Takes the same arguments as `paths`, so selecting both in one document describes the result you are reading; the pair costs one traversal.

| Field                      | Type                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `truncated`                | `Boolean!`                     | True when the connecting set was cut before natural exhaustion, by `first` or by an internal cap: more routes connect these two entities than you were given. What you hold depends on `ranking`. Under `DEGREE_RANKED` it is a diverse sample of the ranked set, spread across predicate signatures, so a route of higher specificity than one you were given can be among the withheld ones if its signature was already represented. Under `SHORTEST_FIRST` the withheld routes are systematically longer than the ones returned, since shorter routes are admitted first. False means the returned routes are every route within `maxHops` under the arguments you supplied. |
| `returnedCount`            | `Int!`                         | Routes in the matching `paths` result. At most `effectiveFirst`, and lower when the graph connects the two entities by fewer routes than that.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `requestedFirst`           | `Int!`                         | The `first` you supplied, before the ceiling was applied.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `effectiveFirst`           | `Int!`                         | The route budget the traversal actually ran under: `requestedFirst` clamped to the published `paths` ceiling, and raised to 1 below that. A value below `requestedFirst` means the ceiling cut your request, so `truncated` can be true for a limit you did not choose.                                                                                                                                                                                                                                                                                                                                                                                                          |
| `ranking`                  | `PathRanking!`                 | Which selection chose the returned routes. Read it before treating a truncated result as the best routes, and before comparing two queries' routes to each other.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `rankingUnavailableReason` | `PathRankingUnavailableReason` | Why the enumeration served this result instead of the ranker. Null whenever `ranking` is `DEGREE_RANKED`, and populated whenever it is not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

### `PredicateCount`

One predicate the active build carries, with how many edges assert it. Read it to gauge sparsity before querying: a predicate with a handful of edges will answer most questions with an empty page.

| Field       | Type      | Description                                                                                                                                                                                                              |
| ----------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `name`      | `String!` | The predicate, as a member of `Predicate`.                                                                                                                                                                               |
| `edgeCount` | `Int!`    | Edges asserting this predicate in the active build. Several raw stored values can coerce onto one member of `Predicate` (`related_to` collects every value the public enum does not cover), and this count is their sum. |

### `QualifierValue`

One value observed under a qualifier key, with the number of edges carrying it.

| Field       | Type      | Description                                            |
| ----------- | --------- | ------------------------------------------------------ |
| `value`     | `String!` | The value as stored, which is what `anyOf` must match. |
| `edgeCount` | `Int!`    | Edges in this build carrying this key/value pair.      |

### `QualifierVocabulary`

One qualifier key the build accepts, and the values observed under it. Read this before sending `neighbors(qualifiers:)` or `edges(qualifiers:)`: a key outside this list is rejected as `platform.invalid_input`, and a value outside a key's list simply matches nothing.

| Field                | Type                 | Description                                                                                                                                                                                               |
| -------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`               | `String!`            | The qualifier key, as `QualifierFilter.name` must spell it.                                                                                                                                               |
| `edgeCount`          | `Int!`               | Edges in this build carrying this key. Zero means the key is accepted but this build writes it on no edge, so a filter on it matches nothing.                                                             |
| `distinctValueCount` | `Int!`               | How many distinct values this key holds across the build. Compare it with the length of `values` to tell a complete vocabulary from the head of an open-ended one.                                        |
| `values`             | `[QualifierValue!]!` | The most-carried values under this key, commonest first. Truncated for open-ended keys such as `anatomical_context` (CURIEs) and `protein_change` (HGVS notation); `distinctValueCount` says by how much. |

### `SchemaSummary`

What the active build actually contains: its pin, its size, the vocabularies in use, and the version of every contributing knowledge source. This is the provenance a run records to be reproducible later.

| Field                  | Type                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ---------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `buildPin`             | `String!`                    | Identifier of the build that answered — the snapshot the knowledge graph was serving when these counts were read, not the build your organisation is entitled to. Record it alongside results: it is what makes a query reproducible, and what to re-pin if you later see `platform.build_unavailable`. Empty when the serving tier cannot name its build, which is reported rather than guessed.                                                                                                                                                                                                                                               |
| `nodeCount`            | `Int!`                       | Total nodes in the active build.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `edgeCount`            | `Int!`                       | Total edges in the active build.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `categories`           | `[String!]!`                 | Categories this build actually carries — the real set behind `Category`. `categoryCounts` reports the same set with a node count each.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `predicates`           | `[String!]!`                 | Predicates this build actually carries — the real set behind `Predicate`. This is the whole build vocabulary: `enrichment` and `membership` each accept a much narrower set, published on `opPredicates`. `predicateCounts` reports the same set with an edge count each.                                                                                                                                                                                                                                                                                                                                                                       |
| `categoryCounts`       | `[CategoryCount!]!`          | `categories`, each with the number of nodes carrying it, most populous first. Same set and same order as `categories`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `predicateCounts`      | `[PredicateCount!]!`         | `predicates`, each with the number of edges asserting it, most populous first. Same set and same order as `predicates`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `opPredicates`         | `[OpPredicates!]!`           | The fields that accept fewer predicates than the whole `Predicate` enum, and which ones each accepts. A build-independent capability of this API, served here so a client can read it rather than discover it from a rejection. Listed today: `enrichment` and `membership`, both of which are backed by an aggregate built for specific relations. `subgraph` is not listed because its narrowing is an arity rule rather than a whitelist: it accepts a list of predicates capped at `governance.ceilings.SUBGRAPH_MAX_PREDICATES`. `paths` and the edge-filtering fields accept the whole enum.                                              |
| `sources`              | `[KnowledgeSourceVersion!]!` | Every contributing knowledge source and its ingested version.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `geneSymbolAuthority`  | `KnowledgeSourceVersion`     | The release whose gene symbols this build's gene names are. Most genes here canonicalize onto an NCBI gene id and take their display symbol from this release, so this is the field to read when you key on gene symbols. Symbols are renamed and retired between releases, so a symbol-keyed dataset built against a different one will not fully resolve: the reliable fix is to join on Ensembl gene ids (`ENSEMBL:ENSG...`), which are stable. Retired clone-style display names such as `RP11-44N21.4` are gone upstream and resolve at no release. Null when the serving tier does not report one, which is reported rather than guessed. |
| `geneAccessionVintage` | `KnowledgeSourceVersion`     | The Ensembl release whose gene set supplies this build's `ENSEMBL:ENSG...` gene accessions. This describes the accessions only and does not predict gene display names, which come from `geneSymbolAuthority` instead. Null when the serving tier does not report one.                                                                                                                                                                                                                                                                                                                                                                          |
| `qualifiers`           | `[QualifierVocabulary!]!`    | Every qualifier key `neighbors(qualifiers:)` and `edges(qualifiers:)` accept, with the values observed under each. This is the only enumeration of that vocabulary: `QualifierFilter.name` is a free-form string, and a key outside this list is rejected rather than matched against nothing. Empty when the serving tier does not report one.                                                                                                                                                                                                                                                                                                 |
| `maxPathHops`          | `Int`                        | The deepest `maxHops` the build serving this request can actually search with `paths`. The schema accepts up to 5, but a depth-5 search needs artifacts not every build carries, so a build may top out at 4 — read this before asking for a deeper search. A request beyond this depth is REFUSED with `platform.not_available_on_build`; it is never quietly re-scoped to a shallower search, so any result you do receive is at the depth you asked for. Null when the serving tier does not report a ceiling, which is reported rather than guessed.                                                                                        |

### `ShapeContribution`

One shape in the arm's basis, for this pair: the calibrated `z` the arm read, and how much the arm's linear head leaned on it. `contribution` is signed and per pair — the elastic-net coefficient times this pair's standardised value — so a negative number means this shape pulled the score DOWN for this pair.

| Field          | Type              | Description                                                                                                                                                            |
| -------------- | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `shapeId`      | `String!`         | The recorded shape id, as the metapath library names it. Stable across builds of the same library.                                                                     |
| `metapath`     | `Metapath`        | The catalogue name for this shape, when the public catalogue exposes it. Null for a shape the arm uses that has no public name yet (most of the clinical arm's basis). |
| `hops`         | `[MetapathHop!]!` | What the shape expands to, so the number can be checked.                                                                                                               |
| `z`            | `Float`           | This pair's calibrated score along the shape — the same `z` `dwpcRanking` would return.                                                                                |
| `zWithheld`    | `ZWithheld`       | Why `z` is null, when it is. The arm then used its training-time imputation for this shape.                                                                            |
| `imputed`      | `Boolean!`        | True when the arm did not see a `z` for this shape and scored the pair with the training median instead — exactly what it did for training pairs with the same gap.    |
| `weight`       | `Float!`          | The arm's mean elastic-net coefficient for this shape, in standardised units. Global, not per pair.                                                                    |
| `contribution` | `Float!`          | This pair's signed contribution from this shape: coefficient × standardised value, averaged over fold heads.                                                           |
| `dwpc`         | `Float`           | The raw degree-weighted path count along the shape.                                                                                                                    |
| `targetDegree` | `Int`             | The target's typed degree at the shape's last hop.                                                                                                                     |

### `SignedExpansion`

A signed, directed neighbourhood: the hops reachable from a seed set over the propagation layer, each with its sign resolved server-side.

This is the causal-prefix primitive. `paths` walks undirected between two pinned endpoints, takes no qualifier filter and composes no sign along the route (each hop does carry its own `qualifiers` and `qualifiedPredicate`), so it can neither start from a seed SET nor tell an activating route from a repressing one.

| Field               | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `seeds`             | `[ID!]!`        | The seeds the walk actually anchored on, in the graph's own CURIE casing. A seed you supplied that names no node is absent from this list, which is how a typo is distinguished from a gene with no signed wiring.                                                                                                                                                                                                                                  |
| `hops`              | `[SignedHop!]!` | The sign groups reached, ordered by hop, then anchor, then reached node.                                                                                                                                                                                                                                                                                                                                                                            |
| `hopCount`          | `Int!`          | How many hops this page holds — the length of `hops`.                                                                                                                                                                                                                                                                                                                                                                                               |
| `truncated`         | `Boolean!`      | True when more groups matched than `first` returned. There is no cursor: narrow with `aspects`, `polarity`, `predicates`, `reachedCategory`, `source` or a smaller seed set rather than paging a neighbourhood, which is what the engine reads as a whole.                                                                                                                                                                                          |
| `hopsWalked`        | `Int!`          | How many hops actually ran, which is below the `maxHops` you asked for when the page had no budget left for the second or its frontier was empty. Read it before concluding a two-hop mechanism does not exist: `1` here means the second hop was never walked, not that it found nothing.                                                                                                                                                          |
| `frontierTruncated` | `Boolean!`      | True when hop 2 expanded from only some of hop 1's targets, whether `frontierLimit` cut them or hop 1's own page did — a hub seed's second hop is otherwise most of the propagation layer, so the cut is reported rather than raised. Distinct from `truncated`, which is about the hops on this page rather than about what the second hop was walked from. Always false at `maxHops: 1`, and `hopsWalked` says whether the second hop ran at all. |

### `SignedHop`

One signed hop of a mechanism: the graph's verdict on how the node at one end changes the node at the other, with the evidence behind it.

A hop is a `(subject, object, objectAspect)` group, not a single stored row. Gold's edge identity includes the qualifier bag, so one such triple can carry several rows that disagree about direction — which is why the sign is resolved over the group and `assertionCount` says how many rows it was resolved over.

| Field            | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ---------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `hop`            | `Int!`          | Which hop reached this — `1` from a seed, `2` from a node hop 1 reached. Join hop 2's `anchor` to hop 1's `reached` to rebuild a two-hop chain; the response is a flat list of hops, not a set of assembled chains.                                                                                                                                                                                                                                                                                                                            |
| `anchor`         | `ID!`           | The node this hop was expanded FROM — a seed on hop 1, a hop-1 target on hop 2.                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `reached`        | `ID!`           | The node on the other end of the hop.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `sign`           | `SignPolarity!` | How the hop's subject changes its object, with the Perturb-seq `subjectDirection` product and the aspect's own inversion already applied — this is the composable sign, not the raw `object_direction` qualifier, which is inverted for every Perturb-seq edge in the graph. **Always about the STORED orientation**, subject to object. On an `IN` hop the reached node is the subject, so the sign is the reached node's effect on the `anchor`, not the other way around. Read `edge.subject` / `edge.object` when the orientation matters. |
| `signConflict`   | `Boolean!`      | True when the group's rows assert BOTH directions, which makes `sign` `UNSIGNED`. No majority vote is applied: a same-pair disagreement is a fact about the evidence, and picking the commoner side would manufacture a direction no source asserted. False on an `UNSIGNED` hop means nothing behind it states a direction at all. Rows carrying `negated: true` state none, so they push a group towards neither verdict.                                                                                                                    |
| `objectAspect`   | `String`        | Which property of the object the direction is about, normalized — `activity`, `expression`, `abundance`. Null when the source asserted a mode of regulation without naming an aspect, which is how SIGNOR and DoRothEA state most of the signed gene-to-gene layer. Null is therefore not a gap: it is a signed hop whose aspect nobody specified, and it composes.                                                                                                                                                                            |
| `assertionCount` | `Int!`          | How many gold rows the group holds. `edge` is one of them — the lowest-offset row stating the resolved sign, or the lowest-offset row of all when none does — so `predicate`, `knowledgeLevel` and `publications` on it are that row's, not the group's. Read every row with `edges` anchored on the pair; `explainEdge` returns the canonical merged assertion rather than the parallel rows.                                                                                                                                                 |
| `edge`           | `Edge!`         | The representative row in full, with the same provenance envelope every other primitive returns.                                                                                                                                                                                                                                                                                                                                                                                                                                               |

### `Subgraph`

The induced neighbourhood around a seed set: the nodes collected plus every edge between them. Node and edge truncation are reported separately, because a subgraph can be complete in nodes while missing edges.

| Field            | Type         | Description                                                                                                                                                                                                                      |
| ---------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `nodes`          | `[Node!]!`   | Every node collected within `maxHops` of a seed.                                                                                                                                                                                 |
| `edges`          | `[Edge!]!`   | Returned edges whose subject and object are both in `nodes`. Not necessarily every such edge — check `truncatedEdges`, which reports the induced-edge scan hitting its row cap even when all nodes are present.                  |
| `truncated`      | `Boolean!`   | True when either nodes or edges were cut short. Check the two specific flags to see which.                                                                                                                                       |
| `truncatedNodes` | `Boolean!`   | True when the node budget was reached, so reachable nodes are missing.                                                                                                                                                           |
| `truncatedEdges` | `Boolean!`   | True when edges were cut short. Note this can happen even with all nodes present, leaving the returned nodes under-connected.                                                                                                    |
| `unknownCuries`  | `[String!]!` | The seeds you passed that this build holds no entity for. A seed listed here contributes no nodes and no edges because the graph does not contain it, which is otherwise indistinguishable from a seed that exists in isolation. |
| `nodeCount`      | `Int!`       | Number of nodes returned in `nodes`.                                                                                                                                                                                             |
| `edgeCount`      | `Int!`       | Number of edges returned in `edges`.                                                                                                                                                                                             |

### `VariantConnection`

One keyset-paginated page of `variantsInRegion`. `items` holds up to `first` SequenceVariant nodes ordered by position and CURIE. Follow `cursor` while non-null.

| Field        | Type       | Description                                                                                                     |
| ------------ | ---------- | --------------------------------------------------------------------------------------------------------------- |
| `items`      | `[Node!]!` | The SequenceVariant nodes overlapping the query window, ordered by position.                                    |
| `truncated`  | `Boolean!` | True when more variants remain after this page. `totalCount` gives the full count; follow `cursor` to continue. |
| `totalCount` | `Int!`     | Variants matching the window, before the `first` cap.                                                           |
| `cursor`     | `String`   | Opaque continuation token. Null when this page exhausts the region.                                             |

### `ZWithheld`

Present on exactly the results whose `z` is null while a raw score stands. Its presence is the signal: a result carrying this was NOT calibratable, and its `dwpc` must not be compared against another result's `z`.

| Field    | Type               | Description                                                                                                                                                                                                                                            |
| -------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `reason` | `ZWithheldReason!` | A stable code to branch on.                                                                                                                                                                                                                            |
| `detail` | `String!`          | The graph's own sentence explaining the withholding, verbatim. Show this to a human; branch on `reason`. Wording may be revised without notice — a revision that outruns our mapping surfaces as `reason: UNRECOGNIZED` with the new text intact here. |

### `ZWithheldCount`

How many results lost their `z` for one reason.

| Field    | Type               | Description                                                                                                     |
| -------- | ------------------ | --------------------------------------------------------------------------------------------------------------- |
| `reason` | `ZWithheldReason!` | The stable code for this group of withholdings.                                                                 |
| `detail` | `String!`          | The graph's own sentence for that reason, verbatim.                                                             |
| `count`  | `Int!`             | How many reached targets were withheld for this reason, across the whole ranking rather than the returned page. |

## Input types

### `QualifierFilter`

Match edges whose qualifier `name` holds any of the given values — e.g. `{ name: "object_direction", anyOf: ["increased", "decreased"] }` to keep only signed regulation. This is the only structured filter on edges; there is no free-form predicate syntax.

| Field   | Type         | Description                                                                                                                                                                                                                                                                                                                   |
| ------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`  | `String!`    | The qualifier key to match. `schemaSummary.qualifiers` lists every accepted key with the values observed under it; a key outside that list is rejected as `platform.invalid_input`. A key derived from a Biolink qualifier slot drops the `_qualifier` suffix, so it is `object_direction`, not `object_direction_qualifier`. |
| `anyOf` | `[String!]!` | Values to accept for that key. An edge matches if it carries any one of them.                                                                                                                                                                                                                                                 |

## Enums

### `Category`

An entity category, used to narrow results by type. `schemaSummary.categories` reports the categories the active build carries, and this enum covers them. An entity whose category is somehow outside it reads as `NamedThing` — the root category every entity satisfies — rather than erroring or coming back null.

Values: `Gene`, `Protein`, `MicroRNA`, `Disease`, `PhenotypicFeature`, `ChemicalEntity`, `SmallMolecule`, `Drug`, `Pathway`, `BiologicalProcess`, `PathologicalProcess`, `MolecularActivity`, `CellularComponent`, `AnatomicalEntity`, `Agent`, `Behavior`, `BiologicalEntity`, `BiologicalProcessOrActivity`, `Cell`, `CellLine`, `ChemicalMixture`, `ChemicalRole`, `ClinicalFinding`, `ClinicalIntervention`, `ClinicalTrial`, `ComplexMolecularMixture`, `Device`, `DiagnosticAid`, `GeneFamily`, `GrossAnatomicalStructure`, `Haplotype`, `MacromolecularComplex`, `MolecularEntity`, `MolecularMixture`, `NamedThing`, `NoncodingRNAProduct`, `NucleicAcidEntity`, `OrganismTaxon`, `PhysiologicalProcess`, `Polypeptide`, `Procedure`, `Publication`, `RNAProduct`, `SequenceVariant`, `Study`, `Transcript`, `Treatment`

**`PathologicalProcess`**

Aberrant or failed biological processes — e.g. Reactome `FailedReaction` events, which are stored as `PathologicalProcess` rather than `BiologicalProcess`. A regulation edge can therefore land on this category; filter on it as well as `BiologicalProcess` when measuring regulation scope.

**`Haplotype`**

A set of alleles inherited together — in this build, pharmacogenomic star-alleles (e.g. `CYP2C19*17`). Contributed by a source that is not present in every build; consult `schemaSummary.categories` to confirm the active build carries it.

**`SequenceVariant`**

A sequence variant. Identified by dbSNP rsID where one applies unambiguously, otherwise by an allele-specific key. Coverage is not a variant catalogue: variants enter the graph only where they carry a genetic-association or functional-consequence edge, so absence of a variant is not evidence it has no effect. Coordinate and allele detail is carried on `properties`: `genome_assembly` names the build that `chromosome`/`position`/`hgvsId` are expressed in, so read it before acting on a coordinate rather than assuming a build. `variantsInRegion` finds variants by GRCh38 `chromosome`/`position` range. Roughly 0.15% of variants have no coordinate, mostly ClinPGx pharmacogenomic star-alleles such as `CYP2C19*17`: those exist as nodes but are never returned by a region lookup.

### `Direction`

Which end of an edge a neighbour sits on, relative to the anchor node.

Values: `IN`, `OUT`, `BOTH`

### `DwpcOrdering`

Which quantity a ranking was ordered on.

Values: `Z`, `DWPC`

### `Metapath`

A named, curated metapath — a typed hop sequence naming one mechanism. Selecting by name rather than authoring hops is what keeps the cost envelope bounded and what makes a calibrated `z` reachable: a member is a metapath a permutation null table can be measured for.

A `z` is returned only where the serving build carries that table. Where it does not, the response reports the raw DWPC and says why.

The catalogue is the curated basis of the recorded metapath library, one name per distinct hop sequence. Members will be ADDED as the library grows; existing members keep their names.

Values: `COMPOUND_BINDS_GENE_ASSOCIATED_WITH_DISEASE`, `COMPOUND_AFFECTS_GENE_ASSOCIATED_WITH_DISEASE`, `COMPOUND_ASSOCIATED_WITH_GENE_ASSOCIATED_WITH_DISEASE`, `COMPOUND_DIRECTLY_BINDS_GENE_ASSOCIATED_WITH_DISEASE`, `COMPOUND_SENSITIVITY_AFFECTED_BY_GENE_ASSOCIATED_WITH_DISEASE`, `COMPOUND_AFFECTS_GENE_CARRYING_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_AFFECTS_GENE_WHOSE_INTERACTOR_IS_ASSOCIATED_WITH_DISEASE`, `COMPOUND_AFFECTS_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_ASSOCIATED_WITH_GENE_CARRYING_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_ASSOCIATED_WITH_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_BINDS_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_DIRECTLY_BINDS_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_AFFECTS_GENE_REGULATED_BY_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_AFFECTS_GENE_REGULATING_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_AFFECTS_GENE_WHOSE_INTERACTOR_HAS_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_SHARES_MOLECULAR_ACTIVITY_WITH_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`, `COMPOUND_SHARES_PATHWAY_WITH_GENE_WITH_VARIANT_ASSOCIATED_WITH_DISEASE`

### `NodeMatchType`

How an entity matched a `search` query, strongest first. `search` ranks by this, so an `EXACT_NAME` hit always precedes a `SYNONYM` one. Matching is literal — there is no fuzzy, phonetic, or semantic matching — so an approximate-looking result reached the page through one of these arms, not through a similarity score.

Values: `EXACT_NAME`, `EXACT_CURIE`, `EXACT_SYNONYM`, `EQUIVALENT_CURIE`, `XREF`, `NAME_SUBSTRING`, `SYNONYM`

**`EXACT_NAME`**

The query equals the entity's preferred name, ignoring case.

**`EXACT_CURIE`**

The query equals the entity's canonical CURIE. Case-sensitive, unlike name matching.

**`EXACT_SYNONYM`**

The query equals one of the entity's alternative names in full, ignoring case — the entity IS the thing asked for, under a different spelling (`K562` for the cell line `K-562`). Distinct from `SYNONYM`, where the query merely appears somewhere inside an alternative name.

**`EQUIVALENT_CURIE`**

The query equals one of `equivalentCuries` — a CURIE merged into this entity as the same thing.

**`XREF`**

The query equals one of `xrefs`. A cross-reference is a related identifier, not asserted identity, so this is weaker evidence of sameness than `EQUIVALENT_CURIE`.

**`NAME_SUBSTRING`**

The query appears somewhere inside the entity's preferred name. Not anchored, so it may be a fragment rather than the whole name.

**`SYNONYM`**

The query appears inside one of the entity's alternative names and matched nothing stronger — the weakest arm. `matchedSynonyms` carries the names that matched. Treat the hit as approximate: a synonym can be broader or narrower than the entity you asked for, and the preferred name may share no words with your query.

### `PathEvidence`

How much provenance each hop of a `paths` result carries. The routes are the same whichever is chosen; only what rides on each hop changes. Reading publications is most of the cost of an evidence-bearing query, so `TIER` is the shape for a screening enumeration that still has to judge how each hop is known.

Values: `NONE`, `TIER`, `FULL`

**`NONE`**

No provenance. Each hop carries its triple and nothing else, and the provenance lists come back empty. Read a shortlisted hop's evidence with `explainEdge`.

**`TIER`**

How each hop is known, without its citations: `knowledgeLevel`, `agentType`, `knowledgeSources`, the aligned per-source lists, `properties`, `parallelAssertions`, and the qualifier group (`qualifiers`, `qualifiedPredicate`, `signAmbiguous`, `signUnverified`). `publications` is empty and `publicationCount` is null, meaning NOT COUNTED rather than zero. `parallelAssertions` still reports how many gold rows stand behind the hop, so a hop resting on several assertions is visible without reading any of them.

**`FULL`**

`TIER` plus the citations: `publications`, `publicationsInfo` and `publicationCount`. This is what `includeEvidence: true` selects.

### `PathRanking`

Which selection served a `paths` result. The two answers are the same contract and the same `Path` shape; they differ in WHICH routes of the connecting set you were given when there were more than `first` of them.

Values: `DEGREE_RANKED`, `SHORTEST_FIRST`

**`DEGREE_RANKED`**

The routes were drawn from the connecting set by degree-weighted specificity: a route through a hub node scores below one through a selective node. A truncated result is a diverse sample of the ranked set rather than its top prefix, because the selection spreads the returned routes across predicate signatures and will pass over a higher-ranked route of one signature to reach another. Order here is specificity, so a longer route through selective nodes comes back ahead of a shorter one through a hub.

**`SHORTEST_FIRST`**

The routes were drawn from a shortest-first enumeration rather than ranked by specificity. Shorter routes come first, and within one length the selection spreads across predicate signatures rather than taking the traversal's own order. A truncated result is therefore a sample of the shortest connecting routes: read `rankingUnavailableReason` before comparing routes across queries.

### `PathRankingUnavailableReason`

Why a `paths` result was enumerated rather than ranked. Ranking needs whole-graph node degrees, which are unavailable or misleading in the cases below.

Values: `PREDICATE_WHITELIST`, `TAXON`, `PREDICATE_WHITELIST_AND_TAXON`, `RANKING_ASSETS_ABSENT`, `CALLER_DISABLED`, `NOT_REPORTED`

**`PREDICATE_WHITELIST`**

A `predicateWhitelist` narrowed the traversal. Degrees are counted over the whole graph, so ranking would score routes by connectivity the whitelist excludes from the answer.

**`TAXON`**

A `taxon` narrowed the traversal, for the same reason as `PREDICATE_WHITELIST`.

**`PREDICATE_WHITELIST_AND_TAXON`**

Both narrowing arguments were supplied.

**`RANKING_ASSETS_ABSENT`**

The ranker was unavailable on the replica that served this call: either the build does not carry the integer-id artifacts the ranker reads, or it does and the in-memory engine is not yet warm. A property of the replica rather than of the query, so the same query can rank on a later call. It is also reported ahead of `PREDICATE_WHITELIST` and `TAXON`: when the ranker is unavailable AND the query carries a narrowing argument, this is the reason you get.

**`CALLER_DISABLED`**

Ranking was switched off for this call.

**`NOT_REPORTED`**

The serving tier named no selection, so no ranking claim is made. `ranking` reads `SHORTEST_FIRST` here because that is the weaker guarantee, and asserting the stronger one on silence would be a fabricated claim.

### `Predicate`

A relationship type. This enum is every predicate the pipeline can produce, which is wider than any one build: a member with no rows in the active build names a relation the graph does not currently carry, not a mistake. `schemaSummary.predicates` reports the narrower list the active build actually carries, so filter against this enum and discover against that field. Predicates are directed: `subject predicate object`. An edge whose predicate is somehow outside this enum reads as `related_to`, the broadest relationship, never wrong but never specific, rather than coming back null. `originalPredicates` still carries the contributing source's own spelling, so the relation remains recoverable.

Values: `affects`, `regulates`, `interacts_with`, `physically_interacts_with`, `related_to`, `associated_with`, `gene_associated_with_condition`, `participates_in`, `located_in`, `has_participant`, `has_input`, `has_output`, `treats`, `causes`, `contributes_to`, `has_phenotype`, `active_in`, `actively_involved_in`, `affects_sensitivity_to`, `ameliorates_condition`, `applied_to_treat`, `associated_with_likelihood_of`, `associated_with_resistance_to`, `associated_with_sensitivity_to`, `beneficial_in_models_for`, `biomarker_for`, `broad_match`, `capable_of`, `catalyzes`, `chemically_similar_to`, `close_match`, `coexists_with`, `colocalizes_with`, `composed_primarily_of`, `contraindicated_in`, `correlated_with`, `derives_from`, `develops_from`, `diagnoses`, `directly_physically_interacts_with`, `disease_has_basis_in`, `disease_has_location`, `disrupts`, `drug_regulatory_status_world_wide`, `enables`, `exacerbates_condition`, `exact_match`, `expressed_in`, `gene_product_of`, `genetically_associated_with`, `has_active_ingredient`, `has_adverse_event`, `has_chemical_role`, `has_completed`, `has_contributor`, `has_decreased_amount`, `has_increased_amount`, `has_member`, `has_metabolite`, `has_molecular_consequence`, `has_not_completed`, `has_part`, `has_plasma_membrane_part`, `has_side_effect`, `has_substrate`, `homologous_to`, `in_complex_with`, `in_taxon`, `indirectly_physically_interacts_with`, `is_sequence_variant_of`, `is_substrate_of`, `lacks_part`, `manifestation_of`, `member_of`, `mentions`, `model_of`, `negatively_correlated_with`, `occurs_in`, `opposite_of`, `orthologous_to`, `overlaps`, `positively_correlated_with`, `precedes`, `predisposes_to_condition`, `preventative_for_condition`, `produces`, `same_as`, `similar_to`, `subclass_of`, `target_for`, `temporally_related_to`, `transcribed_from`, `translates_to`, `treats_or_applied_or_studied_to_treat`

**`participates_in`**

An entity takes part in a process or pathway. An **alias of the canonical `has_participant`**, which is the leg the graph stores: every one of the pipeline's participation mappings canonicalizes onto it, so nothing is stored under this name. Filtering on it is fully supported: `direction`, subject/object categories and anchor lists are mirrored for you, so `neighbors(<gene>, predicate: participates_in, direction: OUT)` still returns the processes that gene takes part in. Returned edges are stored rows in canonical orientation — the process is the `subject` and the participant the `object` — so read endpoints by role, not by position.

**`located_in`**

A stored spatial-containment assertion. It is **not** GO-specific, **not** inherently positive, and **not** the whole of GO cellular-component localization. Filtering on it without the three caveats below returns the wrong set.

*Producers.* Forty-seven source relations map onto `located_in`, and only one of them is GOA's `GO:located_in`. The rest are anatomical/spatial (BSPO, NCIT, UBERON, RO, FMA), metabolite location (HMDB), DrugMechDB's location relations, ClinPGX's haplotype-to-gene locus bridge, an EFO site term, a LOINC imaging-focus term, and SemMedDB's two location relations. Constrain the object side: for cellular localization, query from a gene or protein with `direction: OUT` and `neighborCategory: CellularComponent`.

*Provenance.* That object-side constraint filters by shape, not by evidence class. SemMedDB's `LOCATION_OF` / `location_of` are machine-read literature co-occurrence rather than curation, and both remap with `operation: invert`, so their orientation is flipped relative to the asserted statement. A SemMedDB gene → cellular-component edge satisfies both `direction: OUT` and `neighborCategory: CellularComponent` and is indistinguishable from a GOA annotation except through `knowledgeSources`. Select that field and require `infores:go` if you want curated GOA localization specifically.

*Negation.* A `NOT\|`-qualified GAF row is kept rather than dropped and carries the *identical* predicate. The only thing separating "P is located in X" from the curator-asserted "P is **not** located in X" is `qualifiers.negated == true`, and canon's dedup key includes the qualifiers JSON, so both edges coexist on the same `(subject, predicate, object)` triple. Select `qualifiers` and filter on it — a selection set that omits `qualifiers` cannot tell a localization from its refutation.

*Partial coverage.* GOA writes cellular-component annotations under four qualifiers and this is one of them. `GO:part_of` canonicalizes (inverted, so the GO term is the subject) onto `has_part`, `GO:is_active_in` onto `active_in`, and `GO:colocalizes_with` onto `colocalizes_with`. All three are in this enum and can be queried directly, but they are different relations: a `located_in` filter is a strict subset of GOA cellular-component localization, not a synonym for it. Ask for all four if you want the whole aspect.

**`has_participant`**

A process or pathway has this participant. The canonical member of its pair and the one leg the graph stores participation on: every source contributes here — GO annotations, HMDB, KEGG, Reactome, Ensembl, CTD, SMPDB, DrugMechDB — so the process or pathway is always the subject and the participant the object. Query it with `direction: OUT` from the process CURIE. `participates_in` is an alias of this predicate and returns the same relation from the other side.

**`has_input`**

A process/reaction consumes this participant. Required for Reactome event expansion.

**`has_output`**

A process/reaction produces this participant. Required for Reactome event expansion.

**`active_in`**

A gene product carries out its molecular function **in** this cellular component. GOA's `GO:is_active_in` is the producer, and the object is always a `CellularComponent`.

*Not to be confused with two neighbours.* `located_in` is bare spatial containment — the thing is there — while `active_in` additionally asserts the molecular function is carried out there; GOA writes both, over the same cellular-component aspect, and they are not interchangeable. `actively_involved_in` is *process* participation, not location, and is a different aspect of GOA entirely. If you want the whole cellular-component aspect, ask for `located_in`, `active_in`, `has_part` (inverted, so the GO term is the subject) and `colocalizes_with` together.

*Negation.* As with `located_in`, a `NOT\|`-qualified GAF row is kept and carries the identical predicate, separated only by `qualifiers.negated == true`. Select `qualifiers` if the distinction matters.

**`composed_primarily_of`**

More than half of the subject's mass is made of parts of the object. In this build it carries a cell line's cell type: `CellLine -> composed_primarily_of -> Cell`, meaning the line consists of cells of that type. It is a composition claim, deliberately not `derives_from`: it asserts what the line is made of, not a developmental or derivational lineage.

**`contraindicated_in`**

A drug is contraindicated in a condition. **This is deliberately partial: it is not the whole of the graph's contraindication evidence.** MED-RT, the producer, splits its contraindications across two predicates depending on what the object is. Contraindications against a disease (`CI_with`) or a physiological process (`CI_PE`) land here and are selectable by predicate alone. Contraindications against a mechanism-of-action class (`CI_MoA`) or another drug (`effect_may_be_inhibited_by`) instead land on `related_to` carrying the qualifier `association_polarity: negative`, because `contraindicated_in`'s range is `biological entity`, which neither a chemical role nor a drug satisfies, and the predicate vocabulary has no drug-drug-interaction predicate at all. All contraindications is therefore this predicate UNION (`related_to` + `association_polarity: negative`), and an absent `contraindicated_in` edge does not mean no contraindication is recorded.

**`genetically_associated_with`**

Associates a variant with a trait or a gene. **Read the `association_type` qualifier before interpreting this edge — it carries two different kinds of claim.** `gwas` is a statistical association between a variant and a trait, drawn from fine-mapped credible sets, with posterior inclusion probability, effect size and p-value on `properties`. `l2g` is a *computational prediction* of which gene a variant acts through, scored by a model, and carries `knowledgeLevel: prediction` — it is a hypothesis about mechanism, not a curated or experimentally established fact. Treating an `l2g` edge as an assertion attributes a gene-level inference to a specific variant. Neither kind is chromatin-contact evidence: no edge in this graph is backed by Hi-C, ChIA-PET, Capture-C or a perturbation assay, and the graph contains no enhancer, promoter or other regulatory-region entities to anchor one to. A variant-to-gene link here therefore never establishes that the variant lies in an element physically contacting that gene.

**`has_adverse_event`**

A drug or chemical intervention was reported with this adverse event in clinical-trial results: `ChemicalEntity -> has_adverse_event -> ClinicalFinding`. **This is trial-reported co-occurrence, not an established causal or curated pharmacovigilance claim** — the edge is assembled from arm-level results reporting, pooled across every contributing trial, and carries `knowledgeLevel: statistical_association` accordingly. The `adverse_event_level` qualifier separates serious from other events, and `properties` carries the pooled counts (subjects affected / at risk) and the contributing trial ids. Absence of an edge means the trials in this build did not report the event, not that the drug lacks it.

**`has_substrate`**

The stored direction of the substrate/enzyme pair: enzyme or transporter -> has\_substrate -> drug or metabolite; query from the enzyme with `direction: OUT`. Carries the ChEMBL, DrugBank and DrugCentral `substrate` mechanism claims. HMDB's metabolite-protein associations are not here: HMDB's `protein_type` records what kind of protein an association points at, not whether it metabolizes the metabolite, so those edges carry `associated_with` with a `protein_role` qualifier.

**`is_sequence_variant_of`**

Links a variant to a gene it has a predicted functional consequence for. Restricted to consequences of high or moderate predicted impact, and collapsed to one edge per gene — so this is not a complete record of a variant's transcript consequences, and the absence of an edge does not mean the variant is silent. The specific consequence term and amino-acid change, where known, are on the edge's `properties`.

**`model_of`**

A cell line's disease of origin: `CellLine -> model_of -> Disease` means the line was established from a donor who had that disease, **not** that the line is a validated model of it. Every such edge says so explicitly via the `model_basis: disease_of_origin` qualifier — read it before treating the edge as model status. Lines the source flags as contaminated, misidentified, or otherwise problematic additionally carry a `subject_problematic_cell_line` qualifier; filter on it to exclude them.

Deprecated values: `participates_in` — Use `has_participant`, the canonical predicate this now resolves to. Filters are mirrored so existing queries keep working, but returned edges are in canonical orientation: the process/pathway is the `subject` and the participant the `object`, transposed relative to this name. Code reading endpoints positionally must swap them.

### `ScoringArm`

Which scoring arm answers. Both rank drug × disease pairs on the deployed graph; they differ in what they were allowed to learn from, and each carries its own binding sentence (`claim`).

`CLINICAL` — the frozen primary fit over the full curated metapath library; the stronger ranker, and the one whose score partly reflects how much a pair has been studied. `EXPLORATORY` — the preregistered member selected to remove that attention dependence, over the smaller mechanism-shaped basis the public `Metapath` catalogue exposes.

Values: `CLINICAL`, `EXPLORATORY`

### `SignAspect`

Which property of the object a hop's direction is about. Signs compose across `ACTIVITY`, `EXPRESSION` and `ABUNDANCE` in any combination, which is why those three are the default allowlist.

The rest are selectable and do not compose: a direction attaches to an aspect, and a decreased phosphorylation does not determine the direction of downstream expression without a conversion rule the graph does not assert. `DEGRADATION` is the one aspect that inverts — more degradation is less of the object — and that inversion is already applied to `sign`.

Values: `ACTIVITY`, `EXPRESSION`, `ABUNDANCE`, `ACTIVITY_OR_ABUNDANCE`, `SYNTHESIS`, `STABILITY`, `DEGRADATION`, `LOCALIZATION`, `TRANSPORT`, `SECRETION`, `UPTAKE`, `PHOSPHORYLATION`, `METHYLATION`, `ACETYLATION`, `UBIQUITINATION`, `CLEAVAGE`, `MOLECULAR_INTERACTION`, `MOLECULAR_MODIFICATION`, `METABOLIC_PROCESSING`, `SPLICING`

### `SignPolarity`

Which way a hop pushes: `POSITIVE` activating, `NEGATIVE` repressing, `UNSIGNED` no usable direction.

`UNSIGNED` is one value covering two situations, and `signConflict` is what tells them apart: false means nothing behind the hop states a direction, true means sources state opposite ones. Read the two fields together — an unsigned hop is not evidence of no effect.

Values: `POSITIVE`, `NEGATIVE`, `UNSIGNED`

### `ZWithheldReason`

Why a calibrated `z` is unavailable for a result that still has a raw score. Read this before treating a missing `z` as a low one: every value here means *not calibratable*, and none of them means *scored badly*.

Values: `NO_NULL_TABLE`, `EDGELESS_ENDPOINT`, `NO_CELL`, `CELL_INSUFFICIENT`, `CELL_DEGENERATE`, `NOT_THE_NULLS_STATISTIC`, `ENUMERATED_NOT_PROPAGATED`, `UNRECOGNIZED`

## Scalars

### `JSON`

The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).

## Error contract

Every GraphQL error carries `extensions.code` from the `platform.*` namespace, plus `extensions.requestId` for support, and `extensions.httpStatus`. The REST surface uses the same codes as RFC 9457 problem details, and carries the same identifier as `request_id`.

Every response also returns that identifier as the `X-Request-Id` header, including successful ones. Quote it when reporting a problem: it identifies the exact request.

| Code                                         | HTTP | What it means                                                                                                                                                                                                                                                                         |
| -------------------------------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `platform.build_forbidden`                   | 403  | Your organisation has no grant for the requested build.                                                                                                                                                                                                                               |
| `platform.build_unavailable`                 | 409  | The pinned build has been garbage-collected and can no longer be served. Re-pin to a current build and reissue the request.                                                                                                                                                           |
| `platform.db_pool_exhausted`                 | 503  | The platform database connection pool is at capacity. Retryable — honour `Retry-After`.                                                                                                                                                                                               |
| `platform.forbidden`                         | 403  | The credential is valid but its role does not permit this operation.                                                                                                                                                                                                                  |
| `platform.invalid_input`                     | 400  | The request carried a malformed CURIE, an out-of-range argument, or a query rejected as unsafe. Fix the request; retrying it unchanged will fail again.                                                                                                                               |
| `platform.invalid_run_grant`                 | 401  | First-party integrations only: the run grant presented was rejected — malformed, not valid for this run, or expired. Not resolved by retrying; only a newly submitted run receives a fresh grant.                                                                                     |
| `platform.not_available_on_build`            | 409  | The field is valid in the schema but unsupported by the backend serving the active build. `schemaSummary` reports what the active build supports.                                                                                                                                     |
| `platform.not_found`                         | 404  | The requested node is not present in the active build. It may exist in a different build, or the identifier may not resolve — try `resolve` to map a name to a canonical CURIE.                                                                                                       |
| `platform.persisted_query_hash_mismatch`     | 400  | The request carried both a document and a hash, and the hash is not the sha256 of that document. An integrity failure — send the correct hash, or omit it.                                                                                                                            |
| `platform.persisted_query_not_found`         | 400  | First-party integrations only: the referenced operation hash is not in the registered set. Unlike vanilla APQ there is no resend-the-document fallback, because the document must also be allow-listed. API-key callers do not receive this.                                          |
| `platform.persisted_query_not_supported`     | 400  | Hash-only requests are not supported for your credential — resend the request with the full document. You are permitted to run the operation; only the hash-only shorthand is unavailable. Mirrors APQ's `PersistedQueryNotSupported`, so an APQ-aware client degrades automatically. |
| `platform.persisted_query_required`          | 403  | First-party integrations only: an unregistered ad-hoc document was sent where an allow-listed operation is required. API-key callers are not allow-list-gated and do not receive this.                                                                                                |
| `platform.persisted_query_store_unavailable` | 503  | First-party integrations only: the allow-list store was unreachable, so a genuine miss could not be distinguished from an outage. Retryable. API-key callers never consult the store and do not receive this.                                                                         |
| `platform.query_too_costly`                  | 400  | The query exceeded the cost or depth budget before execution. Narrow the selection, reduce `maxHops`, or paginate with a smaller `first`.                                                                                                                                             |
| `platform.quota_exceeded`                    | 429  | Your organisation's cost budget for the current period is exhausted. Not resolved by retrying. Distinct from `platform.rate_limited`, which is the request-rate cap.                                                                                                                  |
| `platform.rate_limited`                      | 429  | Your organisation's request-rate cap was exceeded. Retryable — honour `Retry-After` and the `X-RateLimit-*` headers. Distinct from `platform.quota_exceeded`, which is the cost budget.                                                                                               |
| `platform.run_budget_unavailable`            | 503  | First-party integrations only: the run grant verified, but its run-scoped budget could not be recorded durably, so the request was refused rather than run uncharged. Retryable once the dependency recovers.                                                                         |
| `platform.run_grant_required`                | 401  | First-party integrations only: a delegated request arrived carrying no run grant. Not resolved by retrying — a grant is issued when the run is submitted, so the same run cannot acquire one later.                                                                                   |
| `platform.run_state_unavailable`             | 503  | First-party integrations only: the run grant verified, but the run could not be confirmed as still active. Retryable once the dependency recovers.                                                                                                                                    |
| `platform.unauthenticated`                   | 401  | No credential was supplied, or it was malformed or expired. Obtain a fresh credential and retry.                                                                                                                                                                                      |
| `platform.upstream_busy`                     | 503  | The knowledge-graph service rate-limited this request. Retryable — back off and retry.                                                                                                                                                                                                |
| `platform.upstream_timeout`                  | 504  | The knowledge-graph service hit its hard timeout. Retryable, but a query that times out repeatedly is usually too broad — narrow it or paginate.                                                                                                                                      |
| `platform.upstream_unavailable`              | 503  | The knowledge-graph service or its store is unavailable. Retryable — honour `Retry-After` when present.                                                                                                                                                                               |
