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,1940 @@
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
+ Class: YARRRML_Transform
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 = "YARRRML_Transform";
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 (Y)</a> &raquo;
40
+
41
+
42
+ <span class="title">YARRRML_Transform</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>Class: YARRRML_Transform
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">YARRRML_Transform</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/yarrrml_template_builder/yarrrml_transform.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>note that SDMrdfizer needs to be running on port 4000 with the ./data folder mounted as /data docker run –name rdfizer –rm -d -p 4000:4000 -v $PWD/data:/data fairdatasystems/sdmrdfizer:0.1.0</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div>
114
+
115
+
116
+
117
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#baseURI-instance_method" title="#baseURI (instance method)">#<strong>baseURI</strong> &#x21d2; Object </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <span class="summary_desc"><div class='inline'>
141
+ <p>Returns the value of attribute baseURI.</p>
142
+ </div></span>
143
+
144
+ </li>
145
+
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#config_path_client-instance_method" title="#config_path_client (instance method)">#<strong>config_path_client</strong> &#x21d2; Object </a>
151
+
152
+
153
+
154
+ </span>
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <span class="summary_desc"><div class='inline'>
168
+ <p>Returns the value of attribute config_path_client.</p>
169
+ </div></span>
170
+
171
+ </li>
172
+
173
+
174
+ <li class="public ">
175
+ <span class="summary_signature">
176
+
177
+ <a href="#config_path_server-instance_method" title="#config_path_server (instance method)">#<strong>config_path_server</strong> &#x21d2; Object </a>
178
+
179
+
180
+
181
+ </span>
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <span class="summary_desc"><div class='inline'>
195
+ <p>Returns the value of attribute config_path_server.</p>
196
+ </div></span>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#data_path_client-instance_method" title="#data_path_client (instance method)">#<strong>data_path_client</strong> &#x21d2; Object </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+ <span class="summary_desc"><div class='inline'>
222
+ <p>Returns the value of attribute data_path_client.</p>
223
+ </div></span>
224
+
225
+ </li>
226
+
227
+
228
+ <li class="public ">
229
+ <span class="summary_signature">
230
+
231
+ <a href="#data_path_server-instance_method" title="#data_path_server (instance method)">#<strong>data_path_server</strong> &#x21d2; Object </a>
232
+
233
+
234
+
235
+ </span>
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <span class="summary_desc"><div class='inline'>
249
+ <p>Returns the value of attribute data_path_server.</p>
250
+ </div></span>
251
+
252
+ </li>
253
+
254
+
255
+ <li class="public ">
256
+ <span class="summary_signature">
257
+
258
+ <a href="#datafile-instance_method" title="#datafile (instance method)">#<strong>datafile</strong> &#x21d2; Object </a>
259
+
260
+
261
+
262
+ </span>
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ <span class="summary_desc"><div class='inline'>
276
+ <p>Returns the value of attribute datafile.</p>
277
+ </div></span>
278
+
279
+ </li>
280
+
281
+
282
+ <li class="public ">
283
+ <span class="summary_signature">
284
+
285
+ <a href="#datatype_tag-instance_method" title="#datatype_tag (instance method)">#<strong>datatype_tag</strong> &#x21d2; Object </a>
286
+
287
+
288
+
289
+ </span>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <span class="summary_desc"><div class='inline'>
303
+ <p>Returns the value of attribute datatype_tag.</p>
304
+ </div></span>
305
+
306
+ </li>
307
+
308
+
309
+ <li class="public ">
310
+ <span class="summary_signature">
311
+
312
+ <a href="#failure-instance_method" title="#failure (instance method)">#<strong>failure</strong> &#x21d2; Object </a>
313
+
314
+
315
+
316
+ </span>
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ <span class="summary_desc"><div class='inline'>
330
+ <p>Returns the value of attribute failure.</p>
331
+ </div></span>
332
+
333
+ </li>
334
+
335
+
336
+ <li class="public ">
337
+ <span class="summary_signature">
338
+
339
+ <a href="#formulation-instance_method" title="#formulation (instance method)">#<strong>formulation</strong> &#x21d2; Object </a>
340
+
341
+
342
+
343
+ </span>
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+ <span class="summary_desc"><div class='inline'>
357
+ <p>Returns the value of attribute formulation.</p>
358
+ </div></span>
359
+
360
+ </li>
361
+
362
+
363
+ <li class="public ">
364
+ <span class="summary_signature">
365
+
366
+ <a href="#inifile_client-instance_method" title="#inifile_client (instance method)">#<strong>inifile_client</strong> &#x21d2; Object </a>
367
+
368
+
369
+
370
+ </span>
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+ <span class="summary_desc"><div class='inline'>
384
+ <p>Returns the value of attribute inifile_client.</p>
385
+ </div></span>
386
+
387
+ </li>
388
+
389
+
390
+ <li class="public ">
391
+ <span class="summary_signature">
392
+
393
+ <a href="#inifile_server-instance_method" title="#inifile_server (instance method)">#<strong>inifile_server</strong> &#x21d2; Object </a>
394
+
395
+
396
+
397
+ </span>
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+ <span class="summary_desc"><div class='inline'>
411
+ <p>Returns the value of attribute inifile_server.</p>
412
+ </div></span>
413
+
414
+ </li>
415
+
416
+
417
+ <li class="public ">
418
+ <span class="summary_signature">
419
+
420
+ <a href="#outputrdffolder-instance_method" title="#outputrdffolder (instance method)">#<strong>outputrdffolder</strong> &#x21d2; Object </a>
421
+
422
+
423
+
424
+ </span>
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+ <span class="summary_desc"><div class='inline'>
438
+ <p>Returns the value of attribute outputrdffolder.</p>
439
+ </div></span>
440
+
441
+ </li>
442
+
443
+
444
+ <li class="public ">
445
+ <span class="summary_signature">
446
+
447
+ <a href="#outputrmlfile-instance_method" title="#outputrmlfile (instance method)">#<strong>outputrmlfile</strong> &#x21d2; Object </a>
448
+
449
+
450
+
451
+ </span>
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+ <span class="summary_desc"><div class='inline'>
465
+ <p>Returns the value of attribute outputrmlfile.</p>
466
+ </div></span>
467
+
468
+ </li>
469
+
470
+
471
+ <li class="public ">
472
+ <span class="summary_signature">
473
+
474
+ <a href="#rdfizer_base_url-instance_method" title="#rdfizer_base_url (instance method)">#<strong>rdfizer_base_url</strong> &#x21d2; Object </a>
475
+
476
+
477
+
478
+ </span>
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+ <span class="summary_desc"><div class='inline'>
492
+ <p>Returns the value of attribute rdfizer_base_url.</p>
493
+ </div></span>
494
+
495
+ </li>
496
+
497
+
498
+ <li class="public ">
499
+ <span class="summary_signature">
500
+
501
+ <a href="#yarrrml_transform_base_url-instance_method" title="#yarrrml_transform_base_url (instance method)">#<strong>yarrrml_transform_base_url</strong> &#x21d2; Object </a>
502
+
503
+
504
+
505
+ </span>
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+ <span class="summary_desc"><div class='inline'>
519
+ <p>Returns the value of attribute yarrrml_transform_base_url.</p>
520
+ </div></span>
521
+
522
+ </li>
523
+
524
+
525
+ <li class="public ">
526
+ <span class="summary_signature">
527
+
528
+ <a href="#yarrrmlfilename_client-instance_method" title="#yarrrmlfilename_client (instance method)">#<strong>yarrrmlfilename_client</strong> &#x21d2; Object </a>
529
+
530
+
531
+
532
+ </span>
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+ <span class="summary_desc"><div class='inline'>
546
+ <p>Returns the value of attribute yarrrmlfilename_client.</p>
547
+ </div></span>
548
+
549
+ </li>
550
+
551
+
552
+ <li class="public ">
553
+ <span class="summary_signature">
554
+
555
+ <a href="#yarrrmlfilename_server-instance_method" title="#yarrrmlfilename_server (instance method)">#<strong>yarrrmlfilename_server</strong> &#x21d2; Object </a>
556
+
557
+
558
+
559
+ </span>
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+ <span class="summary_desc"><div class='inline'>
573
+ <p>Returns the value of attribute yarrrmlfilename_server.</p>
574
+ </div></span>
575
+
576
+ </li>
577
+
578
+
579
+ <li class="public ">
580
+ <span class="summary_signature">
581
+
582
+ <a href="#yarrrmltemplate-instance_method" title="#yarrrmltemplate (instance method)">#<strong>yarrrmltemplate</strong> &#x21d2; Object </a>
583
+
584
+
585
+
586
+ </span>
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+ <span class="summary_desc"><div class='inline'>
600
+ <p>Returns the value of attribute yarrrmltemplate.</p>
601
+ </div></span>
602
+
603
+ </li>
604
+
605
+
606
+ </ul>
607
+
608
+
609
+
610
+
611
+
612
+ <h2>
613
+ Instance Method Summary
614
+ <small><a href="#" class="summary_toggle">collapse</a></small>
615
+ </h2>
616
+
617
+ <ul class="summary">
618
+
619
+ <li class="public ">
620
+ <span class="summary_signature">
621
+
622
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(params = {}) &#x21d2; YARRRML_Transform </a>
623
+
624
+
625
+
626
+ </span>
627
+
628
+
629
+ <span class="note title constructor">constructor</span>
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+ <span class="summary_desc"><div class='inline'></div></span>
639
+
640
+ </li>
641
+
642
+
643
+ <li class="public ">
644
+ <span class="summary_signature">
645
+
646
+ <a href="#make_fair_data-instance_method" title="#make_fair_data (instance method)">#<strong>make_fair_data</strong> &#x21d2; Object </a>
647
+
648
+
649
+
650
+ </span>
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+ <span class="summary_desc"><div class='inline'>
661
+ <p>Executes the CSV to RDF based on the RML.</p>
662
+ </div></span>
663
+
664
+ </li>
665
+
666
+
667
+ <li class="public ">
668
+ <span class="summary_signature">
669
+
670
+ <a href="#transform_template-instance_method" title="#transform_template (instance method)">#<strong>transform_template</strong> &#x21d2; Object </a>
671
+
672
+
673
+
674
+ </span>
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+ <span class="summary_desc"><div class='inline'></div></span>
685
+
686
+ </li>
687
+
688
+
689
+ <li class="public ">
690
+ <span class="summary_signature">
691
+
692
+ <a href="#write_ini-instance_method" title="#write_ini (instance method)">#<strong>write_ini</strong>(inifile = self.inifile_client, path = self.data_path_server, rdffolder = self.outputrdffolder, rmlfile = self.outputrmlfile, datatype = self.datatype_tag) &#x21d2; Object </a>
693
+
694
+
695
+
696
+ </span>
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+ <span class="summary_desc"><div class='inline'></div></span>
707
+
708
+ </li>
709
+
710
+
711
+ <li class="public ">
712
+ <span class="summary_signature">
713
+
714
+ <a href="#yarrrml_transform-instance_method" title="#yarrrml_transform (instance method)">#<strong>yarrrml_transform</strong> &#x21d2; Object </a>
715
+
716
+
717
+
718
+ </span>
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+ <span class="summary_desc"><div class='inline'>
729
+ <p>Executes the yarrrml to rml transformation .</p>
730
+ </div></span>
731
+
732
+ </li>
733
+
734
+
735
+ </ul>
736
+
737
+
738
+ <div id="constructor_details" class="method_details_list">
739
+ <h2>Constructor Details</h2>
740
+
741
+ <div class="method_details first">
742
+ <h3 class="signature first" id="initialize-instance_method">
743
+
744
+ #<strong>initialize</strong>(params = {}) &#x21d2; <tt><span class='object_link'><a href="" title="YARRRML_Transform (class)">YARRRML_Transform</a></span></tt>
745
+
746
+
747
+
748
+
749
+
750
+ </h3><div class="docstring">
751
+ <div class="discussion">
752
+
753
+
754
+ </div>
755
+ </div>
756
+ <div class="tags">
757
+ <p class="tag_title">Parameters:</p>
758
+ <ul class="param">
759
+
760
+ <li>
761
+
762
+ <span class='name'>params</span>
763
+
764
+
765
+ <span class='type'>(<tt>Hash</tt>)</span>
766
+
767
+
768
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
769
+
770
+
771
+ &mdash;
772
+ <div class='inline'>
773
+ <p>a customizable set of options</p>
774
+ </div>
775
+
776
+ </li>
777
+
778
+ </ul>
779
+
780
+
781
+
782
+
783
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
784
+ <ul class="option">
785
+
786
+ <li>
787
+ <span class="name">:outputrdffolder</span>
788
+ <span class="type">(<tt>String</tt>)</span>
789
+ <span class="default">
790
+
791
+ &mdash; default:
792
+ <tt>/data/triples/</tt>
793
+
794
+ </span>
795
+
796
+ &mdash; <div class='inline'><ul><li>
797
+ <p>defaults to /data/triples - this folder must exist, even if left to default. NOTE - this path is not relative to the host, it is relative to the docker rdfizer, so it begins with /data not ./data)</p>
798
+ </li></ul>
799
+ </div>
800
+
801
+ </li>
802
+
803
+ </ul>
804
+
805
+
806
+
807
+ </div><table class="source_code">
808
+ <tr>
809
+ <td>
810
+ <pre class="lines">
811
+
812
+
813
+ 55
814
+ 56
815
+ 57
816
+ 58
817
+ 59
818
+ 60
819
+ 61
820
+ 62
821
+ 63
822
+ 64
823
+ 65
824
+ 66
825
+ 67
826
+ 68
827
+ 69
828
+ 70
829
+ 71
830
+ 72
831
+ 73
832
+ 74
833
+ 75
834
+ 76
835
+ 77
836
+ 78
837
+ 79
838
+ 80
839
+ 81
840
+ 82
841
+ 83
842
+ 84
843
+ 85
844
+ 86
845
+ 87
846
+ 88
847
+ 89
848
+ 90
849
+ 91
850
+ 92
851
+ 93
852
+ 94
853
+ 95
854
+ 96
855
+ 97
856
+ 98
857
+ 99
858
+ 100
859
+ 101</pre>
860
+ </td>
861
+ <td>
862
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 55</span>
863
+
864
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='comment'># get a name from the &quot;new&quot; call, or set a default
865
+ </span>
866
+ <span class='ivar'>@datatype_tag</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span> <span class='symbol'>:datatype_tag</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
867
+ <span class='kw'>unless</span> <span class='ivar'>@datatype_tag</span>
868
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>must have a datatype_tag parameter. Aborting</span><span class='tstring_end'>&quot;</span></span>
869
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_failure'>failure</span> <span class='op'>=</span> <span class='kw'>true</span>
870
+ <span class='kw'>return</span> <span class='kw'>nil</span>
871
+ <span class='kw'>end</span>
872
+
873
+ <span class='ivar'>@data_path_client</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:data_path_client</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/data</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='comment'># from client perspective (default for docker)
874
+ </span> <span class='ivar'>@data_path_server</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:data_path_server</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_client'>data_path_client</span><span class='rparen'>)</span> <span class='comment'># potentially from Docker image perspective (default for docker)
875
+ </span> <span class='ivar'>@config_path_client</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:config_path_client</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/config</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='comment'># from client perspective (default for docker)
876
+ </span> <span class='ivar'>@config_path_server</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:config_path_server</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config_path_client'>config_path_client</span><span class='rparen'>)</span> <span class='comment'># potentially from Docker image perspective (default for docker)
877
+ </span>
878
+ <span class='ivar'>@data_path_client</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/$</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='comment'># remove trailing slashes -I&#39;ll add them later if I need them
879
+ </span> <span class='ivar'>@data_path_server</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/$</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
880
+ <span class='ivar'>@config_path_client</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/$</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
881
+ <span class='ivar'>@config_path_server</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/$</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
882
+
883
+
884
+ <span class='ivar'>@rdfizer_base_url</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:rdfizer_base_url</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://rdfizer:4000</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
885
+ <span class='ivar'>@yarrrml_transform_base_url</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:yarrrml_transform_base_url</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://yarrrml_transform:3000</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
886
+ <span class='ivar'>@rdfizer_base_url</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/$</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
887
+ <span class='ivar'>@yarrrml_transform_base_url</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/$</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
888
+
889
+
890
+ <span class='ivar'>@formulation</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:formulation</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>csv</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
891
+ <span class='ivar'>@datafile</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:datafile</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_server'>data_path_server</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>.csv</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
892
+ <span class='ivar'>@baseURI</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:baseURI</span><span class='comma'>,</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>baseURI</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
893
+ <span class='ivar'>@baseURI</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://example.org/data/</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='ivar'>@baseURI</span>
894
+
895
+ <span class='ivar'>@outputrdffolder</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:outputrdffolder</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_server'>data_path_server</span><span class='embexpr_end'>}</span><span class='tstring_content'>/triples</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
896
+ <span class='ivar'>@outputrmlfile</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:outputrmlfile</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_server'>data_path_server</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>_rml.ttl</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
897
+ <span class='ivar'>@yarrrmlfilename_client</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:yarrrmlfilename</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_client'>data_path_client</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>_yarrrml.yaml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
898
+ <span class='ivar'>@yarrrmlfilename_server</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:yarrrmlfilename</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_server'>data_path_server</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>_yarrrml.yaml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
899
+ <span class='ivar'>@yarrrmltemplate</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:yarrrmltemplate</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config_path_client'>config_path_client</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>_yarrrml_template.yaml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
900
+ <span class='ivar'>@inifile_client</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:inifile_client</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_client'>data_path_client</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>.ini</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
901
+ <span class='ivar'>@inifile_server</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:inifile_server</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_server'>data_path_server</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>.ini</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='comment'># this will be a docker image in almost all cases
902
+ </span>
903
+
904
+ <span class='id identifier rubyid_write_ini'>write_ini</span><span class='lparen'>(</span><span class='rparen'>)</span>
905
+
906
+ <span class='id identifier rubyid_transform_template'>transform_template</span><span class='lparen'>(</span><span class='rparen'>)</span>
907
+
908
+ <span class='kw'>return</span> <span class='kw'>self</span>
909
+
910
+ <span class='kw'>end</span></pre>
911
+ </td>
912
+ </tr>
913
+ </table>
914
+ </div>
915
+
916
+ </div>
917
+
918
+ <div id="instance_attr_details" class="attr_details">
919
+ <h2>Instance Attribute Details</h2>
920
+
921
+
922
+ <span id="baseURI=-instance_method"></span>
923
+ <div class="method_details first">
924
+ <h3 class="signature first" id="baseURI-instance_method">
925
+
926
+ #<strong>baseURI</strong> &#x21d2; <tt>Object</tt>
927
+
928
+
929
+
930
+
931
+
932
+ </h3><div class="docstring">
933
+ <div class="discussion">
934
+
935
+ <p>Returns the value of attribute baseURI.</p>
936
+
937
+
938
+ </div>
939
+ </div>
940
+ <div class="tags">
941
+
942
+
943
+ </div><table class="source_code">
944
+ <tr>
945
+ <td>
946
+ <pre class="lines">
947
+
948
+
949
+ 17
950
+ 18
951
+ 19</pre>
952
+ </td>
953
+ <td>
954
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 17</span>
955
+
956
+ <span class='kw'>def</span> <span class='id identifier rubyid_baseURI'>baseURI</span>
957
+ <span class='ivar'>@baseURI</span>
958
+ <span class='kw'>end</span></pre>
959
+ </td>
960
+ </tr>
961
+ </table>
962
+ </div>
963
+
964
+
965
+ <span id="config_path_client=-instance_method"></span>
966
+ <div class="method_details ">
967
+ <h3 class="signature " id="config_path_client-instance_method">
968
+
969
+ #<strong>config_path_client</strong> &#x21d2; <tt>Object</tt>
970
+
971
+
972
+
973
+
974
+
975
+ </h3><div class="docstring">
976
+ <div class="discussion">
977
+
978
+ <p>Returns the value of attribute config_path_client.</p>
979
+
980
+
981
+ </div>
982
+ </div>
983
+ <div class="tags">
984
+
985
+
986
+ </div><table class="source_code">
987
+ <tr>
988
+ <td>
989
+ <pre class="lines">
990
+
991
+
992
+ 12
993
+ 13
994
+ 14</pre>
995
+ </td>
996
+ <td>
997
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 12</span>
998
+
999
+ <span class='kw'>def</span> <span class='id identifier rubyid_config_path_client'>config_path_client</span>
1000
+ <span class='ivar'>@config_path_client</span>
1001
+ <span class='kw'>end</span></pre>
1002
+ </td>
1003
+ </tr>
1004
+ </table>
1005
+ </div>
1006
+
1007
+
1008
+ <span id="config_path_server=-instance_method"></span>
1009
+ <div class="method_details ">
1010
+ <h3 class="signature " id="config_path_server-instance_method">
1011
+
1012
+ #<strong>config_path_server</strong> &#x21d2; <tt>Object</tt>
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+ </h3><div class="docstring">
1019
+ <div class="discussion">
1020
+
1021
+ <p>Returns the value of attribute config_path_server.</p>
1022
+
1023
+
1024
+ </div>
1025
+ </div>
1026
+ <div class="tags">
1027
+
1028
+
1029
+ </div><table class="source_code">
1030
+ <tr>
1031
+ <td>
1032
+ <pre class="lines">
1033
+
1034
+
1035
+ 11
1036
+ 12
1037
+ 13</pre>
1038
+ </td>
1039
+ <td>
1040
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 11</span>
1041
+
1042
+ <span class='kw'>def</span> <span class='id identifier rubyid_config_path_server'>config_path_server</span>
1043
+ <span class='ivar'>@config_path_server</span>
1044
+ <span class='kw'>end</span></pre>
1045
+ </td>
1046
+ </tr>
1047
+ </table>
1048
+ </div>
1049
+
1050
+
1051
+ <span id="data_path_client=-instance_method"></span>
1052
+ <div class="method_details ">
1053
+ <h3 class="signature " id="data_path_client-instance_method">
1054
+
1055
+ #<strong>data_path_client</strong> &#x21d2; <tt>Object</tt>
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+ </h3><div class="docstring">
1062
+ <div class="discussion">
1063
+
1064
+ <p>Returns the value of attribute data_path_client.</p>
1065
+
1066
+
1067
+ </div>
1068
+ </div>
1069
+ <div class="tags">
1070
+
1071
+
1072
+ </div><table class="source_code">
1073
+ <tr>
1074
+ <td>
1075
+ <pre class="lines">
1076
+
1077
+
1078
+ 10
1079
+ 11
1080
+ 12</pre>
1081
+ </td>
1082
+ <td>
1083
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 10</span>
1084
+
1085
+ <span class='kw'>def</span> <span class='id identifier rubyid_data_path_client'>data_path_client</span>
1086
+ <span class='ivar'>@data_path_client</span>
1087
+ <span class='kw'>end</span></pre>
1088
+ </td>
1089
+ </tr>
1090
+ </table>
1091
+ </div>
1092
+
1093
+
1094
+ <span id="data_path_server=-instance_method"></span>
1095
+ <div class="method_details ">
1096
+ <h3 class="signature " id="data_path_server-instance_method">
1097
+
1098
+ #<strong>data_path_server</strong> &#x21d2; <tt>Object</tt>
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+ </h3><div class="docstring">
1105
+ <div class="discussion">
1106
+
1107
+ <p>Returns the value of attribute data_path_server.</p>
1108
+
1109
+
1110
+ </div>
1111
+ </div>
1112
+ <div class="tags">
1113
+
1114
+
1115
+ </div><table class="source_code">
1116
+ <tr>
1117
+ <td>
1118
+ <pre class="lines">
1119
+
1120
+
1121
+ 9
1122
+ 10
1123
+ 11</pre>
1124
+ </td>
1125
+ <td>
1126
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 9</span>
1127
+
1128
+ <span class='kw'>def</span> <span class='id identifier rubyid_data_path_server'>data_path_server</span>
1129
+ <span class='ivar'>@data_path_server</span>
1130
+ <span class='kw'>end</span></pre>
1131
+ </td>
1132
+ </tr>
1133
+ </table>
1134
+ </div>
1135
+
1136
+
1137
+ <span id="datafile=-instance_method"></span>
1138
+ <div class="method_details ">
1139
+ <h3 class="signature " id="datafile-instance_method">
1140
+
1141
+ #<strong>datafile</strong> &#x21d2; <tt>Object</tt>
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+ </h3><div class="docstring">
1148
+ <div class="discussion">
1149
+
1150
+ <p>Returns the value of attribute datafile.</p>
1151
+
1152
+
1153
+ </div>
1154
+ </div>
1155
+ <div class="tags">
1156
+
1157
+
1158
+ </div><table class="source_code">
1159
+ <tr>
1160
+ <td>
1161
+ <pre class="lines">
1162
+
1163
+
1164
+ 16
1165
+ 17
1166
+ 18</pre>
1167
+ </td>
1168
+ <td>
1169
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 16</span>
1170
+
1171
+ <span class='kw'>def</span> <span class='id identifier rubyid_datafile'>datafile</span>
1172
+ <span class='ivar'>@datafile</span>
1173
+ <span class='kw'>end</span></pre>
1174
+ </td>
1175
+ </tr>
1176
+ </table>
1177
+ </div>
1178
+
1179
+
1180
+ <span id="datatype_tag=-instance_method"></span>
1181
+ <div class="method_details ">
1182
+ <h3 class="signature " id="datatype_tag-instance_method">
1183
+
1184
+ #<strong>datatype_tag</strong> &#x21d2; <tt>Object</tt>
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+ </h3><div class="docstring">
1191
+ <div class="discussion">
1192
+
1193
+ <p>Returns the value of attribute datatype_tag.</p>
1194
+
1195
+
1196
+ </div>
1197
+ </div>
1198
+ <div class="tags">
1199
+
1200
+
1201
+ </div><table class="source_code">
1202
+ <tr>
1203
+ <td>
1204
+ <pre class="lines">
1205
+
1206
+
1207
+ 15
1208
+ 16
1209
+ 17</pre>
1210
+ </td>
1211
+ <td>
1212
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 15</span>
1213
+
1214
+ <span class='kw'>def</span> <span class='id identifier rubyid_datatype_tag'>datatype_tag</span>
1215
+ <span class='ivar'>@datatype_tag</span>
1216
+ <span class='kw'>end</span></pre>
1217
+ </td>
1218
+ </tr>
1219
+ </table>
1220
+ </div>
1221
+
1222
+
1223
+ <span id="failure=-instance_method"></span>
1224
+ <div class="method_details ">
1225
+ <h3 class="signature " id="failure-instance_method">
1226
+
1227
+ #<strong>failure</strong> &#x21d2; <tt>Object</tt>
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+ </h3><div class="docstring">
1234
+ <div class="discussion">
1235
+
1236
+ <p>Returns the value of attribute failure.</p>
1237
+
1238
+
1239
+ </div>
1240
+ </div>
1241
+ <div class="tags">
1242
+
1243
+
1244
+ </div><table class="source_code">
1245
+ <tr>
1246
+ <td>
1247
+ <pre class="lines">
1248
+
1249
+
1250
+ 27
1251
+ 28
1252
+ 29</pre>
1253
+ </td>
1254
+ <td>
1255
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 27</span>
1256
+
1257
+ <span class='kw'>def</span> <span class='id identifier rubyid_failure'>failure</span>
1258
+ <span class='ivar'>@failure</span>
1259
+ <span class='kw'>end</span></pre>
1260
+ </td>
1261
+ </tr>
1262
+ </table>
1263
+ </div>
1264
+
1265
+
1266
+ <span id="formulation=-instance_method"></span>
1267
+ <div class="method_details ">
1268
+ <h3 class="signature " id="formulation-instance_method">
1269
+
1270
+ #<strong>formulation</strong> &#x21d2; <tt>Object</tt>
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+ </h3><div class="docstring">
1277
+ <div class="discussion">
1278
+
1279
+ <p>Returns the value of attribute formulation.</p>
1280
+
1281
+
1282
+ </div>
1283
+ </div>
1284
+ <div class="tags">
1285
+
1286
+
1287
+ </div><table class="source_code">
1288
+ <tr>
1289
+ <td>
1290
+ <pre class="lines">
1291
+
1292
+
1293
+ 23
1294
+ 24
1295
+ 25</pre>
1296
+ </td>
1297
+ <td>
1298
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 23</span>
1299
+
1300
+ <span class='kw'>def</span> <span class='id identifier rubyid_formulation'>formulation</span>
1301
+ <span class='ivar'>@formulation</span>
1302
+ <span class='kw'>end</span></pre>
1303
+ </td>
1304
+ </tr>
1305
+ </table>
1306
+ </div>
1307
+
1308
+
1309
+ <span id="inifile_client=-instance_method"></span>
1310
+ <div class="method_details ">
1311
+ <h3 class="signature " id="inifile_client-instance_method">
1312
+
1313
+ #<strong>inifile_client</strong> &#x21d2; <tt>Object</tt>
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+ </h3><div class="docstring">
1320
+ <div class="discussion">
1321
+
1322
+ <p>Returns the value of attribute inifile_client.</p>
1323
+
1324
+
1325
+ </div>
1326
+ </div>
1327
+ <div class="tags">
1328
+
1329
+
1330
+ </div><table class="source_code">
1331
+ <tr>
1332
+ <td>
1333
+ <pre class="lines">
1334
+
1335
+
1336
+ 25
1337
+ 26
1338
+ 27</pre>
1339
+ </td>
1340
+ <td>
1341
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 25</span>
1342
+
1343
+ <span class='kw'>def</span> <span class='id identifier rubyid_inifile_client'>inifile_client</span>
1344
+ <span class='ivar'>@inifile_client</span>
1345
+ <span class='kw'>end</span></pre>
1346
+ </td>
1347
+ </tr>
1348
+ </table>
1349
+ </div>
1350
+
1351
+
1352
+ <span id="inifile_server=-instance_method"></span>
1353
+ <div class="method_details ">
1354
+ <h3 class="signature " id="inifile_server-instance_method">
1355
+
1356
+ #<strong>inifile_server</strong> &#x21d2; <tt>Object</tt>
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+ </h3><div class="docstring">
1363
+ <div class="discussion">
1364
+
1365
+ <p>Returns the value of attribute inifile_server.</p>
1366
+
1367
+
1368
+ </div>
1369
+ </div>
1370
+ <div class="tags">
1371
+
1372
+
1373
+ </div><table class="source_code">
1374
+ <tr>
1375
+ <td>
1376
+ <pre class="lines">
1377
+
1378
+
1379
+ 26
1380
+ 27
1381
+ 28</pre>
1382
+ </td>
1383
+ <td>
1384
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 26</span>
1385
+
1386
+ <span class='kw'>def</span> <span class='id identifier rubyid_inifile_server'>inifile_server</span>
1387
+ <span class='ivar'>@inifile_server</span>
1388
+ <span class='kw'>end</span></pre>
1389
+ </td>
1390
+ </tr>
1391
+ </table>
1392
+ </div>
1393
+
1394
+
1395
+ <span id="outputrdffolder=-instance_method"></span>
1396
+ <div class="method_details ">
1397
+ <h3 class="signature " id="outputrdffolder-instance_method">
1398
+
1399
+ #<strong>outputrdffolder</strong> &#x21d2; <tt>Object</tt>
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+ </h3><div class="docstring">
1406
+ <div class="discussion">
1407
+
1408
+ <p>Returns the value of attribute outputrdffolder.</p>
1409
+
1410
+
1411
+ </div>
1412
+ </div>
1413
+ <div class="tags">
1414
+
1415
+
1416
+ </div><table class="source_code">
1417
+ <tr>
1418
+ <td>
1419
+ <pre class="lines">
1420
+
1421
+
1422
+ 24
1423
+ 25
1424
+ 26</pre>
1425
+ </td>
1426
+ <td>
1427
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 24</span>
1428
+
1429
+ <span class='kw'>def</span> <span class='id identifier rubyid_outputrdffolder'>outputrdffolder</span>
1430
+ <span class='ivar'>@outputrdffolder</span>
1431
+ <span class='kw'>end</span></pre>
1432
+ </td>
1433
+ </tr>
1434
+ </table>
1435
+ </div>
1436
+
1437
+
1438
+ <span id="outputrmlfile=-instance_method"></span>
1439
+ <div class="method_details ">
1440
+ <h3 class="signature " id="outputrmlfile-instance_method">
1441
+
1442
+ #<strong>outputrmlfile</strong> &#x21d2; <tt>Object</tt>
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+ </h3><div class="docstring">
1449
+ <div class="discussion">
1450
+
1451
+ <p>Returns the value of attribute outputrmlfile.</p>
1452
+
1453
+
1454
+ </div>
1455
+ </div>
1456
+ <div class="tags">
1457
+
1458
+
1459
+ </div><table class="source_code">
1460
+ <tr>
1461
+ <td>
1462
+ <pre class="lines">
1463
+
1464
+
1465
+ 22
1466
+ 23
1467
+ 24</pre>
1468
+ </td>
1469
+ <td>
1470
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 22</span>
1471
+
1472
+ <span class='kw'>def</span> <span class='id identifier rubyid_outputrmlfile'>outputrmlfile</span>
1473
+ <span class='ivar'>@outputrmlfile</span>
1474
+ <span class='kw'>end</span></pre>
1475
+ </td>
1476
+ </tr>
1477
+ </table>
1478
+ </div>
1479
+
1480
+
1481
+ <span id="rdfizer_base_url=-instance_method"></span>
1482
+ <div class="method_details ">
1483
+ <h3 class="signature " id="rdfizer_base_url-instance_method">
1484
+
1485
+ #<strong>rdfizer_base_url</strong> &#x21d2; <tt>Object</tt>
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+ </h3><div class="docstring">
1492
+ <div class="discussion">
1493
+
1494
+ <p>Returns the value of attribute rdfizer_base_url.</p>
1495
+
1496
+
1497
+ </div>
1498
+ </div>
1499
+ <div class="tags">
1500
+
1501
+
1502
+ </div><table class="source_code">
1503
+ <tr>
1504
+ <td>
1505
+ <pre class="lines">
1506
+
1507
+
1508
+ 13
1509
+ 14
1510
+ 15</pre>
1511
+ </td>
1512
+ <td>
1513
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 13</span>
1514
+
1515
+ <span class='kw'>def</span> <span class='id identifier rubyid_rdfizer_base_url'>rdfizer_base_url</span>
1516
+ <span class='ivar'>@rdfizer_base_url</span>
1517
+ <span class='kw'>end</span></pre>
1518
+ </td>
1519
+ </tr>
1520
+ </table>
1521
+ </div>
1522
+
1523
+
1524
+ <span id="yarrrml_transform_base_url=-instance_method"></span>
1525
+ <div class="method_details ">
1526
+ <h3 class="signature " id="yarrrml_transform_base_url-instance_method">
1527
+
1528
+ #<strong>yarrrml_transform_base_url</strong> &#x21d2; <tt>Object</tt>
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+ </h3><div class="docstring">
1535
+ <div class="discussion">
1536
+
1537
+ <p>Returns the value of attribute yarrrml_transform_base_url.</p>
1538
+
1539
+
1540
+ </div>
1541
+ </div>
1542
+ <div class="tags">
1543
+
1544
+
1545
+ </div><table class="source_code">
1546
+ <tr>
1547
+ <td>
1548
+ <pre class="lines">
1549
+
1550
+
1551
+ 14
1552
+ 15
1553
+ 16</pre>
1554
+ </td>
1555
+ <td>
1556
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 14</span>
1557
+
1558
+ <span class='kw'>def</span> <span class='id identifier rubyid_yarrrml_transform_base_url'>yarrrml_transform_base_url</span>
1559
+ <span class='ivar'>@yarrrml_transform_base_url</span>
1560
+ <span class='kw'>end</span></pre>
1561
+ </td>
1562
+ </tr>
1563
+ </table>
1564
+ </div>
1565
+
1566
+
1567
+ <span id="yarrrmlfilename_client=-instance_method"></span>
1568
+ <div class="method_details ">
1569
+ <h3 class="signature " id="yarrrmlfilename_client-instance_method">
1570
+
1571
+ #<strong>yarrrmlfilename_client</strong> &#x21d2; <tt>Object</tt>
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+ </h3><div class="docstring">
1578
+ <div class="discussion">
1579
+
1580
+ <p>Returns the value of attribute yarrrmlfilename_client.</p>
1581
+
1582
+
1583
+ </div>
1584
+ </div>
1585
+ <div class="tags">
1586
+
1587
+
1588
+ </div><table class="source_code">
1589
+ <tr>
1590
+ <td>
1591
+ <pre class="lines">
1592
+
1593
+
1594
+ 20
1595
+ 21
1596
+ 22</pre>
1597
+ </td>
1598
+ <td>
1599
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 20</span>
1600
+
1601
+ <span class='kw'>def</span> <span class='id identifier rubyid_yarrrmlfilename_client'>yarrrmlfilename_client</span>
1602
+ <span class='ivar'>@yarrrmlfilename_client</span>
1603
+ <span class='kw'>end</span></pre>
1604
+ </td>
1605
+ </tr>
1606
+ </table>
1607
+ </div>
1608
+
1609
+
1610
+ <span id="yarrrmlfilename_server=-instance_method"></span>
1611
+ <div class="method_details ">
1612
+ <h3 class="signature " id="yarrrmlfilename_server-instance_method">
1613
+
1614
+ #<strong>yarrrmlfilename_server</strong> &#x21d2; <tt>Object</tt>
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+ </h3><div class="docstring">
1621
+ <div class="discussion">
1622
+
1623
+ <p>Returns the value of attribute yarrrmlfilename_server.</p>
1624
+
1625
+
1626
+ </div>
1627
+ </div>
1628
+ <div class="tags">
1629
+
1630
+
1631
+ </div><table class="source_code">
1632
+ <tr>
1633
+ <td>
1634
+ <pre class="lines">
1635
+
1636
+
1637
+ 21
1638
+ 22
1639
+ 23</pre>
1640
+ </td>
1641
+ <td>
1642
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 21</span>
1643
+
1644
+ <span class='kw'>def</span> <span class='id identifier rubyid_yarrrmlfilename_server'>yarrrmlfilename_server</span>
1645
+ <span class='ivar'>@yarrrmlfilename_server</span>
1646
+ <span class='kw'>end</span></pre>
1647
+ </td>
1648
+ </tr>
1649
+ </table>
1650
+ </div>
1651
+
1652
+
1653
+ <span id="yarrrmltemplate=-instance_method"></span>
1654
+ <div class="method_details ">
1655
+ <h3 class="signature " id="yarrrmltemplate-instance_method">
1656
+
1657
+ #<strong>yarrrmltemplate</strong> &#x21d2; <tt>Object</tt>
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+ </h3><div class="docstring">
1664
+ <div class="discussion">
1665
+
1666
+ <p>Returns the value of attribute yarrrmltemplate.</p>
1667
+
1668
+
1669
+ </div>
1670
+ </div>
1671
+ <div class="tags">
1672
+
1673
+
1674
+ </div><table class="source_code">
1675
+ <tr>
1676
+ <td>
1677
+ <pre class="lines">
1678
+
1679
+
1680
+ 19
1681
+ 20
1682
+ 21</pre>
1683
+ </td>
1684
+ <td>
1685
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 19</span>
1686
+
1687
+ <span class='kw'>def</span> <span class='id identifier rubyid_yarrrmltemplate'>yarrrmltemplate</span>
1688
+ <span class='ivar'>@yarrrmltemplate</span>
1689
+ <span class='kw'>end</span></pre>
1690
+ </td>
1691
+ </tr>
1692
+ </table>
1693
+ </div>
1694
+
1695
+ </div>
1696
+
1697
+
1698
+ <div id="instance_method_details" class="method_details_list">
1699
+ <h2>Instance Method Details</h2>
1700
+
1701
+
1702
+ <div class="method_details first">
1703
+ <h3 class="signature first" id="make_fair_data-instance_method">
1704
+
1705
+ #<strong>make_fair_data</strong> &#x21d2; <tt>Object</tt>
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+ </h3><div class="docstring">
1712
+ <div class="discussion">
1713
+
1714
+ <p>Executes the CSV to RDF based on the RML</p>
1715
+
1716
+ <p>no parameters</p>
1717
+
1718
+ <p>executes the sdmrdfizer transformation using the .ini file created by the &#39;initialize&#39; routine</p>
1719
+
1720
+
1721
+ </div>
1722
+ </div>
1723
+ <div class="tags">
1724
+
1725
+
1726
+ </div><table class="source_code">
1727
+ <tr>
1728
+ <td>
1729
+ <pre class="lines">
1730
+
1731
+
1732
+ 170
1733
+ 171
1734
+ 172
1735
+ 173
1736
+ 174
1737
+ 175</pre>
1738
+ </td>
1739
+ <td>
1740
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 170</span>
1741
+
1742
+ <span class='kw'>def</span> <span class='id identifier rubyid_make_fair_data'>make_fair_data</span>
1743
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>making FAIR data with </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rdfizer_base_url'>rdfizer_base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/graph_creation/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inifile_server'>inifile_server</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='comment'># this is sdmrdfizer
1744
+ </span> <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='const'>RestClient</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rdfizer_base_url'>rdfizer_base_url</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/graph_creation</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inifile_server'>inifile_server</span><span class='rparen'>)</span>
1745
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span>
1746
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>FAIR data is avaialable in .</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_outputrdffolder'>outputrdffolder</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'>.nt</span><span class='tstring_end'>&quot;</span></span>
1747
+ <span class='kw'>end</span></pre>
1748
+ </td>
1749
+ </tr>
1750
+ </table>
1751
+ </div>
1752
+
1753
+ <div class="method_details ">
1754
+ <h3 class="signature " id="transform_template-instance_method">
1755
+
1756
+ #<strong>transform_template</strong> &#x21d2; <tt>Object</tt>
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+ </h3><table class="source_code">
1763
+ <tr>
1764
+ <td>
1765
+ <pre class="lines">
1766
+
1767
+
1768
+ 105
1769
+ 106
1770
+ 107
1771
+ 108
1772
+ 109
1773
+ 110
1774
+ 111
1775
+ 112
1776
+ 113
1777
+ 114
1778
+ 115</pre>
1779
+ </td>
1780
+ <td>
1781
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 105</span>
1782
+
1783
+ <span class='kw'>def</span> <span class='id identifier rubyid_transform_template'>transform_template</span><span class='lparen'>(</span><span class='rparen'>)</span>
1784
+ <span class='comment'># transform appropriate template with this data
1785
+ </span>
1786
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_yarrrmltemplate'>yarrrmltemplate</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>r</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='ivar'>@template</span> <span class='op'>=</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='rbrace'>}</span>
1787
+ <span class='ivar'>@template</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>|||DATA|||</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datafile'>datafile</span><span class='rparen'>)</span>
1788
+ <span class='ivar'>@template</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>|||FORMULATION|||</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_formulation'>formulation</span><span class='rparen'>)</span>
1789
+ <span class='ivar'>@template</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>|||BASE|||</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_baseURI'>baseURI</span><span class='rparen'>)</span>
1790
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_yarrrmlfilename_client'>yarrrmlfilename_client</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='ivar'>@template</span><span class='rbrace'>}</span>
1791
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Ready to yarrrml transform </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='embexpr_end'>}</span><span class='tstring_content'> from </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_yarrrmlfilename_client'>yarrrmlfilename_client</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span>
1792
+
1793
+ <span class='kw'>end</span></pre>
1794
+ </td>
1795
+ </tr>
1796
+ </table>
1797
+ </div>
1798
+
1799
+ <div class="method_details ">
1800
+ <h3 class="signature " id="write_ini-instance_method">
1801
+
1802
+ #<strong>write_ini</strong>(inifile = self.inifile_client, path = self.data_path_server, rdffolder = self.outputrdffolder, rmlfile = self.outputrmlfile, datatype = self.datatype_tag) &#x21d2; <tt>Object</tt>
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+ </h3><table class="source_code">
1809
+ <tr>
1810
+ <td>
1811
+ <pre class="lines">
1812
+
1813
+
1814
+ 120
1815
+ 121
1816
+ 122
1817
+ 123
1818
+ 124
1819
+ 125
1820
+ 126
1821
+ 127
1822
+ 128
1823
+ 129
1824
+ 130
1825
+ 131
1826
+ 132
1827
+ 133
1828
+ 134
1829
+ 135
1830
+ 136
1831
+ 137
1832
+ 138
1833
+ 139
1834
+ 140
1835
+ 141
1836
+ 142
1837
+ 143
1838
+ 144
1839
+ 145
1840
+ 146</pre>
1841
+ </td>
1842
+ <td>
1843
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 120</span>
1844
+
1845
+ <span class='kw'>def</span> <span class='id identifier rubyid_write_ini'>write_ini</span><span class='lparen'>(</span><span class='id identifier rubyid_inifile'>inifile</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inifile_client'>inifile_client</span><span class='comma'>,</span>
1846
+ <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_path_server'>data_path_server</span><span class='comma'>,</span>
1847
+ <span class='id identifier rubyid_rdffolder'>rdffolder</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_outputrdffolder'>outputrdffolder</span><span class='comma'>,</span>
1848
+ <span class='id identifier rubyid_rmlfile'>rmlfile</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_outputrmlfile'>outputrmlfile</span><span class='comma'>,</span>
1849
+ <span class='id identifier rubyid_datatype'>datatype</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_datatype_tag'>datatype_tag</span><span class='rparen'>)</span>
1850
+
1851
+ <span class='id identifier rubyid_configfilecontent'>configfilecontent</span> <span class='op'>=</span> <span class='heredoc_beg'>&lt;&lt;CONFIG</span>
1852
+ <span class='tstring_content'>[default]
1853
+ main_directory: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='embexpr_end'>}</span><span class='tstring_content'>
1854
+
1855
+ [datasets]
1856
+ number_of_datasets: 1
1857
+ output_folder: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_rdffolder'>rdffolder</span><span class='embexpr_end'>}</span><span class='tstring_content'>
1858
+ all_in_one_file: yes
1859
+ remove_duplicate: yes
1860
+ enrichment: yes
1861
+ name: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_datatype'>datatype</span><span class='embexpr_end'>}</span><span class='tstring_content'>
1862
+
1863
+ [dataset1]
1864
+ name: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_datatype'>datatype</span><span class='embexpr_end'>}</span><span class='tstring_content'>
1865
+ mapping: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_rmlfile'>rmlfile</span><span class='embexpr_end'>}</span><span class='tstring_content'>
1866
+
1867
+ </span><span class='heredoc_end'>CONFIG
1868
+ </span>
1869
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_inifile'>inifile</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_configfilecontent'>configfilecontent</span><span class='rbrace'>}</span>
1870
+
1871
+ <span class='kw'>end</span></pre>
1872
+ </td>
1873
+ </tr>
1874
+ </table>
1875
+ </div>
1876
+
1877
+ <div class="method_details ">
1878
+ <h3 class="signature " id="yarrrml_transform-instance_method">
1879
+
1880
+ #<strong>yarrrml_transform</strong> &#x21d2; <tt>Object</tt>
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+ </h3><div class="docstring">
1887
+ <div class="discussion">
1888
+
1889
+ <p>Executes the yarrrml to rml transformation </p>
1890
+
1891
+ <p>no parameters</p>
1892
+
1893
+
1894
+ </div>
1895
+ </div>
1896
+ <div class="tags">
1897
+
1898
+
1899
+ </div><table class="source_code">
1900
+ <tr>
1901
+ <td>
1902
+ <pre class="lines">
1903
+
1904
+
1905
+ 155
1906
+ 156
1907
+ 157
1908
+ 158
1909
+ 159
1910
+ 160
1911
+ 161</pre>
1912
+ </td>
1913
+ <td>
1914
+ <pre class="code"><span class="info file"># File 'lib/yarrrml_template_builder/yarrrml_transform.rb', line 155</span>
1915
+
1916
+ <span class='kw'>def</span> <span class='id identifier rubyid_yarrrml_transform'>yarrrml_transform</span>
1917
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>running docker yarrrml-parser:ejp-latest</span><span class='tstring_end'>&quot;</span></span>
1918
+ <span class='comment'>#parser_start_string = &quot;docker run -e PARSERIN=#{self.yarrrmlfilename} -e PARSEROUT=#{self.outputrmlfile} --rm --name yarrrml-parser -v $PWD/data:/data markw/yarrrml-parser-ejp:latest&quot;
1919
+ </span> <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>yarrrml to rml starting with: </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_yarrrml_transform_base_url'>yarrrml_transform_base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'> PARSERIN=</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_yarrrmlfilename_server'>yarrrmlfilename_server</span><span class='embexpr_end'>}</span><span class='tstring_content'> -e PARSEROUT=</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_outputrmlfile'>outputrmlfile</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1920
+ <span class='id identifier rubyid_resp'>resp</span> <span class='op'>=</span> <span class='const'>RestClient</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_yarrrml_transform_base_url'>yarrrml_transform_base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/?parserin=</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_yarrrmlfilename_server'>yarrrmlfilename_server</span><span class='embexpr_end'>}</span><span class='tstring_content'>&amp;parserout=</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_outputrmlfile'>outputrmlfile</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1921
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_resp'>resp</span><span class='embexpr_end'>}</span><span class='tstring_content'>: rml file has been created in </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_outputrmlfile'>outputrmlfile</span><span class='embexpr_end'>}</span><span class='tstring_content'> - ready to make FAIR data</span><span class='tstring_end'>&quot;</span></span>
1922
+ <span class='kw'>end</span></pre>
1923
+ </td>
1924
+ </tr>
1925
+ </table>
1926
+ </div>
1927
+
1928
+ </div>
1929
+
1930
+ </div>
1931
+
1932
+ <div id="footer">
1933
+ Generated on Sat Dec 18 09:08:00 2021 by
1934
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1935
+ 0.9.26 (ruby-2.7.2).
1936
+ </div>
1937
+
1938
+ </div>
1939
+ </body>
1940
+ </html>