-
Notifications
You must be signed in to change notification settings - Fork 2
/
ontology.html
69 lines (69 loc) · 2.4 KB
/
ontology.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
<!DOCTYPE html>
<html>
<head>
<title>Knowledge management FAIRification tool for conservation and restoration processes</title>
<link rel="icon" type="image/x-icon" href="pictures/CoffeeAndConservationLogo.png">
<script src="js/d3.v7.min.js"></script>
<script src="js/visualizationMethods.js"></script>
<script src="js/visualizeOntology.js"></script>
</head>
<body>
<header>
<h1>Knowledge management FAIRification tool for conservation and restoration processes</h1>
<hr>
</header>
<nav>
<a href="index.html">Introduction</a>
<a href="vocabulary.html">Vocabulary</a>
<a href="ontology.html">Ontology</a>
<a href="contact.html">Contact</a>
<br>
<center>
<img src="pictures/RDF-Image.svg" alt="W3C, Bill Schwappacher PD" height="150" title="W3C, Bill Schwappacher PD" img>
</center>
</nav>
<main>
<article>
<section>
<h2>Ontology validation and visualization</h2>
<p>RDF/OWL-Datei validieren oder Beispieldatensatz verwenden.</p>
<div id="input">
<form id="fileForm">
<input type="file" id="fileInput" accept=".owl, .json-ld, .json">
<button type="submit">Ontologie laden</button>
</form>
<br>
<button onclick = readExampleOntology() id = "exampleButton" >Beispiel laden</button>
</div>
<div id="output" style="height:1000px;width:100%;">
<p id="ignored"> </p>
<p id="topped"> </p>
<p id="orphans"> </p>
<p id="outputText"> </p>
<p id="doublettes"> </p>
<p id="missingParents"> </p>
<p id="errorText"> </p>
<chart id="chart"> </chart>
</div>
</section>
<aside> </aside>
</article>
</main>
<script>
const fileForm = document.getElementById('fileForm');
fileForm.addEventListener('submit', inputFile);
function inputFile() {
event.preventDefault();
const inputFile = document.getElementById('fileInput');
const file = inputFile.files[0];
let reader = new FileReader();
reader.onload = function(e) {
result = e.target.result;
parseJsonld(result)
};
reader.readAsText(file);
}
</script>
<footer> </footer>
</body>
</html>