Skip to content

feat(QueryPage): support CONSTRUCT queries#381

Merged
tkuhn merged 1 commit intomasterfrom
380-support-construct-queries
Mar 6, 2026
Merged

feat(QueryPage): support CONSTRUCT queries#381
tkuhn merged 1 commit intomasterfrom
380-support-construct-queries

Conversation

@ziroli
Copy link

@ziroli ziroli commented Mar 6, 2026

Summary

  • Upgrades nanopub-java to 1.86.1 which adds processRdfContent(Model) to QueryAccess
  • Detects CONSTRUCT queries in GrlcQuery.isConstructQuery() via ParsedGraphQuery
  • Adds ApiCache.retrieveRdfModelAsync() to fetch and cache RDF model results
  • New RdfResultComponent for async lazy-loading of RDF results
  • New QueryResultRdf panel displaying CONSTRUCT results as a paginated Subject/Predicate/Object table (URIs render as links)
  • QueryPage routes CONSTRUCT queries to the new component

Closes #380

Test plan

🤖 Generated with Claude Code

Upgrade nanopub-java to 1.86.1 which adds processRdfContent(Model) to
QueryAccess, allowing CONSTRUCT query results to be received as an RDF
Model rather than tabular CSV data.

- GrlcQuery: add isConstructQuery() detecting ParsedGraphQuery
- ApiCache: add cachedRdfModels and retrieveRdfModelAsync() using the
  new processRdfContent hook
- RdfResultComponent: async lazy-loader for RDF model results
- QueryResultRdf: panel displaying CONSTRUCT results as a paginated
  Subject/Predicate/Object table with NanodashLink for URIs
- QueryPage: route CONSTRUCT queries to QueryResultRdf

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tkuhn tkuhn merged commit e40000b into master Mar 6, 2026
8 checks passed
@tkuhn tkuhn deleted the 380-support-construct-queries branch March 6, 2026 15:24
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.

Support CONSTRUCT queries

2 participants