Skip to content

Queries

WarmHub reads come in a few shapes — a HEAD snapshot, a targeted get, a filtered query, search, and history. This page runs the most common one; the table routes you to the rest.

Read the active things of a shape from any repo:

Terminal window
wh thing query --repo warmhub-data/us.congress --shape Legislator

Add --json for structured output, --count for just the total, or --about <wref> to find the assertions that target a thing. The full filter grammar, search modes, collection resolution, version history, and active-vs-retracted semantics live in Filtering & Query Modes.

QueryUse caseCLIMCP Tool
HEADSnapshot of all active entitieswh thing listwarmhub_thing_head
CountCount matching items without fetching datawh thing list --countwarmhub_thing_head with count: true
GetFetch a specific thing by wrefwh thing viewwarmhub_thing_get
QueryFilter by shape, kind, aboutwh thing querywarmhub_thing_query
AboutAssertions whose about target resolves to a target identitywh thing about <wref> or wh assertion list --about <wref>warmhub_thing_about
HistoryVersion history of a thingwh thing historywarmhub_thing_history
ResolveResolve wref to identitywh thing resolvewarmhub_wref_resolve
SearchFind things by text contentwh thing searchwarmhub_thing_search
Get ManyBatch lookup by wrefswh thing view [wrefs...]warmhub_thing_get_many
RefsBacklinks and cross-referenceswh thing refswarmhub_thing_refs

Use wh thing about <wref> when starting from a thing and asking what assertions directly target it. wh assertion list --about <wref> is the equivalent assertion-domain form when you are already browsing assertions.

The same queries are available across three surfaces — pick what fits your workflow:

  • CLI: wh <domain> <verb> [args] [--flags] — human-readable output, or --json for structured data
  • MCP: warmhub_* tools — typed JSON-RPC tool calls
  • HTTP API: GET /api/repos/:org/:repo/<endpoint> — RESTful queries with query parameters
NeedPage
A point-in-time snapshot of all active entitiesHead
Filter by shape / kind / about, search modes, version history, batch lookup, collection resolution, active-vs-retractedFiltering & Query Modes