Skip to content

Add a View RDF link to the page-tools sidebar#1088

Merged
malberts merged 1 commit into
masterfrom
feature/page-tools-rdf-link
Jul 21, 2026
Merged

Add a View RDF link to the page-tools sidebar#1088
malberts merged 1 commit into
masterfrom
feature/page-tools-rdf-link

Conversation

@JeroenDeDauw

Copy link
Copy Markdown
Member

The per-page RDF export (GET /rest.php/neowiki/v0/page/{pageId}/rdf) was only
reachable by hand-constructing the URL. Add a "View RDF" link to the NeoWiki
page-tools sidebar section, next to "View JSON", pointing at the current page's
Turtle export.

It is shown only when the page has Subjects, so it never points at the
endpoint's 404-on-empty response. It uses ?format=turtle so the result renders
as readable text in the browser instead of downloading a TriG file, and targets
the native projection. Per-ontology projection links and a per-subject RDF
endpoint (#1087) are out of scope here.

Relates to #1023

AI-authored — Claude Code, Opus 4.8 (max); @JeroenDeDauw asked for this sidebar link and to build it via the fix-issue workflow (no revisions during implementation); not yet human-reviewed; new PageToolsBuilder tests + full make cs (phpcs + phpstan) green, and verified live on the demo wiki — "View RDF" renders on a Subject page and its target returns text/turtle, and is absent on a Subject-less page. Full local PHPUnit is green apart from two pre-existing SPARQL end-to-end tests that need the QLever service (absent from this dev stack, unrelated to this change); CI covers them.

The per-page RDF export (GET /rest.php/neowiki/v0/page/{pageId}/rdf) was only
reachable by hand-constructing the URL. Add a "View RDF" link to the NeoWiki
page-tools sidebar section, next to "View JSON", pointing at the current page's
Turtle export.

It is shown only when the page has Subjects, so it never points at the
endpoint's 404-on-empty response. It uses ?format=turtle so the result renders
as readable text in the browser instead of downloading a TriG file, and targets
the native projection. Per-ontology projection links and a per-subject RDF
endpoint (#1087) are out of
scope here.

Relates to #1023

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JeroenDeDauw

Copy link
Copy Markdown
Member Author
image

@JeroenDeDauw
JeroenDeDauw marked this pull request as ready for review July 19, 2026 13:37
@malberts
malberts merged commit c81ceab into master Jul 21, 2026
6 checks passed
@malberts
malberts deleted the feature/page-tools-rdf-link branch July 21, 2026 11:21
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.

2 participants