yowl 0.4.pre

Sign up to get free protection for your applications and to get access to all the features.
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,598 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="robots" content="noindex, nofollow" />
6
+ <title><%= schema.ontology.title %></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/jquery.ui.accordion.js"></script>
12
+ <script src="js/yowl.js"></script>
13
+ </head>
14
+ <%
15
+ def doImport(import_, imported_)
16
+ if imported_.include?(import_)
17
+ result = "\n<li>#{import_.uri} (#{import_.name})&nbsp;Recursive import</li>"
18
+ return result
19
+ end
20
+ imported_ << import_
21
+ prefix = ""
22
+ if import_.name != import_.uri
23
+ prefix = "&nbsp;<b>#{import_.name}</b>"
24
+ end
25
+ if import_.repository.knowsImport(import_)
26
+ result = "\n<li><a href=\"#{import_.repository.getSchemaNameForImport(import_)}.html\">#{import_.uri}</a>#{prefix}</li>"
27
+ else
28
+ result = "\n<li><a href=\"#{import_.uri}\">#{import_.uri}</a>#{prefix}</li>"
29
+ end
30
+ imports = import_.imports()
31
+ if ! imports.empty?()
32
+ result += "\n<ul>"
33
+ imports.each do |subImport|
34
+ result += doImport(subImport, imported_)
35
+ end
36
+ result += "\n</ul>"
37
+ end
38
+ return result
39
+ end
40
+
41
+ def doClass(klass)
42
+ name = klass.short_name
43
+ result = "\n<li><a href=\"#class_#{name}\">#{name}</a></li>"
44
+ subclasses = klass.subClasses()
45
+ if ! subclasses.empty?()
46
+ result += "\n<ul>"
47
+ subclasses.each do |subclass|
48
+ result += doClass(subclass)
49
+ end
50
+ result += "\n</ul>"
51
+ end
52
+ return result
53
+ end
54
+ %>
55
+ <body>
56
+ <div class="yowl">
57
+ <div id="tabs">
58
+ <ul>
59
+ <li><a title="Overview" href="index.html">Overview</a></li>
60
+ <li><a title="Import Diagram" href="import-diagram.html">Import Diagram</a></li>
61
+ <% schema.repository.ontologies.each do |ontology| %>
62
+ <% if ontology == schema.ontology %>
63
+ <li><a title="<%= ontology.short_name %>" href="<%= ontology.resourceNameHtml %>#content"><%= ontology.short_name %></a></li>
64
+ <% else %>
65
+ <li><a title="<%= ontology.short_name %>" href="<%= ontology.resourceNameHtml %>"><%= ontology.short_name %></a></li>
66
+ <% end %>
67
+ <% end %>
68
+ </ul>
69
+ </div>
70
+ <div id="content" class="accordion">
71
+ <h3><a id="<%= schema.name %>-info">Ontology - <%= schema.ontology.title %></a></h3>
72
+ <div>
73
+ <dl>
74
+ <% if schema.ontology.hasDefinition? %>
75
+ <dt>Definition</dt>
76
+ <dd><%= schema.ontology.definition %></dd>
77
+ <% end %>
78
+ <% if schema.ontology.hasComment? %>
79
+ <dt>Abstract</dt>
80
+ <dd><%= schema.ontology.comment %></dd>
81
+ <% end %>
82
+ <dt>Latest Version</dt>
83
+ <dd><a href="<%= schema.ontology.resourceNameHtml %>"><%= schema.ontology.ns %></a></dd>
84
+ <% if schema.ontology.created %>
85
+ <dt>Created</dt>
86
+ <dd><%= schema.ontology.created %></dd>
87
+ <% end %>
88
+ <% if schema.ontology.modified %>
89
+ <dt>Last Modified</dt>
90
+ <dd><%= schema.ontology.modified %></dd>
91
+ <% end %>
92
+ <% if schema.ontology.hasAuthors? %>
93
+ <dt>Authors & Contributors</dt>
94
+ <% schema.ontology.authors.each() do |author| %>
95
+ <dd><a href="<%= author.uri %>"><%= author.name %></a></dd>
96
+ <% end %>
97
+ <% end %>
98
+ <% if schema.ontology.rights %>
99
+ <dt>Copy Rights</dt>
100
+ <dd><%= schema.ontology.rights %></dd>
101
+ <% end %>
102
+ <% if not schema.ontology.see_alsos.empty?() %>
103
+ <dt>See Also</dt>
104
+ <% schema.ontology.see_alsos.each() do |see_also| %>
105
+ <dd><a href="<%= see_also %>"><%= see_also %></a></dd>
106
+ <% end %>
107
+ <% end %>
108
+ </dl>
109
+ </div>
110
+
111
+ <% if introduction %>
112
+ <h3><a id="<%= schema.name %>-intro">Introduction</a></h3>
113
+ <div>
114
+ <%= introduction %>
115
+ </div>
116
+ <% end %>
117
+
118
+ <% if schema.ontology.imports.length > 0 %>
119
+ <h3><a id="<%= schema.name %>-imports">Imports</a></h3>
120
+ <div>
121
+ <ul class="class">
122
+ <% imported = [] %>
123
+ <% schema.ontology.imports.each() do |import| %>
124
+ <%= doImport(import, imported) %>
125
+ <% end %>
126
+ </ul>
127
+ </div>
128
+ <% end %>
129
+
130
+ <% if schema.hasClasses? %>
131
+ <h3><a id="<%= schema.name %>-classes-overview">Classes - Overview</a></h3>
132
+ <div>
133
+ <table class="classinfo">
134
+ <tr>
135
+ <td class="classhierarchy" valign="top">
136
+ <ul class="class">
137
+ <% schema.root_classes().each do |klass| %>
138
+ <%= doClass(klass) %>
139
+ <% end %>
140
+ </ul>
141
+ </td>
142
+ <td>
143
+ <%= schema.classDiagramAsSvg %>
144
+ </td>
145
+ </tr>
146
+ </table>
147
+ </div>
148
+ <% end %>
149
+
150
+ <% if schema.list_properties.length > 0 %>
151
+ <h3><a id="<%= schema.name %>-properties">Properties - Overview</a></h3>
152
+ <div>
153
+ <ul>
154
+ <% schema.list_properties().each do |key,val| %>
155
+ <li><a href="#prop_<%= val.short_name %>"><%= val.short_name %></a></li>
156
+ <% end %>
157
+ </ul>
158
+ </div>
159
+ <% end %>
160
+
161
+ <% if schema.hasClasses? %>
162
+ <h3><a id="<%= schema.name %>-classes">Classes</a></h3>
163
+ <div>
164
+ <table class="terms">
165
+ <%schema.list_classes().each do |t| %>
166
+ <%
167
+ rowSpan = 1
168
+ rowSpan += 1 if t[1].hasOtherNamespace?
169
+ rowSpan += 1 if t[1].hasDefinition?
170
+ rowSpan += 1 if t[1].hasComment?
171
+ rowSpan += 1 if t[1].hasEditorialNotes?
172
+ rowSpan += 1 if t[1].status
173
+ rowSpan += 1 if t[1].super_classes.length > 0
174
+ rowSpan += 1 if t[1].subClasses.length > 0
175
+ rowSpan += 1 if t[1].see_alsos.length > 0
176
+ %>
177
+ <tr>
178
+ <th colspan="2" class="termName"><a id="class_<%= t[1].short_name %>"><%= t[1].short_name %><% if t[1].hasDifferentLabel? %> (<%= t[1].label %>)</a><% end %></th>
179
+ <th rowspan="<%= rowSpan %>" valign="top"><%= t[1].perClassDiagramAsSvg %></th>
180
+ </tr>
181
+ <% if t[1].hasOtherNamespace? %>
182
+ <tr>
183
+ <td class="label">Namespace</td>
184
+ <td><%= t[1].ns %></td>
185
+ </tr>
186
+ <% end %>
187
+ <% if t[1].hasDefinition? %>
188
+ <td>Definition</td>
189
+ <td><%= t[1].definition %></td>
190
+ <% end %>
191
+ <% if t[1].hasComment? %>
192
+ <tr>
193
+ <td class="label">Abstract</td>
194
+ <td><%= t[1].comment %></td>
195
+ </tr>
196
+ <% end %>
197
+ <% if t[1].hasEditorialNotes? %>
198
+ <% t[1].editorialNotes.each do |note| %>
199
+ <tr>
200
+ <td>Editorial Note</td>
201
+ <td><%= note %></td>
202
+ </tr>
203
+ <% end %>
204
+ <% end %>
205
+ <% if t[1].status %>
206
+ <tr>
207
+ <td class="label">Status</td>
208
+ <td><%= t[1].status %></td>
209
+ </tr>
210
+ <% end %>
211
+ <% if t[1].hasSuperClasses? %>
212
+ <tr>
213
+ <td class="label">SubClass Of</td>
214
+ <td>
215
+ <ul>
216
+ <% t[1].super_classes.each do |parent| %>
217
+ <li><a href="#class_<%= parent.short_name %>"><%= parent.short_name %></a></li>
218
+ <% end %>
219
+ </ul>
220
+ </td>
221
+ </tr>
222
+ <% end %>
223
+ <% if t[1].hasSubClasses? %>
224
+ <tr>
225
+ <td class="label">Sub-Classes</td>
226
+ <td>
227
+ <ul>
228
+ <% t[1].subClasses.each do |child| %>
229
+ <li><a href="#class_<%= child.short_name %>"><%= child.short_name %></a></li>
230
+ <% end %>
231
+ </ul>
232
+ </td>
233
+ </tr>
234
+ <% end %>
235
+ <% if t[1].see_alsos.length > 0 %>
236
+ <tr>
237
+ <td class="label">See Also:</td>
238
+ <td>
239
+ <ul>
240
+ <% t[1].see_alsos.each do |link| %>
241
+ <li><a href="<%= link %>"><%= link %></a></li>
242
+ <% end %>
243
+ </ul>
244
+ </td>
245
+ </tr>
246
+ <% end %>
247
+ <%end%>
248
+ </table>
249
+ </div>
250
+ <%end%>
251
+
252
+ <% if schema.list_object_properties.length > 0 %>
253
+ <h3><a id="<%= schema.name %>-object-properties">Object Properties</a></h3>
254
+ <div>
255
+ <table class="terms">
256
+ <% schema.list_object_properties().each do |t| %>
257
+ <%
258
+ rowSpan = 1
259
+ rowSpan += 1 if t[1].hasOtherNamespace?
260
+ rowSpan += 1 if t[1].hasDefinition?
261
+ rowSpan += 1 if t[1].hasComment?
262
+ rowSpan += 1 if t[1].hasEditorialNotes?
263
+ rowSpan += 1 if t[1].status
264
+ rowSpan += 1 if t[1].sub_property_of
265
+ rowSpan += 1 if t[1].sub_properties.length > 0
266
+ rowSpan += 1 if t[1].range.length > 0
267
+ rowSpan += 1 if t[1].domain.length > 0
268
+ rowSpan += 1 if t[1].see_alsos.length > 0
269
+ %>
270
+ <tr id="prop_<%= t[1].short_name %>">
271
+ <th colspan="2" class="termName"><%= t[1].short_name %><% if t[1].hasDifferentLabel? %> (<%= t[1].label %>)<% end %></th>
272
+ <th rowspan="<%= rowSpan %>" valign="top"><%= t[1].perPropertyDiagramAsSvg %></th>
273
+ </tr>
274
+ <% if t[1].hasOtherNamespace? %>
275
+ <tr>
276
+ <td>Namespace</td>
277
+ <td><%= t[1].ns %></td>
278
+ </tr>
279
+ <% end %>
280
+ <% if t[1].hasDefinition? %>
281
+ <tr>
282
+ <td>Definition</td>
283
+ <td><%= t[1].definition %></td>
284
+ </tr>
285
+ <% end %>
286
+ <% if t[1].hasComment? %>
287
+ <tr>
288
+ <td class="label">Abstract</td>
289
+ <td><%= t[1].comment %></td>
290
+ </tr>
291
+ <% end %>
292
+ <% if t[1].hasEditorialNotes? %>
293
+ <% t[1].editorialNotes.each do |note| %>
294
+ <tr>
295
+ <td>Editorial Note</td>
296
+ <td><%= note %></td>
297
+ </tr>
298
+ <% end %>
299
+ <% end %>
300
+ <% if t[1].status %>
301
+ <tr>
302
+ <td class="label">Status</td>
303
+ <td><%= t[1].status %></td>
304
+ </tr>
305
+ <% end %>
306
+ <% if t[1].sub_property_of %>
307
+ <% if t[1].sub_property_of.class.to_s == "String" %>
308
+ <tr>
309
+ <td class="label">Has Parent Property</td>
310
+ <td><a href="<%= t[1].sub_property_of %>"><%= t[1].sub_property_of %></a></td>
311
+ </tr>
312
+ <% else %>
313
+ <tr>
314
+ <td class="label">Has Parent Property</td>
315
+ <td><a href="#prop_<%= t[1].sub_property_of.short_name %>"><%= t[1].sub_property_of.short_name %></a></td>
316
+ </tr>
317
+ <% end %>
318
+ <% end %>
319
+ <% if t[1].sub_properties.length > 0 %>
320
+ <tr>
321
+ <td class="label">Sub-Properties</td>
322
+ <td>
323
+ <ul>
324
+ <% t[1].sub_properties.each do |child| %>
325
+ <li><a href="#class_<%= child.short_name %>"><%= child.short_name %></a></li>
326
+ <% end %>
327
+ </ul>
328
+ </td>
329
+ </tr>
330
+ <% end %>
331
+ <% if t[1].range.length > 0 %>
332
+ <tr>
333
+ <td class="label">Range</td>
334
+ <td>
335
+ <ul>
336
+ <% t[1].range.each do |cls| %>
337
+ <% if cls.class.to_s == "String" %>
338
+ <li><a href="<%= cls %>"><%= cls %></a></li>
339
+ <% else %>
340
+ <li><a href="#class_<%= cls.short_name %>"><%= cls.short_name %></a></li>
341
+ <% end %>
342
+ <% end %>
343
+ </ul>
344
+ </td>
345
+ </tr>
346
+ <% end %>
347
+ <% if t[1].domain.length > 0 %>
348
+ <tr>
349
+ <td class="label">Domain</td>
350
+ <td>
351
+ <ul>
352
+ <% t[1].domain.each do |cls| %>
353
+ <% if cls.class.to_s == "String" %>
354
+ <li><a href="<%= cls %>"><%= cls %></a></li>
355
+ <% else %>
356
+ <li><a href="#class_<%= cls.short_name %>"><%= cls.short_name %></a></li>
357
+ <% end %>
358
+ <% end %>
359
+ </ul>
360
+ </td>
361
+ </tr>
362
+ <% end %>
363
+ <% if t[1].see_alsos.length > 0 %>
364
+ <tr>
365
+ <td class="label">See Also</td>
366
+ <td>
367
+ <ul>
368
+ <% t[1].see_alsos.each do |link| %>
369
+ <li><a href="<%= link %>"><%= link %></a></li>
370
+ <% end %>
371
+ </ul>
372
+ </td>
373
+ </tr>
374
+ <% end %>
375
+ <%end%>
376
+ </table>
377
+ </div>
378
+ <% end %>
379
+
380
+ <% if schema.list_datatype_properties.length > 0 %>
381
+ <h3><a id="<%= schema.name %>-datatype-properties">Datatype Properties</a></h3>
382
+ <div>
383
+ <table class="terms">
384
+ <% schema.list_datatype_properties().each do |t| %>
385
+ <%
386
+ rowSpan = 1
387
+ rowSpan += 1 if t[1].hasOtherNamespace?
388
+ rowSpan += 1 if t[1].hasDefinition?
389
+ rowSpan += 1 if t[1].hasComment?
390
+ rowSpan += 1 if t[1].hasEditorialNotes?
391
+ rowSpan += 1 if t[1].status
392
+ rowSpan += 1 if t[1].sub_property_of
393
+ rowSpan += 1 if t[1].sub_properties.length > 0
394
+ rowSpan += 1 if t[1].range.length > 0
395
+ rowSpan += 1 if t[1].domain.length > 0
396
+ rowSpan += 1 if t[1].see_alsos.length > 0
397
+ %>
398
+ <tr id="prop_<%= t[1].short_name %>">
399
+ <th colspan="2" class="termName"><%= t[1].short_name %><% if t[1].hasDifferentLabel? %> (<%= t[1].label %>)<% end %></th>
400
+ <th rowspan="<%= rowSpan %>" valign="top"><%= t[1].perPropertyDiagramAsSvg %></th>
401
+ </tr>
402
+ <% if t[1].hasOtherNamespace? %>
403
+ <tr>
404
+ <td>Namespace</td>
405
+ <td><%= t[1].ns %></td>
406
+ </tr>
407
+ <% end %>
408
+ <% if t[1].hasDefinition? %>
409
+ <tr>
410
+ <td>Definition</td>
411
+ <td><%= t[1].definition %></td>
412
+ </tr>
413
+ <% end %>
414
+ <% if t[1].hasComment? %>
415
+ <tr>
416
+ <td class="label">Abstract</td>
417
+ <td><%= t[1].comment %></td>
418
+ </tr>
419
+ <% end %>
420
+ <% if t[1].hasEditorialNotes? %>
421
+ <% t[1].editorialNotes.each do |note| %>
422
+ <tr>
423
+ <td>Editorial Note</td>
424
+ <td><%= note %></td>
425
+ </tr>
426
+ <% end %>
427
+ <% end %>
428
+ <% if t[1].status %>
429
+ <tr>
430
+ <td class="label">Status</td>
431
+ <td><%= t[1].status %></td>
432
+ </tr>
433
+ <% end %>
434
+ <% if t[1].sub_property_of %>
435
+ <% if t[1].sub_property_of.class.to_s == "String" %>
436
+ <tr>
437
+ <td class="label">Has Parent Property</td>
438
+ <td><a href="#prop_<%= t[1].sub_property_of %>"><%= t[1].sub_property_of %></a></td>
439
+ </tr>
440
+ <% else %>
441
+ <tr>
442
+ <td class="label">Has Parent Property</td>
443
+ <td><a href="#prop_<%= t[1].sub_property_of.short_name %>"><%= t[1].sub_property_of.short_name %></a></td>
444
+ </tr>
445
+ <% end %>
446
+ <% end %>
447
+ <% if t[1].sub_properties.length > 0 %>
448
+ <tr>
449
+ <td class="label">Sub-Properties</td>
450
+ <td>
451
+ <ul>
452
+ <% t[1].sub_properties.each do |child| %>
453
+ <li><a href="#class_<%= child.short_name %>"><%= child.short_name %></a></li>
454
+ <% end %>
455
+ </ul>
456
+ </td>
457
+ </tr>
458
+ <% end %>
459
+ <% if t[1].range.length > 0 %>
460
+ <tr>f
461
+ <td class="label">Range</td>
462
+ <td>
463
+ <ul>
464
+ <% t[1].range.each do |cls| %>
465
+ <% if cls.class.to_s == "String" %>
466
+ <li><a href="#class_<%= cls %>"><%= cls %></a></li>
467
+ <% else %>
468
+ <li><a href="#class_<%= cls.short_name %>"><%= cls.short_name %></a></li>
469
+ <% end %>
470
+ <% end %>
471
+ </ul>
472
+ </td>
473
+ </tr>
474
+ <% end %>
475
+ <% if t[1].domain.length > 0 %>
476
+ <tr>
477
+ <td class="label">Domain</td>
478
+ <td>
479
+ <ul>
480
+ <% t[1].domain.each do |cls| %>
481
+ <% if cls.class.to_s == "String" %>
482
+ <li><a href="#class_<%= cls %>"><%= cls %></a></li>
483
+ <% else %>
484
+ <li><a href="#class_<%= cls.short_name %>"><%= cls.short_name %></a></li>
485
+ <% end %>
486
+ <% end %>
487
+ </ul>
488
+ </td>
489
+ </tr>
490
+ <% end %>
491
+ <% if t[1].see_alsos.length > 0 %>
492
+ <tr>
493
+ <td class="label">See Also</td>
494
+ <td>
495
+ <ul>
496
+ <% t[1].see_alsos.each do |link| %>
497
+ <li><a href="<%= link %>"><%= link %></a></li>
498
+ <% end %>
499
+ </ul>
500
+ </td>
501
+ </tr>
502
+ <% end %>
503
+ <%end%>
504
+ </table>
505
+ </div>
506
+ <%end%>
507
+
508
+ <% schema.skosConceptSchemes.each do |conceptScheme| %>
509
+ <h3><a id="<%= schema.name %><%= conceptScheme.short_name %>-taxonomy">SKOS Concept Scheme <%= conceptScheme.short_name %></a></h3>
510
+ <div>
511
+ <table class="terms">
512
+ <% schema.skosConceptsInScheme(conceptScheme).each do |individual| %>
513
+ <%
514
+ rowSpan = 1
515
+ rowSpan += 1 if individual.hasDefinition?
516
+ rowSpan += 1 if individual.hasComment?
517
+ rowSpan += 1 if individual.hasEditorialNotes?
518
+ rowSpan += 1 if individual.classes.length > 0
519
+ %>
520
+ <tr>
521
+ <th colspan="2" class="termName"><a href="#individual_<%= individual.short_name %>"><%= individual.short_name %></a></th>
522
+ <th rowspan="<%= rowSpan %>" valign="top"><%= individual.asSvg %></th>
523
+ </tr>
524
+ <% if individual.hasDefinition? %>
525
+ <td>Definition</td>
526
+ <td><%= t[1].definition %></td>
527
+ <% end %>
528
+ <% if individual.hasComment? %>
529
+ <tr>
530
+ <td class="label">Abstract</td>
531
+ <td><%= individual.comment %></td>
532
+ </tr>
533
+ <% end %>
534
+ <% if individual.hasEditorialNotes? %>
535
+ <% individual.editorialNotes.each do |note| %>
536
+ <tr>
537
+ <td>Editorial Note</td>
538
+ <td><%= note %></td>
539
+ </tr>
540
+ <% end %>
541
+ <% end %>
542
+ <% if individual.classes.length > 0 %>
543
+ <tr>
544
+ <td class="label">Class</td>
545
+ <td>
546
+ <ul>
547
+ <% individual.classes.each do |klass| %>
548
+ <li><a href="<% klass.schema.name %>.html#class_<%= klass.short_name %>"><%= klass.short_name %></a></li>
549
+ <% end %>
550
+ </ul>
551
+ </td>
552
+ </tr>
553
+ <% end %>
554
+ <%end%>
555
+ </table>
556
+ </div>
557
+ <%end%>
558
+
559
+ <% if schema.individualsNotSkosConcepts.length > 0 %>
560
+ <h3><a id="<%= schema.name %>-individuals">Individuals</a></h3>
561
+ <div>
562
+ <table class="terms">
563
+ <%schema.individualsNotSkosConcepts.each do |individual| %>
564
+ <%
565
+ rowSpan = 1
566
+ rowSpan += 1 if individual.hasComment?
567
+ rowSpan += 1 if individual.classes.length > 0
568
+ %>
569
+ <tr>
570
+ <th colspan="2" class="termName"><a href="#individual_<%= individual.short_name %>"><%= individual.short_name %></a></th>
571
+ <th rowspan="<%= rowSpan %>" valign="top"><%= individual.asSvg %></th>
572
+ </tr>
573
+ <% if individual.hasComment? %>
574
+ <tr>
575
+ <td class="label">Abstract</td>
576
+ <td><%= individual.comment %></td>
577
+ </tr>
578
+ <% end %>
579
+ <% if individual.classes.length > 0 %>
580
+ <tr>
581
+ <td class="label">Class</td>
582
+ <td>
583
+ <ul>
584
+ <% individual.classes.each do |klass| %>
585
+ <li><a href="<% klass.schema.name %>.html#class_<%= klass.short_name %>"><%= klass.short_name %></a></li>
586
+ <% end %>
587
+ </ul>
588
+ </td>
589
+ </tr>
590
+ <% end %>
591
+ <%end%>
592
+ </table>
593
+ </div>
594
+ <%end%>
595
+ </div>
596
+ </div>
597
+ </body>
598
+ </html>
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * jQuery UI Accordion 1.8.23
3
+ *
4
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ * http://jquery.org/license
7
+ *
8
+ * http://docs.jquery.com/UI/Accordion#theming
9
+ */
10
+ /* IE/Win - Fix animation bug - #4615 */
11
+ .ui-accordion { width: 100%; }
12
+ .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
13
+ .ui-accordion .ui-accordion-li-fix { display: inline; }
14
+ .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
15
+ .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
16
+ .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
17
+ .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
18
+ .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
19
+ .ui-accordion .ui-accordion-content-active { display: block; }
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * jQuery UI CSS Framework 1.8.23
3
+ *
4
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ * http://jquery.org/license
7
+ *
8
+ * http://docs.jquery.com/UI/Theming
9
+ */
10
+ @import "jquery.ui.base.css";
11
+ @import "jquery.ui.theme.css";