Routers¶
HTTP route handlers. The running API also serves the OpenAPI UI at /docs.
app.routers.admin
¶
Reload the ontology from disk without restarting the API.
app.routers.entities
¶
Entity routes: GeoJSON pins, facet counts, and per-entity triples.
app.routers.filters
¶
Filter-panel route.
app.routers.stories
¶
Stories proxy: count upstream stories for a set of concept IRIs.
_wp_tag_ids(iris, store)
¶
Return the compass:wpTagId of each concept, skipping unmapped or invalid IRIs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
iris
|
list[str]
|
Concept IRIs from the |
required |
store
|
RDFStore
|
Live RDF store. |
required |
Returns:
| Type | Description |
|---|---|
list[int]
|
Distinct term IDs found in the graph. |
Source code in src/backend/app/routers/stories.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |