File: query.html

package info (click to toggle)
oxigraph 0.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,028 kB
  • sloc: python: 1,864; cpp: 554; sh: 145; makefile: 77
file content (27 lines) | stat: -rw-r--r-- 907 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Oxigraph server</title>
    <link href="https://unpkg.com/@zazuko/yasgui@4/build/yasgui.min.css" rel="stylesheet" type="text/css" />
    <script src="https://unpkg.com/@zazuko/yasgui@4/build/yasgui.min.js"></script>
    <link rel="icon" type="image/svg+xml" href="/logo.svg">
</head>
<body>
<div id="yasgui"></div>
<script>
    const url = window.location.href.endsWith('/') ? window.location.href.slice(0, -1) : window.location.href;
    new Yasgui(document.getElementById("yasgui"), {
        requestConfig: { endpoint: url + "/query" },
        endpointCatalogueOptions: {
            getData: function () {
                return [
                    { endpoint: url + "/query" },
                    { endpoint: url + "/update" },
                ];
            },
            keys: [],
        }
    });
</script>
</body>