This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (41 loc) · 1.9 KB
/
index.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
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SPARQL Tool Example</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="dist/sparqljs.min.js"></script>
<script src="dist/example.js"></script>
</head>
<body>
<h1>Examples</h1>
<div class="query-examples" style="margin: 10px;">
<div class="query-example" style="padding: 10px;border: 1px black solid;margin-bottom: 5px;" data-query="SELECT ?s ?p ?o ((5) as ?i) WHERE{ ?s ?p ?o } LIMIT 10">
SELECT ?s ?p ?o ((5) as ?i) <br />
WHERE{ ?s ?p ?o } <br />
LIMIT 10
</div>
<div class="query-example" style="padding: 10px;border: 1px black solid;margin-bottom: 5px;" data-query="PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name WHERE { ?person foaf:name ?name . }">
PREFIX foaf: <http://xmlns.com/foaf/0.1/> <br />
SELECT ?name <br />
WHERE { <br />
?person foaf:name ?name . <br />
}
</div>
<div class="query-example" style="padding: 10px;border: 1px black solid;margin-bottom: 5px;" data-query="SELECT DISTINCT ?concept WHERE { ?s a ?concept . } LIMIT 50">
SELECT DISTINCT ?concept <br />
WHERE { <br />
?s a ?concept . <br />
} LIMIT 50
</div>
</div>
<h1>Send SPARQL query</h1>
<div class="example-form" style="margin-bottom: 10px;">
<textarea name="query-input" id="query-input" cols="60" rows="10"></textarea> <br />
<input type="button" value="Odeslat na Fuseki endpoint" data-url="http://localhost:3030/DBM2/query" class="submit-query" />
<input type="button" value="Odeslat na Virtuoso endpoint" data-url="http://dbpedia.org/sparql" class="submit-query" />
</div>
<h1>Results</h1>
<div id="example-sparql-results"></div>
</body>
</html>