Skip to content

fix(metrics): bypass Comunica SPARQL engine in MetricsPanel to fix pr…#26

Merged
ThHanke merged 1 commit into
mainfrom
fix/metrics-widget
Jun 29, 2026
Merged

fix(metrics): bypass Comunica SPARQL engine in MetricsPanel to fix pr…#26
ThHanke merged 1 commit into
mainfrom
fix/metrics-widget

Conversation

@ThHanke

@ThHanke ThHanke commented Jun 29, 2026

Copy link
Copy Markdown
Owner

…oduction crash

MetricsPanel crashed in production with f.channel is not a function and ActorFunctionFactoryExpressionBnode is not a constructor because it routed through Comunica which has bundling issues with lru-cache v11 and circular CJS deps under Rollup.

Add getOntologyStats worker command that counts entities directly from the N3 store using store.getQuads() — no SPARQL engine needed. Rewire MetricsPanel to use this single call instead of 7+N SPARQL COUNT queries.

…oduction crash

MetricsPanel crashed in production with `f.channel is not a function`
and `ActorFunctionFactoryExpressionBnode is not a constructor` because
it routed through Comunica which has bundling issues with lru-cache v11
and circular CJS deps under Rollup.

Add `getOntologyStats` worker command that counts entities directly from
the N3 store using `store.getQuads()` — no SPARQL engine needed. Rewire
MetricsPanel to use this single call instead of 7+N SPARQL COUNT queries.
@ThHanke
ThHanke merged commit 744a51a into main Jun 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant