Commit 931f821
Hoist dataset (FROM) clause when wrapping a query into DESCRIBE
ldh:wrap-describe nested the original query — including its FROM / FROM NAMED
dataset clause — as a subquery inside DESCRIBE * WHERE { … }. A dataset clause
is only legal on the outermost query, so any view query carrying a FROM (e.g.
FROM <urn:x-arq:UnionGraph>) became an invalid subquery and the SPARQL endpoint
returned 400. Result-set views (ldh:View, all modes) always go through
ldh:RenderView → ldh:wrap-describe, so they all broke; charts (ResultSetChart)
bypass this path, which is why FROM works there.
Hoist the dataset clause up to the wrapping DESCRIBE and strip it from the
nested subquery. No-op for queries without a dataset clause, so fully
backwards-compatible.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6aef905 commit 931f821
1 file changed
Lines changed: 17 additions & 1 deletion
File tree
- src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client
src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/query-transforms.xsl
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
107 | 112 | | |
108 | | - | |
| 113 | + | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
113 | 129 | | |
114 | 130 | | |
115 | 131 | | |
| |||
0 commit comments