1234567891011121314151617181920212223242526272829 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>RDFLib endpoint</title>
- <link href="https://unpkg.com/@triply/yasgui@4/build/yasgui.min.css" rel="stylesheet" type="text/css" />
- <script src="https://unpkg.com/@triply/yasgui@4/build/yasgui.min.js"></script>
- </head>
- <body>
- <div id="yasgui"></div>
- <script>
- Yasqe.defaults.value = `$EXAMPLE_QUERY`
- const url = window.location.href.endsWith('/') ? window.location.href.slice(0, -1) : window.location.href;
- const yasgui = new Yasgui(document.getElementById("yasgui"), {
- requestConfig: { endpoint: url + "/" },
- endpointCatalogueOptions: {
- getData: function () {
- return [
- { endpoint: url + "/" },
- ];
- },
- keys: [],
- },
- });
- </script>
- </body>
|