-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
101 lines (93 loc) · 3.8 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1">
<title>SPARQL Faceter</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bower_components/sparql-faceter/dist/semantic-faceted-search.css">
</head>
<body>
<div id="nav"></div>
<div ng-app="facetApp">
<div class="container-fluid" ng-controller="MainController as vm">
<div class="row">
<div class="col-md-12">
<h1>DBpedia Writers</h1>
<div ng-if="vm.error">
<uib-alert type="danger">{{ vm.error }}</uib-alert>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2">
<!-- Facets are defined here using the configurations defined in the controller -->
<seco-text-facet data-options="vm.facets.name"></seco-text-facet>
<seco-basic-facet data-options="vm.facets.genre"></seco-basic-facet>
<seco-basic-facet data-options="vm.facets.birthPlace"></seco-basic-facet>
<seco-basic-facet data-options="vm.facets.citizenship"></seco-basic-facet>
</div>
<!-- Results view -->
<div class="col-md-10">
<img src="images/loading-lg.gif" ng-show="vm.isLoadingResults" />
<table class="table">
<thead>
<tr>
<th>Writer</th>
<th>Abstract / Works</th>
<th>Birth Place</th>
<th>Notable Work</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="writer in vm.page">
<td style="width:21%">
<p>
<a ng-href="{{ writer.wikipediaLink || writer.id }}">{{ writer.name }}</a>
<span ng-if="writer.birthDate || writer.deathDate">({{ (writer.birthDate|date) || '?' }} - {{ writer.deathDate|date }})</span>
</p>
<img ng-if="writer.depiction" class="img img-responsive"
ng-src="{{ writer.depiction }}" />
</td>
<td>
<p>{{ writer.abstract }}</p>
<p><span ng-repeat="work in vm.makeArray(writer.work)">
<a ng-href="{{ work.link }}">{{ work.label }}</span></p>
</td>
<td>{{ writer.birthPlace }}</td>
<td>{{ writer.notableWork.join(", ") || writer.notableWork }}</td>
</tr>
</tbody>
</table>
<!-- Pagination -->
<div uib-pagination
class="pagination-sm"
max-size="10"
boundary-links="true"
rotate="false"
total-items="vm.totalCount"
ng-model="vm.pageNo"
ng-disabled="vm.isLoadingResults"
ng-change="vm.getPage()">
</div>
</div>
</div>
</div>
</div>
<div id="footer"></div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/lodash/dist/lodash.min.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
<script src="bower_components/angular-spinner/dist/angular-spinner.min.js"></script>
<script src="bower_components/checklist-model/checklist-model.js"></script>
<script src="bower_components/angular-paging-sparql-service/dist/sparql-service.js"></script>
<script src="bower_components/sparql-faceter/dist/semantic-faceted-search.js"></script>
<script src="bower_components/chart.js/dist/Chart.js"></script>
<script src="bower_components/angular-chart.js/dist/angular-chart.js"></script>
<script src="dbpedia-service.js"></script>
<script src="demo-controller.js"></script>
</body>
</html>