-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
125 lines (97 loc) · 4.72 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!--
Copyright (C) 2013 Salzburg Research.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html>
<head>
<title>SKOSjs Thesaurus Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="UTF-8">
<script type="text/javascript" src="lib/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/md5.js"></script>
<script type="text/javascript" src="js/sparql-client.js"></script>
<script type="text/javascript" src="js/skos-client.js"></script>
<script type="text/javascript" src="js/templates.js"></script>
<script type="text/javascript" src="skos.js"></script>
<!--<script type="text/javascript" src="bin/skosjs-0.3.0-SNAPSHOT.min.js"></script>-->
<script type="text/javascript" src="extension/simple/SimpleExtension.js"></script>
<script type="text/javascript" src="extension/simple/SettingsExtension.js"></script>
<script type="text/javascript" src="extension/auth/AuthTokenExtension.js"></script>
<script type="text/javascript" src="extension/lmf/ioservice.js"></script>
<script type="text/javascript" src="extension/lmf/user.js"></script>
<script type="text/javascript">
var SHOWCASE = false;
var HOST = "http://localhost:3030/";
var OPTIONS = {
RDF_LINK : function(uri){showRDF(uri)},
BASE_URI : HOST+"resource/",
LANGUAGES_SUPPORTED : ["en","de"],
ENDPOINT_SELECT : HOST+"ds/query",
ENDPOINT_UPDATE : "http://www.corsproxy.com/"+HOST+"ds/update",
LANGUAGE : "en",
DEBUG : false
}
$(document).ready(function(){
var editor = new SKOSEditor(OPTIONS);
if(SHOWCASE) var extension = new SimpleExtension(editor);
var settings = new SettingsExtension(editor);
var authTokenExtension = new AuthTokenExtension(editor,"#login");
var ioservice = new IOService(editor,HOST);
var user_service = new UserService(editor, HOST);
/**
editor.properties.remove("scheme","http://www.w3.org/2000/01/rdf-schema#label");
editor.properties.add("scheme","http://www.w3.org/2004/02/skos/core#prefLabel",{title:"Label",type:"string",multivalue:false,multilingual:true,editable:true},"right",0);
editor.properties.alter("scheme","http://purl.org/dc/terms/license",{title:"Licence String",type:"string"});
**/
editor.properties.add("graph","http://example.org/value/is_enabled",{title:"Is enabled",type:"boolean",editable:true,confirm:false},"right",0);
editor.init();
if(SHOWCASE) {
editor.popup.info("Hi Testuser!","<p style='padding: 0 10px;'>We provide a backend that you can use for testing by default. If you want to try the editor with your custom backend, just set the SPARQL endpoints under Project/Settings</p>");
}
});
function showRDF(uri){
window.open(HOST+"ds/query?query="+encodeURIComponent("DESCRIBE <"+uri+">")+"&format=text");
}
</script>
<link type="text/css" rel="stylesheet" href="css/font-awesome.css">
<link type="text/css" rel="stylesheet" href="css/basic.css">
<link type="text/css" rel="stylesheet" href="css/tree.css">
<link type="text/css" rel="stylesheet" href="css/search.css">
<link type="text/css" rel="stylesheet" href="css/editor.css">
<link type="text/css" rel="stylesheet" href="css/view.css">
<link type="text/css" rel="stylesheet" href="css/menu.css">
<link type="text/css" rel="stylesheet" href="css/popups.css">
<!--<link type="text/css" rel="stylesheet" href="bin/skosjs-0.3.0-SNAPSHOT.min.css">-->
</head>
<body>
<div id="header1">
<div id="topnav">
<div id="login"></div>
</div>
</div>
<div id="header2"></div>
<div id="header3">
<div id="menu"></div>
<div id="search"></div>
</div>
<div id="container2">
<div id="container1">
<div class="col" id="col1"></div>
<div class="col" id="col2"></div>
</div>
</div>
<div id="footer">a product of <a href="http://www.salzburgresearch.at/">Salzburg Research</a></div>
</div>
<div id="popup"></div>
<div id="popup_background"></div>
</body>
</html>