This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 61958e3aef670b2ae95344dad4dc4cad005dc4f1
Author: Simon Bin <[email protected]>
AuthorDate: Thu Nov 13 14:15:55 2025 +0100

    GH-3587: add yasgui-geo-tg plug-in to render geosparql results
---
 jena-fuseki2/jena-fuseki-ui/package.json                |  3 ++-
 jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue | 10 +++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/jena-fuseki2/jena-fuseki-ui/package.json 
b/jena-fuseki2/jena-fuseki-ui/package.json
index 7c88251e3d..72bfdbb69c 100644
--- a/jena-fuseki2/jena-fuseki-ui/package.json
+++ b/jena-fuseki2/jena-fuseki-ui/package.json
@@ -38,7 +38,8 @@
     "qs": "6.14.1",
     "vue": "^3.5.26",
     "vue-router": "^4.2.5",
-    "vue-upload-component": "^3.1.8"
+    "vue-upload-component": "^3.1.8",
+    "yasgui-geo-tg": "Thib-G/yasgui-geo-tg#34cacd5"
   },
   "devDependencies": {
     "@babel/core": "^7.27.4",
diff --git a/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue 
b/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue
index 2d424f5407..33e541c8a4 100644
--- a/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue
+++ b/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue
@@ -182,11 +182,14 @@
 import Menu from '@/components/dataset/Menu.vue'
 import Yasqe from '@zazuko/yasqe'
 import Yasr from '@zazuko/yasr'
+import GeoPlugin from 'yasgui-geo-tg'
 import { createShareableLink } from '@/utils/query'
 import { nextTick } from 'vue'
 import currentDatasetMixin from '@/mixins/current-dataset'
 import currentDatasetMixinNavigationGuards from 
'@/mixins/current-dataset-navigation-guards'
 
+Yasr.registerPlugin('geo', GeoPlugin)
+
 const SELECT_TRIPLES_QUERY = `SELECT ?subject ?predicate ?object
 WHERE {
   ?subject ?predicate ?object
@@ -280,7 +283,9 @@ export default {
           {
             // we do not want to save the results, otherwise we will have 
query results showing in different
             // dataset views
-            persistenceId: null
+            persistenceId: null,
+            // Enable geo plugin alongside default table
+            pluginOrder: ['table', 'response', 'geo'],
           }
         )
         // Curried function to create shareable links. YASQE expects a function
@@ -417,4 +422,7 @@ export default {
     }
   }
 }
+.yasr .yasr_btnGroup .select_geo .plugin_icon {
+  margin-bottom: 20%;
+}
 </style>

Reply via email to