From a9ed58b2979f53a1ee274144f1152430ca235e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Fri, 11 Sep 2026 20:20:28 +0200 Subject: [PATCH] Serve the client SEF from static/lt/linkeddata/ instead of static/com/ltlod/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The LTLOD client-side stylesheet override was mounted under a reverse-DNS path derived from a domain we do not own (com/ltlod), mirroring LDH's own static/com/atomgraph/linkeddatahub/. Use the reverse-DNS form of the actual deployment domain, linkeddata.lt, instead. Path depth is unchanged (three segments under static/), so client.xsl's relative import of ../com/atomgraph/linkeddatahub/xsl/client.xsl and the relocatable SEF are unaffected — no `make sef` rebuild is needed, only a container recreate to pick up the new bind-mount targets. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01Rpcs7VhsGAhungG9fjwR1Z --- CLAUDE.md | 2 +- docker-compose.override.yml | 6 +++--- files/layout.xsl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 694baac..fc29dd0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -196,7 +196,7 @@ since the rows differ in the image cell. Wiring: `make sef` c14n's `client.xsl`+`overrides.xsl` and compiles the SEF against the pinned image's `static/` tree; `docker-compose.yml` bind-mounts the four files (`layout.xsl`, `overrides.xsl` under `static/xsl/`; `client.xsl`, - `client.xsl.sef.json` under `static/com/ltlod/xsl/`). Rebuild the SEF + recreate + `client.xsl.sef.json` under `static/lt/linkeddata/xsl/`). Rebuild the SEF + recreate the container after editing any of them — `docker compose restart linkeddatahub` does NOT pick up an edited mount (it keeps serving the stylesheet compiled at the previous start); `docker compose up -d --force-recreate linkeddatahub` does, and diff --git a/docker-compose.override.yml b/docker-compose.override.yml index ecf99b1..b888f89 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -8,14 +8,14 @@ services: # linkeddatahub.com pattern — see CLAUDE.md "XSLT overrides". layout.xsl # replaces the stock end-user ac:stylesheet target (static/xsl/layout.xsl) # and imports overrides.xsl from its own dir; client.xsl + its compiled SEF - # live under static/com/ltlod/xsl/ (repointed by layout.xsl's xhtml:Script). + # live under static/lt/linkeddata/xsl/ (repointed by layout.xsl's xhtml:Script). # Rebuild the SEF (`make sef`) and recreate this container after editing any # of them. Not :ro on layout.xsl — LDH's InstallPackage endpoint appends to it. volumes: - ./files/layout.xsl:/usr/local/tomcat/webapps/ROOT/static/xsl/layout.xsl - ./files/overrides.xsl:/usr/local/tomcat/webapps/ROOT/static/xsl/overrides.xsl:ro - - ./files/client.xsl:/usr/local/tomcat/webapps/ROOT/static/com/ltlod/xsl/client.xsl:ro - - ./files/client.xsl.sef.json:/usr/local/tomcat/webapps/ROOT/static/com/ltlod/xsl/client.xsl.sef.json:ro + - ./files/client.xsl:/usr/local/tomcat/webapps/ROOT/static/lt/linkeddata/xsl/client.xsl:ro + - ./files/client.xsl.sef.json:/usr/local/tomcat/webapps/ROOT/static/lt/linkeddata/xsl/client.xsl.sef.json:ro # one-off bulk loader: `make load` runs it with fuseki-end-user stopped. # The fuseki image bundles the full Jena CLI inside the fuseki-server jar. # Committed TriG is base-relative with no @base; resolve it against the diff --git a/files/layout.xsl b/files/layout.xsl index bf94e9e..82807e3 100644 --- a/files/layout.xsl +++ b/files/layout.xsl @@ -48,7 +48,7 @@ - +