Skip to content

Commit 3bbab98

Browse files
authored
Merge pull request #260 from jduchateau/patch-2
Fix JSONPath in test case 12e, 28b
2 parents dce76b7 + 23ab9f4 commit 3bbab98

File tree

9 files changed

+3994
-83
lines changed

9 files changed

+3994
-83
lines changed

test-cases/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Manifest of test cases can be generated as followed:
55
1. Add the testcase description in `descriptions.csv` or fetch it from the Google spreadsheet.
66
2. Execute the `make-metadata.py` script: `python3 make-metadata.py http://w3id.org/rml/core/`
77
3. Generate the manifest with RMLMapper: `java -jar rmlmapper.jar -m manifest.rml.ttl -o manifest.ttl -s turtle`
8-
8+
4. Run list.sh and insert output in dev.html
9+
5. To publish the new HTML verson of the test cases, run with `python3 -m http.server`, export `dev.html` as `index.html` in ./docs and in a subfolder with the date of the publication (maybe adapt the publication date)
910

test-cases/RMLTC0012e-JSON/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
rml:predicateObjectMap [
3131
rml:predicate :firstName ;
3232
rml:objectMap [
33-
rml:reference "firstName" ;
33+
rml:reference "$.firstName" ;
3434
] ;
3535
];
3636
rml:predicateObjectMap [
3737
rml:predicate :lastName ;
3838
rml:objectMap [
39-
rml:reference "lastName" ;
39+
rml:reference "$.lastName" ;
4040
] ;
4141
] .
4242
```

test-cases/RMLTC0012e-JSON/mapping.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
rml:predicateObjectMap [
1919
rml:predicate :firstName ;
2020
rml:objectMap [
21-
rml:reference "firstName" ;
21+
rml:reference "$.firstName" ;
2222
] ;
2323
];
2424
rml:predicateObjectMap [
2525
rml:predicate :lastName ;
2626
rml:objectMap [
27-
rml:reference "lastName" ;
27+
rml:reference "$.lastName" ;
2828
] ;
2929
] .

test-cases/RMLTC0028b-JSON/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
];
3636
rml:predicateObjectMap [
3737
rml:predicate s:givenName ;
38-
rml:objectMap [ rml:reference "name" ] ;
38+
rml:objectMap [ rml:reference "$.name" ] ;
3939
rml:graph rml:defaultGraph ;
4040
].
4141

test-cases/RMLTC0028b-JSON/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
];
1818
rml:predicateObjectMap [
1919
rml:predicate s:givenName ;
20-
rml:objectMap [ rml:reference "name" ] ;
20+
rml:objectMap [ rml:reference "$.name" ] ;
2121
rml:graph rml:defaultGraph ;
2222
].

test-cases/docs/20260304/index.html

Lines changed: 3910 additions & 0 deletions
Large diffs are not rendered by default.

test-cases/docs/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html><html lang="en" dir="ltr"><head>
22
<meta charset="utf-8">
3-
<meta name="generator" content="ReSpec 35.6.1">
3+
<meta name="generator" content="ReSpec 35.8.0">
44
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
55
<style>
66
dfn{cursor:pointer}
@@ -244,17 +244,17 @@
244244
"copyrightStart": "2024",
245245
"doJsonLd": true,
246246
"group": "kg-construct",
247-
"publishISODate": "2026-01-21T00:00:00.000Z",
248-
"generatedSubtitle": "Draft Community Group Report 21 January 2026"
247+
"publishISODate": "2026-03-04T00:00:00.000Z",
248+
"generatedSubtitle": "Draft Community Group Report 04 March 2026"
249249
}</script>
250250
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2021/cg-draft"></head>
251251

252-
<body data-new-gr-c-s-check-loaded="14.1269.0" data-gr-ext-installed="" class="h-entry informative"><div class="head">
252+
<body class="h-entry informative"><div class="head">
253253

254254
<h1 id="title" class="title">RML-Core: Test Cases</h1>
255255
<p id="w3c-state">
256256
<a href="https://www.w3.org/standards/types#reports">Draft Community Group Report</a>
257-
<time class="dt-published" datetime="2026-01-21">21 January 2026</time>
257+
<time class="dt-published" datetime="2026-03-04">04 March 2026</time>
258258
</p>
259259
<dl>
260260

@@ -2213,13 +2213,13 @@ <h1 id="title" class="title">RML-Core: Test Cases</h1>
22132213
rml:predicateObjectMap [
22142214
rml:predicate :firstName ;
22152215
rml:objectMap [
2216-
rml:reference <span class="hljs-string">"firstName"</span> ;
2216+
rml:reference <span class="hljs-string">"$.firstName"</span> ;
22172217
] ;
22182218
];
22192219
rml:predicateObjectMap [
22202220
rml:predicate :lastName ;
22212221
rml:objectMap [
2222-
rml:reference <span class="hljs-string">"lastName"</span> ;
2222+
rml:reference <span class="hljs-string">"$.lastName"</span> ;
22232223
] ;
22242224
] .
22252225
</code></pre>
@@ -3540,7 +3540,7 @@ <h1 id="title" class="title">RML-Core: Test Cases</h1>
35403540
];
35413541
rml:predicateObjectMap [
35423542
rml:predicate s:givenName ;
3543-
rml:objectMap [ rml:reference <span class="hljs-string">"name"</span> ] ;
3543+
rml:objectMap [ rml:reference <span class="hljs-string">"$.name"</span> ] ;
35443544
rml:graph rml:defaultGraph ;
35453545
].
35463546
</code></pre>
@@ -3907,4 +3907,4 @@ <h1 id="title" class="title">RML-Core: Test Cases</h1>
39073907
panel.hidden = true;
39083908
panel.classList.remove("docked");
39093909
}
3910-
})()</script><script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script></body><grammarly-desktop-integration data-grammarly-shadow-root="true"></grammarly-desktop-integration></html>
3910+
})()</script><script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script></body></html>

test-cases/make-metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def main(spec: str):
2929
title = '"' + title + '"'
3030
description = '"' + description + '"'
3131
error = 'false'
32-
base_iri = 'http://example.org/'
32+
base_iri = 'http://example.com/'
3333
input1 = ''
3434
input2 = ''
3535
input3 = ''
@@ -109,7 +109,7 @@ def main(spec: str):
109109
lines.append(f'## {testcase}\n\n')
110110
lines.append(f'**Title**: {title}\n\n')
111111
lines.append(f'**Description**: {description}\n\n')
112-
lines.append(f'**Default Base IRI**: http://example.com/\n\n')
112+
lines.append(f'**Default Base IRI**: {base_iri}\n\n')
113113
if error == 'true':
114114
error_html = 'Yes'
115115
else:

0 commit comments

Comments
 (0)