From 91ec684edae59c5119ac4cb5e923a5ad7890c223 Mon Sep 17 00:00:00 2001 From: Martynas Date: Sun, 15 Dec 2024 23:12:20 +0100 Subject: [PATCH] `ldh:ViewQueryLoad` now sets both `$this` and `$about` on the view query --- .../com/atomgraph/linkeddatahub/app/admin/adm.ttl | 4 ++-- .../xsl/bootstrap/2.3.2/client/block/view.xsl | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl b/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl index 4c09fa8ce..7caea6f54 100644 --- a/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl +++ b/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl @@ -90,7 +90,7 @@ WHERE { { ?class a owl:Class } UNION { ?class a rdfs:Class } - ?class rdfs:isDefinedBy $this + ?class rdfs:isDefinedBy $about } } """ . @@ -234,7 +234,7 @@ PREFIX acl: SELECT DISTINCT ?agent WHERE { GRAPH ?authGraph - { $this acl:agent ?agent } + { $about acl:agent ?agent } } """ ; rdfs:isDefinedBy : . diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/view.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/view.xsl index 9d44ec2b0..36cfabead 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/view.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/view.xsl @@ -76,12 +76,13 @@ exclude-result-prefixes="#all" - + + - + ldh:View ldh:RenderBlock $about: @@ -97,6 +98,7 @@ exclude-result-prefixes="#all" + @@ -111,6 +113,7 @@ exclude-result-prefixes="#all" + @@ -127,6 +130,7 @@ exclude-result-prefixes="#all" + $select-string: