ontomde-core 1.0.6 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +3 -0
- data/Manifest.txt +95 -21
- data/README.txt +19 -1
- data/Rakefile +1 -1
- data/bin/ontomde-inspector +6 -0
- data/lib/ontomde-core/clone.rb +1 -1
- data/lib/ontomde-core/completion.rb +47 -0
- data/lib/ontomde-core/context.rb +32 -11
- data/lib/ontomde-core/converter-ea/XMI2RDFS.xslt +805 -0
- data/lib/ontomde-core/converter-ea/msxsl.exe +0 -0
- data/lib/ontomde-core/custom_method_missing.rb +24 -1
- data/lib/ontomde-core/fileLoader.rb +71 -14
- data/lib/ontomde-core/fileTypes.rb +7 -0
- data/lib/ontomde-core/helper.rb +141 -15
- data/lib/ontomde-core/inspector/loader.rb +69 -0
- data/lib/ontomde-core/inspector/rails/README +203 -0
- data/lib/ontomde-core/inspector/rails/Rakefile +10 -0
- data/lib/ontomde-core/inspector/rails/app/controllers/application.rb +10 -0
- data/lib/ontomde-core/inspector/rails/app/controllers/mtk_controller.rb +349 -0
- data/lib/ontomde-core/inspector/rails/app/helpers/application_helper.rb +3 -0
- data/lib/ontomde-core/inspector/rails/app/helpers/mtk_helper.rb +20 -0
- data/lib/ontomde-core/inspector/rails/app/views/layouts/mtk.rhtml +161 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/clear.rhtml +5 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/index.rhtml +1 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/last_generated.rhtml +7 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/model.html.erb +6 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/not_found.rhtml +2 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/search_form.rhtml +30 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/search_result.rhtml +8 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/setup_form.rhtml +42 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/show.rhtml +172 -0
- data/lib/ontomde-core/inspector/rails/app/views/mtk/show_many.rhtml +25 -0
- data/lib/ontomde-core/inspector/rails/config/boot.rb +109 -0
- data/lib/ontomde-core/inspector/rails/config/database.yml +19 -0
- data/lib/ontomde-core/inspector/rails/config/environment.rb +60 -0
- data/lib/ontomde-core/inspector/rails/config/environments/development.rb +18 -0
- data/lib/ontomde-core/inspector/rails/config/environments/production.rb +19 -0
- data/lib/ontomde-core/inspector/rails/config/environments/test.rb +22 -0
- data/lib/ontomde-core/inspector/rails/config/initializers/inflections.rb +10 -0
- data/lib/ontomde-core/inspector/rails/config/initializers/mime_types.rb +5 -0
- data/lib/ontomde-core/inspector/rails/config/routes.rb +35 -0
- data/lib/ontomde-core/inspector/rails/doc/README_FOR_APP +2 -0
- data/lib/ontomde-core/inspector/rails/log/development.log +0 -0
- data/lib/ontomde-core/inspector/rails/log/production.log +0 -0
- data/lib/ontomde-core/inspector/rails/log/server.log +0 -0
- data/lib/ontomde-core/inspector/rails/log/test.log +0 -0
- data/lib/ontomde-core/inspector/rails/public/.htaccess +40 -0
- data/lib/ontomde-core/inspector/rails/public/404.html +30 -0
- data/lib/ontomde-core/inspector/rails/public/422.html +30 -0
- data/lib/ontomde-core/inspector/rails/public/500.html +30 -0
- data/lib/ontomde-core/inspector/rails/public/dispatch.cgi +10 -0
- data/lib/ontomde-core/inspector/rails/public/dispatch.fcgi +24 -0
- data/lib/ontomde-core/inspector/rails/public/dispatch.rb +10 -0
- data/lib/ontomde-core/inspector/rails/public/favicon.ico +0 -0
- data/lib/ontomde-core/inspector/rails/public/images/logoMDE.gif +0 -0
- data/lib/ontomde-core/inspector/rails/public/images/rails.png +0 -0
- data/lib/ontomde-core/inspector/rails/public/javascripts/application.js +2 -0
- data/lib/ontomde-core/inspector/rails/public/javascripts/controls.js +963 -0
- data/lib/ontomde-core/inspector/rails/public/javascripts/dragdrop.js +972 -0
- data/lib/ontomde-core/inspector/rails/public/javascripts/effects.js +1120 -0
- data/lib/ontomde-core/inspector/rails/public/javascripts/prototype.js +4225 -0
- data/lib/ontomde-core/inspector/rails/public/robots.txt +5 -0
- data/lib/ontomde-core/inspector/rails/script/about +3 -0
- data/lib/ontomde-core/inspector/rails/script/console +3 -0
- data/lib/ontomde-core/inspector/rails/script/destroy +3 -0
- data/lib/ontomde-core/inspector/rails/script/generate +3 -0
- data/lib/ontomde-core/inspector/rails/script/performance/benchmarker +3 -0
- data/lib/ontomde-core/inspector/rails/script/performance/profiler +3 -0
- data/lib/ontomde-core/inspector/rails/script/performance/request +3 -0
- data/lib/ontomde-core/inspector/rails/script/plugin +3 -0
- data/lib/ontomde-core/inspector/rails/script/process/inspector +3 -0
- data/lib/ontomde-core/inspector/rails/script/process/reaper +3 -0
- data/lib/ontomde-core/inspector/rails/script/process/spawner +3 -0
- data/lib/ontomde-core/inspector/rails/script/runner +3 -0
- data/lib/ontomde-core/inspector/rails/script/server +3 -0
- data/lib/ontomde-core/inspector/rails/test/test_helper.rb +38 -0
- data/lib/ontomde-core/inspector/rails/vendor/plugins/auto_complete/README +23 -0
- data/lib/ontomde-core/inspector/rails/vendor/plugins/auto_complete/Rakefile +22 -0
- data/lib/ontomde-core/inspector/rails/vendor/plugins/auto_complete/init.rb +2 -0
- data/lib/ontomde-core/inspector/rails/vendor/plugins/auto_complete/lib/auto_complete.rb +47 -0
- data/lib/ontomde-core/inspector/rails/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +143 -0
- data/lib/ontomde-core/inspector/rails/vendor/plugins/auto_complete/test/auto_complete_test.rb +67 -0
- data/lib/ontomde-core/inspector/setup_rails.sh +39 -0
- data/lib/ontomde-core/inspector.rb +21 -0
- data/lib/ontomde-core/meta.rb +6 -5
- data/lib/ontomde-core/resource.rb +6 -6
- data/lib/ontomde-core/resourceSet.rb +7 -6
- data/lib/ontomde-core/triplet.rb +2 -0
- data/lib/ontomde-core/version.rb +1 -1
- data/test/protege/test_demo.rb +1 -1
- data/test/test_context.rb +1 -1
- data/test/test_protected.rb +11 -11
- data/test/test_uri.rb +1 -1
- data/test/unit_test_crash.rb +1 -1
- metadata +105 -29
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<!-- %= javascript_include_tag :defaults % -->
|
|
5
|
+
<%= define_javascript_functions %>
|
|
6
|
+
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8">
|
|
7
|
+
<title>MDA toolkit - <%= @page_title %></title>
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
<meta name="Author" content="Stephane Carrie">
|
|
11
|
+
<meta name="Keywords" content="MDA, xMDA, RDF, semantic web, ruby, ruby on rails">
|
|
12
|
+
<meta name="Description" content="xMDA ~ extended Model Driven Architecture. ">
|
|
13
|
+
<meta http-equiv="imagetoolbar" content="no">
|
|
14
|
+
<link rel="shortcut icon" href="http://www.cssplay.co.uk/favicon.ico" type="image/x-icon">
|
|
15
|
+
|
|
16
|
+
<link rel="icon" href="/images/favicon.ico" type="image/ico">
|
|
17
|
+
|
|
18
|
+
<style type="text/css">
|
|
19
|
+
|
|
20
|
+
a.nav, a.nav:link, a.nav:visited {display:block; width:150px; height:25px; background:#dca; border:1px solid #000; margin-top:2px; text-align:center; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:12px; color:#000; line-height:25px; overflow:hidden; float:left;}
|
|
21
|
+
a.nav:hover {color:#fff; background:#764;}
|
|
22
|
+
a.nav:active {color:#fff; background:#c00;}
|
|
23
|
+
|
|
24
|
+
</style>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<style type="text/css">
|
|
28
|
+
body {
|
|
29
|
+
background:#fefef8;
|
|
30
|
+
color: #000;
|
|
31
|
+
font-family: georgia, "times new roman", times, serif;
|
|
32
|
+
padding: 0;
|
|
33
|
+
margin:0;
|
|
34
|
+
font-size:76%;
|
|
35
|
+
}
|
|
36
|
+
* html .container {
|
|
37
|
+
margin-left: -700px;
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
/*\*/
|
|
41
|
+
* html .container, * html .content {
|
|
42
|
+
height: 1px;
|
|
43
|
+
}
|
|
44
|
+
/**/
|
|
45
|
+
.content {
|
|
46
|
+
padding: 5px;
|
|
47
|
+
}
|
|
48
|
+
.width {
|
|
49
|
+
width: 90%;
|
|
50
|
+
min-width: 700px;
|
|
51
|
+
margin:0 auto;
|
|
52
|
+
height:100%;
|
|
53
|
+
border:1px solid #000;
|
|
54
|
+
}
|
|
55
|
+
* html .minwidth {
|
|
56
|
+
padding-left: 700px;
|
|
57
|
+
}
|
|
58
|
+
/*\*/
|
|
59
|
+
* html .minwidth, * html .layout {
|
|
60
|
+
height: 1px;
|
|
61
|
+
}
|
|
62
|
+
/**/
|
|
63
|
+
p {padding:1.5em; margin:0;}
|
|
64
|
+
.content h2 {font-size:1.4em; text-align:center; font-weight:normal;}
|
|
65
|
+
#header {height:100px; background:#f0f0f0; text-align:center;}
|
|
66
|
+
#header img {margin:12px auto;}
|
|
67
|
+
#footer {height:50px; background:#fd8; text-align:right;}
|
|
68
|
+
a {color:#000;}
|
|
69
|
+
a:visited {color:#000;}
|
|
70
|
+
#album {width:600px; height:400px; position:relative; margin:5em auto; text-align:left; border:1px solid #ddd;}
|
|
71
|
+
#pad_left {width:400px; height:400px; float:left;}
|
|
72
|
+
#pad_left p {text-indent:1em; font-size:0.75em; position:relative; z-index:200;}
|
|
73
|
+
#pad_top {width:200px; height:200px; float:right;}
|
|
74
|
+
#holder {width:200px; height:200px; background: transparent url(../menu/graphics/grid.gif); float:right;}
|
|
75
|
+
.button {width:50px; height:50px; float:left;}
|
|
76
|
+
.button a {display:block; width:50px; height:50px; position:relative; z-index:200; background:#fff url(../menu/graphics/hover.gif);}
|
|
77
|
+
.button a em {display:none;}
|
|
78
|
+
.button a:hover {position:absolute; top:0; left:400px; width:200px; height:400px; z-index:20;}
|
|
79
|
+
.button a:active, .button a:focus {position:absolute; width:0; height:0; top:0; left:0; z-index:5;}
|
|
80
|
+
.button a:active em, .button a:focus em {position:absolute; display:block; width:600px; height:400px; z-index:10;}
|
|
81
|
+
.button a:active em img, .button a:focus em img {position:absolute; z-index:10; border:0; cursor:default;}
|
|
82
|
+
</style>
|
|
83
|
+
|
|
84
|
+
<!-- pour more -->
|
|
85
|
+
<style type="text/css">
|
|
86
|
+
.holder {width:210px; margin:5px; padding:1em; border:1px solid #ddd; float:left;}
|
|
87
|
+
.holder h2 {text-align:left;}
|
|
88
|
+
a.hid {color:#000; text-decoration:none; outline-style:none;}
|
|
89
|
+
a.hid em {display:none;}
|
|
90
|
+
a.hid:hover {text-decoration:none;}
|
|
91
|
+
a.hid:active, a.hid:focus {background:#fff;}
|
|
92
|
+
a.hid:active span, a.hid:focus span {display:none;}
|
|
93
|
+
a.hid:active em, a.hid:focus em {display:block; color:#000; width:100%; font-style:normal; cursor:default;}
|
|
94
|
+
.clear {clear:both;}
|
|
95
|
+
</style>
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
</head>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<body>
|
|
103
|
+
|
|
104
|
+
<div class="width">
|
|
105
|
+
<div class="minwidth">
|
|
106
|
+
<div class="layout">
|
|
107
|
+
<div class="container">
|
|
108
|
+
<div class="content">
|
|
109
|
+
<div id="header"><img src="/images/logoMDE.gif" alt="extended MDA" title="xMDA"></div>
|
|
110
|
+
<!-- MENU -->
|
|
111
|
+
<a class="nav" href="<%= url_for(:action => 'search_form') %>" title="Search">Search</a>
|
|
112
|
+
<a class="nav" href="exitServer" title="Exit server">Exit</a>
|
|
113
|
+
<!--
|
|
114
|
+
<a class="nav" href="clear" title="Clear Memory">Clear Memory</a>
|
|
115
|
+
<a class="nav" href="setup" title="setup">setup</a>
|
|
116
|
+
<a class="nav" href="../rdoc/index.html" title="">API</a>
|
|
117
|
+
<a class="nav" href="" title="x">Generate</a>
|
|
118
|
+
<a class="nav" href="last_generated" title="View Generated">View Generated</a>
|
|
119
|
+
<a class="nav" href="model" title="model">Model</a>
|
|
120
|
+
<a class="nav" href="" title="Help">Help</a>
|
|
121
|
+
-->
|
|
122
|
+
<br/>
|
|
123
|
+
<br/>
|
|
124
|
+
|
|
125
|
+
<h2><%= @page_title %></h2>
|
|
126
|
+
<br/>
|
|
127
|
+
|
|
128
|
+
<%= @content_for_layout %>
|
|
129
|
+
<!--
|
|
130
|
+
<div id="model_stat" style="border:1px solid red;">
|
|
131
|
+
Change me!
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<%= link_to_remote "w/ update",
|
|
135
|
+
:update => 'model_stat',
|
|
136
|
+
:url => { :action => 'model_stat' } %>
|
|
137
|
+
-->
|
|
138
|
+
<!-- %= periodically_call_remote % --!>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<div id="footer">
|
|
145
|
+
<p>2006-2008 - <i>Ruby on Rails front-end for xMDA/ontoMDE</i> - - Stéphane Carrié - Orange labs - France
|
|
146
|
+
Télécom/RD/BIZZ/CIL/SAM.</p>
|
|
147
|
+
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
</body>
|
|
161
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Bienvenue !
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<%= form_tag url_for(:action => 'search', :name =>"the_form") %>
|
|
2
|
+
Search String <%= text_field :filter ,:contains %><!-- %= text_field_with_auto_complete :filter,:contains %--> (Regular expression)
|
|
3
|
+
<br>
|
|
4
|
+
<%= submit_tag label="Search" %>
|
|
5
|
+
<br/>
|
|
6
|
+
|
|
7
|
+
<!--
|
|
8
|
+
<table border="0" width="100%">
|
|
9
|
+
<tr><td>MetaClass excluses</td><td> </td><td>Meta-classe incluses</td></tr>
|
|
10
|
+
<tr><td width="50%">
|
|
11
|
+
<select name="type_include" size="10" width="90%" onchange='form.type_include["id"]="hello"' >
|
|
12
|
+
<% @model.find_all { |uri,b| b.rdf_type!=nil && b.rdf_type.uri=="rdfs_Class" }.each { |uri,b| %>
|
|
13
|
+
<option id="<%= uri %>"><%=b.to_s%></option>
|
|
14
|
+
<% } %>
|
|
15
|
+
</select>
|
|
16
|
+
</td><td valign="center">>></td><td>
|
|
17
|
+
<select name="type_include" size="10" width="50%">
|
|
18
|
+
<option>a</option>
|
|
19
|
+
<% @model.find_all { |uri,b| b.rdf_type!=nil && b.rdf_type.uri=="rdfs_Class" && false}.each { |uri,b| %>
|
|
20
|
+
<option id="<%= uri %>"><%=b.to_s%></option>
|
|
21
|
+
<% } %>
|
|
22
|
+
</select>
|
|
23
|
+
</td></tr></table>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<div id="product">abcde</div>
|
|
28
|
+
<%= draggable_element "product", :revert => true %>
|
|
29
|
+
-->
|
|
30
|
+
</form>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<br/>
|
|
2
|
+
|
|
3
|
+
<%= form_tag url_for(:action => 'setup_change', :name =>"the_form") %>
|
|
4
|
+
<h3>Selection des modules actifs</h3>
|
|
5
|
+
|
|
6
|
+
<%
|
|
7
|
+
key=1000
|
|
8
|
+
@availableProfiles.each { |pro|
|
|
9
|
+
key=key+1
|
|
10
|
+
%>
|
|
11
|
+
<%= check_box_tag("check_#{key}", value =1, checked = @activeProfiles.include?(pro), options = {})%>
|
|
12
|
+
<%=pro%>
|
|
13
|
+
<br/>
|
|
14
|
+
<%}%>
|
|
15
|
+
|
|
16
|
+
<h3>Fichiers sources </h3>
|
|
17
|
+
<% if @sourceFiles.size<1 %>
|
|
18
|
+
<i>liste vide</i>
|
|
19
|
+
<br/>
|
|
20
|
+
<%end%>
|
|
21
|
+
|
|
22
|
+
<%
|
|
23
|
+
key=1000
|
|
24
|
+
@sourceFiles.each { |fileName|
|
|
25
|
+
key=key+1
|
|
26
|
+
%>
|
|
27
|
+
<%= check_box_tag("file_#{key}", value =1, checked = true, options = {:size=>"100"})%>
|
|
28
|
+
<%=fileName%>
|
|
29
|
+
<br/>
|
|
30
|
+
<%}%>
|
|
31
|
+
<br/>
|
|
32
|
+
add --> <%= text_field_with_auto_complete :add_file,value="",options={:size=>100} %>
|
|
33
|
+
<br/>
|
|
34
|
+
<br/>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<%= submit_tag label="Save Configuration in running process" %>
|
|
38
|
+
<%= submit_tag label="Save in cookies" %>
|
|
39
|
+
<%= submit_tag label="Save Configuration on disk" %>
|
|
40
|
+
<br/>
|
|
41
|
+
<br/>
|
|
42
|
+
</form>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<% @page_title = "Contenu de la ressource \"#{@obj.rdf_uri}\"" %>
|
|
2
|
+
|
|
3
|
+
<style type="text/css">
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
.menu {clear:both; margin-bottom:4em;}
|
|
8
|
+
|
|
9
|
+
.menu dt {display:none;}
|
|
10
|
+
|
|
11
|
+
.menu dd {margin:0; padding:0;}
|
|
12
|
+
|
|
13
|
+
.menu .aa {width:5px; float:left; border-bottom:1px solid #000; background:#bcd;}
|
|
14
|
+
|
|
15
|
+
.menu .bb {float:left; padding:2px 0 2px 0; border-bottom:1px solid #000; border-top:1px solid #000; background:#bcd; text-align:center;}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.menu .sela {width:5px; float:left; background:#fff; font-size:1em;}
|
|
20
|
+
|
|
21
|
+
.menu .selb {float:left; padding:2px 0 2px 0; border-top:1px solid #000; background:#fff; color:#f00; font-size:1em; text-align:center;}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
.menu .va {width:1px; float:left; border-top:5px solid #fff; background:#000; overflow:hidden;}
|
|
26
|
+
|
|
27
|
+
.menu .vb {width:1px; float:left; height:1px; background:#ccc; border-top:2px solid #fff; border-bottom:2px solid #000; overflow:hidden;}
|
|
28
|
+
|
|
29
|
+
.menu .vc {width:1px; float:left; height:1px; background:#ccc; border-top:1px solid #fff; border-bottom:1px solid #000; overflow:hidden;}
|
|
30
|
+
|
|
31
|
+
.menu .vd {width:2px; float:left; height:1px; background:#000; border-top:1px solid #ccc; overflow:hidden;}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* html .menu .vb {height:5px; height:1px;}
|
|
36
|
+
|
|
37
|
+
* html .menu .vc {height:3px; height:1px;}
|
|
38
|
+
|
|
39
|
+
* html .menu .vd {height:2px; height:1px;}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
.menu a, .menu a:visited {color:#444; text-decoration:none; font-size:1em; cursor:pointer; background:#bcd;}
|
|
48
|
+
|
|
49
|
+
.menu a:hover {color:#c00; background:#def;}
|
|
50
|
+
|
|
51
|
+
.menu a:hover .aa, .menu a:hover .bb {background:#def;}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
.pad {float:left; color:#fff;}
|
|
56
|
+
|
|
57
|
+
.padtop {float:left; display:block; padding:0 5px;}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</style>
|
|
64
|
+
|
|
65
|
+
<div class="menu">
|
|
66
|
+
|
|
67
|
+
<dl>
|
|
68
|
+
|
|
69
|
+
<dt>Artist menu</dt>
|
|
70
|
+
|
|
71
|
+
<% @onglets.sort{|a,b| a<=>b}.each { |onglet| %>
|
|
72
|
+
<% label_onglet=onglet=="" ? "*tout*":onglet ; if onglet!=@onglet_actif %>
|
|
73
|
+
<dd><a href="<%=url_for :action => "show", :onglet=>onglet.to_s, :uri => @obj.rdf_uri.to_s %>"><span class="aa"><span class="va"> </span><span class="vb"></span><span class="vc"></span><span class="vd"></span></span><span class="bb">
|
|
74
|
+
<%= label_onglet %> </span><span class="aa"><span class="vd"></span><span class="vc"></span><span class="vb"></span><span class="va"> </span></span></a></dd>
|
|
75
|
+
|
|
76
|
+
<%else%>
|
|
77
|
+
<dd><span class="sela"><span class="va"> </span><span class="vb"></span><span class="vc"></span><span class="vd"></span></span><span class="selb"><%=label_onglet%></span><span class="sela"><span class="vd"></span><span class="vc"></span><span class="vb"></span><span class="va"> </span></span></dd>
|
|
78
|
+
|
|
79
|
+
<%end%>
|
|
80
|
+
<% } %>
|
|
81
|
+
</dl>
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
<table width="100%" border="1" cellspacing="0" cellpadding="0" >
|
|
89
|
+
<tr bgcolor="#CCCCCC">
|
|
90
|
+
<td width="5%" > </td>
|
|
91
|
+
<td width="5%">Champ</td>
|
|
92
|
+
<td width="5%"> </td>
|
|
93
|
+
<td width="85%">Valeur</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<% prefix=""; @methods.sort{|a,b| a<=>b}.each{ |m,r| %>
|
|
97
|
+
<%
|
|
98
|
+
h=m.split(/_/,3)
|
|
99
|
+
lprefix=prefix
|
|
100
|
+
prefix=h[0]
|
|
101
|
+
if h[2]
|
|
102
|
+
mclass=h[1]
|
|
103
|
+
name=h[2]
|
|
104
|
+
else
|
|
105
|
+
mclass=""
|
|
106
|
+
name=h[1]
|
|
107
|
+
end
|
|
108
|
+
#puts "prefix=#{prefix} onglet_actif=#{@onglet_actif}"
|
|
109
|
+
next unless (prefix==@onglet_actif) || (@onglet_actif=="")
|
|
110
|
+
%>
|
|
111
|
+
<tr bgcolor="<%= cycle("#AAAAAA", "white",:name=>"row") %>">
|
|
112
|
+
<td><b> <%=prefix==lprefix ? "" : prefix %> </b></td>
|
|
113
|
+
<td><b> <%=mclass%> </b></td>
|
|
114
|
+
<td><b> <%=name%> </b>
|
|
115
|
+
</td>
|
|
116
|
+
<td>
|
|
117
|
+
<%if m=~/_dotFile$/ %>
|
|
118
|
+
<%=link_to "voir image",{ :action=>"dot", :method=>m,:uri=>@obj.rdf_uri},:popup=>true %><br/>
|
|
119
|
+
<% end %>
|
|
120
|
+
<% trigger=3; useMoreTrigger=trigger %>
|
|
121
|
+
<% sep="" ; r.each{|item|
|
|
122
|
+
%>
|
|
123
|
+
<%=sep %>
|
|
124
|
+
<%
|
|
125
|
+
if(item.respond_to?(:rdf_uri)) %>
|
|
126
|
+
<font color="<%= cycle("green", "black",:name=>"uri") %>">
|
|
127
|
+
<%=link_to " "+item.to_s, { :uri => item.rdf_uri ,:onglet => @onglet_actif }%>
|
|
128
|
+
</font>
|
|
129
|
+
<%sep=" / "
|
|
130
|
+
else %>
|
|
131
|
+
<%= useMoreTrigger=useMoreTrigger-1 ; more_begin_if("#{r.length-trigger-1} more",useMoreTrigger==0) %>
|
|
132
|
+
"<font color="magenta"><%=item.to_s%></font>"
|
|
133
|
+
<%
|
|
134
|
+
sep="<br> "
|
|
135
|
+
end
|
|
136
|
+
} %>
|
|
137
|
+
<%= more_end_if(useMoreTrigger<=0) %>
|
|
138
|
+
</td>
|
|
139
|
+
</tr>
|
|
140
|
+
|
|
141
|
+
<% reset_cycle("uri"); } %>
|
|
142
|
+
</table>
|
|
143
|
+
<h3>Champs calculés sur demande</h3>
|
|
144
|
+
<div>
|
|
145
|
+
<%@on_demand.sort{|a,b| a<=>b}.each {|c|
|
|
146
|
+
a=c.split(/_/,2)
|
|
147
|
+
%>
|
|
148
|
+
<%= link_to "<font color=\"brown\">#{a[0]}</font>_#{a[1]}" ,{ :uri => @obj.rdf_uri , :on_demand => c } %>
|
|
149
|
+
<%}%>
|
|
150
|
+
</div>
|
|
151
|
+
<h3>Champs vides</h3>
|
|
152
|
+
<a class="hid" href="#more" onclick="this.hideFocus=true" onblur="this.hideFocus=false"><span>more »</span><em>
|
|
153
|
+
<div>
|
|
154
|
+
<%@vides.sort{|a,b| a<=>b}.each {|c|
|
|
155
|
+
a=c.split(/_/,2)
|
|
156
|
+
%>
|
|
157
|
+
<font color="brown"><%=a[0]%></font>_<%=a[1]%>,
|
|
158
|
+
<%}%>
|
|
159
|
+
</div></em></a>
|
|
160
|
+
<h3>Champs non calculables</h3>
|
|
161
|
+
<a class="hid" href="#more" onclick="this.hideFocus=true" onblur="this.hideFocus=false"><span>more »</span><em>
|
|
162
|
+
<div>
|
|
163
|
+
<%@erreurs.sort{|a,b| a<=>b}.each {|c|
|
|
164
|
+
a=c.split(/_/,2)
|
|
165
|
+
%>
|
|
166
|
+
<font color="brown"><%=a[0]%></font>_<%=a[1]%>,
|
|
167
|
+
<%}%>
|
|
168
|
+
</div></em></a>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
<hr>
|
|
172
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<%= form_tag url_for(:action => 'search') %>
|
|
2
|
+
<%= text_field_with_auto_complete :filter,:x %>
|
|
3
|
+
<%= submit_tag label="Search" %>
|
|
4
|
+
<div>
|
|
5
|
+
ON:
|
|
6
|
+
<% @model.find_all { |uri,b| !(uri=~/rdf/) }.each { |a,b| %>
|
|
7
|
+
!<%= b.to_s %>
|
|
8
|
+
<% } %>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div>
|
|
12
|
+
OFF:
|
|
13
|
+
<% @model.find_all { |uri,b| (uri=~/rdf/) }.each { |a,b| %>
|
|
14
|
+
!<%= b.to_s %>
|
|
15
|
+
<% } %>
|
|
16
|
+
</div>
|
|
17
|
+
</form>
|
|
18
|
+
|
|
19
|
+
<hr>
|
|
20
|
+
<ul>
|
|
21
|
+
<% @model.each_value { |res| %>
|
|
22
|
+
<li><%= link_to res.to_s, { :action => "show",:uri => res.rdf_uri }, :popup => false %></li>
|
|
23
|
+
|
|
24
|
+
<%}%>
|
|
25
|
+
<ul>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Don't change this file!
|
|
2
|
+
# Configure your app in config/environment.rb and config/environments/*.rb
|
|
3
|
+
|
|
4
|
+
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
|
|
5
|
+
|
|
6
|
+
module Rails
|
|
7
|
+
class << self
|
|
8
|
+
def boot!
|
|
9
|
+
unless booted?
|
|
10
|
+
preinitialize
|
|
11
|
+
pick_boot.run
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def booted?
|
|
16
|
+
defined? Rails::Initializer
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def pick_boot
|
|
20
|
+
(vendor_rails? ? VendorBoot : GemBoot).new
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def vendor_rails?
|
|
24
|
+
File.exist?("#{RAILS_ROOT}/vendor/rails")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# FIXME : Ruby 1.9
|
|
28
|
+
def preinitialize
|
|
29
|
+
load(preinitializer_path) if File.exists?(preinitializer_path)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def preinitializer_path
|
|
33
|
+
"#{RAILS_ROOT}/config/preinitializer.rb"
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Boot
|
|
38
|
+
def run
|
|
39
|
+
load_initializer
|
|
40
|
+
Rails::Initializer.run(:set_load_path)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
class VendorBoot < Boot
|
|
45
|
+
def load_initializer
|
|
46
|
+
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
class GemBoot < Boot
|
|
51
|
+
def load_initializer
|
|
52
|
+
self.class.load_rubygems
|
|
53
|
+
load_rails_gem
|
|
54
|
+
require 'initializer'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def load_rails_gem
|
|
58
|
+
if version = self.class.gem_version
|
|
59
|
+
gem 'rails', version
|
|
60
|
+
else
|
|
61
|
+
gem 'rails'
|
|
62
|
+
end
|
|
63
|
+
rescue Gem::LoadError => load_error
|
|
64
|
+
$stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
|
|
65
|
+
exit 1
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
class << self
|
|
69
|
+
def rubygems_version
|
|
70
|
+
Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def gem_version
|
|
74
|
+
if defined? RAILS_GEM_VERSION
|
|
75
|
+
RAILS_GEM_VERSION
|
|
76
|
+
elsif ENV.include?('RAILS_GEM_VERSION')
|
|
77
|
+
ENV['RAILS_GEM_VERSION']
|
|
78
|
+
else
|
|
79
|
+
parse_gem_version(read_environment_rb)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def load_rubygems
|
|
84
|
+
require 'rubygems'
|
|
85
|
+
|
|
86
|
+
unless rubygems_version >= '0.9.4'
|
|
87
|
+
$stderr.puts %(Rails requires RubyGems >= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.)
|
|
88
|
+
exit 1
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
rescue LoadError
|
|
92
|
+
$stderr.puts %(Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org)
|
|
93
|
+
exit 1
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def parse_gem_version(text)
|
|
97
|
+
$1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
private
|
|
101
|
+
def read_environment_rb
|
|
102
|
+
File.read("#{RAILS_ROOT}/config/environment.rb")
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# All that for this:
|
|
109
|
+
Rails.boot!
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# SQLite version 3.x
|
|
2
|
+
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
|
3
|
+
development:
|
|
4
|
+
adapter: sqlite3
|
|
5
|
+
database: db/development.sqlite3
|
|
6
|
+
timeout: 5000
|
|
7
|
+
|
|
8
|
+
# Warning: The database defined as 'test' will be erased and
|
|
9
|
+
# re-generated from your development database when you run 'rake'.
|
|
10
|
+
# Do not set this db to the same as development or production.
|
|
11
|
+
test:
|
|
12
|
+
adapter: sqlite3
|
|
13
|
+
database: db/test.sqlite3
|
|
14
|
+
timeout: 5000
|
|
15
|
+
|
|
16
|
+
production:
|
|
17
|
+
adapter: sqlite3
|
|
18
|
+
database: db/production.sqlite3
|
|
19
|
+
timeout: 5000
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file
|
|
2
|
+
|
|
3
|
+
# Uncomment below to force Rails into production mode when
|
|
4
|
+
# you don't control web/app server and can't set it the proper way
|
|
5
|
+
# ENV['RAILS_ENV'] ||= 'production'
|
|
6
|
+
|
|
7
|
+
# Specifies gem version of Rails to use when vendor/rails is not present
|
|
8
|
+
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
|
|
9
|
+
|
|
10
|
+
# Bootstrap the Rails environment, frameworks, and default configuration
|
|
11
|
+
require File.join(File.dirname(__FILE__), 'boot')
|
|
12
|
+
|
|
13
|
+
Rails::Initializer.run do |config|
|
|
14
|
+
# Settings in config/environments/* take precedence over those specified here.
|
|
15
|
+
# Application configuration should go into files in config/initializers
|
|
16
|
+
# -- all .rb files in that directory are automatically loaded.
|
|
17
|
+
# See Rails::Configuration for more options.
|
|
18
|
+
|
|
19
|
+
# Skip frameworks you're not going to use (only works if using vendor/rails).
|
|
20
|
+
# To use Rails without a database, you must remove the Active Record framework
|
|
21
|
+
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
|
|
22
|
+
config.frameworks -= [ :active_record ]
|
|
23
|
+
|
|
24
|
+
# Only load the plugins named here, in the order given. By default, all plugins
|
|
25
|
+
# in vendor/plugins are loaded in alphabetical order.
|
|
26
|
+
# :all can be used as a placeholder for all plugins not explicitly named
|
|
27
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
|
28
|
+
|
|
29
|
+
# Add additional load paths for your own custom dirs
|
|
30
|
+
# config.load_paths += %W( #{RAILS_ROOT}/extras )
|
|
31
|
+
|
|
32
|
+
# Force all environments to use the same logger level
|
|
33
|
+
# (by default production uses :info, the others :debug)
|
|
34
|
+
# config.log_level = :debug
|
|
35
|
+
|
|
36
|
+
# Your secret key for verifying cookie session data integrity.
|
|
37
|
+
# If you change this key, all old sessions will become invalid!
|
|
38
|
+
# Make sure the secret is at least 30 characters and all random,
|
|
39
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
|
40
|
+
config.action_controller.session = {
|
|
41
|
+
:session_key => '_rails_session',
|
|
42
|
+
:secret => 'e43a2087f4f8c4bac32c48115f880a99fd2e2d692c270e11e56635f7a484e98919bc5911721fc9b9c7388d67f8b68b823093203173181009975f5214acc47d18'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
# Use the database for sessions instead of the cookie-based default,
|
|
46
|
+
# which shouldn't be used to store highly confidential information
|
|
47
|
+
# (create the session table with 'rake db:sessions:create')
|
|
48
|
+
# config.action_controller.session_store = :active_record_store
|
|
49
|
+
|
|
50
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
|
51
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
52
|
+
# like if you have constraints or database-specific column types
|
|
53
|
+
# config.active_record.schema_format = :sql
|
|
54
|
+
|
|
55
|
+
# Activate observers that should always be running
|
|
56
|
+
# config.active_record.observers = :cacher, :garbage_collector
|
|
57
|
+
|
|
58
|
+
# Make Active Record use UTC-base instead of local time
|
|
59
|
+
# config.active_record.default_timezone = :utc
|
|
60
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
|
2
|
+
|
|
3
|
+
# In the development environment your application's code is reloaded on
|
|
4
|
+
# every request. This slows down response time but is perfect for development
|
|
5
|
+
# since you don't have to restart the webserver when you make code changes.
|
|
6
|
+
config.cache_classes = false
|
|
7
|
+
|
|
8
|
+
# Log error messages when you accidentally call methods on nil.
|
|
9
|
+
config.whiny_nils = true
|
|
10
|
+
|
|
11
|
+
# Show full error reports and disable caching
|
|
12
|
+
config.action_controller.consider_all_requests_local = true
|
|
13
|
+
config.action_view.debug_rjs = true
|
|
14
|
+
config.action_controller.perform_caching = false
|
|
15
|
+
config.action_view.cache_template_extensions = false
|
|
16
|
+
|
|
17
|
+
# Don't care if the mailer can't send
|
|
18
|
+
config.action_mailer.raise_delivery_errors = false
|