Skip to content

Commit 283a61f

Browse files
committed
correction test-cases
1 parent 11d6845 commit 283a61f

File tree

10 files changed

+42
-46
lines changed

10 files changed

+42
-46
lines changed

test-cases/RMLLVTC0005/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
:triplesMapPerson a rml:TriplesMap ;
6868
rml:logicalSource :csvView ;
6969
rml:subjectMap [
70-
rml:template "http://example.org/person/{name}" ;
70+
rml:template "http://example.org/people/{name}" ;
7171
] ;
7272
rml:predicateObjectMap [
7373
rml:predicate :hasName ;

test-cases/RMLLVTC0005/output.nq

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ _:item_0_1 <http://example.org/hasType> "shield" .
88
_:item_0_1 <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
99
<http://example.org/people/bob> <http://example.org/hasName> "bob" .
1010
<http://example.org/people/bob> <http://example.org/hasBirthyear> "1999"^^<http://www.w3.org/2001/XMLSchema#gYear> .
11-
<http://example.org/people/bob> <http://example.org/hasItem> _:item_1_2 .
12-
_:item_1_2 <http://example.org/hasType> "flower" .
13-
_:item_1_2 <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
11+
<http://example.org/people/bob> <http://example.org/hasItem> _:item_1_0 .
12+
_:item_1_0 <http://example.org/hasType> "flower" .
13+
_:item_1_0 <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .

test-cases/RMLLVTC0006/mapping.ttl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
:triplesMapItem a rml:TriplesMap ;
3434
rml:logicalSource :mixedCSVView ;
3535
rml:subjectMap [
36-
rml:template "item_{#}_{item.#}" ;
37-
rml:termType rml:BlankNode ;
36+
rml:template "http://example.org/item_{#}_{item.#}" ;
3837
] ;
3938
rml:predicateObjectMap [
4039
rml:predicate :hasType ;

test-cases/RMLLVTC0006/output.nq

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
_:item_0_0 <http://example.org/hasType> "sword" .
2-
_:item_0_0 <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
3-
_:item_0_1 <http://example.org/hasType> "shield" .
4-
_:item_0_1 <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
5-
_:item_1_0 <http://example.org/hasType> "flower" .
6-
_:item_1_0 <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .
1+
<http://example.org/item_0_0> <http://example.org/hasType> "sword" .
2+
<http://example.org/item_0_0> <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
3+
<http://example.org/item_0_1> <http://example.org/hasType> "shield" .
4+
<http://example.org/item_0_1> <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
5+
<http://example.org/item_1_0> <http://example.org/hasType> "flower" .
6+
<http://example.org/item_1_0> <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .

test-cases/RMLLVTC0007/mapping.ttl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
] ;
1919
rml:field [
2020
rml:fieldName "item" ;
21-
rml:reference "items" ;
21+
rml:reference "item" ;
2222
rml:referenceFormulation rml:JSONPath ;
2323
rml:field [
2424
rml:fieldName "type" ;
@@ -32,8 +32,7 @@
3232
:triplesMapItem a rml:TriplesMap ;
3333
rml:logicalSource :mixedCSVView ;
3434
rml:subjectMap [
35-
rml:template "item_{#}_{item.#}" ;
36-
rml:termType rml:BlankNode ;
35+
rml:template "http://example.org/item_{#}_{item.#}" ;
3736
] ;
3837
rml:predicateObjectMap [
3938
rml:predicate :hasType ;

test-cases/RMLLVTC0007/output.nq

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
_:item_0_0 <http://example.org/hasType> "sword" .
2-
_:item_0_0 <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
3-
_:item_1_0 <http://example.org/hasType> "shield" .
4-
_:item_1_0 <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
5-
_:item_2_0 <http://example.org/hasType> "flower" .
6-
_:item_2_0 <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .
1+
<http://example.org/item_0_0> <http://example.org/hasType> "sword" .
2+
<http://example.org/item_0_0> <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
3+
<http://example.org/item_1_0> <http://example.org/hasType> "shield" .
4+
<http://example.org/item_1_0> <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
5+
<http://example.org/item_2_0> <http://example.org/hasType> "flower" .
6+
<http://example.org/item_2_0> <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .

test-cases/RMLLVTC0008/mapping.ttl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
:triplesMapItem a rml:TriplesMap ;
3535
rml:logicalSource :mixedJSONView ;
3636
rml:subjectMap [
37-
rml:template "item_{#}_{item.#}" ;
38-
rml:termType rml:BlankNode ;
37+
rml:template "http://example.org/item_{#}_{item.#}" ;
3938
] ;
4039
rml:predicateObjectMap [
4140
rml:predicate :hasType ;

test-cases/RMLLVTC0008/output.nq

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
_:item_0_0 <http://example.org/hasType> "sword" .
2-
_:item_0_0 <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
3-
_:item_0_1 <http://example.org/hasType> "shield" .
4-
_:item_0_1 <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
5-
_:item_1_0 <http://example.org/hasType> "flower" .
6-
_:item_1_0 <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .
1+
<http://example.org/item_0_0> <http://example.org/hasType> "sword" .
2+
<http://example.org/item_0_0> <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
3+
<http://example.org/item_0_1> <http://example.org/hasType> "shield" .
4+
<http://example.org/item_0_1> <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
5+
<http://example.org/item_1_0> <http://example.org/hasType> "flower" .
6+
<http://example.org/item_1_0> <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .

test-cases/RMLLVTC0009/mapping.ttl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
rml:referenceFormulation rml:CSV .
4040

4141
:additionalCsvView a rml:LogicalView ;
42-
rml:viewOn :csvSource ;
42+
rml:viewOn :additionalCsvSource ;
4343
rml:field [
4444
rml:fieldName "name" ;
4545
rml:reference "name" ;
4646
] ;
4747
rml:field [
4848
rml:fieldName "id" ;
49-
rml:reference "idr" ;
49+
rml:reference "id" ;
5050
] ;
5151
.
5252

@@ -84,7 +84,7 @@
8484
] ;
8585
] ;
8686
rml:leftJoin [
87-
rml:parentLogicalView :addionalCsvView ;
87+
rml:parentLogicalView :additionalCsvView ;
8888
rml:joinCondition [
8989
rml:parent "name" ;
9090
rml:child "name" ;
@@ -98,7 +98,7 @@
9898
:triplesMapPerson a rml:TriplesMap ;
9999
rml:logicalSource :csvView ;
100100
rml:subjectMap [
101-
rml:template "http://example.org/person/{id}" ;
101+
rml:template "http://example.org/people/{id}" ;
102102
] ;
103103
rml:predicateObjectMap [
104104
rml:predicate :hasName ;
@@ -123,8 +123,7 @@
123123
:triplesMapItem a rml:TriplesMap ;
124124
rml:logicalSource :csvView ;
125125
rml:subjectMap [
126-
rml:template "item_{#}_{item_type.#}" ;
127-
rml:termType rml:BlankNode ;
126+
rml:template "http://example.org/item_{#}_{item_type.#}" ;
128127
] ;
129128
rml:predicateObjectMap [
130129
rml:predicate :hasType ;

test-cases/RMLLVTC0009/output.nq

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<http://example.org/people/123> <http://example.org/hasName> "alice" .
22
<http://example.org/people/123> <http://example.org/hasBirthyear> "1995"^^<http://www.w3.org/2001/XMLSchema#gYear> .
3-
<http://example.org/people/123> <http://example.org/hasItem> _:item_0_0 .
4-
<http://example.org/people/123> <http://example.org/hasItem> _:item_0_1 .
5-
_:item_0_0 <http://example.org/hasType> "sword" .
6-
_:item_0_0 <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
7-
_:item_0_1 <http://example.org/hasType> "shield" .
8-
_:item_0_1 <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
3+
<http://example.org/people/123> <http://example.org/hasItem> <http://example.org/item_0_0> .
4+
<http://example.org/people/123> <http://example.org/hasItem> <http://example.org/item_0_1> .
5+
<http://example.org/item_0_0> <http://example.org/hasType> "sword" .
6+
<http://example.org/item_0_0> <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
7+
<http://example.org/item_0_1> <http://example.org/hasType> "shield" .
8+
<http://example.org/item_0_1> <http://example.org/hasWeight> "2500"^^<http://www.w3.org/2001/XMLSchema#integer> .
99
<http://example.org/people/456> <http://example.org/hasName> "bob" .
1010
<http://example.org/people/456> <http://example.org/hasBirthyear> "1999"^^<http://www.w3.org/2001/XMLSchema#gYear> .
11-
<http://example.org/people/456> <http://example.org/hasItem> _:item_1_2 .
12-
_:item_1_2 <http://example.org/hasType> "flower" .
13-
_:item_1_2 <http://example.org/hasWeight> "1500"^^<http://www.w3.org/2001/XMLSchema#integer> .
14-
<http://example.org/person/789> <http://example.org/hasName> "tobias" .
15-
<http://example.org/person/789> <http://example.org/hasBirthyear> "2005"^^<http://www.w3.org/2001/XMLSchema#gYear> .
11+
<http://example.org/people/456> <http://example.org/hasItem> <http://example.org/item_1_0> .
12+
<http://example.org/item_1_0> <http://example.org/hasType> "flower" .
13+
<http://example.org/item_1_0> <http://example.org/hasWeight> "15"^^<http://www.w3.org/2001/XMLSchema#integer> .
14+
<http://example.org/people/789> <http://example.org/hasName> "tobias" .
15+
<http://example.org/people/789> <http://example.org/hasBirthyear> "2005"^^<http://www.w3.org/2001/XMLSchema#gYear> .

0 commit comments

Comments
 (0)