-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.rml.ttl
821 lines (604 loc) · 22.4 KB
/
rules.rml.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
@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#> .
:rules_000 rdf:type void:Dataset ;
void:exampleResource :map_testcase_000, :map_base-rules-dataset_000, :map_base-rules-distribution_000, :map_change-rules-dataset_000, :map_change-rules-distribution_000, :map_base-output-dataset_000, :map_base-output-distribution_000, :map_change-output-dataset_000, :map_change-output-distribution_000, :map_base-input-dataset_000, :map_base-input-distribution_000, :map_change-input-dataset_000, :map_change-input-distribution_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 .
: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 test:TestCase ;
rr:termType rr:IRI .
:om_002 rdf:type rr:ObjectMap ;
rr:constant rut:TestCase ;
rr:termType rr:IRI .
:om_003 rdf:type rr:ObjectMap ;
rr:constant mf: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, :om_009 .
: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 .
:om_008 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/rules/base" ;
rr:termType rr:IRI .
:om_009 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/rules/change" ;
rr:termType rr:IRI .
:pom_006 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_013, :pm_014, :pm_015 ;
rr:objectMap :om_010, :om_011 .
: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 .
:om_010 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output/base" ;
rr:termType rr:IRI .
:om_011 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output/change" ;
rr:termType rr:IRI .
:pom_007 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_016, :pm_017 ;
rr:objectMap :om_012, :om_013 .
:pm_016 rdf:type rr:PredicateMap ;
rr:constant dc:hasPart .
:pm_017 rdf:type rr:PredicateMap ;
rr:constant test:informationResourceInput .
:om_012 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input/base" ;
rr:termType rr:IRI .
:om_013 rdf:type rr:ObjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input/change" ;
rr:termType rr:IRI .
:map_base-rules-dataset_000 rml:logicalSource :source_001 ;
rdf:type rr:TriplesMap ;
rdfs:label "base-rules-dataset" ;
rr:subjectMap :s_001 ;
rr:predicateObjectMap :pom_008, :pom_009, :pom_010 .
: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/base" .
:pom_008 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_018 ;
rr:objectMap :om_014 .
:pm_018 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_014 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Dataset> ;
rr:termType rr:IRI .
:pom_009 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_019 ;
rr:objectMap :om_015, :om_016, :om_017 .
:pm_019 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#keyword> .
:om_015 rdf:type rr:ObjectMap ;
rr:constant "rml" ;
rr:termType rr:Literal .
:om_016 rdf:type rr:ObjectMap ;
rr:constant "rules" ;
rr:termType rr:Literal .
:om_017 rdf:type rr:ObjectMap ;
rr:constant "mapping" ;
rr:termType rr:Literal .
:pom_010 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_020 ;
rr:objectMap :om_050 .
:pm_020 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_base-rules-distribution_000 rml:logicalSource :source_002 ;
rdf:type rr:TriplesMap ;
rdfs:label "base-rules-distribution" ;
rr:subjectMap :s_002 ;
rr:predicateObjectMap :pom_011, :pom_012, :pom_013, :pom_014 .
: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/base/distribution" .
:pom_011 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_021 ;
rr:objectMap :om_018 .
:pm_021 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_018 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Distribution> ;
rr:termType rr:IRI .
:pom_012 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_022, :pm_023, :pm_024 ;
rr:objectMap :om_019 .
:pm_022 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_023 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_024 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_019 rdf:type rr:ObjectMap ;
rr:template "Base RML rules in Turtle format of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_013 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_025 ;
rr:objectMap :om_020 .
:pm_025 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_020 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-ldes-test-cases/master/test-cases/{RML id}/base.rml.ttl" ;
rr:termType rr:IRI .
:pom_014 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_026 ;
rr:objectMap :om_021 .
:pm_026 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_021 rdf:type rr:ObjectMap ;
rr:constant "text/turtle" ;
rr:termType rr:Literal .
:map_change-rules-dataset_000 rml:logicalSource :source_003 ;
rdf:type rr:TriplesMap ;
rdfs:label "change-rules-dataset" ;
rr:subjectMap :s_003 ;
rr:predicateObjectMap :pom_015, :pom_016, :pom_017 .
:source_003 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_003 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/rules/change" .
:pom_015 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_027 ;
rr:objectMap :om_022 .
:pm_027 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_022 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Dataset> ;
rr:termType rr:IRI .
:pom_016 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_028 ;
rr:objectMap :om_023, :om_024, :om_025 .
:pm_028 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#keyword> .
:om_023 rdf:type rr:ObjectMap ;
rr:constant "rml" ;
rr:termType rr:Literal .
:om_024 rdf:type rr:ObjectMap ;
rr:constant "rules" ;
rr:termType rr:Literal .
:om_025 rdf:type rr:ObjectMap ;
rr:constant "mapping" ;
rr:termType rr:Literal .
:pom_017 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_029 ;
rr:objectMap :om_051 .
:pm_029 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_change-rules-distribution_000 rml:logicalSource :source_004 ;
rdf:type rr:TriplesMap ;
rdfs:label "change-rules-distribution" ;
rr:subjectMap :s_004 ;
rr:predicateObjectMap :pom_018, :pom_019, :pom_020, :pom_021 .
:source_004 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_004 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/rules/change/distribution" .
:pom_018 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_030 ;
rr:objectMap :om_026 .
:pm_030 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_026 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Distribution> ;
rr:termType rr:IRI .
:pom_019 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_031, :pm_032, :pm_033 ;
rr:objectMap :om_027 .
:pm_031 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_032 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_033 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_027 rdf:type rr:ObjectMap ;
rr:template "Change RML rules in Turtle format of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_020 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_034 ;
rr:objectMap :om_028 .
:pm_034 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_028 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-ldes-test-cases/master/test-cases/{RML id}/change.rml.ttl" ;
rr:termType rr:IRI .
:pom_021 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_035 ;
rr:objectMap :om_029 .
:pm_035 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_029 rdf:type rr:ObjectMap ;
rr:constant "text/turtle" ;
rr:termType rr:Literal .
:map_base-output-dataset_000 rml:logicalSource :source_005 ;
rdf:type rr:TriplesMap ;
rdfs:label "base-output-dataset" ;
rr:subjectMap :s_005 ;
rr:predicateObjectMap :pom_022, :pom_023 .
:source_005 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_005 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output/base" .
:pom_022 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_036 ;
rr:objectMap :om_030 .
:pm_036 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_030 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Dataset> ;
rr:termType rr:IRI .
:pom_023 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_037 ;
rr:objectMap :om_052 .
:pm_037 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_base-output-distribution_000 rml:logicalSource :source_006 ;
rdf:type rr:TriplesMap ;
rdfs:label "base-output-distribution" ;
rr:subjectMap :s_006 ;
rr:predicateObjectMap :pom_024, :pom_025, :pom_026, :pom_027 .
:source_006 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_006 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output/base/distribution" .
: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#Distribution> ;
rr:termType rr:IRI .
:pom_025 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_039, :pm_040, :pm_041 ;
rr:objectMap :om_032 .
:pm_039 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_040 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_041 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_032 rdf:type rr:ObjectMap ;
rr:template "Expected base RDF output of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_026 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_042 ;
rr:objectMap :om_033 .
:pm_042 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_033 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-test-cases/master/test-cases/{RML id}/output-base.nq" ;
rr:termType rr:IRI .
:pom_027 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_043 ;
rr:objectMap :om_034 .
:pm_043 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_034 rdf:type rr:ObjectMap ;
rr:constant "application/n-quads" ;
rr:termType rr:Literal .
:map_change-output-dataset_000 rml:logicalSource :source_007 ;
rdf:type rr:TriplesMap ;
rdfs:label "change-output-dataset" ;
rr:subjectMap :s_007 ;
rr:predicateObjectMap :pom_028, :pom_029 .
:source_007 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_007 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output/change" .
:pom_028 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_044 ;
rr:objectMap :om_035 .
:pm_044 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_035 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Dataset> ;
rr:termType rr:IRI .
:pom_029 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_045 ;
rr:objectMap :om_053 .
:pm_045 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_change-output-distribution_000 rml:logicalSource :source_008 ;
rdf:type rr:TriplesMap ;
rdfs:label "change-output-distribution" ;
rr:subjectMap :s_008 ;
rr:predicateObjectMap :pom_030, :pom_031, :pom_032, :pom_033 .
:source_008 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_008 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/output/change/distribution" .
:pom_030 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_046 ;
rr:objectMap :om_036 .
:pm_046 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_036 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_047, :pm_048, :pm_049 ;
rr:objectMap :om_037 .
:pm_047 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_048 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_049 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_037 rdf:type rr:ObjectMap ;
rr:template "Expected change RDF output of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_032 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_050 ;
rr:objectMap :om_038 .
:pm_050 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_038 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-test-cases/master/test-cases/{RML id}/output-change.nq" ;
rr:termType rr:IRI .
:pom_033 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_051 ;
rr:objectMap :om_039 .
:pm_051 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_039 rdf:type rr:ObjectMap ;
rr:constant "application/n-quads" ;
rr:termType rr:Literal .
:map_base-input-dataset_000 rml:logicalSource :source_009 ;
rdf:type rr:TriplesMap ;
rdfs:label "base-input-dataset" ;
rr:subjectMap :s_009 ;
rr:predicateObjectMap :pom_034, :pom_035 .
:source_009 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_009 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input/base" .
:pom_034 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_052 ;
rr:objectMap :om_040 .
:pm_052 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_040 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Dataset> ;
rr:termType rr:IRI .
:pom_035 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_053 ;
rr:objectMap :om_054 .
:pm_053 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_base-input-distribution_000 rml:logicalSource :source_010 ;
rdf:type rr:TriplesMap ;
rdfs:label "base-input-distribution" ;
rr:subjectMap :s_010 ;
rr:predicateObjectMap :pom_036, :pom_037, :pom_038, :pom_039 .
:source_010 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_010 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input/base/distribution" .
:pom_036 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_054 ;
rr:objectMap :om_041 .
:pm_054 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_041 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Distribution> ;
rr:termType rr:IRI .
:pom_037 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_055, :pm_056, :pm_057 ;
rr:objectMap :om_042 .
:pm_055 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_056 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_057 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_042 rdf:type rr:ObjectMap ;
rr:template "The base input file of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_038 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_058 ;
rr:objectMap :om_043 .
:pm_058 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_043 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-test-cases/master/test-cases/{RML id}/{input base}" ;
rr:termType rr:IRI .
:pom_039 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_059 ;
rr:objectMap :om_044 .
:pm_059 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_044 rdf:type rr:ObjectMap ;
rr:constant "application/json" ;
rr:termType rr:Literal .
:map_change-input-dataset_000 rml:logicalSource :source_011 ;
rdf:type rr:TriplesMap ;
rdfs:label "change-input-dataset" ;
rr:subjectMap :s_011 ;
rr:predicateObjectMap :pom_040, :pom_041 .
:source_011 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_011 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input/change" .
:pom_040 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_060 ;
rr:objectMap :om_045 .
:pm_060 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_041 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_061 ;
rr:objectMap :om_055 .
:pm_061 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#distribution> .
:map_change-input-distribution_000 rml:logicalSource :source_012 ;
rdf:type rr:TriplesMap ;
rdfs:label "change-input-distribution" ;
rr:subjectMap :s_012 ;
rr:predicateObjectMap :pom_042, :pom_043, :pom_044, :pom_045 .
:source_012 rdf:type rml:LogicalSource ;
rml:source "metadata.csv" ;
rml:referenceFormulation ql:CSV .
:s_012 rdf:type rr:SubjectMap ;
rr:template "http://rml.io/test-case/{RML id}/input/change/distribution" .
:pom_042 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_062 ;
rr:objectMap :om_046 .
:pm_062 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
:om_046 rdf:type rr:ObjectMap ;
rr:constant <http://www.w3.org/ns/dcat#Distribution> ;
rr:termType rr:IRI .
:pom_043 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_063, :pm_064, :pm_065 ;
rr:objectMap :om_047 .
:pm_063 rdf:type rr:PredicateMap ;
rr:constant <http://schema.org/name> .
:pm_064 rdf:type rr:PredicateMap ;
rr:constant dc:title .
:pm_065 rdf:type rr:PredicateMap ;
rr:constant rdfs:label .
:om_047 rdf:type rr:ObjectMap ;
rr:template "The change input file of test case with id {RML id}" ;
rr:termType rr:Literal .
:pom_044 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_066 ;
rr:objectMap :om_048 .
:pm_066 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#downloadUrl> .
:om_048 rdf:type rr:ObjectMap ;
rr:template "https://raw.githubusercontent.com/RMLio/rml-test-cases/master/test-cases/{RML id}/{input change}" ;
rr:termType rr:IRI .
:pom_045 rdf:type rr:PredicateObjectMap ;
rr:predicateMap :pm_067 ;
rr:objectMap :om_049 .
:pm_067 rdf:type rr:PredicateMap ;
rr:constant <http://www.w3.org/ns/dcat#mediaType> .
:om_049 rdf:type rr:ObjectMap ;
rr:constant "application/json" ;
rr:termType rr:Literal .
:om_050 rdf:type rr:ObjectMap ;
rr:parentTriplesMap :map_base-rules-distribution_000 ;
rr:joinCondition :jc_000 .
:jc_000 rr:child "RML id" ;
rr:parent "RML id" .
:om_051 rdf:type rr:ObjectMap ;
rr:parentTriplesMap :map_change-rules-distribution_000 ;
rr:joinCondition :jc_001 .
:jc_001 rr:child "RML id" ;
rr:parent "RML id" .
:om_052 rdf:type rr:ObjectMap ;
rr:parentTriplesMap :map_base-output-distribution_000 ;
rr:joinCondition :jc_002 .
:jc_002 rr:child "RML id" ;
rr:parent "RML id" .
:om_053 rdf:type rr:ObjectMap ;
rr:parentTriplesMap :map_change-output-distribution_000 ;
rr:joinCondition :jc_003 .
:jc_003 rr:child "RML id" ;
rr:parent "RML id" .
:om_054 rdf:type rr:ObjectMap ;
rr:parentTriplesMap :map_base-input-distribution_000 ;
rr:joinCondition :jc_004 .
:jc_004 rr:child "RML id" ;
rr:parent "RML id" .
:om_055 rdf:type rr:ObjectMap ;
rr:parentTriplesMap :map_change-input-distribution_000 ;
rr:joinCondition :jc_005 .
:jc_005 rr:child "RML id" ;
rr:parent "RML id" .