forked from Triply-Dev/YASGUI.YASR-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 1
/
blank.html
51 lines (40 loc) · 1.12 KB
/
blank.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<link href="dist/yasr.min.css" rel="stylesheet" type="text/css" />
<!-- build:css -->
<link rel="stylesheet" href="//localhost/yasgui/yasqe/dist/yasqe.min.css">
<!-- endbuild -->
</head>
<body>
<div id="yasqe"></div>
<div id="showcase"></div>
<script src="dist/yasr.bundled.min.js"></script>
<!-- build:js -->
<script src="//localhost/yasgui/yasqe/dist/yasqe.bundled.js"></script>
<!-- endbuild -->
<script type="text/javascript">
var yasr, yasqe = {};
yasr = YASR(document.getElementById("showcase"));
yasqe = YASQE(document.getElementById("yasqe"), {
sparql: {
showQueryButton: true,
}
});
/**
* Set some of the hooks to link YASR and YASQE
*/
yasr.options.getUsedPrefixes = yasqe.getPrefixesFromQuery;
yasqe.options.sparql.callbacks.complete = yasr.setResponse;
if (!yasr.storage.get("yasr_showcase_results")) yasqe.query();
/**
* A function to do some quick testing
*/
function testFile(testFile) {
$.get("test/" + testFile, function(data) {
yasr.setResponse(data);
});
}
</script>
</body>
</html>