Skip to content

Commit ae64e30

Browse files
committed
First summit of SAOR
0 parents  commit ae64e30

File tree

1,458 files changed

+3810718
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,458 files changed

+3810718
-0
lines changed

FileUpload.htm

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head>
4+
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>上传本体</title>
7+
<link rel="stylesheet" type="text/css" href="js/layui-2.2/css/layui.css" />
8+
<script type="text/javascript" src="js/layui-2.2/layui.js" charset="utf-8"></script>
9+
</head>
10+
<body>
11+
12+
<div style="margin:40px 40px 0 40px;">
13+
<blockquote class="layui-elem-quote">
14+
Single uploading ontology file size cannot exceed 20M, supported file types such as
15+
<span class="layui-badge">OWL</span>
16+
<span class="layui-badge">RDF</span>
17+
<span class="layui-badge">XML</span>
18+
</blockquote>
19+
20+
<form class="layui-form" method="post" action="UploadServlet">
21+
<div class="layui-form-item">
22+
<label class="layui-form-label">Select File</label>
23+
<button type="button" class="layui-btn layui-btn-warm" id="up-btn">
24+
<i class="layui-icon">&#xe67c;</i> Upload File
25+
</button>
26+
</div>
27+
<hr/>
28+
</form>
29+
</div>
30+
31+
<script type="text/javascript">
32+
var uploadedFile;
33+
layui.use(['element', 'layer', 'form', 'upload'], function () {
34+
var upload = layui.upload;
35+
var uploadInst = upload.render({
36+
elem: '#up-btn' //绑定元素
37+
, url: 'UploadServlet' //上传接口
38+
, data:{mType: 'owl' }
39+
, accept: 'file'
40+
, size: 20000 //单位KB
41+
, exts : 'owl|rdf|xml'
42+
, done: function (res, index, upload) { //上传完毕回调
43+
if (res != "0" && res!="4") {
44+
uploadedFile = res.file;
45+
layer.msg(uploadedFile+" Uploaded successfully!", { icon: 1 });
46+
}
47+
else if (res == "4") {
48+
layer.msg("Error: Table must contain enctype=multipart/form-data", { icon: 2 });
49+
}
50+
else {
51+
layer.msg(" Upload failed!", { icon: 2 });
52+
}
53+
}
54+
, error: function () {//请求异常回调
55+
layer.alert(" Upload failed!", { icon: 2 });
56+
}
57+
});
58+
})
59+
</script>
60+
</body>
61+
</html>

Index.jsp

