-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (73 loc) · 2.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
<DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>dataUAI</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Material+Icons">
</head>
<body>
<!-- header -->
<header class="header">
<a class="link" href="/"><h1>dataUAI</h1></a>
</header>
<div class="main-content">
<h2 class="sector-title">Bem vindo ao #dataUAI</h2>
<p class="sector-title">O portal de dados abertos do IFPB/UAI</p>
<div class="options">
<a href="temp/dataset.rdf" class="card">
<span class="icon">
<i class="material-icons">file_download</i>
</span>
<h1>Download</h1>
<p>Conjunto de dados com professores, projetos, áreas e disciplinas.</p>
</a>
<a href="http://openuai.ifpb.edu.br/sparql/" class="card">
<span class="icon">
<i class="material-icons">cloud</i>
</span>
<h1>Endpoint</h1>
<p>Interface para consultas no dataset com Sparql.</p>
</a>
</div> <!-- options -->
<div>
<h3 class="sector-title">Informações Adicionais</h3>
<table>
<tr>
<th>Campo</th>
<th>Valor</th>
</tr>
<tr>
<td>Ultima atualização</td>
<td>25/07/2017</td>
</tr>
<tr>
<td>Formato</td>
<td>RDF/turtle</td>
</tr>
<tr>
<td>Licença</td>
<td>ODbL</td>
</tr>
<tr>
<td>Total de triplas</td>
<td>3325</td>
</tr>
</table>
</div>
</div> <!-- main-content -->
<div class="base-footer">
</div>
</body>
</html>
<!-- Script para consultar quantidade de triplas do dataset -->
<!-- <script>
let query = 'http://openuai.ifpb.edu.br/sparql/?default-graph-uri=&query=SELECT+%28COUNT%28*%29+as+%3Ftotal%29+FROM+%3Chttp%3A%2F%2Fopenuai.ifpb.edu.br%2Fopenuai%3E+WHERE+%7B+%3Fs+%3Fp+%3Fo+.+%7D&format=application%2Fsparql-results%2Bjson&timeout=0&debug=on';
var bora = document.getElementById('total-triples');
fetch(query)
.then(res => res.json())
.then((data) => {
var total = data.results.bindings[0].total.value;
bora.innerHTML = total;
})
</script> -->