-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
72 lines (66 loc) · 2.83 KB
/
index.htm
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!doctype html>
<html dir="ltr" lang="cs">
<head>
<meta charset="UTF-8">
<meta name="author" content="jmacura 2016">
<meta name="robots" content="index, follow">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>LOD Ion Cannon</title>
<link rel="stylesheet" href="styles.css" type="text/css" media="all">
<script src="https://code.jquery.com/jquery-3.5.0.min.js"></script>
<!--script src="./lib/jquery-3.5.0.min.js"></script-->
<!--script src="https://code.jquery.com/jquery-migrate-3.2.0.min.js"></script-->
<script src="FileSaver.min.js"></script>
<script src="LODIC-GUI.js" charset="utf-8"></script>
<script src="LODIC.js" charset="utf-8"></script>
</head>
<body lang="cs">
<main>
<div id="content">
<h1>LOD Ion Cannon</h1>
<p>This primitive tool provides functionality to retrieve big data fractions from SPARQL endpoints, where the number of results is limited. This is achieved by sending the query "per partes".</p>
<form>
<input type="reset" value="Reset to defaults"><br>
<label for="url">URL of your SPARQL endpoint: </label>
<input type="url" id="url" autofocus autocomplete="on" value="http://dbpedia.org/sparql" size=50><br>
<label for="count">Counting SPARQL query:</label><br>
<textarea id="count" rows=10 cols=70>
SELECT COUNT(DISTINCT ?place) WHERE {
?place dbp:latDegrees ?lat.
?place dbp:longDegrees ?lon.
}
</textarea><br>
<label for="query">SPARQL query you would like to perform:</label><br>
<textarea id="query" rows=10 cols=70>
SELECT DISTINCT ?place SAMPLE(?lat) AS ?lat SAMPLE(?lon) AS ?lon
WHERE {
?place dbp:latDegrees ?lat.
?place dbp:longDegrees ?lon.
} GROUP BY ?place
</textarea><br>
<label for="limit">LIMIT:</label>
<input type="number" id="limit" min="1" value="10000" title="Maximum number of results that can be retrieved in a single query">
</form>
<button onclick="getCount();" id="button-sum">Sum the results</button> 
<button onclick="retrieveData();" id="button-query">Query data from endpoint (fire teh cannon!)</button> 
<input type="text" id="filename" value="all-dbp-points.csv" autocomplete="on">
<button onclick="saveData();" id="button-save">Save those data to CSV</button>
<div id="info-block"></div>
<p> </p>
<footer>
<div class="logo">
<img src="logo_web.svg" alt="author's logo">
</div>
<div class="credits">
This work is licensed under a <a rel="license" href="https://www.mozilla.org/en-US/MPL/2.0/">Mozilla Public License Version 2.0</a>.
<p>Author: Jan Macura, 2016, 2020</p>
<p>University of West Bohemia, <a href="http://www.fav.zcu.cz/en">Faculty of Applied Sciences</a></p>
</div>
</footer>
</div>
</main>
</body>
</html>