-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
80 lines (79 loc) · 2.88 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
<!doctype html>
<html lang="en">
<head>
<title>Rdf Viewer</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/rdf_flyer.24" />
<style>
body {
font-family: Helvetica Neue,sans-serif;
}
h1 {
text-align: center;
}
rdf-editor {
border: 2px solid;
border-image: linear-gradient(90deg, #7fc97f, #beaed4, #fdc086) 1;
width: 500px;
height: 150px;
min-height: 30px;
min-width: 30px;
resize: both;
overflow: auto;
margin: 10px 10px 10px 10px;
}
.editor-container {
display: flex;
flex-wrap: wrap;
}
.hidden {
display: none;
}
#rulesLabel {
background: linear-gradient(90deg, #7fc97f, #beaed4, #fdc086);
}
details {
margin-bottom: 20px;
border: 5px solid;
border-radius: 5px;
border-image: linear-gradient(90deg, #7fc97f, #beaed4, #fdc086) 1;
}
button, label, p {
margin: 10px 10px 10px 10px;
}
</style>
</head>
<body>
<header>
<h1>RDF Data Visualization</h1>
<details>
<summary class="section" id="rulesLabel"></summary>
<button id="loadDefaultRules">Use Default Rules</button>
<button id="loadBasicRules">Use Basic Rules</button>
<div>
<label for="rulesInput">Use Custom Rules</label>
<input id="rulesInput" type="file" accept=".n3">
</div>
<p><small>see the <a href="./doc/overview.html">overview</a> for an introduction</small></p>
<button id="toggleRules">Show Rules Editor</button>
</details>
</header>
<main>
<label for="fileInput">RDF data</label>
<input id="fileInput" type="file" accept=".ttl,.nt,.nq">
<div class="editor-container">
<div>
<rdf-editor id="data" format="application/trig"></rdf-editor>
<button id="show">Show</button>
<button id="save" disabled>Save</button>
</div>
<rdf-editor class="hidden" id="rules" format="text/n3"></rdf-editor>
<div style="text-align: center;">
<rdf2dot-custom id="graph"></rdf2dot-custom>
</div>
</div>
</main>
<script type="module" src="./index.js"></script>
</body>
</html>