+184
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2+
<head>
3+
<title>Interactive Mapping Revision</title>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<link rel="stylesheet" type="text/css" href="css/default.css" />
6+
<link rel="stylesheet" type="text/css" href="css/loading.css" />
7+
<link rel="stylesheet" type="text/css" href="css/ajaxLoading.css" />
8+
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4/themes/default/easyui.css" />
9+
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.3.1/themes/icon.css" />
10+
<link rel="stylesheet" type="text/css" href="js/layui-2.2/css/layui.css" />
11+
12+
<script type="text/javascript" src="js/jquery-easyui-1.3.1/jquery.min.js"></script>
13+
<script type="text/javascript" src="js/jquery-easyui-1.5.4/jquery.easyui.min.js"></script>
14+
<script type="text/javascript" src="js/layui-2.2/layui.js"></script>
15+
<script type="text/javascript" src="js/tools.js"></script>
16+
<script type="text/javascript" src='js/frame.js'> </script>
17+
<script type="text/javascript" src='js/owlshow.js' charset="utf-8"> </script>
18+
19+
</head>
20+
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
21+
<div id="loading-mask" style=""></div>
22+
<div id="loading">
23+
<div class="loading-indicator">
24+
<img src="images/loading.gif" width="32" height="32" style="margin-right: 8px; float: left;
25+
vertical-align: top;" />
26+
系统正在打开,请等待......
27+
<br />
28+
<span id="loading-msg">Please Waiting...</span>
29+
</div>
30+
</div>
31+
<noscript>
32+
<div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px;
33+
width: 100%; background: white; text-align: center;">
34+
<img src="images/noscript.gif" alt='抱歉,请开启脚本支持!' />
35+
</div>
36+
</noscript>
37+
38+
<!-- 顶部 -->
39+
<div region="north" split="true" border="false" style="overflow: hidden; height: 65px;
40+
background: #E0ECFF repeat-x center 50%; line-height: 20px; color: #fff; font-family: Verdana,Microsoft YaHei">
41+
<div id="viewport">
42+
<div id="hd1" style="float: left;
43+
width: 800px;
44+
padding-top:10px; >
45+
<a href='#' id="logo"><img src="images/logo.png" border="0" height="52" /></a>
46+
</div>
47+
<!-- Tool menu -->
48+
<div id="toolBar" style="padding: 5px; width: 200px; float: right; height: 52px; margin-top: 12px;">
49+
<a href="javascript:void(0)" id="mm1" class="easyui-menubutton" menu="#subm1" iconCls="icon-tip">Operation</a>
50+
</div>
51+
<!-- Sub Menu -->
52+
<div id="subm1" style="width:122px;">
53+
<div iconCls="icon-ontoopen">Upload</div>
54+
<div class="menu-sep"></div>
55+
<div iconCls="icon-convert">SemiAutoRepair</div>
56+
<div class="menu-sep"></div>
57+
<div iconCls="icon-file">Owl Manage</div>
58+
</div>
59+
</div>
60+
<!-- End viewport -->
61+
</div>
62+
<!-- End North -->
63+
64+
65+
<!-- Left Nav Menu -->
66+
<div region="west" split="true" title="Ontology-1" style="width: 250px;" id="west">
67+
<div style="padding:5px;">
68+
Onto 1:
69+
<input class="easyui-combobox" id="owl1" name="owl1"
70+
data-options="
71+
url:'ListOwlsServlet?type=.owl',
72+
method:'get',
73+
valueField:'text',
74+
textField:'text',
75+
width:100,
76+
panelHeight:'auto'" />
77+
78+
<a href="javascript:;" class="easyui-linkbutton"
79+
data-options="iconCls:'icon-ok'"
80+
style="width:65px"
81+
id="show1">Select</a>
82+
</div>
83+
<!-- 本体视图 -->
84+
<!-- data-options="selected:'false'" 让手风琴全部折叠 -->
85+
<div class="easyui-accordion" style="width:100% ;height:auto;" border="false">
86+
<div title="OwlTree" data-options="iconCls:'icon-owl'" style="overflow:auto;" >
87+
<ul id="owlTree1"></ul>
88+
</div>
89+
</div>
90+
</div>
91+
<!-- Left Nav Menu End-->
92+
93+
<!-- Main -->
94+
<div id="mainPanle" region="center" style="background: #eee; overflow-y: hidden">
95+
<div id="tabs" class="easyui-tabs" fit="true" border="false">
96+
<div title="Welcome"
97+
style="padding: 20px;
98+
overflow: hidden;
99+
display: table-cell;
100+
vertical-align: middle;
101+
text-align: center;">
102+
103+
<img src="images/front.png"/>
104+
</div>
105+
</div>
106+
</div>
107+
108+
<!-- begin right -->
109+
<div region="east" split="true" collapsed="false" title="Ontology-2"
110+
style="width:260px;padding:5px;">
111+
112+
<div style="padding:5px;">
113+
Onto 2:
114+
<input class="easyui-combobox" name="owl2" id="owl2"
115+
data-options="
116+
url:'ListOwlsServlet?type=.owl',
117+
method:'get',
118+
valueField:'text',
119+
textField:'text',
120+
width:100,
121+
panelHeight:'auto'" />
122+
123+
<a href="javascript:;" class="easyui-linkbutton"
124+
data-options="iconCls:'icon-ok'"
125+
style="width:65px"
126+
id="show2">Select</a>
127+
</div>
128+
129+
<div class="easyui-accordion" style="width:100%; height:auto;" border="false">
130+
<div title="OwlTree" data-options="iconCls:'icon-owl'" style="overflow:auto;" >
131+
<ul id="owlTree2"></ul>
132+
</div>
133+
</div>
134+
</div>
135+
<!-- end right -->
136+
137+
<div region="south" split="true" style="height: 0px; background: #D2E0F2;">
138+
<div class="footer">
139+
<span id="footer"></span>
140+
</div>
141+
</div>
142+
143+
144+
<!-- Tab right menu -->
145+
<div id="mm" class="easyui-menu" style="width: 150px;">
146+
<div id="mm-tabclose">关闭</div>
147+
<div id="mm-tabcloseall"> 全部关闭</div>
148+
<div id="mm-tabcloseother">除此之外全部关闭 </div>
149+
<div class="menu-sep"></div>
150+
<div id="mm-tabcloseright"> 当前页右侧全部关闭 </div>
151+
<div id="mm-tabcloseleft">当前页左侧全部关闭 </div>
152+
<div class="menu-sep"></div>
153+
<div id="mm-exit">退出</div>
154+
</div>
155+
<!-- End tab right menu -->
156+
157+
<script>
158+
159+
seledOwls = [];
160+
$("#show1").click(function(){
161+
show(1);
162+
})
163+
$("#show2").click(function(){
164+
show(2);
165+
})
166+
167+
function show(index){
168+
if(index<1){
169+
alert("Error!!!");
170+
return false;
171+
}
172+
var seledOwl = $('#owl'+index).combobox('getValue');
173+
if(seledOwl == ""){
174+
layer.msg("Please select an OWL file!", {icon:2, anim:6});
175+
}
176+
else{
177+
seledOwls[index-1] = seledOwl;
178+
showTree(seledOwl, "owlTree"+index);
179+
}
180+
//alert(seledOwl);
181+
}
182+
</script>
183+
</body>
184+
</html>

