Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion files/layout.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<!-- load our custom client SEF instead of the stock client.xsl.sef.json -->
<xsl:template match="rdf:RDF[lapp:origin()] | srx:sparql[lapp:origin()]" mode="xhtml:Script">
<xsl:param name="client-stylesheet" select="resolve-uri('static/com/ltlod/xsl/client.xsl.sef.json', lapp:origin())" as="xs:anyURI"/>
<xsl:param name="client-stylesheet" select="resolve-uri('static/lt/linkeddata/xsl/client.xsl.sef.json', lapp:origin())" as="xs:anyURI"/>

<xsl:apply-imports>
<xsl:with-param name="client-stylesheet" select="$client-stylesheet"/>
Expand Down