From 249a226030e0519670ca1012c191d5696eee8253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Wed, 18 Nov 2026 22:11:42 +0100 Subject: [PATCH 1/4] A SELECT chart drawn as a Table pages its rows with the view's pager, within its own LIMIT and from its own OFFSET Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 + .../linkeddatahub/xsl/client/block/chart.xsl | 238 ++++++++++++++++++ .../linkeddatahub/xsl/client/block/view.xsl | 18 +- .../xsl/client/query-transforms.xsl | 47 +++- .../atomgraph/linkeddatahub/xsl/document.xsl | 8 + 5 files changed, 306 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc9249ee..d912f640a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ - `PATCH /settings` refuses to change a dataspace's wiring (`422`): `lds:origin` and `lds:service` are the deployment's, set when the dataspace is made. An owner of one dataspace could otherwise point it at another's SPARQL service, or take another's origin, through their own settings - `PATCH /settings` refuses to change `lds:versioningRepository` too: an owner could otherwise have their dataspace commit, with the deployment's credentials, over another dataspace's versions +### Added +- A SELECT chart drawn as a Table pages its rows with the view's pager, within the query's own LIMIT and from its OFFSET; any other chart type draws every row (#219) + ### Changed - A resource a document describes may be left without a type: `PATCH` refuses only to leave the document itself untyped, which it already did, as the document must keep a document hierarchy class. Imported data often describes entities without a type, and a resource that had one could not be given the same shape (#308 held every resource to keeping one) - The `ldh` plugin's skills show how to check which property views a type gets without a browser, with the page's own lookup query against the installed ontology: `ldh get --accept text/html` returns the page before the browser renders its blocks and property views @@ -31,6 +34,7 @@ - The assistant waits for a plan that takes longer than two minutes to write: nginx cut the plan service's answer at 120 s, measured as a 10-30 s model call when the limit was set, and the card then reported that the endpoint could not be reached. A plan against a large ontology takes 40-130 s, longer when the service repairs the model's SPARQL; the wait is bounded at 10 minutes - An empty write through the Linked Data proxy keeps its `Content-Type`, so an empty append is answered `204` as it is directly instead of `400` - A `502` for an upstream failure (a SPARQL result the Varnish store cut short, a result that could not be read) carries a description with the failure's message, not Tomcat's HTML error page +- A view whose query has a subquery with a LIMIT or OFFSET of its own keeps them when it is paged, counted or mapped: only the query's own were meant to be replaced ## [6.5.2] - 2026-11-12 ### Fixed diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/chart.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/chart.xsl index 4f55ba90c..31407ff9a 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/chart.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/chart.xsl @@ -101,6 +101,59 @@ exclude-result-prefixes="#all" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -214,6 +267,55 @@ exclude-result-prefixes="#all" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -232,6 +334,8 @@ exclude-result-prefixes="#all" + + @@ -261,6 +365,7 @@ exclude-result-prefixes="#all" 'chart-type-id': $chart-type-id, 'category-id': $category-id, 'series-id': $series-id, + 'pager-container-id': $pager-container-id, 'query-uri': $query-uri, 'chart-type': $chart-type, 'category': $category, @@ -348,6 +453,8 @@ exclude-result-prefixes="#all" + + @@ -393,6 +500,93 @@ exclude-result-prefixes="#all" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -726,6 +954,16 @@ exclude-result-prefixes="#all" + + + + + + + + + + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl index 99e2c33f6..851e54ee4 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl @@ -355,6 +355,9 @@ exclude-result-prefixes="#all" + + @@ -388,6 +391,7 @@ exclude-result-prefixes="#all" map { 'request': $request, 'container': ., + 'count-slot': $count-slot, 'container-id': $container-id, 'count-var-name': $count-var-name, 'cache': $cache @@ -3467,7 +3471,6 @@ exclude-result-prefixes="#all" - ldh:result-count-response @@ -3480,7 +3483,7 @@ exclude-result-prefixes="#all" - + @@ -3497,14 +3500,14 @@ exclude-result-prefixes="#all" - + - + + - + @@ -3525,7 +3529,7 @@ exclude-result-prefixes="#all" - + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/query-transforms.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/query-transforms.xsl index 001a69c2b..770944fdd 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/query-transforms.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/query-transforms.xsl @@ -73,7 +73,8 @@ extension-element-prefixes="ixsl" - + + @@ -98,7 +99,8 @@ extension-element-prefixes="ixsl" - + + + + + query + SELECT + + + + + + + + + + + group + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/document.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/document.xsl index 0a892ca88..d1ca32993 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/document.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/document.xsl @@ -964,6 +964,8 @@ exclude-result-prefixes="#all" + + + + + + From 9dd28836121ad5d537399b643cc68eb522a073e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Wed, 18 Nov 2026 22:14:52 +0100 Subject: [PATCH 2/4] A view's facet on a string-ranged property filters the results by the text their value contains Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + .../linkeddatahub/xsl/client/block/view.xsl | 249 ++++++++++++++---- .../xsl/client/query-transforms.xsl | 77 +++++- .../linkeddatahub/xsl/translations.rdf | 4 + 4 files changed, 282 insertions(+), 49 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d912f640a..f345c8161 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Added - A SELECT chart drawn as a Table pages its rows with the view's pager, within the query's own LIMIT and from its OFFSET; any other chart type draws every row (#219) +- A view's facet on a property whose range is a string is a text input: it keeps the results whose value contains the text, in any case, and clears as the other facets do (#99) ### Changed - A resource a document describes may be left without a type: `PATCH` refuses only to leave the document itself untyped, which it already did, as the document must keep a document hierarchy class. Imported data often describes entities without a type, and a resource that had one could not be given the same shape (#308 held every resource to keeping one) diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl index 851e54ee4..edc53eeb8 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client/block/view.xsl @@ -324,27 +324,113 @@ exclude-result-prefixes="#all" - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + @@ -967,6 +1053,25 @@ exclude-result-prefixes="#all"
+ + + + + + + + + + + + + + + + + + + @@ -1522,7 +1627,7 @@ exclude-result-prefixes="#all" - +