yowl 0.4.pre

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.
Files changed (108) hide show
  1. data/CHANGES +15 -0
  2. data/INSTALL-MACOSX.md +107 -0
  3. data/README.md +92 -0
  4. data/Rakefile +76 -0
  5. data/bin/yowl +14 -0
  6. data/examples/introduction.html +5 -0
  7. data/lib/yowl/association.rb +66 -0
  8. data/lib/yowl/class.rb +296 -0
  9. data/lib/yowl/generator.rb +96 -0
  10. data/lib/yowl/import.rb +62 -0
  11. data/lib/yowl/individual.rb +398 -0
  12. data/lib/yowl/individual_association.rb +80 -0
  13. data/lib/yowl/ontology.rb +197 -0
  14. data/lib/yowl/options.rb +116 -0
  15. data/lib/yowl/optionsparser.rb +75 -0
  16. data/lib/yowl/person.rb +26 -0
  17. data/lib/yowl/property.rb +190 -0
  18. data/lib/yowl/repository.rb +100 -0
  19. data/lib/yowl/schema.rb +519 -0
  20. data/lib/yowl/template/css/jquery.ui.all.css +11 -0
  21. data/lib/yowl/template/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  22. data/lib/yowl/template/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  23. data/lib/yowl/template/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  24. data/lib/yowl/template/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  25. data/lib/yowl/template/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  26. data/lib/yowl/template/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  27. data/lib/yowl/template/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  28. data/lib/yowl/template/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  29. data/lib/yowl/template/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
  30. data/lib/yowl/template/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  31. data/lib/yowl/template/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
  32. data/lib/yowl/template/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
  33. data/lib/yowl/template/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  34. data/lib/yowl/template/css/smoothness/jquery-ui-1.8.23.custom.css +563 -0
  35. data/lib/yowl/template/css/yowl.css +414 -0
  36. data/lib/yowl/template/import-diagram.erb +29 -0
  37. data/lib/yowl/template/index.erb +56 -0
  38. data/lib/yowl/template/js/jquery-1.7.2.min.js +4 -0
  39. data/lib/yowl/template/js/jquery-ui-1.8.23.custom.min.js +125 -0
  40. data/lib/yowl/template/js/jquery.ui.accordion.js +611 -0
  41. data/lib/yowl/template/js/yowl.js +72 -0
  42. data/lib/yowl/template/ontology.erb +598 -0
  43. data/lib/yowl/template/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  44. data/lib/yowl/template/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  45. data/lib/yowl/template/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  46. data/lib/yowl/template/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  47. data/lib/yowl/template/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  48. data/lib/yowl/template/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  49. data/lib/yowl/template/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  50. data/lib/yowl/template/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  51. data/lib/yowl/template/themes/base/images/ui-icons_222222_256x240.png +0 -0
  52. data/lib/yowl/template/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  53. data/lib/yowl/template/themes/base/images/ui-icons_454545_256x240.png +0 -0
  54. data/lib/yowl/template/themes/base/images/ui-icons_888888_256x240.png +0 -0
  55. data/lib/yowl/template/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  56. data/lib/yowl/template/themes/base/jquery.ui.accordion.css +19 -0
  57. data/lib/yowl/template/themes/base/jquery.ui.all.css +11 -0
  58. data/lib/yowl/template/themes/base/jquery.ui.autocomplete.css +53 -0
  59. data/lib/yowl/template/themes/base/jquery.ui.base.css +11 -0
  60. data/lib/yowl/template/themes/base/jquery.ui.button.css +38 -0
  61. data/lib/yowl/template/themes/base/jquery.ui.core.css +38 -0
  62. data/lib/yowl/template/themes/base/jquery.ui.datepicker.css +66 -0
  63. data/lib/yowl/template/themes/base/jquery.ui.dialog.css +21 -0
  64. data/lib/yowl/template/themes/base/jquery.ui.progressbar.css +11 -0
  65. data/lib/yowl/template/themes/base/jquery.ui.resizable.css +20 -0
  66. data/lib/yowl/template/themes/base/jquery.ui.selectable.css +10 -0
  67. data/lib/yowl/template/themes/base/jquery.ui.slider.css +24 -0
  68. data/lib/yowl/template/themes/base/jquery.ui.tabs.css +18 -0
  69. data/lib/yowl/template/themes/base/jquery.ui.theme.css +247 -0
  70. data/lib/yowl/template/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  71. data/lib/yowl/template/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  72. data/lib/yowl/template/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  73. data/lib/yowl/template/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  74. data/lib/yowl/template/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  75. data/lib/yowl/template/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  76. data/lib/yowl/template/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  77. data/lib/yowl/template/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  78. data/lib/yowl/template/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  79. data/lib/yowl/template/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  80. data/lib/yowl/template/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  81. data/lib/yowl/template/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  82. data/lib/yowl/template/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  83. data/lib/yowl/template/themes/smoothness/jquery-ui-1.8.23.custom.css +563 -0
  84. data/lib/yowl/template/themes/smoothness/jquery.ui.accordion.css +19 -0
  85. data/lib/yowl/template/themes/smoothness/jquery.ui.all.css +11 -0
  86. data/lib/yowl/template/themes/smoothness/jquery.ui.autocomplete.css +53 -0
  87. data/lib/yowl/template/themes/smoothness/jquery.ui.base.css +11 -0
  88. data/lib/yowl/template/themes/smoothness/jquery.ui.button.css +38 -0
  89. data/lib/yowl/template/themes/smoothness/jquery.ui.core.css +38 -0
  90. data/lib/yowl/template/themes/smoothness/jquery.ui.datepicker.css +66 -0
  91. data/lib/yowl/template/themes/smoothness/jquery.ui.dialog.css +21 -0
  92. data/lib/yowl/template/themes/smoothness/jquery.ui.progressbar.css +11 -0
  93. data/lib/yowl/template/themes/smoothness/jquery.ui.resizable.css +20 -0
  94. data/lib/yowl/template/themes/smoothness/jquery.ui.selectable.css +10 -0
  95. data/lib/yowl/template/themes/smoothness/jquery.ui.slider.css +24 -0
  96. data/lib/yowl/template/themes/smoothness/jquery.ui.tabs.css +18 -0
  97. data/lib/yowl/template/themes/smoothness/jquery.ui.theme.css +249 -0
  98. data/lib/yowl/util.rb +221 -0
  99. data/lib/yowl/version.rb +3 -0
  100. data/lib/yowl.rb +42 -0
  101. data/test/input/base-with-comments.ttl +163 -0
  102. data/test/input/base.ttl +221 -0
  103. data/test/input/empty.ttl +8 -0
  104. data/test/input/example.ttl +73 -0
  105. data/test/test_example_ttl.rb +62 -0
  106. data/test/test_yowl.rb +4 -0
  107. data/test/testcases.md +24 -0
  108. metadata +311 -0
