ontomde-inspector 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Manifest.txt +74 -0
- data/README.txt +42 -0
- data/Rakefile +19 -0
- data/bin/ontomde-inspector +6 -0
- data/lib/ontomde-inspector/loader.rb +69 -0
- data/lib/ontomde-inspector/rails/README +203 -0
- data/lib/ontomde-inspector/rails/Rakefile +10 -0
- data/lib/ontomde-inspector/rails/app/controllers/application.rb +10 -0
- data/lib/ontomde-inspector/rails/app/controllers/mtk_controller.rb +343 -0
- data/lib/ontomde-inspector/rails/app/helpers/application_helper.rb +3 -0
- data/lib/ontomde-inspector/rails/app/helpers/mtk_helper.rb +20 -0
- data/lib/ontomde-inspector/rails/app/views/layouts/mtk.rhtml +160 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/clear.rhtml +5 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/index.rhtml +1 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/last_generated.rhtml +7 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/not_found.rhtml +2 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/search_form.rhtml +30 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/search_result.rhtml +8 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/setup_form.rhtml +42 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/show.rhtml +172 -0
- data/lib/ontomde-inspector/rails/app/views/mtk/show_many.rhtml +25 -0
- data/lib/ontomde-inspector/rails/config/boot.rb +109 -0
- data/lib/ontomde-inspector/rails/config/database.yml +42 -0
- data/lib/ontomde-inspector/rails/config/environment.rb +60 -0
- data/lib/ontomde-inspector/rails/config/environments/development.rb +18 -0
- data/lib/ontomde-inspector/rails/config/environments/production.rb +19 -0
- data/lib/ontomde-inspector/rails/config/environments/test.rb +22 -0
- data/lib/ontomde-inspector/rails/config/initializers/inflections.rb +10 -0
- data/lib/ontomde-inspector/rails/config/initializers/mime_types.rb +5 -0
- data/lib/ontomde-inspector/rails/config/routes.rb +35 -0
- data/lib/ontomde-inspector/rails/doc/README_FOR_APP +2 -0
- data/lib/ontomde-inspector/rails/log/development.log +32687 -0
- data/lib/ontomde-inspector/rails/log/production.log +0 -0
- data/lib/ontomde-inspector/rails/log/server.log +0 -0
- data/lib/ontomde-inspector/rails/log/test.log +0 -0
- data/lib/ontomde-inspector/rails/nbproject/private/rake-t.txt +61 -0
- data/lib/ontomde-inspector/rails/nbproject/project.properties +2 -0
- data/lib/ontomde-inspector/rails/nbproject/project.xml +9 -0
- data/lib/ontomde-inspector/rails/public/.htaccess +40 -0
- data/lib/ontomde-inspector/rails/public/404.html +30 -0
- data/lib/ontomde-inspector/rails/public/422.html +30 -0
- data/lib/ontomde-inspector/rails/public/500.html +30 -0
- data/lib/ontomde-inspector/rails/public/dispatch.cgi +10 -0
- data/lib/ontomde-inspector/rails/public/dispatch.fcgi +24 -0
- data/lib/ontomde-inspector/rails/public/dispatch.rb +10 -0
- data/lib/ontomde-inspector/rails/public/favicon.ico +0 -0
- data/lib/ontomde-inspector/rails/public/images/logoMDE.gif +0 -0
- data/lib/ontomde-inspector/rails/public/images/rails.png +0 -0
- data/lib/ontomde-inspector/rails/public/index.html +277 -0
- data/lib/ontomde-inspector/rails/public/javascripts/application.js +2 -0
- data/lib/ontomde-inspector/rails/public/javascripts/controls.js +963 -0
- data/lib/ontomde-inspector/rails/public/javascripts/dragdrop.js +972 -0
- data/lib/ontomde-inspector/rails/public/javascripts/effects.js +1120 -0
- data/lib/ontomde-inspector/rails/public/javascripts/prototype.js +4225 -0
- data/lib/ontomde-inspector/rails/public/robots.txt +5 -0
- data/lib/ontomde-inspector/rails/script/about +3 -0
- data/lib/ontomde-inspector/rails/script/console +3 -0
- data/lib/ontomde-inspector/rails/script/destroy +3 -0
- data/lib/ontomde-inspector/rails/script/generate +3 -0
- data/lib/ontomde-inspector/rails/script/performance/benchmarker +3 -0
- data/lib/ontomde-inspector/rails/script/performance/profiler +3 -0
- data/lib/ontomde-inspector/rails/script/performance/request +3 -0
- data/lib/ontomde-inspector/rails/script/plugin +3 -0
- data/lib/ontomde-inspector/rails/script/process/inspector +3 -0
- data/lib/ontomde-inspector/rails/script/process/reaper +3 -0
- data/lib/ontomde-inspector/rails/script/process/spawner +3 -0
- data/lib/ontomde-inspector/rails/script/runner +3 -0
- data/lib/ontomde-inspector/rails/script/server +3 -0
- data/lib/ontomde-inspector/rails/test/test_helper.rb +38 -0
- data/lib/ontomde-inspector/version.rb +5 -0
- data/lib/ontomde-inspector.rb +21 -0
- data/test/test_ontomde-inspector.rb +0 -0
- metadata +157 -0
@@ -0,0 +1,343 @@
|
|
1
|
+
require "ontomde-core"
|
2
|
+
require "ontomde-inspector/loader.rb"
|
3
|
+
require "ontomde-core/context.rb"
|
4
|
+
require "ontomde-uml2"
|
5
|
+
require "ontomde-uml2-kb"
|
6
|
+
require "ontomde-uml2-java"
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
class MtkController < ApplicationController
|
12
|
+
def post_init
|
13
|
+
puts "initialize!"
|
14
|
+
|
15
|
+
@loader=Crdf_loader.instance
|
16
|
+
#@loader.loadProfile
|
17
|
+
|
18
|
+
@model=@loader.rdf_model
|
19
|
+
#MtkWebContext::RModel
|
20
|
+
#@model.init
|
21
|
+
end
|
22
|
+
|
23
|
+
def clear
|
24
|
+
post_init
|
25
|
+
@loader.reset
|
26
|
+
post_init
|
27
|
+
|
28
|
+
#MtkWebContext::RModel=Model.new
|
29
|
+
end
|
30
|
+
def index
|
31
|
+
end
|
32
|
+
|
33
|
+
def last_generated
|
34
|
+
post_init
|
35
|
+
@generated=@model.fileGenerated
|
36
|
+
end
|
37
|
+
def auto_complete_for_add_file_
|
38
|
+
p=params[ "add_file[]" ].to_s
|
39
|
+
puts "p=#{p}"
|
40
|
+
@filter_result=Array.new
|
41
|
+
Dir.glob("#{p}*").each { |f|
|
42
|
+
puts "f=#{f}"
|
43
|
+
h=Hash.new
|
44
|
+
h["to_s"]=f
|
45
|
+
@filter_result << h
|
46
|
+
break if @filter_result.length > 10
|
47
|
+
}
|
48
|
+
render :inline => "<%= auto_complete_result @filter_result, 'to_s' %>"
|
49
|
+
end
|
50
|
+
def auto_complete_for_filter_contains
|
51
|
+
puts "@@@@@@@@@@@@@@\ncall auto_complete_for_contact_name"
|
52
|
+
post_init
|
53
|
+
puts "0 params"
|
54
|
+
params.each{|p,v|
|
55
|
+
puts "auto #{p}-->#{v}"
|
56
|
+
}
|
57
|
+
puts "1 params"
|
58
|
+
|
59
|
+
filter=params[ :filter ][:contains].to_s
|
60
|
+
filter=/#{filter}/
|
61
|
+
#puts "params.raw_post=#{params.raw_post} size=#{@model.size}"
|
62
|
+
@filter_result=Array.new
|
63
|
+
@model.each_value { |res|
|
64
|
+
#puts "filter=#{filter} #{res.to_s} #{res.class.name}"
|
65
|
+
if (res.to_s =~ filter)
|
66
|
+
h=Hash.new
|
67
|
+
h["to_s"]="^#{res.to_s}$"
|
68
|
+
@filter_result << h
|
69
|
+
break if @filter_result.length > 10
|
70
|
+
end
|
71
|
+
}
|
72
|
+
#puts "filter!, #{filter} #{@filter_result.length}"
|
73
|
+
render :inline => "<%= auto_complete_result @filter_result, 'to_s' %>"
|
74
|
+
#render :partials => contact
|
75
|
+
end
|
76
|
+
def search_form
|
77
|
+
post_init
|
78
|
+
end
|
79
|
+
def search
|
80
|
+
post_init
|
81
|
+
|
82
|
+
params.each {|k,v|
|
83
|
+
puts("params #{k} --> #{v.class} #{v}")
|
84
|
+
}
|
85
|
+
|
86
|
+
filter=params[:filter][:contains].to_s
|
87
|
+
puts "filter=#{filter}"
|
88
|
+
filter=/#{filter}/
|
89
|
+
search_result=@model.reject { |key,res|
|
90
|
+
#puts "filter=#{filter} #{res.to_s} #{res.class.name}"
|
91
|
+
!(res.to_s =~ filter)
|
92
|
+
}
|
93
|
+
|
94
|
+
if search_result.size == 1
|
95
|
+
search_result.each { |key,res|
|
96
|
+
redirect_to :action => "show", :uri => key
|
97
|
+
}
|
98
|
+
else
|
99
|
+
@search_result=search_result
|
100
|
+
@filter=filter
|
101
|
+
#@model=m
|
102
|
+
render :action=> "search_result"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
def search_result
|
106
|
+
post_init
|
107
|
+
filter=params[ "filter[x]" ].to_s
|
108
|
+
filter=/#{filter}/
|
109
|
+
@model=m
|
110
|
+
@search_result=@model.reject { |key,res|
|
111
|
+
#puts "filter=#{filter} #{res.to_s} #{res.class.name}"
|
112
|
+
!(res.to_s =~ filter)
|
113
|
+
}
|
114
|
+
render :action=> "search_result"
|
115
|
+
end
|
116
|
+
|
117
|
+
def show
|
118
|
+
post_init
|
119
|
+
#m=session[:rdfModel]
|
120
|
+
#model=MtkWebContext::RModel
|
121
|
+
#model.init
|
122
|
+
uri=params["uri"]
|
123
|
+
|
124
|
+
|
125
|
+
obj=@model[uri]
|
126
|
+
|
127
|
+
if obj==nil
|
128
|
+
puts "object not found (uri=#{uri})!!!!"
|
129
|
+
#@model=model.reject { false }
|
130
|
+
@uri=uri
|
131
|
+
render :action=> "not_found"
|
132
|
+
puts "object not found!!!!"
|
133
|
+
return
|
134
|
+
end
|
135
|
+
puts "object found (uri=#{uri})!!!!"
|
136
|
+
onglet_actif=params["onglet"]
|
137
|
+
onglet_actif="" if onglet_actif.nil?
|
138
|
+
|
139
|
+
show_obj(obj,onglet_actif)
|
140
|
+
end
|
141
|
+
def show_obj(obj,onglet_actif)
|
142
|
+
|
143
|
+
|
144
|
+
#out="
|
145
|
+
# uri=#{uri}<br>
|
146
|
+
# model=#{@model==nil ? 'nil' : 'model loaded'}<br>
|
147
|
+
# obj=#{obj==nil ? 'nil' : 'objet loaded'}<br>
|
148
|
+
#"
|
149
|
+
|
150
|
+
puts "obj.class.name=#{obj.class.name}"
|
151
|
+
|
152
|
+
methods=Hash.new
|
153
|
+
vides=Array.new
|
154
|
+
erreurs=Array.new
|
155
|
+
onglets=Set.new
|
156
|
+
onglets << ""
|
157
|
+
|
158
|
+
on_demand=%w{ rdfx_clone }
|
159
|
+
black_list=%w{to_enum enum_for extended_by instance_values instance_variables object_id private_methods public_methods rdf_model to_a to_yaml to_yaml_style to_yaml_properties instance_eval instance_values private_methods object_id decode_b require_gem protected_methods silence_stderr enable_warnings ext_ instance_exec method_missing silence_stream silence_warnings singleton_methods subclasses_of to_json with_options stringify_keys symbolize_keys to_hash to_options to_set to_xml with_indifferent_access init_notUsed require_gem_with_options require_library_or_gem }
|
160
|
+
|
161
|
+
on_demand.reject!{ |elt| params["on_demand"]==elt }
|
162
|
+
|
163
|
+
obj.methods.find_all { |a|
|
164
|
+
#puts "operation:#{a} one=#{(a.to_s=~/^.*_one[0]$/)and true}"
|
165
|
+
a =~/^[a-zA-Z]+_[_a-zA-Z0-9]*\??$/ and !black_list.include?(a) and !on_demand.include?(a) and !(a=~/^.*_xxxone[0]$/) #and ! a=~ "_dot"
|
166
|
+
}.sort{|a,b| a<=>b}.each {|m|
|
167
|
+
|
168
|
+
|
169
|
+
#puts "operation=#{m} !!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
170
|
+
#if(on_demand.include?(a)
|
171
|
+
r=nil
|
172
|
+
|
173
|
+
sos=@model.mtk_stringWriteSession() {
|
174
|
+
begin
|
175
|
+
r=eval("obj.#{m}")
|
176
|
+
#puts " post eval"
|
177
|
+
rescue Warning =>warn
|
178
|
+
if m=~/.*_one$/
|
179
|
+
erreurs.push(m)
|
180
|
+
next
|
181
|
+
end
|
182
|
+
puts"warn=#{warn.message}"
|
183
|
+
r="Warning:"+warn.message.split(/:/,4)[3]
|
184
|
+
puts " rescue"
|
185
|
+
rescue StandardError =>boom
|
186
|
+
puts " rescue eval (!!)"
|
187
|
+
puts "boom #{boom.to_s}"
|
188
|
+
erreurs.push(m)
|
189
|
+
next
|
190
|
+
end
|
191
|
+
}
|
192
|
+
puts "sos=#{sos}/#{sos.to_s} #{sos.class.name}"
|
193
|
+
|
194
|
+
r=sos.to_s if sos!=nil
|
195
|
+
if(r==nil)
|
196
|
+
vides.push(m)
|
197
|
+
next
|
198
|
+
end
|
199
|
+
|
200
|
+
r=[r] if !r.respond_to?(:each)
|
201
|
+
if(r.length<=0)
|
202
|
+
vides.push(m)
|
203
|
+
else
|
204
|
+
#on ajoute m
|
205
|
+
prefix=m.split(/_/,3)[0]
|
206
|
+
onglets << prefix
|
207
|
+
methods[m]=r
|
208
|
+
end
|
209
|
+
}
|
210
|
+
|
211
|
+
@obj=obj
|
212
|
+
@methods=methods
|
213
|
+
@vides=vides
|
214
|
+
#@model=@model
|
215
|
+
@erreurs=erreurs
|
216
|
+
@on_demand=on_demand
|
217
|
+
@onglets=onglets
|
218
|
+
@onglet_actif=onglet_actif
|
219
|
+
|
220
|
+
|
221
|
+
end
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
def loadLocalRDFUpdateFile
|
227
|
+
post_init
|
228
|
+
fn=params["file"]
|
229
|
+
puts "\"File\"=\"#{fn}\""
|
230
|
+
@loader.addModelFile(fn)
|
231
|
+
#@model.loadModelFromFile(fn)
|
232
|
+
@model.mtk_context(:build => '../build/') {
|
233
|
+
@model.java_generate
|
234
|
+
}
|
235
|
+
render_text <<END
|
236
|
+
XMDA SERVER WAS SUCCESSFULLY CONTACTED
|
237
|
+
File loaded : #{fn}
|
238
|
+
updateCount : #{@model.updateCount}
|
239
|
+
Nbr Resources: #{@model.length}
|
240
|
+
Generation : disabled
|
241
|
+
END
|
242
|
+
end
|
243
|
+
def model_stat
|
244
|
+
post_init
|
245
|
+
render_text "#{@model.length} ressources"
|
246
|
+
end
|
247
|
+
def loadLocalRDFUpdateFileWithCookie
|
248
|
+
p=session[:count]
|
249
|
+
p=1 if !p
|
250
|
+
p=p+1
|
251
|
+
session[:count]=p
|
252
|
+
render_text "Yes ! call count:#{p} "
|
253
|
+
|
254
|
+
m=session[:rdfModel]
|
255
|
+
if m==nil
|
256
|
+
m=Crdf_Model.new
|
257
|
+
m.loadUml2
|
258
|
+
end
|
259
|
+
m.loadModelFromFile("../../fr.ft.emf2rdf.generator/tests-data/simple1.uml2.tests.output.nt")
|
260
|
+
|
261
|
+
m.generate
|
262
|
+
|
263
|
+
session[:rdfModel]=m
|
264
|
+
end
|
265
|
+
def echo
|
266
|
+
end
|
267
|
+
|
268
|
+
def setup
|
269
|
+
redirect_to :action => "setup_form"
|
270
|
+
end
|
271
|
+
def setup_form
|
272
|
+
post_init
|
273
|
+
@activeProfiles=@loader.activeProfiles
|
274
|
+
@availableProfiles=@loader.availableProfiles
|
275
|
+
@sourceFiles=@loader.sourceFiles
|
276
|
+
end
|
277
|
+
def setup_change
|
278
|
+
post_init
|
279
|
+
|
280
|
+
add_file=params["add_file[]"]
|
281
|
+
if !add_file.nil? && add_file.length>0
|
282
|
+
puts "add_file=#{add_file}"
|
283
|
+
@loader.addModelFile(add_file)
|
284
|
+
end
|
285
|
+
|
286
|
+
key=1000
|
287
|
+
@loader.availableProfiles.each { |prof|
|
288
|
+
key=key+1
|
289
|
+
puts "!!!!!!!!"
|
290
|
+
puts params["check_#{key}"]
|
291
|
+
puts params["check_#{key}"]=="1"
|
292
|
+
if params["check_#{key}"]=="1"
|
293
|
+
puts "add #{prof}"
|
294
|
+
@loader.activeProfiles.add(prof)
|
295
|
+
else
|
296
|
+
puts "delete #{prof}"
|
297
|
+
@loader.activeProfiles.delete(prof)
|
298
|
+
end
|
299
|
+
|
300
|
+
}
|
301
|
+
redirect_to :action => "setup_form"
|
302
|
+
end
|
303
|
+
|
304
|
+
# essai pdf
|
305
|
+
def pdf
|
306
|
+
require "pdf/writer"
|
307
|
+
_pdf = PDF::Writer.new
|
308
|
+
_pdf.select_font "Times-Roman"
|
309
|
+
_pdf.text "Hello, Ruby.", :font_size => 72, :justification => :center
|
310
|
+
|
311
|
+
send_data _pdf.render, :filename => "hello.pdf",
|
312
|
+
:type => "application/pdf"
|
313
|
+
end
|
314
|
+
|
315
|
+
|
316
|
+
def model
|
317
|
+
post_init
|
318
|
+
show_obj(@model,"")
|
319
|
+
#render :action=> "show"
|
320
|
+
end
|
321
|
+
|
322
|
+
def dot
|
323
|
+
uri=params["uri"]
|
324
|
+
method=params["method"]
|
325
|
+
|
326
|
+
post_init
|
327
|
+
obj=@model[uri]
|
328
|
+
|
329
|
+
fn="#{Dir.tmpdir}/#{method}-#{obj.object_id}"
|
330
|
+
|
331
|
+
obj.mtk_writeSession("#{fn}.dot") {
|
332
|
+
obj.instance_eval(method)
|
333
|
+
}
|
334
|
+
|
335
|
+
cmd="dot -Tgif -o#{fn}.gif #{fn}.dot"
|
336
|
+
system(cmd)
|
337
|
+
send_file "#{fn}.gif", :type => 'image/gif', :disposition => 'inline'
|
338
|
+
|
339
|
+
end
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module MtkHelper
|
2
|
+
|
3
|
+
def more_begin_if(str,t)
|
4
|
+
#return ""
|
5
|
+
return "" if !t
|
6
|
+
return <<ENDHTML
|
7
|
+
<a class="hid" href="#more" onclick="this.hideFocus=true" onblur="this.hideFocus=false"><span>#{str} »</span><em>
|
8
|
+
ENDHTML
|
9
|
+
end
|
10
|
+
|
11
|
+
def more_end_if(t)
|
12
|
+
#return ""
|
13
|
+
return "" if !t
|
14
|
+
return <<ENDHTML
|
15
|
+
</em></a>
|
16
|
+
ENDHTML
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,160 @@
|
|
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
|
+
<!--
|
113
|
+
<a class="nav" href="clear" title="Clear Memory">Clear Memory</a>
|
114
|
+
<a class="nav" href="setup" title="setup">setup</a>
|
115
|
+
<a class="nav" href="../rdoc/index.html" title="">API</a>
|
116
|
+
<a class="nav" href="" title="x">Generate</a>
|
117
|
+
<a class="nav" href="last_generated" title="View Generated">View Generated</a>
|
118
|
+
<a class="nav" href="model" title="model">Model</a>
|
119
|
+
<a class="nav" href="" title="Help">Help</a>
|
120
|
+
-->
|
121
|
+
<br/>
|
122
|
+
<br/>
|
123
|
+
|
124
|
+
<h2><%= @page_title %></h2>
|
125
|
+
<br/>
|
126
|
+
|
127
|
+
<%= @content_for_layout %>
|
128
|
+
<!--
|
129
|
+
<div id="model_stat" style="border:1px solid red;">
|
130
|
+
Change me!
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<%= link_to_remote "w/ update",
|
134
|
+
:update => 'model_stat',
|
135
|
+
:url => { :action => 'model_stat' } %>
|
136
|
+
-->
|
137
|
+
<!-- %= periodically_call_remote % --!>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div id="footer">
|
144
|
+
<p>2006-2008 - <i>Ruby on Rails front-end for xMDA/ontoMDE</i> - - Stéphane Carrié - Orange labs - France
|
145
|
+
Télécom/RD/BIZZ/CIL/SAM.</p>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</div>
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
</div>
|
154
|
+
|
155
|
+
</div>
|
156
|
+
|
157
|
+
</div>
|
158
|
+
|
159
|
+
</body>
|
160
|
+
</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>
|