-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
219 lines (195 loc) · 8.24 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Snorql: A SPARQL Explorer - Extended Edition">
<meta name="author" content="Ammar Ammar (https://github.com/ammar257ammar)">
<link rel="icon" href="assets/images/favicon.ico">
<title>Snorql: A SPARQL Explorer - Extended Edition</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="assets/codemirror/lib/codemirror.css" />
<link rel="stylesheet" type="text/css" href="assets/codemirror/addon/display/fullscreen.css" />
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-treeview.min.css" />
<link rel="stylesheet" type="text/css" href="assets/css/style.css" />
<script type="text/javascript" src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/codemirror/lib/codemirror.js"></script>
<script type="text/javascript" src="assets/codemirror/mode/javascript/javascript.js"></script>
<script type="text/javascript" src="assets/codemirror/addon/selection/active-line.js"></script>
<script type="text/javascript" src="assets/codemirror/addon/edit/matchbrackets.js"></script>
<script type="text/javascript" src="assets/codemirror/addon/display/fullscreen.js"></script>
<script type="text/javascript" src="assets/codemirror/sparql.js"></script>
<script type="text/javascript" src="assets/js/bootstrap-treeview.min.js"></script>
<script type="text/javascript" src="assets/js/sparql.js"></script>
<script type="text/javascript" src="assets/js/namespaces.js"></script>
<script type="text/javascript" src="assets/js/snorql.js"></script>
<script type="text/javascript" src="assets/js/script.js"></script>
</head>
<body onload="start()">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- <div class="container"> -->
<div class="navbar-header">
<a class="navbar-brand" id="index-page" href="">Snorql-UI: A SPARQL Explorer</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
</ul>
<form class="navbar-form navbar-right">
<div class="input-group">
<span class="input-group-addon">SPARQL Endpoint</span>
<input size="50" class="form-control mr-sm-2" name="endpoint" id="endpoint" onchange="changeEndpoint();" />
</div>
</form>
</div><!--/.navbar-collapse -->
</div>
</nav>
<div class="snorql container-fluid">
<div class="row">
<div class="col-md-8">
<div class="row">
<div class="col-md-12">
<h4>SPARQL Query:</h4>
<textarea name="query" id="querytext" rows="9"></textarea>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("querytext"), {
lineNumbers: true,
mode: "application/sparql-query",
matchBrackets: true
});
</script>
</div>
</div>
<div class="row">
<div class="col-md-12 buttons-holder">
<input id="query-button" type="button" class="btn btn-success" value="Query" />
<input id="reset-button" type="button" class="btn btn-danger" value="Reset" />
<input id="export-csv" type="button" class="btn btn-warning" value="Export CSV" />
<input id="export-json" type="button" class="btn btn-primary" value="Export JSON" />
<input id="export-xml" type="button" class="btn btn-info" value="Export XML" />
<input id="generate-permalink" type="button" class="btn btn-secondary" value="Get Permalink" />
<input id="enter-fullscreen" type="button" class="btn btn-dark" value="Fullscreen Mode" />
<input id="show-prefixes" type="button" class="btn btn-light" value="Show Prefixes" />
</div>
</div>
</div>
<div class="col-md-4">
<h4>SPARQL Examples:</h4>
<div class="panel panel-default">
<div class="panel-heading">
<div class="input-group">
<input type="text" class="form-control" id="examples-repo" name="examples-repo" placeholder="Github Repositoty URL" onchange="changeExamplesRepo();">
<div class="input-group-btn">
<button id="fetch" class="btn btn-primary"><i class="glyphicon glyphicon-refresh"></i></button>
</div>
</div>
</div>
<div id="examplesMainBody" class="panel-body">
<!-- <form> -->
<div class="form-group">
<label for="input-search" class="sr-only">Search Tree:</label>
<input type="input" class="form-control" id="input-search" placeholder="Type part of the query file name to search for..." value="">
</div>
<button type="button" class="btn btn-success" id="btn-search">Search</button>
<button type="button" class="btn btn-default" id="btn-clear-search">Clear</button>
<!-- </form> -->
<hr/>
<div class="list-group" id="examples"></div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="pre-scrollable" id="result"><span></span></div>
</div>
</div>
</div>
<footer id="footer" class="footer navbar-fixed-bottom">
<div class="container-fluid">
<p>Powered by <a id="poweredby" href="#">Snorql</a> - <a href="cookies.html">Cookie Policy</a></p>
</div>
</footer>
<div id="fullscreen-navbar" class="navbar-fixed-top">
<div class="container">
<div class="row">
<div class="col-md-12">
<input id="exit-fullscreen" type="button" class="btn btn-danger" value="Exit Fullscreen" />
<input id="examples-fullscreen" type="button" class="btn btn-primary" value="Examples" />
</div>
</div>
</div>
</div>
<div id="cookieModal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Cookies Usage</h3>
</div>
<div class="modal-body">
<p>We use site preferences cookies to provide you with a great experience on this site, specifically to keep your chosen SPARQL endpoint and examples repository URL when you refresh the page or navigate this site.</br>
If you need more information, please read our <a href="cookies.html">Cookie Policy</a>.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">Accept</button>
<button type="button" class="btn btn-secondary">Reject</button>
</div>
</div>
</div>
</div>
<div id="permalinkModal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title text-primary">Permanent Link for current query</h3>
</div>
<div class="modal-body">
<p id="permalink-url"></p>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div id="examplesModal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title text-primary">SPARQL Examples</h3>
</div>
<div id="examplesModalBody" class="modal-body">
<!-- <form> -->
<div class="form-group">
<label for="input-search" class="sr-only">Search Tree:</label>
<input type="input" class="form-control" id="input-search-fs" placeholder="Type part of the query file name to search for..." value="">
</div>
<button type="button" class="btn btn-success" id="btn-search-fs">Search</button>
<button type="button" class="btn btn-default" id="btn-clear-search-fs">Clear</button>
<!-- </form> -->
<hr/>
<div class="list-group" id="examples-fs"></div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div id="prefixesModal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title text-primary">SPARQL endpoint's available prefixes</h3>
</div>
<div id="prefixesModalBody" class="modal-body">
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</body>
</html>