{# FG-4: corpus-wide graph overview fragment — lazy-loaded into #graph-overview. Context: available — False when the knowledge graph isn't built (no [graph] data yet) OR when assembly raised; renders a notice, never counts. error — True when _get_graph_overview() raised (generic notice, no detail leaked — the cause stays in the server log only). paper_count — Paper nodes in the graph. entity_count — Entity nodes in the graph. indexed/total— papers.graph_indexed=1 over all papers (FG-2 count idiom). by_type — {entity_type: count}. by_predicate — {predicate: edge_count}. by_source — {mention_source: count} (schema / biobert / llm_cloud). last_indexed — best-effort MAX(last_updated) over indexed papers, or None. All content is rendered through Jinja autoescape ONLY — never |safe, never striptags (scientific entity text legitimately contains < and >). #} {% if not available %}
Could not load the knowledge graph overview — check the server logs.
{% else %}
No knowledge graph yet — run a brain-build or
lit-monitor graph backfill --all to populate the graph, then
this overview will fill in.
| Type | Count |
|---|---|
| {{ type_ }} | {{ count }} |
No entities in the graph yet.
{% endif %} {# --- Edges by predicate ------------------------------------------------- #}| Predicate | Count |
|---|---|
| {{ pred }} | {{ count }} |
No edges in the graph yet.
{% endif %} {# --- Entities (mentions) by extraction source --------------------------- #}| Source | Count |
|---|---|
| {{ src }} | {{ count }} |
No mention edges in the graph yet.
{% endif %}