From 3e9f6beccd83d32b20d8e3aa5e81dcee9df01adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Tue, 18 Aug 2026 16:16:55 +0200 Subject: [PATCH 1/2] Version diffs in the history modal Add From/To version selection to the Memento history modal and render a client-side triple diff between the two selected versions as Turtle-style hunks: subject header, then -/+ predicate-object lines (red/green, matching the From/To column headers), changed values of the same property paired up. The diff is the set difference over canonical triple keys, computed with the new shared ldh:triples-map() extracted from the origin-vs-local comparison in layout.xsl. The shared key gains an rdf:parseType="Literal" branch (XMLLiteral objects previously keyed on empty text) and an opt-in numeric normalization: layout.xsl keeps it for cross-serializer comparison, the version diff compares exact lexical forms. Both ?version= representations are fetched with a per-branch-context ixsl:http-request fan-out joined by ixsl:all; no server changes. Co-Authored-By: Claude Fable 5 --- .../xsl/bootstrap/2.3.2/client/memento.xsl | 163 ++++++++++++++---- .../xsl/bootstrap/2.3.2/imports/default.xsl | 16 ++ .../xsl/bootstrap/2.3.2/imports/memento.xsl | 72 ++++++++ .../xsl/bootstrap/2.3.2/layout.xsl | 16 +- .../xsl/bootstrap/2.3.2/translations.rdf | 16 ++ 5 files changed, 240 insertions(+), 43 deletions(-) diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/memento.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/memento.xsl index f3b46f4af..0c42d0162 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/memento.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/memento.xsl @@ -71,35 +71,69 @@ version="3.0"