-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathrules.ttl
1389 lines (994 loc) · 35.7 KB
/
rules.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix fnml: <http://semweb.mmlab.be/ns/fnml#> .
@prefix fno: <https://w3id.org/function/ontology#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix : <http://mapping.example.com/> .
@prefix ex: <http://example.com/> .
@prefix rml-tc: <http://rml.io/ns/test-case/> .
@prefix test: <http://www.w3.org/2006/03/test-description#> .
@prefix rut: <http://rdfunit.aksw.org/ns/core#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix grel: <http://users.ugent.be/~bjdmeest/function/grel.ttl#> .
@prefix idlab-fn: <http://example.com/idlab/function/> .
:rules_000 rdf:type void:Dataset ;
void:exampleResource :map_testcase_000, :map_rules-dataset_000, :map_rules-distribution_000, :map_output-dataset_000, :map_output-distribution_000, :map_input-dataset-1_000, :map_input-distribution-1_000, :map_input-dataset-2_000, :map_input-distribution-2_000, :map_input-dataset-3_000, :map_input-distribution-3_000 .
:map_testcase_000 rml:logicalSource :source_000 ;
rdf:type rr:TriplesMap ;
rdfs:label "testcase" ;
rr:subjectMap :s_000 ;
rr:predicateObjectMap :pom_000, :pom_001, :pom_002, :pom_003, :pom_004, :pom_005, :pom_006, :pom_007, :pom_012 .
:source_000 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_000 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}" .
:pom_000 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_000 ;
rr:objectMap :om_000, :om_001, :om_002, :om_003 .
:pm_000 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_000 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/earl#TestCase" ;
rr:termType rr:IRI .
:om_001 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/2006/03/test-description#TestCase" ;
rr:termType rr:IRI .
:om_002 rdf:type rr:ObjectMap ;
rr:constant "http://rdfunit.aksw.org/ns/core#TestCase" ;
rr:termType rr:IRI .
:om_003 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#ManifestEntry" ;
rr:termType rr:IRI .
:pom_001 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_001 ;
rr:objectMap :om_004 .
:pm_001 rdf:type rr:PredicateMap ;
rr:constant dc:identifier .
:om_004 rdf:type rr:ObjectMap ;
rml:reference "RML id" ;
rr:termType rr:Literal .
:pom_002 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_002, :pm_003, :pm_004, :pm_005 ;
rr:objectMap :om_005 .
:pm_002 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_003 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_004 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:pm_005 rdf:type rr:PredicateMap ;
rr:constant mf:name .
:om_005 rdf:type rr:ObjectMap ;
rml:reference "title" ;
rr:termType rr:Literal .
:pom_003 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_006, :pm_007, :pm_008 ;
rr:objectMap :om_006 .
:pm_006 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/description> .
:pm_007 rdf:type rr:PredicateMap ;
rr:constant dc:description .
:pm_008 rdf:type rr:PredicateMap ;
rr:constant test:purpose .
:om_006 rdf:type rr:ObjectMap ;
rml:reference "purpose" ;
rr:termType rr:Literal .
:pom_004 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_009 ;
rr:objectMap :om_007 .
:pm_009 rdf:type rr:PredicateMap ;
rr:constant test:specificationReference .
:om_007 rdf:type rr:ObjectMap ;
rml:reference "part of spec" ;
rr:termType rr:IRI .
:pom_005 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_010, :pm_011, :pm_012 ;
rr:objectMap :om_008 .
:pm_010 rdf:type rr:PredicateMap ;
rr:constant dc:hasPart .
:pm_011 rdf:type rr:PredicateMap ;
rr:constant test:informationResourceInput .
:pm_012 rdf:type rr:PredicateMap ;
rr:constant rml-tc:rules .
:pom_006 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_013, :pm_014, :pm_015 ;
rr:objectMap :om_009 .
:pm_013 rdf:type rr:PredicateMap ;
rr:constant dc:hasPart .
:pm_014 rdf:type rr:PredicateMap ;
rr:constant test:expectedResults .
:pm_015 rdf:type rr:PredicateMap ;
rr:constant mf:result .
:pom_007 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_016, :pm_017, :pm_018 ;
rr:objectMap :om_010 .
:pm_016 rdf:type rr:PredicateMap ;
rr:constant dc:hasPart .
:pm_017 rdf:type rr:PredicateMap ;
rr:constant test:expectedResults .
:pm_018 rdf:type rr:PredicateMap ;
rr:constant mf:result .
:om_010 rdf:type fnml:FunctionTermMap ;
rr:termType rr:IRI ;
fnml:functionValue :fn_000 .
:fn_000 rml:logicalSource :source_000 ;
rr:predicateObjectMap :pomexec_000, :pom_008, :pom_011 .
:pomexec_000 rr:predicateMap :pmexec_000 ;
rr:objectMap :omexec_000 .
:pmexec_000 rr:constant fno:executes .
:omexec_000 rr:constant "http://example.com/idlab/function/trueCondition" ;
rr:termType rr:IRI .
:pom_008 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_019 ;
rr:objectMap :om_011 .
:pm_019 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:strBoolean .
:om_011 rdf:type rr:ObjectMap, fnml:FunctionTermMap ;
fnml:functionValue :fn_001 .
:fn_001 rml:logicalSource :source_000 ;
rr:predicateObjectMap :pomexec_001, :pom_009, :pom_010 .
:pomexec_001 rr:predicateMap :pmexec_001 ;
rr:objectMap :omexec_001 .
:pmexec_001 rr:constant fno:executes .
:omexec_001 rr:constant "http://example.com/idlab/function/equal" ;
rr:termType rr:IRI .
:pom_009 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_020 ;
rr:objectMap :om_012 .
:pm_020 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter .
:om_012 rdf:type rr:ObjectMap ;
rml:reference "error expected?" ;
rr:termType rr:Literal .
:pom_010 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_021 ;
rr:objectMap :om_013 .
:pm_021 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter2 .
:om_013 rdf:type rr:ObjectMap ;
rr:constant "true" ;
rr:termType rr:Literal .
:pom_011 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_022 ;
rr:objectMap :om_014 .
:pm_022 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_014 rdf:type rr:ObjectMap ;
rr:constant "http://rml.io/ns/test-case/InvalidRulesError" ;
rr:termType rr:IRI .
:pom_012 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_023, :pm_024 ;
rr:objectMap :om_015, :om_016, :om_017 .
:pm_023 rdf:type rr:PredicateMap ;
rr:constant dc:hasPart .
:pm_024 rdf:type rr:PredicateMap ;
rr:constant test:informationResourceInput .
:map_rules-dataset_000 rml:logicalSource :source_001 ;
rdf:type rr:TriplesMap ;
rdfs:label "rules-dataset" ;
rr:subjectMap :s_001 ;
rr:predicateObjectMap :pom_013, :pom_014, :pom_015 .
:source_001 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_001 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/rules" .
:pom_013 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_025 ;
rr:objectMap :om_018 .
:pm_025 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_018 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/dcat#Dataset" ;
rr:termType rr:IRI .
:pom_014 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_026 ;
rr:objectMap :om_019, :om_020, :om_021 .
:pm_026 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#keyword> .
:om_019 rdf:type rr:ObjectMap ;
rr:constant "rml" ;
rr:termType rr:Literal .
:om_020 rdf:type rr:ObjectMap ;
rr:constant "rules" ;
rr:termType rr:Literal .
:om_021 rdf:type rr:ObjectMap ;
rr:constant "mapping" ;
rr:termType rr:Literal .
:pom_015 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_027 ;
rr:objectMap :om_022 .
:pm_027 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_rules-distribution_000 rml:logicalSource :source_002 ;
rdf:type rr:TriplesMap ;
rdfs:label "rules-distribution" ;
rr:subjectMap :s_002 ;
rr:predicateObjectMap :pom_016, :pom_017, :pom_018, :pom_019 .
:source_002 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_002 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/rules/distribution" .
:pom_016 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_028 ;
rr:objectMap :om_023 .
:pm_028 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_023 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/dcat#Distribution" ;
rr:termType rr:IRI .
:pom_017 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_029, :pm_030, :pm_031 ;
rr:objectMap :om_024 .
:pm_029 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_030 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_031 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_024 rdf:type rr:ObjectMap ;
rr:template "RML rules in Turtle format of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_018 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_032 ;
rr:objectMap :om_025 .
:pm_032 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_025 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-test-cases/master/test-cases/{RML id}/mapping.ttl" ;
rr:termType rr:IRI .
:pom_019 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_033 ;
rr:objectMap :om_026 .
:pm_033 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_026 rdf:type rr:ObjectMap ;
rr:constant "text/turtle" ;
rr:termType rr:Literal .
:map_output-dataset_000 rml:logicalSource :source_003 ;
rdf:type rr:TriplesMap ;
rdfs:label "output-dataset" ;
rr:subjectMap :s_003 ;
rr:predicateObjectMap :pom_024, :pom_025 .
:source_003 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_003 rdf:type rr:SubjectMap, fnml:FunctionTermMap ;
rr:termType rr:IRI ;
fnml:functionValue :fn_002 .
:fn_002 rml:logicalSource :source_003 ;
rr:predicateObjectMap :pomexec_002, :pom_020, :pom_023 .
:pomexec_002 rr:predicateMap :pmexec_002 ;
rr:objectMap :omexec_002 .
:pmexec_002 rr:constant fno:executes .
:omexec_002 rr:constant "http://example.com/idlab/function/trueCondition" ;
rr:termType rr:IRI .
:pom_020 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_034 ;
rr:objectMap :om_027 .
:pm_034 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:strBoolean .
:om_027 rdf:type rr:ObjectMap, fnml:FunctionTermMap ;
fnml:functionValue :fn_003 .
:fn_003 rml:logicalSource :source_003 ;
rr:predicateObjectMap :pomexec_003, :pom_021, :pom_022 .
:pomexec_003 rr:predicateMap :pmexec_003 ;
rr:objectMap :omexec_003 .
:pmexec_003 rr:constant fno:executes .
:omexec_003 rr:constant "http://example.com/idlab/function/equal" ;
rr:termType rr:IRI .
:pom_021 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_035 ;
rr:objectMap :om_028 .
:pm_035 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter .
:om_028 rdf:type rr:ObjectMap ;
rr:constant "false" ;
rr:termType rr:Literal .
:pom_022 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_036 ;
rr:objectMap :om_029 .
:pm_036 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter2 .
:om_029 rdf:type rr:ObjectMap ;
rml:reference "error expected?" ;
rr:termType rr:Literal .
:pom_023 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_037 ;
rr:objectMap :om_030 .
:pm_037 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_030 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output" ;
rr:termType rr:IRI .
:pom_024 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_038 ;
rr:objectMap :om_031 .
:pm_038 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_031 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/dcat#Dataset" ;
rr:termType rr:IRI .
:pom_025 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_039 ;
rr:objectMap :om_032 .
:pm_039 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_output-distribution_000 rml:logicalSource :source_004 ;
rdf:type rr:TriplesMap ;
rdfs:label "output-distribution" ;
rr:subjectMap :s_004 ;
rr:predicateObjectMap :pom_030, :pom_031, :pom_032, :pom_033 .
:source_004 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_004 rdf:type rr:SubjectMap, fnml:FunctionTermMap ;
rr:termType rr:IRI ;
fnml:functionValue :fn_004 .
:fn_004 rml:logicalSource :source_004 ;
rr:predicateObjectMap :pomexec_004, :pom_026, :pom_029 .
:pomexec_004 rr:predicateMap :pmexec_004 ;
rr:objectMap :omexec_004 .
:pmexec_004 rr:constant fno:executes .
:omexec_004 rr:constant "http://example.com/idlab/function/trueCondition" ;
rr:termType rr:IRI .
:pom_026 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_040 ;
rr:objectMap :om_033 .
:pm_040 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:strBoolean .
:om_033 rdf:type rr:ObjectMap, fnml:FunctionTermMap ;
fnml:functionValue :fn_005 .
:fn_005 rml:logicalSource :source_004 ;
rr:predicateObjectMap :pomexec_005, :pom_027, :pom_028 .
:pomexec_005 rr:predicateMap :pmexec_005 ;
rr:objectMap :omexec_005 .
:pmexec_005 rr:constant fno:executes .
:omexec_005 rr:constant "http://example.com/idlab/function/equal" ;
rr:termType rr:IRI .
:pom_027 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_041 ;
rr:objectMap :om_034 .
:pm_041 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter .
:om_034 rdf:type rr:ObjectMap ;
rr:constant "false" ;
rr:termType rr:Literal .
:pom_028 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_042 ;
rr:objectMap :om_035 .
:pm_042 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter2 .
:om_035 rdf:type rr:ObjectMap ;
rml:reference "error expected?" ;
rr:termType rr:Literal .
:pom_029 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_043 ;
rr:objectMap :om_036 .
:pm_043 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_036 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output/distribution" ;
rr:termType rr:IRI .
:pom_030 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_044 ;
rr:objectMap :om_037 .
:pm_044 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_037 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/dcat#Distribution" ;
rr:termType rr:IRI .
:pom_031 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_045, :pm_046, :pm_047 ;
rr:objectMap :om_038 .
:pm_045 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_046 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_047 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_038 rdf:type rr:ObjectMap ;
rr:template "Expected RDF output of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_032 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_048 ;
rr:objectMap :om_039 .
:pm_048 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_039 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-test-cases/master/test-cases/{RML id}/output.nq" ;
rr:termType rr:IRI .
:pom_033 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_049 ;
rr:objectMap :om_040 .
:pm_049 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_040 rdf:type rr:ObjectMap ;
rr:constant "application/n-quads" ;
rr:termType rr:Literal .
:map_input-dataset-1_000 rml:logicalSource :source_005 ;
rdf:type rr:TriplesMap ;
rdfs:label "input-dataset-1" ;
rr:subjectMap :s_005 ;
rr:predicateObjectMap :pom_038, :pom_039 .
:source_005 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_005 rdf:type rr:SubjectMap, fnml:FunctionTermMap ;
rr:termType rr:IRI ;
fnml:functionValue :fn_006 .
:fn_006 rml:logicalSource :source_005 ;
rr:predicateObjectMap :pomexec_006, :pom_034, :pom_037 .
:pomexec_006 rr:predicateMap :pmexec_006 ;
rr:objectMap :omexec_006 .
:pmexec_006 rr:constant fno:executes .
:omexec_006 rr:constant "http://example.com/idlab/function/trueCondition" ;
rr:termType rr:IRI .
:pom_034 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_050 ;
rr:objectMap :om_041 .
:pm_050 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:strBoolean .
:om_041 rdf:type rr:ObjectMap, fnml:FunctionTermMap ;
fnml:functionValue :fn_007 .
:fn_007 rml:logicalSource :source_005 ;
rr:predicateObjectMap :pomexec_007, :pom_035, :pom_036 .
:pomexec_007 rr:predicateMap :pmexec_007 ;
rr:objectMap :omexec_007 .
:pmexec_007 rr:constant fno:executes .
:omexec_007 rr:constant "http://example.com/idlab/function/notEqual" ;
rr:termType rr:IRI .
:pom_035 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_051 ;
rr:objectMap :om_042 .
:pm_051 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter .
:om_042 rdf:type rr:ObjectMap ;
rr:constant "" ;
rr:termType rr:Literal .
:pom_036 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_052 ;
rr:objectMap :om_043 .
:pm_052 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter2 .
:om_043 rdf:type rr:ObjectMap ;
rml:reference "input file 1" ;
rr:termType rr:Literal .
:pom_037 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_053 ;
rr:objectMap :om_044 .
:pm_053 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_044 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input1" ;
rr:termType rr:IRI .
:pom_038 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_054 ;
rr:objectMap :om_045 .
:pm_054 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_045 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/dcat#Dataset" ;
rr:termType rr:IRI .
:pom_039 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_055 ;
rr:objectMap :om_046 .
:pm_055 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_input-distribution-1_000 rml:logicalSource :source_006 ;
rdf:type rr:TriplesMap ;
rdfs:label "input-distribution-1" ;
rr:subjectMap :s_006 ;
rr:predicateObjectMap :pom_044, :pom_045, :pom_046, :pom_047 .
:source_006 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_006 rdf:type rr:SubjectMap, fnml:FunctionTermMap ;
rr:termType rr:IRI ;
fnml:functionValue :fn_008 .
:fn_008 rml:logicalSource :source_006 ;
rr:predicateObjectMap :pomexec_008, :pom_040, :pom_043 .
:pomexec_008 rr:predicateMap :pmexec_008 ;
rr:objectMap :omexec_008 .
:pmexec_008 rr:constant fno:executes .
:omexec_008 rr:constant "http://example.com/idlab/function/trueCondition" ;
rr:termType rr:IRI .
:pom_040 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_056 ;
rr:objectMap :om_047 .
:pm_056 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:strBoolean .
:om_047 rdf:type rr:ObjectMap, fnml:FunctionTermMap ;
fnml:functionValue :fn_009 .
:fn_009 rml:logicalSource :source_006 ;
rr:predicateObjectMap :pomexec_009, :pom_041, :pom_042 .
:pomexec_009 rr:predicateMap :pmexec_009 ;
rr:objectMap :omexec_009 .
:pmexec_009 rr:constant fno:executes .
:omexec_009 rr:constant "http://example.com/idlab/function/notEqual" ;
rr:termType rr:IRI .
:pom_041 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_057 ;
rr:objectMap :om_048 .
:pm_057 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter .
:om_048 rdf:type rr:ObjectMap ;
rr:constant "" ;
rr:termType rr:Literal .
:pom_042 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_058 ;
rr:objectMap :om_049 .
:pm_058 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter2 .
:om_049 rdf:type rr:ObjectMap ;
rml:reference "input file 1" ;
rr:termType rr:Literal .
:pom_043 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_059 ;
rr:objectMap :om_050 .
:pm_059 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_050 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input1/distribution" ;
rr:termType rr:IRI .
:pom_044 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_060 ;
rr:objectMap :om_051 .
:pm_060 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_051 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/dcat#Distribution" ;
rr:termType rr:IRI .
:pom_045 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_061, :pm_062, :pm_063 ;
rr:objectMap :om_052 .
:pm_061 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_062 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_063 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_052 rdf:type rr:ObjectMap ;
rr:template "An input file of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_046 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_064 ;
rr:objectMap :om_053 .
:pm_064 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_053 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-test-cases/master/test-cases/{RML id}/{input file 1}" ;
rr:termType rr:IRI .
:pom_047 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_065 ;
rr:objectMap :om_054 .
:pm_065 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_054 rdf:type fnml:FunctionTermMap ;
rr:termType rr:Literal ;
fnml:functionValue :fn_010 .
:fn_010 rml:logicalSource :source_006 ;
rr:predicateObjectMap :pomexec_010, :pom_048 .
:pomexec_010 rr:predicateMap :pmexec_010 ;
rr:objectMap :omexec_010 .
:pmexec_010 rr:constant fno:executes .
:omexec_010 rr:constant "http://example.com/idlab/function/getMIMEType" ;
rr:termType rr:IRI .
:pom_048 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_066 ;
rr:objectMap :om_055 .
:pm_066 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_055 rdf:type rr:ObjectMap ;
rml:reference "input file 1" ;
rr:termType rr:Literal .
:map_input-dataset-2_000 rml:logicalSource :source_007 ;
rdf:type rr:TriplesMap ;
rdfs:label "input-dataset-2" ;
rr:subjectMap :s_007 ;
rr:predicateObjectMap :pom_053, :pom_054 .
:source_007 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_007 rdf:type rr:SubjectMap, fnml:FunctionTermMap ;
rr:termType rr:IRI ;
fnml:functionValue :fn_011 .
:fn_011 rml:logicalSource :source_007 ;
rr:predicateObjectMap :pomexec_011, :pom_049, :pom_052 .
:pomexec_011 rr:predicateMap :pmexec_011 ;
rr:objectMap :omexec_011 .
:pmexec_011 rr:constant fno:executes .
:omexec_011 rr:constant "http://example.com/idlab/function/trueCondition" ;
rr:termType rr:IRI .
:pom_049 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_067 ;
rr:objectMap :om_056 .
:pm_067 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:strBoolean .
:om_056 rdf:type rr:ObjectMap, fnml:FunctionTermMap ;
fnml:functionValue :fn_012 .
:fn_012 rml:logicalSource :source_007 ;
rr:predicateObjectMap :pomexec_012, :pom_050, :pom_051 .
:pomexec_012 rr:predicateMap :pmexec_012 ;
rr:objectMap :omexec_012 .
:pmexec_012 rr:constant fno:executes .
:omexec_012 rr:constant "http://example.com/idlab/function/notEqual" ;
rr:termType rr:IRI .
:pom_050 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_068 ;
rr:objectMap :om_057 .
:pm_068 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter .
:om_057 rdf:type rr:ObjectMap ;
rr:constant "" ;
rr:termType rr:Literal .
:pom_051 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_069 ;
rr:objectMap :om_058 .
:pm_069 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter2 .
:om_058 rdf:type rr:ObjectMap ;
rml:reference "input file 2" ;
rr:termType rr:Literal .
:pom_052 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_070 ;
rr:objectMap :om_059 .
:pm_070 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_059 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input2" ;
rr:termType rr:IRI .
:pom_053 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_071 ;
rr:objectMap :om_060 .
:pm_071 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_060 rdf:type rr:ObjectMap ;
rr:constant "http://www.w3.org/ns/dcat#Dataset" ;
rr:termType rr:IRI .
:pom_054 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_072 ;
rr:objectMap :om_061 .
:pm_072 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_input-distribution-2_000 rml:logicalSource :source_008 ;
rdf:type rr:TriplesMap ;
rdfs:label "input-distribution-2" ;
rr:subjectMap :s_008 ;
rr:predicateObjectMap :pom_059, :pom_060, :pom_061, :pom_062 .
:source_008 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_008 rdf:type rr:SubjectMap, fnml:FunctionTermMap ;
rr:termType rr:IRI ;
fnml:functionValue :fn_013 .
:fn_013 rml:logicalSource :source_008 ;
rr:predicateObjectMap :pomexec_013, :pom_055, :pom_058 .
:pomexec_013 rr:predicateMap :pmexec_013 ;
rr:objectMap :omexec_013 .
:pmexec_013 rr:constant fno:executes .
:omexec_013 rr:constant "http://example.com/idlab/function/trueCondition" ;
rr:termType rr:IRI .
:pom_055 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_073 ;
rr:objectMap :om_062 .
:pm_073 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:strBoolean .
:om_062 rdf:type rr:ObjectMap, fnml:FunctionTermMap ;
fnml:functionValue :fn_014 .
:fn_014 rml:logicalSource :source_008 ;
rr:predicateObjectMap :pomexec_014, :pom_056, :pom_057 .
:pomexec_014 rr:predicateMap :pmexec_014 ;
rr:objectMap :omexec_014 .
:pmexec_014 rr:constant fno:executes .
:omexec_014 rr:constant "http://example.com/idlab/function/notEqual" ;
rr:termType rr:IRI .
:pom_056 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_074 ;
rr:objectMap :om_063 .
:pm_074 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter .
:om_063 rdf:type rr:ObjectMap ;
rr:constant "" ;
rr:termType rr:Literal .
:pom_057 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_075 ;
rr:objectMap :om_064 .
:pm_075 rdf:type rr:PredicateMap ;
rr:constant grel:valueParameter2 .
:om_064 rdf:type rr:ObjectMap ;
rml:reference "input file 2" ;
rr:termType rr:Literal .
:pom_058 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_076 ;
rr:objectMap :om_065 .
:pm_076 rdf:type rr:PredicateMap ;
rr:constant idlab-fn:str .
:om_065 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input2/distribution" ;
rr:termType rr:IRI .
:pom_059 rdf:type rr:PredicateObjectMap ;