META-INF/MANIFEST.MF

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Class-Path:
3+

OwlFileManagement.jsp

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<%@ page language="java" pageEncoding="utf-8"%>
2+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3+
<html>
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<title>Owl File Management</title>
7+
<link rel="stylesheet" type="text/css" href="css/ajaxLoading.css">
8+
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4/themes/default/easyui.css" />
9+
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.3.1/themes/icon.css" />
10+
11+
<script type="text/javascript" src="js/jquery-easyui-1.5.4/jquery.min.js"></script>
12+
<script type="text/javascript" src="js/jquery-easyui-1.5.4/jquery.easyui.min.js"></script>
13+
<script type="text/javascript" src="js/json2.js"></script>
14+
<script type="text/javascript" src="js/tools.js"></script>
15+
<script type="text/javascript" src="js/OwlFileManagement.js" charset="utf-8"></script>
16+
<script type="text/javascript" src="js/owlshow.js" charset="utf-8"></script>
17+
18+
</head>
19+
<body>
20+
<div>
21+
<!-- <table id="owlManagement"
22+
style="width: 99%; height: auto" title="本体文件管理"
23+
iconcls="icon-tools"
24+
data-options="singleSelect:true,collapsible:true"> -->
25+
26+
<table title="Ontologies and alignmenies Management" style="width:99%;height:auto" id="owlManagement">
27+
28+
<thead>
29+
<tr align="center">
30+
<th field="id" checkbox="true"></th>
31+
<th data-options="field:'text', width:380, align:'center' ">OWL Files</th>
32+
</tr>
33+
</thead>
34+
</table>
35+
</div>
36+
</body>
37+
</html>

README.txt

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Copyright 2018 by Academy of Mathematics and Systems Science Chinese Academy of Sciences and Southeast University
2+
3+
SAOR (Semi-Automatic Ontology (mapping) Revision) is a web tool of SAMR for interactive mapping revision. We equip it with partially automatized process to reduce the effort of manual evaluation.
4+
5+
Time: 4/4/2018 Author: Weizhuo Li and Xuefeng Fu Mail: [email protected] or [email protected]
6+
7+
Software: Java 1.7 or higher. Hardware: 4GB RAM or more.
8+
9+
Data sets:
10+
We just provide two ontologies and their alignment for testing demo. The whole dataset and alignment should be downloaded in the our soucre code (SAMR) or Ontology Alignment Evaluation Initiative (OAEI) http://oaei.ontologymatching.org/. We also provide the service for online uploading ontologies and alignments, which is listed in the upper right corner of "Operation".
11+
12+
Usage:
13+
1)you need to install the Tomcat 7 or higher version firstly, and copy the SAOR-Web to the folder webapps in Tomcat.
14+
15+
b)Open http://localhost:8080/SAOR/ .
16+
17+
c)Select two ontologies and click the select buttons.
18+
19+
d)Select "SemiAutoRepair" in the upper right corner of "Operation".
20+
21+
e)Choose the mapping, referenceAlignment and the path of output.
22+
23+
f)Finish the interactive mapping revision. The screenshots attached to the project roughly show the effectiveness of SAOR-Web.
24+
25+
26+
Problem&Instructions:
27+
The real name of project is call "SAOR", so you should keep the namen in webapps file in right!
28+
The default interface of Tomcat is 8080, so you should promise the interfaces of SemiRep.jsp and WebSocketDemo.jsp are consistent with Tomcat.
29+

Screenshot 1.png

171 KB
Loading

Screenshot 2.png

101 KB
Loading

0 commit comments

Comments
 (0)