Skip to content

Commit a13d83a

Browse files
authored
Merge pull request #248 from jduchateau/fix-jsonpath-rfc
Fix JSONPath in test-cases to follow RFC 9535
2 parents b253ea7 + fc8e63f commit a13d83a

File tree

16 files changed

+3896
-29
lines changed

16 files changed

+3896
-29
lines changed

test-cases/RMLTC0010a-JSON/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
rml:predicate ex:name
5050
];
5151
rml:subjectMap [
52-
rml:template "http://example.com/{$.['Country Code']}"
52+
rml:template "http://example.com/{$['Country Code']}"
5353
] .
5454
5555
```

test-cases/RMLTC0010a-JSON/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
rml:predicate ex:name
1818
];
1919
rml:subjectMap [
20-
rml:template "http://example.com/{$.['Country Code']}"
20+
rml:template "http://example.com/{$['Country Code']}"
2121
] .

test-cases/RMLTC0010b-JSON/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
rml:predicate ex:name
5050
];
5151
rml:subjectMap [
52-
rml:template "http://example.com/{$.['Country Code']}/{$.Name}"
52+
rml:template "http://example.com/{$['Country Code']}/{$.Name}"
5353
] .
5454
5555
```

test-cases/RMLTC0010b-JSON/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
rml:predicate ex:name
1818
];
1919
rml:subjectMap [
20-
rml:template "http://example.com/{$.['Country Code']}/{$.Name}"
20+
rml:template "http://example.com/{$['Country Code']}/{$.Name}"
2121
] .

test-cases/RMLTC0010c-JSON/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
rml:predicateObjectMap [
4646
rml:predicate ex:code;
4747
rml:objectMap [
48-
rml:template "\\{\\{\\{ {$.['ISO 3166']} \\}\\}\\}";
48+
rml:template "\\{\\{\\{ {$['ISO 3166']} \\}\\}\\}";
4949
rml:termType rml:Literal
5050
]
5151
];
5252
rml:subjectMap [
53-
rml:template "http://example.com/{$.['Country Code']}/{$.Name}"
53+
rml:template "http://example.com/{$['Country Code']}/{$.Name}"
5454
] .
5555
5656
```

test-cases/RMLTC0010c-JSON/mapping.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
rml:predicateObjectMap [
1414
rml:predicate ex:code;
1515
rml:objectMap [
16-
rml:template "\\{\\{\\{ {$.['ISO 3166']} \\}\\}\\}";
16+
rml:template "\\{\\{\\{ {$['ISO 3166']} \\}\\}\\}";
1717
rml:termType rml:Literal
1818
]
1919
];
2020
rml:subjectMap [
21-
rml:template "http://example.com/{$.['Country Code']}/{$.Name}"
21+
rml:template "http://example.com/{$['Country Code']}/{$.Name}"
2222
] .

test-cases/RMLTC0023f-JSON/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
]
3535
];
3636
rml:subjectMap [
37-
rml:template "http://example.com/{\\{Name\\}}";
37+
rml:template "http://example.com/{$['\\{Name\\}']}";
3838
rml:class foaf:Person;
3939
] .
4040

test-cases/RMLTC0023f-JSON/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212
];
1313
rml:subjectMap [
14-
rml:template "http://example.com/{\\{Name\\}}";
14+
rml:template "http://example.com/{$['\\{Name\\}']}";
1515
rml:class foaf:Person;
1616
] .
1717

test-cases/RMLTC0028a-JSON/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
]
2929
];
3030
rml:subjectMap [
31-
rml:template "https://example.org/instances/{id}";
31+
rml:template "https://example.org/instances/{$.id}";
3232
];
3333
rml:predicateObjectMap [
3434
rml:predicate <http://example.org/ns/p> ;

test-cases/RMLTC0028a-JSON/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
]
1111
];
1212
rml:subjectMap [
13-
rml:template "https://example.org/instances/{id}";
13+
rml:template "https://example.org/instances/{$.id}";
1414
];
1515
rml:predicateObjectMap [
1616
rml:predicate <http://example.org/ns/p> ;

0 commit comments

Comments
 (0)