-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
205 lines (197 loc) · 10.9 KB
/
index.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Administrator panel for POI changes</title>
<!-- Bootstrap -->
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="bower_components/ol.css" rel="stylesheet">
<link href="app.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<h1>Query builder for semantic data</h1>
<form>
<div class="form-group">
<label for="graph">Graph URI</label>
<input class="form-control" id="graph" value="http://www.sdi4apps.eu/poi.rdf"/>
</div>
<div class="form-group">
<label for="graph">Geometry property</label>
<input class="form-control" id="geometry" value="http://www.opengis.net/ont/geosparql#asWKT"/>
</div>
<div id="map"></div>
<div class="form-group">
<label for="graph">Geographical extent</label>
<input class="form-control" id="extent" value='FILTER(bif:st_intersects(bif:st_geomfromtext("BOX(13.406410217285154 49.726199237868315, 13.506488800048826 49.74561491960256)"), ?geom)).'/>
</div>
</form>
<div style="margin-top: 1em" id="table_container">
<img id="loader4table" src="ajax-loader.gif"/>
</div>
<img id="loader4suggestions" src="ajax-loader.gif"/>
<pre class="generated_code"></pre>
<button class="btn btn-success" id="run">Run</button>
<button class="btn btn-default" id="show_publish">Publish</button>
<p>
<div id="results"></div>
</p>
<div class="modal fade" tabindex="-1" role="dialog" id="publish_result_success">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Publishing result</h4>
</div>
<div class="modal-body">
<div translate class="alert alert-success" ng-show="success">Successfuly published</div>
</div>
<div class="modal-footer" id="stc-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" translate>Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="publish_result_failure">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Publishing result</h4>
</div>
<div class="modal-body">
<div translate class="alert alert-danger" ng-show="success">Failed to publish</div>
</div>
<div class="modal-footer" id="stc-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" translate>Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="publish_dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Publish query</h4>
</div>
<div class="modal-body">
<form class="form">
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" id="title" placeholder="Title">
</div>
<div class="form-group">
<label for="description">Description</label>
<input type="text" class="form-control" id="description" placeholder="Description">
</div>
<div class="form-group">
<label for="keywords">Keywords</label>
<input type="text" class="form-control" id="keywords">
</div>
<fieldset>
<legend>Contact info</legend>
<div class="form-group">
<div class="row">
<div class="col-md-6">
<label class="control-label">First Name</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input id="first_name" name="first_name" placeholder="First Name" class="form-control" type="text">
</div>
</div>
<div class="col-md-6">
<label class="control-label" >Last Name</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input id="last_name" name="last_name" placeholder="Last Name" class="form-control" type="text">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label class="control-label">E-Mail</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" name="email" placeholder="E-Mail Address" class="form-control" type="email">
</div>
</div>
<div class="col-md-6">
<label class="control-label">Organization</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-briefcase"></i></span>
<input id="organization" name="organization" placeholder="Organization name" class="form-control" type="text">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label class="control-label">Address</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-home"></i></span>
<input id="address" name="address" placeholder="Address" class="form-control" type="text">
</div>
</div>
<div class="col-md-6">
<label class="control-label">City</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-home"></i></span>
<input id="city" name="city" placeholder="city" class="form-control" type="text">
</div>
</div>
</div>
</div>
</fieldset>
<div class="form-group">
<label for="lineage">Lineage statement</label>
<textarea class="form-control" id="lineage"></textarea>
</div>
<div class="form-group">
<label for="resource_locator">URL</label>
<textarea class="form-control" id="resource_locator"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="publish">Save changes</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="publish_json_dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Publish query</h4>
</div>
<div class="modal-body" id="json_result">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/ol.js"></script>
<script src="index.js"></script>
</body>
</html>