-
Notifications
You must be signed in to change notification settings - Fork 2
/
generator.html
48 lines (42 loc) · 1.93 KB
/
generator.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
<html>
<head>
<title>Linked Datex 2 - vocabulary</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<!-- Latest compiled and minified bootstrap CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional bootstrap theme -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootswatch/3.1.1/flatly/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<script src="js/rdf2html.js"></script>
</head>
<body>
<div class='container'>
<div class='row'>
<div class='col-sm-7'>
<h1>Linked Datex 2</h1>
<p>Fork me on <a href="https://github.com/opentransport/linked-datex2/">github</a>! You can find the machine-readable text/turtle version of this file <a href="vocabulary.ttl">here</a></p>
<hr/>
<div id="loading">Loading... (this can take a while: Linked Datex 2 is a big ontology)</div>
<div data-rdftohtml-plugin='triples'></div>
</div>
</div>
</div>
<!-- You can now set the turtle over here: -->
<script id="turtle" type="text/turtle" src="vocabulary.ttl"></script>
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<!-- Run RDF2HTML -->
<script type="text/javascript">
$.get($("#turtle").attr('src'), function (triples) {
$("#loading").html('');
var config = {
// Plugins to be called, add your own plugin to the plugin definition in rdf2hml.js and compile
plugins: ['triples'],
// Output information to the console, errors are always logged to the console
verbose: false
};
rdf2html(triples, config);
});
</script>
</body>
</html>