-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdka.html~
executable file
·189 lines (150 loc) · 6.66 KB
/
dka.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
<!DOCTYPE html>
<html ng-app="dkaApp" 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 -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="./docs/32px-robot-blue.png">
<title>DKA-robo demo</title>
<!-- Bootstrap core CSS -->
<link href="./dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./dist/css/font-awesome.min.css" rel="stylesheet">
<link href="./dist/css/custom.css" rel="stylesheet">
</head>
<body ng-controller="dkaController">
<!-- <nav class="navbar navbar-inverse navbar-fixed-top navbar-custom">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
</div>
</div>
</nav> -->
<div class="header" > <!-- <i class="fa fa-android fa-lg" aria-hidden="true"></i> DKA-robo demo <i class="fa fa-android fa-lg" aria-hidden="true"></i> -->
<div class="container">
<img id="logo" src="./docs/hires-logo.png" />
</div>
</div>
<div class="jumbotron">
<h2 class="text-center"> KMi Knowledge Base</h2>
<!-- <div class="container" style=" height: 100px"></div> -->
<div class="container">
<div class="kb_container">
<div class="map_container">
<img class="map" ng-src="{{configfile.map.img}}"/>
<img ng-model="configfile.robot" ng-style="configfile.robot.style" class="robot" ng-src="{{configfile.robot.img}}"/>
</div>
<div ng-repeat="room in configfile.rooms" id={{room.name}} class="element font16"
style="left:{{room.left}};top:{{room.top}};width:{{room.width}}" ng-hide="isRoomInvalid(room)" > <!-- -->
<div id="chart" >
<div class="panel panel-cstm">
<div class="panel-heading room-heading" style="background-color:{{room.backcolor}}"><b>{{room.name}}</b></div>
<table class="kb-table table table-condensed">
<tbody>
<!--<tr ng-if="x.validity" ng-repeat="(i,x) in room.properties" ng-style="{background:x.color}">-->
<tr ng-if="x.validity" ng-repeat="(i,x) in room.properties" style="background:{{x.color}};color:{{x.fontcolor}}">
<td>{{x.name}}</td>
<td>{{x.value}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div> <!-- /container -->
<!-- <div class="container" style=" height: 100px">
</div> -->
</div> <!-- end jumbo -->
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2>Query</h2>
<textarea ng-model="radioModel" class="form-control font17" rows="5">{{ radioModel || 'Insert a SPARQL query'}}</textarea>
<h3></h3>
<div class="btn-group btn-group-justified" role="group" aria-label="">
<select name="querySelect" id="querySelect" ng-model="$parent.radioModel" class="form-control font17 wider">
<option value="">--- Please select a query ---</option>
<option ng-repeat="query in configfile.queries" ng-value="query.value">{{query.name}}</option>
</select>
</div>
<!-- <h2></h2> -->
<p></p>
<!-- <div class="btn-toolbar"> -->
<div class="btn-group btn-group-justified" role="group">
<!--<button type="button" ng-click="queryServer()" class="btn navbar-btn btn-custom pull-left">
EXECUTE
</button>
<button type="button" ng-click="restartRandom()" class="btn navbar-btn btn-custom ">
RESTART
</button>
<button type="button" ng-click="abortButton()" class="btn navbar-btn btn-custom pull-right">
ABORT
</button>-->
<div class="btn-group" role="group">
<button type="button" ng-click="queryServer()" class="btn btn-primary font17">
EXECUTE
</button>
</div>
<div class="btn-group" role="group">
<button type="button" ng-click="restartRandom()" class="btn btn-primary font17">
RESTART
</button>
</div>
<div class="btn-group" role="group">
<button type="button" ng-click="abortButton()" class="btn btn-primary font17">
ABORT
</button>
</div>
</div>
</div>
<div class="col-md-4">
<h2>Plan</h2>
<!-- <p>Robo Plan print here...</p> -->
<div class="list-group">
<li ng-class="{disabled : action.executed, active : action.executing }" class="list-group-item" ng-repeat="action in planInExecution.plan" >
<span ng-if="action.executed" class="fa fa-check fa-fw font16" aria-hidden="true"></span>
<span ng-if="action.executing" class="fa fa-spinner fa-spin fa-fw font16" aria-hidden="true"></span>
{{action.name}}
</li>
</div>
</div>
<div class="col-md-4">
<h2>Results</h2>
<div ng-model="queryResults" ng-show="queryResults.show">
<table class="querytable table table-striped">
<tbody>
<tr>
<th ng-repeat="key in queryResults.keys" class="querycell">{{key}}</td>
</tr>
<tr ng-repeat="result in queryResults.results" class="queryrow">
<td ng-repeat="key in queryResults.keys" class="querycell">{{result[key]}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div> <!-- end row -->
<hr></hr>
<footer>
<!--<p>© Data Science group, Knowledge Media institute, The Open University, 2016</p>-->
<p>© <a href="https://dsg.kmi.open.ac.uk/">Data Science group</a>, Knowledge Media institute, The Open University, 2016</p>
</footer>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="./dist/js/bootstrap.min.js"></script>
<script src="./dist/js/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular-animate.js"></script>
<script src="./dist/js/ui-bootstrap-2.0.1.min.js"></script>
<script src="./dist/js/moment.min.js"></script>
<script src="./dist/js/dkaApp.js"></script>
</body>
</html>