-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsimple-check.html
More file actions
54 lines (43 loc) · 1.37 KB
/
simple-check.html
File metadata and controls
54 lines (43 loc) · 1.37 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>SPARQL complete</title>
<script type="text/javascript" src="lib/jquery-1.3.2.js"></script>
<script type="text/javascript" src="lib/grammar.js"></script>
<script type="text/javascript">
$(document).ready(function(){
CONSTRAINED_PROPERTIES['foaf:name'] = true;
CONSTRAINED_PROPERTIES['foaf:mbox'] = true;
CONSTRAINED_PROPERTIES['rdfs:label'] = true;
CONSTRAINED_CLASSES['foaf:Person'] = true;
CONSTRAINED_CLASSES['foaf:Agent'] = true;
CONSTRAINED_CLASSES['rdfs:Class'] = true;
var area = $('#area');
var suggest = $('#suggestion');
area.keydown(function(e) {
var suggs = parse(area.val());
if (suggs) {
suggest.val(suggs.join(" "));
} else {
suggest.val("You're going off piste");
}
});
});
</script>
<style type="text/css" media="screen">
/* <![CDATA[ */
input, textarea { font-size: 150%; font-family: monospace; }
input { width: 20em; }
/* ]]> */
</style>
</head>
<body>
<h1>Enter a SPARQL query</h1>
<p>
<textarea id="area" cols="40" rows="10"></textarea><br />
<label>Suggestions: <input id="suggestion" /></label>
</p>
</body>
</html>