yarrrml_template_builder 0.1.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,459 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <meta charset="utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <title>Method List</title>
19
+ <base id="base_target" target="_parent" />
20
+ </head>
21
+ <body>
22
+ <div id="content">
23
+ <div class="fixed_header">
24
+ <h1 id="full_list_header">Method List</h1>
25
+ <div id="full_list_nav">
26
+
27
+ <span><a target="_self" href="class_list.html">
28
+ Classes
29
+ </a></span>
30
+
31
+ <span><a target="_self" href="method_list.html">
32
+ Methods
33
+ </a></span>
34
+
35
+ <span><a target="_self" href="file_list.html">
36
+ Files
37
+ </a></span>
38
+
39
+ </div>
40
+
41
+ <div id="search">Search: <input type="text" /></div>
42
+ </div>
43
+
44
+ <ul id="full_list" class="method">
45
+
46
+
47
+ <li class="odd ">
48
+ <div class="item">
49
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#add_prefixes-instance_method" title="YARRRML_Template_Builder#add_prefixes (method)">#add_prefixes</a></span>
50
+ <small>YARRRML_Template_Builder</small>
51
+ </div>
52
+ </li>
53
+
54
+
55
+ <li class="even ">
56
+ <div class="item">
57
+ <span class='object_link'><a href="YARRRML_Transform.html#baseURI-instance_method" title="YARRRML_Transform#baseURI (method)">#baseURI</a></span>
58
+ <small>YARRRML_Transform</small>
59
+ </div>
60
+ </li>
61
+
62
+
63
+ <li class="odd ">
64
+ <div class="item">
65
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#baseURI-instance_method" title="YARRRML_Template_Builder#baseURI (method)">#baseURI</a></span>
66
+ <small>YARRRML_Template_Builder</small>
67
+ </div>
68
+ </li>
69
+
70
+
71
+ <li class="even ">
72
+ <div class="item">
73
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#build_attribute-instance_method" title="YARRRML_Template_Builder#build_attribute (method)">#build_attribute</a></span>
74
+ <small>YARRRML_Template_Builder</small>
75
+ </div>
76
+ </li>
77
+
78
+
79
+ <li class="odd ">
80
+ <div class="item">
81
+ <span class='object_link'><a href="YARRRML_Transform.html#config_path_client-instance_method" title="YARRRML_Transform#config_path_client (method)">#config_path_client</a></span>
82
+ <small>YARRRML_Transform</small>
83
+ </div>
84
+ </li>
85
+
86
+
87
+ <li class="even ">
88
+ <div class="item">
89
+ <span class='object_link'><a href="YARRRML_Transform.html#config_path_server-instance_method" title="YARRRML_Transform#config_path_server (method)">#config_path_server</a></span>
90
+ <small>YARRRML_Transform</small>
91
+ </div>
92
+ </li>
93
+
94
+
95
+ <li class="odd ">
96
+ <div class="item">
97
+ <span class='object_link'><a href="YARRRML_Transform.html#data_path_client-instance_method" title="YARRRML_Transform#data_path_client (method)">#data_path_client</a></span>
98
+ <small>YARRRML_Transform</small>
99
+ </div>
100
+ </li>
101
+
102
+
103
+ <li class="even ">
104
+ <div class="item">
105
+ <span class='object_link'><a href="YARRRML_Transform.html#data_path_server-instance_method" title="YARRRML_Transform#data_path_server (method)">#data_path_server</a></span>
106
+ <small>YARRRML_Transform</small>
107
+ </div>
108
+ </li>
109
+
110
+
111
+ <li class="odd ">
112
+ <div class="item">
113
+ <span class='object_link'><a href="YARRRML_Transform.html#datafile-instance_method" title="YARRRML_Transform#datafile (method)">#datafile</a></span>
114
+ <small>YARRRML_Transform</small>
115
+ </div>
116
+ </li>
117
+
118
+
119
+ <li class="even ">
120
+ <div class="item">
121
+ <span class='object_link'><a href="YARRRML_Transform.html#datatype_tag-instance_method" title="YARRRML_Transform#datatype_tag (method)">#datatype_tag</a></span>
122
+ <small>YARRRML_Transform</small>
123
+ </div>
124
+ </li>
125
+
126
+
127
+ <li class="odd ">
128
+ <div class="item">
129
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#entity_has_component-instance_method" title="YARRRML_Template_Builder#entity_has_component (method)">#entity_has_component</a></span>
130
+ <small>YARRRML_Template_Builder</small>
131
+ </div>
132
+ </li>
133
+
134
+
135
+ <li class="even ">
136
+ <div class="item">
137
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#entity_identifier_role_mappings-instance_method" title="YARRRML_Template_Builder#entity_identifier_role_mappings (method)">#entity_identifier_role_mappings</a></span>
138
+ <small>YARRRML_Template_Builder</small>
139
+ </div>
140
+ </li>
141
+
142
+
143
+ <li class="odd ">
144
+ <div class="item">
145
+ <span class='object_link'><a href="YARRRML_Transform.html#failure-instance_method" title="YARRRML_Transform#failure (method)">#failure</a></span>
146
+ <small>YARRRML_Transform</small>
147
+ </div>
148
+ </li>
149
+
150
+
151
+ <li class="even ">
152
+ <div class="item">
153
+ <span class='object_link'><a href="YARRRML_Transform.html#formulation-instance_method" title="YARRRML_Transform#formulation (method)">#formulation</a></span>
154
+ <small>YARRRML_Transform</small>
155
+ </div>
156
+ </li>
157
+
158
+
159
+ <li class="odd ">
160
+ <div class="item">
161
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#generate-instance_method" title="YARRRML_Template_Builder#generate (method)">#generate</a></span>
162
+ <small>YARRRML_Template_Builder</small>
163
+ </div>
164
+ </li>
165
+
166
+
167
+ <li class="even ">
168
+ <div class="item">
169
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#get_root_url-instance_method" title="YARRRML_Template_Builder#get_root_url (method)">#get_root_url</a></span>
170
+ <small>YARRRML_Template_Builder</small>
171
+ </div>
172
+ </li>
173
+
174
+
175
+ <li class="odd ">
176
+ <div class="item">
177
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#get_uniq_id-instance_method" title="YARRRML_Template_Builder#get_uniq_id (method)">#get_uniq_id</a></span>
178
+ <small>YARRRML_Template_Builder</small>
179
+ </div>
180
+ </li>
181
+
182
+
183
+ <li class="even ">
184
+ <div class="item">
185
+ <span class='object_link'><a href="YARRRML_Transform.html#inifile_client-instance_method" title="YARRRML_Transform#inifile_client (method)">#inifile_client</a></span>
186
+ <small>YARRRML_Transform</small>
187
+ </div>
188
+ </li>
189
+
190
+
191
+ <li class="odd ">
192
+ <div class="item">
193
+ <span class='object_link'><a href="YARRRML_Transform.html#inifile_server-instance_method" title="YARRRML_Transform#inifile_server (method)">#inifile_server</a></span>
194
+ <small>YARRRML_Transform</small>
195
+ </div>
196
+ </li>
197
+
198
+
199
+ <li class="even ">
200
+ <div class="item">
201
+ <span class='object_link'><a href="YARRRML_Transform.html#initialize-instance_method" title="YARRRML_Transform#initialize (method)">#initialize</a></span>
202
+ <small>YARRRML_Transform</small>
203
+ </div>
204
+ </li>
205
+
206
+
207
+ <li class="odd ">
208
+ <div class="item">
209
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#initialize-instance_method" title="YARRRML_Template_Builder#initialize (method)">#initialize</a></span>
210
+ <small>YARRRML_Template_Builder</small>
211
+ </div>
212
+ </li>
213
+
214
+
215
+ <li class="even ">
216
+ <div class="item">
217
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#input_output_refers_to-instance_method" title="YARRRML_Template_Builder#input_output_refers_to (method)">#input_output_refers_to</a></span>
218
+ <small>YARRRML_Template_Builder</small>
219
+ </div>
220
+ </li>
221
+
222
+
223
+ <li class="odd ">
224
+ <div class="item">
225
+ <span class='object_link'><a href="YARRRML_Transform.html#make_fair_data-instance_method" title="YARRRML_Transform#make_fair_data (method)">#make_fair_data</a></span>
226
+ <small>YARRRML_Transform</small>
227
+ </div>
228
+ </li>
229
+
230
+
231
+ <li class="even ">
232
+ <div class="item">
233
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#mapping_clause-instance_method" title="YARRRML_Template_Builder#mapping_clause (method)">#mapping_clause</a></span>
234
+ <small>YARRRML_Template_Builder</small>
235
+ </div>
236
+ </li>
237
+
238
+
239
+ <li class="odd ">
240
+ <div class="item">
241
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#mappings-instance_method" title="YARRRML_Template_Builder#mappings (method)">#mappings</a></span>
242
+ <small>YARRRML_Template_Builder</small>
243
+ </div>
244
+ </li>
245
+
246
+
247
+ <li class="even ">
248
+ <div class="item">
249
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#output_has_unit-instance_method" title="YARRRML_Template_Builder#output_has_unit (method)">#output_has_unit</a></span>
250
+ <small>YARRRML_Template_Builder</small>
251
+ </div>
252
+ </li>
253
+
254
+
255
+ <li class="odd ">
256
+ <div class="item">
257
+ <span class='object_link'><a href="YARRRML_Transform.html#outputrdffolder-instance_method" title="YARRRML_Transform#outputrdffolder (method)">#outputrdffolder</a></span>
258
+ <small>YARRRML_Transform</small>
259
+ </div>
260
+ </li>
261
+
262
+
263
+ <li class="even ">
264
+ <div class="item">
265
+ <span class='object_link'><a href="YARRRML_Transform.html#outputrmlfile-instance_method" title="YARRRML_Transform#outputrmlfile (method)">#outputrmlfile</a></span>
266
+ <small>YARRRML_Transform</small>
267
+ </div>
268
+ </li>
269
+
270
+
271
+ <li class="odd ">
272
+ <div class="item">
273
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#person_identifier_role_mappings-instance_method" title="YARRRML_Template_Builder#person_identifier_role_mappings (method)">#person_identifier_role_mappings</a></span>
274
+ <small>YARRRML_Template_Builder</small>
275
+ </div>
276
+ </li>
277
+
278
+
279
+ <li class="even ">
280
+ <div class="item">
281
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#prefix_map-instance_method" title="YARRRML_Template_Builder#prefix_map (method)">#prefix_map</a></span>
282
+ <small>YARRRML_Template_Builder</small>
283
+ </div>
284
+ </li>
285
+
286
+
287
+ <li class="odd ">
288
+ <div class="item">
289
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_caused_by-instance_method" title="YARRRML_Template_Builder#process_caused_by (method)">#process_caused_by</a></span>
290
+ <small>YARRRML_Template_Builder</small>
291
+ </div>
292
+ </li>
293
+
294
+
295
+ <li class="even ">
296
+ <div class="item">
297
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_has_agent-instance_method" title="YARRRML_Template_Builder#process_has_agent (method)">#process_has_agent</a></span>
298
+ <small>YARRRML_Template_Builder</small>
299
+ </div>
300
+ </li>
301
+
302
+
303
+ <li class="odd ">
304
+ <div class="item">
305
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_has_annotations-instance_method" title="YARRRML_Template_Builder#process_has_annotations (method)">#process_has_annotations</a></span>
306
+ <small>YARRRML_Template_Builder</small>
307
+ </div>
308
+ </li>
309
+
310
+
311
+ <li class="even ">
312
+ <div class="item">
313
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_has_attribute-instance_method" title="YARRRML_Template_Builder#process_has_attribute (method)">#process_has_attribute</a></span>
314
+ <small>YARRRML_Template_Builder</small>
315
+ </div>
316
+ </li>
317
+
318
+
319
+ <li class="odd ">
320
+ <div class="item">
321
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_has_input-instance_method" title="YARRRML_Template_Builder#process_has_input (method)">#process_has_input</a></span>
322
+ <small>YARRRML_Template_Builder</small>
323
+ </div>
324
+ </li>
325
+
326
+
327
+ <li class="even ">
328
+ <div class="item">
329
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_has_part-instance_method" title="YARRRML_Template_Builder#process_has_part (method)">#process_has_part</a></span>
330
+ <small>YARRRML_Template_Builder</small>
331
+ </div>
332
+ </li>
333
+
334
+
335
+ <li class="odd ">
336
+ <div class="item">
337
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_has_target-instance_method" title="YARRRML_Template_Builder#process_has_target (method)">#process_has_target</a></span>
338
+ <small>YARRRML_Template_Builder</small>
339
+ </div>
340
+ </li>
341
+
342
+
343
+ <li class="even ">
344
+ <div class="item">
345
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_hasoutput_output-instance_method" title="YARRRML_Template_Builder#process_hasoutput_output (method)">#process_hasoutput_output</a></span>
346
+ <small>YARRRML_Template_Builder</small>
347
+ </div>
348
+ </li>
349
+
350
+
351
+ <li class="odd ">
352
+ <div class="item">
353
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#process_is_specified_by-instance_method" title="YARRRML_Template_Builder#process_is_specified_by (method)">#process_is_specified_by</a></span>
354
+ <small>YARRRML_Template_Builder</small>
355
+ </div>
356
+ </li>
357
+
358
+
359
+ <li class="even ">
360
+ <div class="item">
361
+ <span class='object_link'><a href="YARRRML_Transform.html#rdfizer_base_url-instance_method" title="YARRRML_Transform#rdfizer_base_url (method)">#rdfizer_base_url</a></span>
362
+ <small>YARRRML_Transform</small>
363
+ </div>
364
+ </li>
365
+
366
+
367
+ <li class="odd ">
368
+ <div class="item">
369
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#role_in_process-instance_method" title="YARRRML_Template_Builder#role_in_process (method)">#role_in_process</a></span>
370
+ <small>YARRRML_Template_Builder</small>
371
+ </div>
372
+ </li>
373
+
374
+
375
+ <li class="even ">
376
+ <div class="item">
377
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#sio_verbose-instance_method" title="YARRRML_Template_Builder#sio_verbose (method)">#sio_verbose</a></span>
378
+ <small>YARRRML_Template_Builder</small>
379
+ </div>
380
+ </li>
381
+
382
+
383
+ <li class="odd ">
384
+ <div class="item">
385
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#source_tag-instance_method" title="YARRRML_Template_Builder#source_tag (method)">#source_tag</a></span>
386
+ <small>YARRRML_Template_Builder</small>
387
+ </div>
388
+ </li>
389
+
390
+
391
+ <li class="even ">
392
+ <div class="item">
393
+ <span class='object_link'><a href="YARRRML_Template_Builder.html#sources_module-instance_method" title="YARRRML_Template_Builder#sources_module (method)">#sources_module</a></span>
394
+ <small>YARRRML_Template_Builder</small>
395
+ </div>
396
+ </li>
397
+
398
+
399
+ <li class="odd ">
400
+ <div class="item">
401
+ <span class='object_link'><a href="YARRRML_Transform.html#transform_template-instance_method" title="YARRRML_Transform#transform_template (method)">#transform_template</a></span>
402
+ <small>YARRRML_Transform</small>
403
+ </div>
404
+ </li>
405
+
406
+
407
+ <li class="even ">
408
+ <div class="item">
409
+ <span class='object_link'><a href="YARRRML_Transform.html#write_ini-instance_method" title="YARRRML_Transform#write_ini (method)">#write_ini</a></span>
410
+ <small>YARRRML_Transform</small>
411
+ </div>
412
+ </li>
413
+
414
+
415
+ <li class="odd ">
416
+ <div class="item">
417
+ <span class='object_link'><a href="YARRRML_Transform.html#yarrrml_transform-instance_method" title="YARRRML_Transform#yarrrml_transform (method)">#yarrrml_transform</a></span>
418
+ <small>YARRRML_Transform</small>
419
+ </div>
420
+ </li>
421
+
422
+
423
+ <li class="even ">
424
+ <div class="item">
425
+ <span class='object_link'><a href="YARRRML_Transform.html#yarrrml_transform_base_url-instance_method" title="YARRRML_Transform#yarrrml_transform_base_url (method)">#yarrrml_transform_base_url</a></span>
426
+ <small>YARRRML_Transform</small>
427
+ </div>
428
+ </li>
429
+
430
+
431
+ <li class="odd ">
432
+ <div class="item">
433
+ <span class='object_link'><a href="YARRRML_Transform.html#yarrrmlfilename_client-instance_method" title="YARRRML_Transform#yarrrmlfilename_client (method)">#yarrrmlfilename_client</a></span>
434
+ <small>YARRRML_Transform</small>
435
+ </div>
436
+ </li>
437
+
438
+
439
+ <li class="even ">
440
+ <div class="item">
441
+ <span class='object_link'><a href="YARRRML_Transform.html#yarrrmlfilename_server-instance_method" title="YARRRML_Transform#yarrrmlfilename_server (method)">#yarrrmlfilename_server</a></span>
442
+ <small>YARRRML_Transform</small>
443
+ </div>
444
+ </li>
445
+
446
+
447
+ <li class="odd ">
448
+ <div class="item">
449
+ <span class='object_link'><a href="YARRRML_Transform.html#yarrrmltemplate-instance_method" title="YARRRML_Transform#yarrrmltemplate (method)">#yarrrmltemplate</a></span>
450
+ <small>YARRRML_Transform</small>
451
+ </div>
452
+ </li>
453
+
454
+
455
+
456
+ </ul>
457
+ </div>
458
+ </body>
459
+ </html>
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Top Level Namespace
8
+
9
+ &mdash; Documentation by YARD 0.9.26
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index</a> &raquo;
40
+
41
+
42
+ <span class="title">Top Level Namespace</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Top Level Namespace
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ </div>
80
+
81
+ <h2>Defined Under Namespace</h2>
82
+ <p class="children">
83
+
84
+
85
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="YARRRMLTemplateBuilder.html" title="YARRRMLTemplateBuilder (module)">YARRRMLTemplateBuilder</a></span>
86
+
87
+
88
+
89
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="YARRRML_Template_Builder.html" title="YARRRML_Template_Builder (class)">YARRRML_Template_Builder</a></span>, <span class='object_link'><a href="YARRRML_Transform.html" title="YARRRML_Transform (class)">YARRRML_Transform</a></span>
90
+
91
+
92
+ </p>
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+ </div>
103
+
104
+ <div id="footer">
105
+ Generated on Sat Dec 18 09:07:59 2021 by
106
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
+ 0.9.26 (ruby-2.7.2).
108
+ </div>
109
+
110
+ </div>
111
+ </body>
112
+ </html>
@@ -0,0 +1,56 @@
1
+ require "yarrrml-template-builder"
2
+
3
+ #"pid,uniqid,start,end,data
4
+
5
+
6
+ b = YARRRML_Template_Builder.new({
7
+ source_tag: "cde_timed_process",
8
+ sio_verbose: 1,
9
+ }
10
+ )
11
+
12
+
13
+ b.person_identifier_role_mappings({
14
+ personid_column: "pid",
15
+ uniqueid_column: "uniqid",
16
+ person_role_tag: "patientRole_status",
17
+ role_type: 'http://purl.obolibrary.org/obo/OBI_0000093',
18
+ role_label: "Patient for status recording"
19
+ })
20
+ # ===============================================
21
+ # @param params [Hash] a hash of options
22
+ # @option params :person_role_tag [String] the tag of the role that is fulfilled in this process (default 'thisRole') - see person_role_tag above, synchronize these tags!
23
+ # @option params :process_type [String] the URL for the ontological type of the process (defaults to http://semanticscience.org/resource/process)
24
+ # @option params :process_type_column [String] the column header that contains the URL for the ontological type of the process - overrides process_type
25
+ # @option params :process_tag [String] some single-word tag for that process; defaults to "thisprocess"
26
+ # @option params :process_label [String] the label associated with the process type in that row (defaults to "thisprocess")
27
+ # @option params :process_label_column [String] the column header for the label associated with the process type in that row
28
+ # @option params :process_start_column [ISO 8601 date (only date)] (optional) the column header for the datestamp when that process started. NOTE: For instantaneous processes, create ONLY the start date column, and an identical end date will be automatically generated
29
+ # @option params :process_end_column [ISO 8601 date (only date)] (optional) the column header for the datestamp when that process ended
30
+ # @option params :make_unique_process [boolean] (true) (optional) if you want the core URI to be globally unique, or based only on the patient ID. this can be used to merge nodes over multiple runs of different yarrrml transforms.
31
+
32
+ b.role_in_process({
33
+ person_role_tag: "patientRole_status",
34
+ process_tag: "patient_status",
35
+ process_label: "status recording process",
36
+ process_type: "http://semanticscience.org/resource/SIO_001052", # data collection
37
+ })
38
+
39
+
40
+
41
+ # ===================================================================================
42
+ # ========================================Status===========================================
43
+ # pid,uniqid,date,status_uri,status_label,death_date
44
+
45
+
46
+ b.process_hasoutput_output({
47
+ process_with_output_tag: "patient_status", # connect to the correct process
48
+ output_type_label_column: "data",
49
+ output_value_column: "data",
50
+ output_start_column: "start",
51
+ output_end_column: "end"
52
+ })
53
+
54
+
55
+
56
+ puts b.generate
@@ -0,0 +1,56 @@
1
+ require "yarrrml-template-builder"
2
+
3
+ #"pid,uniqid,start,end,data
4
+
5
+
6
+ b = YARRRML_Template_Builder.new({
7
+ source_tag: "cde_timed_process",
8
+ sio_verbose: 1,
9
+ }
10
+ )
11
+
12
+
13
+ b.person_identifier_role_mappings({
14
+ personid_column: "pid",
15
+ uniqueid_column: "uniqid",
16
+ person_role_tag: "patientRole_status",
17
+ role_type: 'http://purl.obolibrary.org/obo/OBI_0000093',
18
+ role_label: "Patient for status recording"
19
+ })
20
+ # ===============================================
21
+ # @param params [Hash] a hash of options
22
+ # @option params :person_role_tag [String] the tag of the role that is fulfilled in this process (default 'thisRole') - see person_role_tag above, synchronize these tags!
23
+ # @option params :process_type [String] the URL for the ontological type of the process (defaults to http://semanticscience.org/resource/process)
24
+ # @option params :process_type_column [String] the column header that contains the URL for the ontological type of the process - overrides process_type
25
+ # @option params :process_tag [String] some single-word tag for that process; defaults to "thisprocess"
26
+ # @option params :process_label [String] the label associated with the process type in that row (defaults to "thisprocess")
27
+ # @option params :process_label_column [String] the column header for the label associated with the process type in that row
28
+ # @option params :process_start_column [ISO 8601 date (only date)] (optional) the column header for the datestamp when that process started. NOTE: For instantaneous processes, create ONLY the start date column, and an identical end date will be automatically generated
29
+ # @option params :process_end_column [ISO 8601 date (only date)] (optional) the column header for the datestamp when that process ended
30
+ # @option params :make_unique_process [boolean] (true) (optional) if you want the core URI to be globally unique, or based only on the patient ID. this can be used to merge nodes over multiple runs of different yarrrml transforms.
31
+
32
+ b.role_in_process({
33
+ person_role_tag: "patientRole_status",
34
+ process_tag: "patient_status",
35
+ process_label: "status recording process",
36
+ process_type: "http://semanticscience.org/resource/SIO_001052", # data collection
37
+ process_start_column: "start",
38
+ process_end_column: "end"
39
+ })
40
+
41
+
42
+
43
+ # ===================================================================================
44
+ # ========================================Status===========================================
45
+ # pid,uniqid,date,status_uri,status_label,death_date
46
+
47
+
48
+ b.process_hasoutput_output({
49
+ process_with_output_tag: "patient_status", # connect to the correct process
50
+ output_type_label_column: "data",
51
+ output_value_column: "data",
52
+ })
53
+
54
+
55
+
56
+ puts b.generate