Skip to content

Commit b9e474d

Browse files
committed
feat: upgraded to Yasgui v5.2.0
1 parent cb403a4 commit b9e474d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="manifest" href="manifest.json" />
1515

1616
<!-- YASGUI CSS -->
17-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@matdata/yasgui@5.1.0/build/yasgui.min.css">
17+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@matdata/yasgui@5.2.0/build/yasgui.min.css">
1818

1919
<!-- Font Awesome for icons -->
2020
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
@@ -32,7 +32,7 @@
3232
<div id="yasgui"></div>
3333

3434
<!-- YASGUI JavaScript -->
35-
<script src="https://cdn.jsdelivr.net/npm/@matdata/yasgui@5.1.0/build/yasgui.min.js"></script>
35+
<script src="https://cdn.jsdelivr.net/npm/@matdata/yasgui@5.2.0/build/yasgui.min.js"></script>
3636

3737
<!-- Footer toggle button (visible on small screens) -->
3838
<button id="footer-toggle" aria-label="Toggle footer">

src/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ if (typeof Yasgui !== "undefined") {
3737
requestConfig: {
3838
endpoint: "https://dbpedia.org/sparql",
3939
},
40+
// Set alternative SPARQL endpoint quick switch buttons
41+
endpointButtons: [
42+
{ endpoint: "https://dbpedia.org/sparql", label: "DBpedia" },
43+
{ endpoint: "https://query.wikidata.org/bigdata/namespace/wdq/sparql", label: "Wikidata" },
44+
{ endpoint: "https://data-interop.era.europa.eu/api/sparql", label: "ERA" }
45+
],
4046

4147
// Allow resizing of the Yasqe editor
4248
resizeable: true,

0 commit comments

Comments
 (0)