@@ -0,0 +1,414 @@
1
+ body {
2
+ font-size: 62.5%;
3
+ }
4
+
5
+ table {
6
+ font-size: 1em;
7
+ }
8
+
9
+ a {
10
+ text-decoration: none;
11
+ }
12
+
13
+ /* Site
14
+ -------------------------------- */
15
+
16
+ body {
17
+ font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
18
+ }
19
+
20
+ /* Layout
21
+ -------------------------------- */
22
+
23
+ .layout-grid {
24
+ width: 960px;
25
+ }
26
+
27
+ .layout-grid td {
28
+ vertical-align: top;
29
+ }
30
+
31
+ .layout-grid td.left-nav {
32
+ width: 140px;
33
+ }
34
+
35
+ .layout-grid td.normal {
36
+ border-left: 1px solid #eee;
37
+ padding: 20px 24px;
38
+ font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
39
+ }
40
+
41
+ .layout-grid td.yowl {
42
+ background: url('/img/yowl_bg.jpg') no-repeat;
43
+ height: 337px;
44
+ overflow: hidden;
45
+ }
46
+
47
+ /* Normal
48
+ -------------------------------- */
49
+
50
+ .normal h3,
51
+ .normal h4 {
52
+ margin: 0;
53
+ font-weight: normal;
54
+ }
55
+
56
+ .normal h3 {
57
+ padding: 0 0 9px;
58
+ font-size: 1.8em;
59
+ }
60
+
61
+ .normal h4 {
62
+ padding-bottom: 21px;
63
+ border-bottom: 1px dashed #999;
64
+ font-size: 1.2em;
65
+ font-weight: bold;
66
+ }
67
+
68
+ .normal p {
69
+ font-size: 1.2em;
70
+ }
71
+
72
+ /* yowl */
73
+
74
+ .yowl-nav, .yowl-nav dt, .yowl-nav dd, .yowl-nav ul, .yowl-nav li {
75
+ margin: 0;
76
+ padding: 0
77
+ }
78
+
79
+ .yowl-nav {
80
+ float: left;
81
+ width: 170px;
82
+ font-size: 1.3em;
83
+ }
84
+
85
+ .yowl-nav dt,
86
+ .yowl-nav h4 {
87
+ margin: 0;
88
+ padding: 0;
89
+ font: normal 1.1em "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
90
+ color: #e87b10;
91
+ }
92
+
93
+ .yowl-nav dt,
94
+ .yowl-nav h4 {
95
+ margin-top: 1.5em;
96
+ margin-bottom: 0;
97
+ padding-left: 8px;
98
+ padding-bottom:5px;
99
+ line-height: 1.2em;
100
+ border-bottom: 1px solid #F4F4F4;
101
+ }
102
+
103
+ .yowl-nav dd a,
104
+ .yowl-nav li a {
105
+ border-bottom: 1px solid #F4F4F4;
106
+ display:block;
107
+ padding: 4px 3px 4px 8px;
108
+ font-size: 90%;
109
+ text-decoration: none;
110
+ color: #555 ;
111
+ margin:2px 0;
112
+ height:13px;
113
+ }
114
+
115
+ .yowl-nav dd a:hover,
116
+ .yowl-nav dd a:focus,
117
+ .yowl-nav dd a:hover,
118
+ .yowl-nav dd a:focus {
119
+ background: #f3f3f3;
120
+ color:#000;
121
+ -moz-border-radius: 5px; -webkit-border-radius: 5px;
122
+ }
123
+ .yowl-nav dd a.selected {
124
+ background: #555;
125
+ color:#ffffff;
126
+ -moz-border-radius: 5px; -webkit-border-radius: 5px;
127
+ }
128
+
129
+ table.overview {
130
+ width: 100%;
131
+ border-spacing: 0;
132
+ border-collapse: collapse;
133
+ }
134
+
135
+ table.overview th {
136
+ border-bottom: 1px black solid;
137
+ }
138
+
139
+ table.overview th.prefix {
140
+ width: 5%;
141
+ text-align: left;
142
+ border-bottom: 1px black solid;
143
+ }
144
+
145
+ table.overview td.prefix {
146
+ width: 5%;
147
+ text-align: left;
148
+ white-space:nowrap;
149
+ }
150
+
151
+ table.overview td.title {
152
+ text-align: left;
153
+ white-space:nowrap;
154
+ font-weight: bold;
155
+ }
156
+
157
+ table.classinfo {
158
+ width: 100%;
159
+ border-spacing: 0;
160
+ border-collapse: collapse;
161
+ }
162
+
163
+ table.classinfo td.classhierarchy {
164
+ width: 10% ;
165
+ padding-right: 4em ;
166
+ border-right: 1px black solid ;
167
+ }
168
+
169
+ table.terms {
170
+ width: 100%;
171
+ border-spacing: 0;
172
+ border-collapse: collapse;
173
+ }
174
+ table.terms td {
175
+ text-align: left ;
176
+ vertical-align: top ;
177
+ padding: 0px ;
178
+ padding-top: 0.2em;
179
+ }
180
+ table.terms th {
181
+ text-align: left ;
182
+ vertical-align: top ;
183
+ padding: 0px ;
184
+ padding-top: 0.2em;
185
+ border-top: 1px black solid;
186
+ }
187
+ table.terms td.label {
188
+ width: 10% ;
189
+ padding-right: 4em ;
190
+ }
191
+ table.terms ul {
192
+ padding: 0px ;
193
+ padding-left: 20px ;
194
+ margin: 0px ;
195
+ }
196
+ table.terms li {
197
+ margin-top: 0px;
198
+ margin-bottom: 0px;
199
+ }
200
+
201
+ .styleTable { border-collapse: separate; }
202
+ .styleTable TD { font-weight: normal !important; padding: .4em; border-top-width: 0px !important; }
203
+ .styleTable TH { padding: .8em .4em; }
204
+ .styleTable TD.first, .styleTable TH.first { border-left-width: 0px !important; }
205
+
206
+ /* new styles for demo pages, added by Filament 12.29.08
207
+ eventually we should convert the font sizes to ems -- using px for now to minimize style conflicts
208
+ */
209
+
210
+ .normal h3.demo-header { font-size:32px; padding:0 0 5px; border-bottom:1px solid #eee; text-transform: capitalize; }
211
+ .normal h4.demo-subheader { font-size:10px; text-transform: uppercase; color:#999; padding:8px 0 3px; border:0; margin:0; }
212
+ .normal a:link,
213
+ .normal a:visited { color:#1b75bb; text-decoration:none; }
214
+ .normal a:hover,
215
+ .normal a:active { color:#0b559b; }
216
+
217
+ #demo-config { padding:20px 0 0; }
218
+
219
+ #demo-frame { float:left; width:540px; height:380px; border:1px solid #ddd; overflow: auto; position: relative; }
220
+ #demo-frame h3, #demo-frame h4 { padding: 0; font-weight: bold; font-size: 1em; }
221
+
222
+ #demo-config-menu { float:right; width:180px; }
223
+ #demo-config-menu h4 { font-size:13px; color:#666; font-weight:normal; border:0; padding-left:18px; }
224
+
225
+ #demo-config-menu ul { list-style: none; padding: 0; margin: 0; }
226
+
227
+ #demo-config-menu li { font-size:12px; padding:0 0 0 10px; margin:3px 0; zoom: 1; }
228
+
229
+ #demo-config-menu li a:link,
230
+ #demo-config-menu li a:visited { display:block; padding:1px 8px 4px; border-bottom:1px dotted #b3b3b3; }
231
+ * html #demo-config-menu li a:link,
232
+ * html #demo-config-menu li a:visited { padding:1px 8px 2px; }
233
+ #demo-config-menu li a:hover,
234
+ #demo-config-menu li a:active { background-color:#f6f6f6; }
235
+
236
+ #demo-config-menu li.demo-config-on { background: url(images/demo-config-on-tile.gif) repeat-x left center; }
237
+
238
+ #demo-config-menu li.demo-config-on a:link,
239
+ #demo-config-menu li.demo-config-on a:visited,
240
+ #demo-config-menu li.demo-config-on a:hover,
241
+ #demo-config-menu li.demo-config-on a:active { background: url(images/demo-config-on.gif) no-repeat left; padding-left:18px; color:#fff; border:0; margin-left:-10px; margin-top: 0px; margin-bottom: 0px; }
242
+
243
+ #demo-source, #demo-notes {
244
+ clear: both;
245
+ padding: 20px 0 0;
246
+ font-size: 1.3em;
247
+ }
248
+
249
+ #demo-notes { width:520px; color:#333; font-size: 1em; }
250
+ #demo-notes p code, .demo-description p code { padding: 0; font-weight: bold; }
251
+ #demo-source pre, #demo-source code { padding: 0; }
252
+ code, pre { padding:8px 0 8px 20px ; font-size: 1.2em; line-height:130%; }
253
+
254
+ #demo-source a:link,
255
+ #demo-source a:visited,
256
+ #demo-source a:hover,
257
+ #demo-source a:active { font-size:12px; padding-left:13px; background-position: left center; background-repeat: no-repeat; }
258
+
259
+ #demo-source a.source-open:link,
260
+ #demo-source a.source-open:visited,
261
+ #demo-source a.source-open:hover,
262
+ #demo-source a.source-open:active { background-image: url(images/demo-spindown-open.gif); }
263
+
264
+ #demo-source a.source-closed:link,
265
+ #demo-source a.source-closed:visited,
266
+ #demo-source a.source-closed:hover,
267
+ #demo-source a.source-closed:active { background-image: url(images/demo-spindown-closed.gif); }
268
+
269
+ div.demo {
270
+ padding:12px;
271
+ font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";
272
+ }
273
+
274
+ div.demo h3.docs { clear:left; font-size:12px; font-weight:normal; padding:0 0 1em; margin:0; }
275
+
276
+ div.demo-description {
277
+ clear:both;
278
+ padding:12px;
279
+ font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";
280
+ font-size: 1.3em;
281
+ line-height: 1.4em;
282
+ }
283
+
284
+ .ui-draggable, .ui-droppable {
285
+ background-position: top left;
286
+ }
287
+
288
+ .left-nav .yowl-nav {
289
+ padding-right: 10px;
290
+ }
291
+
292
+ #demo-link { font-size:11px; padding-top: 6px; clear: both; overflow: hidden; }
293
+ #demo-link a span.ui-icon { float:left; margin-right:3px; }
294
+
295
+ /* Component containers
296
+ ----------------------------------*/
297
+ #widget-docs .ui-widget { font-family: Trebuchet MS,Verdana,Arial,sans-serif; font-size: 1em; }
298
+ #widget-docs .ui-widget input, #widget-docs .ui-widget select, #widget-docs .ui-widget textarea, #widget-docs .ui-widget button { font-family: Trebuchet MS,Verdana,Arial,sans-serif; font-size: 1em; }
299
+ #widget-docs .ui-widget-header { border: 1px solid #ffffff; background: #464646 url(images/464646_40x100_textures_01_flat_100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
300
+ #widget-docs .ui-widget-header a { color: #ffffff; }
301
+ #widget-docs .ui-widget-content { border: 1px solid #ffffff; background: #ffffff url(images/ffffff_40x100_textures_01_flat_75.png) 50% 50% repeat-x; color: #222222; }
302
+ #widget-docs .ui-widget-content a { color: #222222; }
303
+
304
+ /* Interaction states
305
+ ----------------------------------*/
306
+ #widget-docs .ui-state-default, #widget-docs .ui-widget-content #widget-docs .ui-state-default { border: 1px solid #666666; background: #555555 url(images/555555_40x100_textures_03_highlight_soft_75.png) 50% 50% repeat-x; font-weight: normal; color: #ffffff; outline: none; }
307
+ #widget-docs .ui-state-default a { color: #ffffff; text-decoration: none; outline: none; }
308
+ #widget-docs .ui-state-hover, #widget-docs .ui-widget-content #widget-docs .ui-state-hover, #widget-docs .ui-state-focus, #widget-docs .ui-widget-content #widget-docs .ui-state-focus { border: 1px solid #666666; background: #444444 url(images/444444_40x100_textures_03_highlight_soft_60.png) 50% 50% repeat-x; font-weight: normal; color: #ffffff; outline: none; }
309
+ #widget-docs .ui-state-hover a { color: #ffffff; text-decoration: none; outline: none; }
310
+ #widget-docs .ui-state-active, #widget-docs .ui-widget-content #widget-docs .ui-state-active { border: 1px solid #666666; background: #ffffff url(images/ffffff_40x100_textures_01_flat_65.png) 50% 50% repeat-x; font-weight: normal; color: #F6921E; outline: none; }
311
+ #widget-docs .ui-state-active a { color: #F6921E; outline: none; text-decoration: none; }
312
+
313
+ /* Interaction Cues
314
+ ----------------------------------*/
315
+ #widget-docs .ui-state-highlight, #widget-docs .ui-widget-content #widget-docs .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/fbf9ee_40x100_textures_02_glass_55.png) 50% 50% repeat-x; color: #363636; }
316
+ #widget-docs .ui-state-error, #widget-docs .ui-widget-content #widget-docs .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/fef1ec_40x100_textures_05_inset_soft_95.png) 50% bottom repeat-x; color: #cd0a0a; }
317
+ #widget-docs .ui-state-error-text, #widget-docs .ui-widget-content #widget-docs .ui-state-error-text { color: #cd0a0a; }
318
+ #widget-docs .ui-state-disabled, #widget-docs .ui-widget-content #widget-docs .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
319
+ #widget-docs .ui-priority-primary, #widget-docs .ui-widget-content #widget-docs .ui-priority-primary { font-weight: bold; }
320
+ #widget-docs .ui-priority-secondary, #widget-docs .ui-widget-content #widget-docs .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
321
+
322
+ /* Icons
323
+ ----------------------------------*/
324
+
325
+ /* states and images */
326
+ #demo-frame-wrapper .ui-icon, #widget-docs .ui-icon { width: 16px; height: 16px; background-image: url(images/222222_256x240_icons_icons.png); }
327
+ #widget-docs .ui-widget-content .ui-icon {background-image: url(images/222222_256x240_icons_icons.png); }
328
+ #widget-docs .ui-widget-header .ui-icon {background-image: url(images/222222_256x240_icons_icons.png); }
329
+ #widget-docs .ui-state-default .ui-icon { background-image: url(images/888888_256x240_icons_icons.png); }
330
+ #widget-docs .ui-state-hover .ui-icon, #widget-docs .ui-state-focus .ui-icon {background-image: url(images/454545_256x240_icons_icons.png); }
331
+ #widget-docs .ui-state-active .ui-icon {background-image: url(images/454545_256x240_icons_icons.png); }
332
+ #widget-docs .ui-state-highlight .ui-icon {background-image: url(images/2e83ff_256x240_icons_icons.png); }
333
+ #widget-docs .ui-state-error .ui-icon, #widget-docs .ui-state-error-text .ui-icon {background-image: url(images/cd0a0a_256x240_icons_icons.png); }
334
+
335
+
336
+ /* Misc visuals
337
+ ----------------------------------*/
338
+
339
+ /* Corner radius */
340
+ #widget-docs .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; }
341
+ #widget-docs .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
342
+ #widget-docs .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
343
+ #widget-docs .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
344
+ #widget-docs .ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
345
+ #widget-docs .ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
346
+ #widget-docs .ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
347
+ #widget-docs .ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
348
+ #widget-docs .ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; }
349
+
350
+ /* Overlays */
351
+ #widget-docs .ui-widget-overlay { background: #aaaaaa url(images/aaaaaa_40x100_textures_01_flat_0.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
352
+ #widget-docs .ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/aaaaaa_40x100_textures_01_flat_0.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }
353
+
354
+ /*
355
+ ----------------------------------*/
356
+
357
+ #widget-docs { margin:20px 0 0; border: none; }
358
+
359
+ #widget-docs h2, #widget-docs h3, #widget-docs h4, #widget-docs p, #widget-docs ul, #widget-docs code { margin:0; padding:0; }
360
+ #widget-docs code { display:block; color:#444; font-size:.9em; margin:0 0 1em; }
361
+ #widget-docs code strong { color:#000; }
362
+ #widget-docs p { margin:0 3em 1.2em 0; }
363
+ #widget-docs p.intro { font-size:13px; color:#666; line-height:1.3; }
364
+ #widget-docs ul { list-style-type: none; }
365
+
366
+ #widget-docs h2 { font-size:16px; margin:1.2em 0 .5em; }
367
+ #widget-docs h3 { font-size:14px; color:#e6820E; margin:1.5em 0 .5em; }
368
+ .normal #widget-docs h4 { font-size:12px; color:#000; border:0; margin:0 0 .5em; }
369
+
370
+ #docs-overview-main { width:400px; }
371
+ #docs-overview-sidebar { float:right; width:200px; }
372
+ #docs-overview-sidebar a span { color:#666; }
373
+ #widget-docs #docs-overview-main p { margin-right:0; }
374
+ #widget-docs #docs-overview-sidebar h4 { padding-left:0; }
375
+
376
+ .docs-list-header { float:left; width:100%; margin:10px 0 0; border-bottom:1px solid #eee; }
377
+ #widget-docs .docs-list-header h2 { float:left; margin:0; }
378
+ #widget-docs .docs-list-header p { float:right; margin:5px 0; font-size:11px; }
379
+
380
+ .docs-list { float:left; width:100%; padding:0 0 10px; }
381
+ .docs-list .param-header { float:left; clear:left; width:100%; padding:8px 0; border-top:1px solid #eee; }
382
+ #widget-docs .param-header h3, #widget-docs .param-header p { margin:0; float:left; }
383
+ #widget-docs .param-header h3 { width:50%; }
384
+ #widget-docs .param-header h3 span { background: url(images/demo-spindown-closed.gif) no-repeat left; padding-left:13px; }
385
+ #widget-docs .param-open .param-header h3 span { background: url(images/demo-spindown-open.gif) no-repeat left; }
386
+ #widget-docs .param-header p { width:24%; }
387
+ #widget-docs .param-header p.param-type span { background: url(images/icon-docs-info.gif) no-repeat left; cursor:pointer; border-bottom:1px dashed #ccc; padding-left:15px; }
388
+
389
+ .param-details { padding-left:13px; }
390
+ .param-args { margin:0 0 1.5em; border-top:1px dotted #ccc;}
391
+ .param-args td { padding:3px 30px 3px 5px; border-bottom:1px dotted #ccc; }
392
+
393
+
394
+ /* overrides for ui-tab styles */
395
+ #widget-docs ul.ui-tabs-nav { padding:0 0 0 8px; }
396
+ #widget-docs .ui-tabs-nav li { margin:5px 5px 0 0; }
397
+
398
+ #widget-docs .ui-tabs-nav li a:link,
399
+ #widget-docs .ui-tabs-nav li a:visited,
400
+ #widget-docs .ui-tabs-nav li a:hover,
401
+ #widget-docs .ui-tabs-nav li a:active { font-size:14px; padding:4px 1.2em 3px; color:#fff; }
402
+
403
+ #widget-docs .ui-tabs-nav li.ui-tabs-selected a:link,
404
+ #widget-docs .ui-tabs-nav li.ui-tabs-selected a:visited,
405
+ #widget-docs .ui-tabs-nav li.ui-tabs-selected a:hover,
406
+ #widget-docs .ui-tabs-nav li.ui-tabs-selected a:active { color:#e6820E; }
407
+
408
+ #widget-docs .ui-tabs-panel { padding:20px 9px; font-size:12px; line-height:1.4; color:#000; }
409
+
410
+ #widget-docs .ui-widget-content a:link,
411
+ #widget-docs .ui-widget-content a:visited { color:#1b75bb; text-decoration:none; }
412
+ #widget-docs .ui-widget-content a:hover,
413
+ #widget-docs .ui-widget-content a:active { color:#0b559b; }
414
+
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="robots" content="noindex, nofollow" />
6
+ <title>Import Diagram</title>
7
+ <link type="text/css" href="css/smoothness/jquery-ui-1.8.23.custom.css" rel="Stylesheet" />
8
+ <link rel="stylesheet" href="css/yowl.css" rel="Stylesheet" />
9
+ <script src="js/jquery-1.7.2.min.js"></script>
10
+ <script src="js/jquery-ui-1.8.23.custom.min.js"></script>
11
+ <script src="js/yowl.js"></script>
12
+ </head>
13
+ <body>
14
+ <div class="yowl">
15
+ <div id="tabs">
16
+ <ul>
17
+ <li><a title="Overview" href="index.html">Overview</a></li>
18
+ <li><a title="Import Diagram" href="import-diagram.html#content">Import Diagram</a></li>
19
+ <% ontologies.each do |ontology| %>
20
+ <li><a title="<%= ontology.short_name %>" href="<%= ontology.resourceNameHtml %>"><%= ontology.short_name %></a></li>
21
+ <% end %>
22
+ </ul>
23
+ </div>
24
+ <div id="content">
25
+ <%= repository.ontologiesAsSvg %>
26
+ </div>
27
+ </div>
28
+ </body>
29
+ </html>
@@ -0,0 +1,56 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="robots" content="noindex, nofollow" />
6
+ <title>Ontologies</title>
7
+ <link type="text/css" href="css/smoothness/jquery-ui-1.8.23.custom.css" rel="Stylesheet" />
8
+ <link rel="stylesheet" href="css/yowl.css" rel="Stylesheet" />
9
+ <script src="js/jquery-1.7.2.min.js"></script>
10
+ <script src="js/jquery-ui-1.8.23.custom.min.js"></script>
11
+ <script src="js/yowl.js"></script>
12
+ </head>
13
+ <body>
14
+ <div class="yowl">
15
+ <div id="tabs">
16
+ <ul>
17
+ <li><a title="Overview" href="index.html#content">Overview</a></li>
18
+ <li><a title="Import Diagram" href="import-diagram.html">Import Diagram</a></li>
19
+ <% ontologies.each do |ontology| %>
20
+ <li><a title="<%= ontology.short_name %>" href="<%= ontology.resourceNameHtml %>"><%= ontology.short_name %></a></li>
21
+ <% end %>
22
+ </ul>
23
+ </div>
24
+ </div>
25
+ <div id="content">
26
+ <table class="overview" border="0" width="100%">
27
+ <tr class="header">
28
+ <th class="prefix">PREFIX</th>
29
+ <th align="left">Ontology Name</th>
30
+ <th align="right"># Classes</th>
31
+ <th align="right"># Properties</th>
32
+ <th align="right"># Individuals</th>
33
+ <th align="right"># Imports</th>
34
+ <th align="right">Modified</th>
35
+ </tr>
36
+ <% ontologies.each do |ontology| %>
37
+ <tr>
38
+ <td class="prefix"><a href="<%= ontology.resourceNameHtml %>" title="<%= ontology.ns %>"><%= ontology.short_name %></a></td>
39
+ <td class="title"><%= ontology.title %></td>
40
+ <td align="right"><%= ontology.numberOfClasses %></td>
41
+ <td align="right"><%= ontology.numberOfProperties %></td>
42
+ <td align="right"><%= ontology.numberOfIndividuals %></td>
43
+ <td align="right"><%= ontology.imports.size %></td>
44
+ <td align="right"><%= ontology.modified %></td>
45
+ </tr>
46
+ <% if ontology.hasComment? %>
47
+ <tr>
48
+ <td colspan="1">&nbsp;</td>
49
+ <td colspan="6"><%= ontology.comment %></td>
50
+ </tr>
51
+ <% end %>
52
+ <% end %>
53
+ </table>
54
+ </div>
55
+ </body>
56
+ </html>