From cfa7d56d9775567eba7b291b8e8c66d00a8bd9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Sun, 25 May 2025 09:04:30 +0200 Subject: [PATCH 1/4] Restored `ldh:ChildrenViewContructor` --- .../com/atomgraph/linkeddatahub/ldh.ttl | 21 ++++++++++++++++--- .../xsl/bootstrap/2.3.2/client/block.xsl | 8 +++++++ .../bootstrap/2.3.2/client/block/query.xsl | 12 ++--------- .../xsl/bootstrap/2.3.2/client/form.xsl | 2 +- .../xsl/bootstrap/2.3.2/layout.xsl | 8 ++++--- 5 files changed, 34 insertions(+), 17 deletions(-) diff --git a/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl b/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl index 9823751df..96aab82b1 100644 --- a/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl +++ b/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl @@ -576,14 +576,29 @@ dh:Item spin:constructor :TitleConstructor, :DescriptionConstructor, :PrimaryTop WHERE {}""" ; rdfs:isDefinedBy : . +:ChildrenViewContructor a :Constructor ; + rdfs:label "Container content constructor" ; + sp:text """ + PREFIX ldh: + PREFIX rdf: + PREFIX spin: + + CONSTRUCT { + $this rdf:_1 [ + a ldh:Object ; + rdf:value ldh:ChildrenView ; + ] . + } + WHERE {}""" ; + rdfs:isDefinedBy : . + :MissingContainer a :MissingPropertyValue ; rdfs:label "Missing container" ; rdfs:comment "Requires items to have a parent container" ; sp:arg1 sioc:has_container ; rdfs:isDefinedBy : . -dh:Container spin:constructor :TitleConstructor, :DescriptionConstructor, :PrimaryTopicConstructor ; - :template :ChildrenView . +dh:Container spin:constructor :TitleConstructor, :DescriptionConstructor, :PrimaryTopicConstructor, :ChildrenViewContructor . :MissingParent a :MissingPropertyValue ; rdfs:label "Missing parent" ; @@ -678,4 +693,4 @@ sd:Service spin:constructor :ServiceConstructor ; } WHERE {}""" ; rdfs:label "Service constructor" ; - rdfs:isDefinedBy : . \ No newline at end of file + rdfs:isDefinedBy : . diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl index a673a28dd..8653920b0 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl @@ -115,6 +115,14 @@ exclude-result-prefixes="#all" + + + + + + + + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/query.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/query.xsl index e9585b9ee..932338fb4 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/query.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/query.xsl @@ -43,17 +43,9 @@ exclude-result-prefixes="#all" - - - - - - - - - + @@ -467,7 +459,7 @@ exclude-result-prefixes="#all" - + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl index 54850fd87..225d1a1b7 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl @@ -107,7 +107,7 @@ WHERE - + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/layout.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/layout.xsl index 940b29e8d..4238e0e9d 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/layout.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/layout.xsl @@ -805,8 +805,10 @@ LIMIT 100 - - + + + +
@@ -838,7 +840,7 @@ LIMIT 100 - + From efb48ca5ceead0fdd312e11362070fc5f231a560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Sun, 25 May 2025 11:03:10 +0200 Subject: [PATCH 2/4] Improved template match pattern --- .../atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl index 225d1a1b7..dedf0fd58 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl @@ -107,7 +107,7 @@ WHERE - + From cf431a05202211e1d5bb03f12dbaefe6697eceb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Sun, 25 May 2025 13:05:11 +0200 Subject: [PATCH 3/4] Inline chart save feature --- .../bootstrap/2.3.2/client/block/chart.xsl | 115 +++++++++++++++++- 1 file changed, 112 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl index 228f60fcc..48a99bf3b 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl @@ -39,6 +39,54 @@ exclude-result-prefixes="#all" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -216,9 +264,9 @@ exclude-result-prefixes="#all" - - - + + +