Skip to content

Commit aa251ff

Browse files
test-cases: re-generate manifest and HTML view
1 parent f82e7a3 commit aa251ff

File tree

8 files changed

+362
-180
lines changed

8 files changed

+362
-180
lines changed

test-cases/RMLTC0027d-JSON/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## RMLTC0027d-JSON
22

3-
**Title**: "Two triples maps,both with rml:bseIRI defined overwritten by baseIRI parameter"
3+
**Title**: "Two triples maps,both with rml:bseIRI defined and baseIRI parameter defined"
44

55
**Description**: "Tests the generation of triples by with base IRIs different than the base IRI parameter"
66

test-cases/RMLTC0029a-JSON/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## RMLTC0029a-JSON
2+
3+
**Title**: "Generation of the right datatype for a constant in the mapping"
4+
5+
**Description**: "Test the honoring of the datatype specified by the constant term in the mapping"
6+
7+
**Error expected?** No
8+
9+
**Input**
10+
```
11+
[ { "id": "0", "foo": "bar" } ]
12+
13+
```
14+
15+
**Mapping**
16+
```
17+
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
18+
@prefix rr: <http://www.w3.org/ns/r2rml#> .
19+
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
20+
21+
[
22+
a rr:TriplesMap;
23+
rml:logicalSource [
24+
rml:source "data.json" ;
25+
rml:referenceFormulation ql:JSONPath ;
26+
rml:iterator "$[*]";
27+
];
28+
rr:subjectMap [
29+
rr:template "https://example.org/instances/{id}";
30+
];
31+
rr:predicateObjectMap [
32+
rr:predicate <http://example.org/ns/p> ;
33+
rr:object true ; # datatype is boolean
34+
];
35+
] .
36+
37+
```
38+
39+
**Output**
40+
```
41+
<https://example.org/instances/0> <http://example.org/ns/p> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
42+
43+
```
44+

test-cases/RMLTC0029b-JSON/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## RMLTC0029b-JSON
2+
3+
**Title**: "Generation of all named graphs when rml:defaultGraph is involved"
4+
5+
**Description**: "Test if the default graph is also generated correctly."
6+
7+
**Error expected?** No
8+
9+
**Input**
10+
```
11+
[ { "id": "0", "name": "Alice" } ]
12+
13+
```
14+
15+
**Mapping**
16+
```
17+
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
18+
@prefix rr: <http://www.w3.org/ns/r2rml#> .
19+
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
20+
@prefix s: <http://schema.org/> .
21+
22+
[
23+
a rr:TriplesMap;
24+
rml:logicalSource [
25+
rml:source "data.json" ;
26+
rml:referenceFormulation ql:JSONPath ;
27+
rml:iterator "$[*]";
28+
];
29+
rr:subjectMap [
30+
rr:template "https://example.org/instances/{id}";
31+
rr:class s:Person ;
32+
rr:graph <graph:1> ;
33+
];
34+
rr:predicateObjectMap [
35+
rr:predicate s:givenName ;
36+
rr:objectMap [ rml:reference "name" ] ;
37+
rr:graph rr:defaultGraph ;
38+
];
39+
] .
40+
41+
```
42+
43+
**Output**
44+
```
45+
<https://example.org/instances/0> <http://schema.org/givenName> "Alice".
46+
<https://example.org/instances/0> <http://schema.org/givenName> "Alice" <graph:1> .
47+
<https://example.org/instances/0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> <graph:1> .
48+
49+
```
50+

test-cases/RMLTC0029c-JSON/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## RMLTC0029c-JSON
2+
3+
**Title**: "Generation of the right language tag for a constant in the mapping"
4+
5+
**Description**: "Test the honoring of the language tag specified by the constant term in the mapping"
6+
7+
**Error expected?** No
8+
9+
**Input**
10+
```
11+
[ { "id": "0", "foo": "bar" } ]
12+
13+
```
14+
15+
**Mapping**
16+
```
17+
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
18+
@prefix rr: <http://www.w3.org/ns/r2rml#> .
19+
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
20+
21+
[
22+
a rr:TriplesMap;
23+
rml:logicalSource [
24+
rml:source "data.json" ;
25+
rml:referenceFormulation ql:JSONPath ;
26+
rml:iterator "$[*]";
27+
];
28+
rr:subjectMap [
29+
rr:template "https://example.org/instances/{id}";
30+
];
31+
rr:predicateObjectMap [
32+
rr:predicate <http://example.org/ns/p> ;
33+
rr:object "train"@en ;
34+
];
35+
] .
36+
37+
```
38+
39+
**Output**
40+
```
41+
<https://example.org/instances/0> <http://example.org/ns/p> "train"@en .
42+
43+
```
44+

test-cases/descriptions.csv

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ RMLTC0002b-PostgreSQL,"Two columns mapping, generation of a BlankNode subject by
4040
RMLTC0002b-SQLServer,"Two columns mapping, generation of a BlankNode subject by using rml:template and rml:termType","Tests: (1) two column mapping, no primary key; (2) generation of a BlankNode subject by using rml:template; (3) one column to one property",no,,,,,,
4141
RMLTC0002b-SPARQL,"Two tripples maping, generation of a BlankNode subject by using rml:template and rml:termType","Tests: (1) two tripple mapping, no primary key; (2) generation of a BlankNode subject by using rml:template; (3) one triple to one property",no,,,,,,
4242
RMLTC0002c-CSV,"Two columns mapping, an undefined SQL identifier / logical reference",Tests the presence of an undefined SQL identifier / logical reference,yes,,,,,,
43-
RMLTC0002c-JSON,"Two columns mapping, an undefined SQL identifier / logical reference",Tests the presence of an undefined SQL identifier / logical reference,yes,,,,,,
4443
RMLTC0002c-XML,"Two columns mapping, an undefined SQL identifier / logical reference",Tests the presence of an undefined SQL identifier / logical reference,yes,,,,,,
4544
RMLTC0002c-MySQL,"Two columns mapping, an undefined SQL identifier / logical reference",Tests the presence of an undefined SQL identifier / logical reference,yes,,,,,,
4645
RMLTC0002c-PostgreSQL,"Two columns mapping, an undefined SQL identifier / logical reference",Tests the presence of an undefined SQL identifier / logical reference,yes,,,,,,
@@ -344,7 +343,6 @@ RMLTC0012d-SQLServer,TriplesMap with two subjectMap,"Tests a RML with wrong info
344343
RMLTC0012e-MySQL,Default mapping,Tests the generation of a default mapping for tables without a primary key.,no,,,,,,
345344
RMLTC0012e-PostgreSQL,Default mapping,Tests the generation of a default mapping for tables without a primary key.,no,,,,,,
346345
RMLTC0012e-SQLServer,Default mapping,Tests the generation of a default mapping for tables without a primary key.,no,,,,,,
347-
RMLTC0013a-JSON,Null value in JSON file,Tests if null values in JSON files are handled correctly.,no,,,,,,
348346
RMLTC0013a-MySQL,Generation of empty triples from referenced columns that have null values,Tests the generation of empty triples from referenced columns that have null values,no,,,,,,
349347
RMLTC0013a-PostgreSQL,Generation of empty triples from referenced columns that have null values,Tests the generation of empty triples from referenced columns that have null values,no,,,,,,
350348
RMLTC0013a-SQLServer,Generation of empty triples from referenced columns that have null values,Tests the generation of empty triples from referenced columns that have null values,no,,,,,,
@@ -355,13 +353,11 @@ RMLTC0014d-MySQL,"three tables, one primary key, one foreign key",Test the trans
355353
RMLTC0014d-PostgreSQL,"three tables, one primary key, one foreign key",Test the translation of database type codes to IRIs,no,,,,,,
356354
RMLTC0014d-SQLServer,"three tables, one primary key, one foreign key",Test the translation of database type codes to IRIs,no,,,,,,
357355
RMLTC0015a-CSV,Generation of language tags from a table with language information,Generation of language tags from a table with language information,no,,,,,,
358-
RMLTC0015a-JSON,Generation of language tags from a table with language information,Generation of language tags from a table with language information,no,,,,,,
359356
RMLTC0015a-XML,Generation of language tags from a table with language information,Generation of language tags from a table with language information,no,,,,,,
360357
RMLTC0015a-MySQL,Generation of language tags from a table with language information,Generation of language tags from a table with language information,no,,,,,,
361358
RMLTC0015a-PostgreSQL,Generation of language tags from a table with language information,Generation of language tags from a table with language information,no,,,,,,
362359
RMLTC0015a-SQLServer,Generation of language tags from a table with language information,Generation of language tags from a table with language information,no,,,,,,
363360
RMLTC0015b-CSV,"Generation of language tags from a table with language information, and a term map with invalid rml:language value","Tests a term map with an invalid rml:language value, which is an error",yes,,,,,,
364-
RMLTC0015b-JSON,"Generation of language tags from a table with language information, and a term map with invalid rml:language value","Tests a term map with an invalid rml:language value, which is an error",yes,,,,,,
365361
RMLTC0015b-XML,"Generation of language tags from a table with language information, and a term map with invalid rml:language value","Tests a term map with an invalid rml:language value, which is an error",yes,,,,,,
366362
RMLTC0015b-MySQL,"Generation of language tags from a table with language information, and a term map with invalid rml:language value","Tests a term map with an invalid rml:language value, which is an error",yes,,,,,,
367363
RMLTC0015b-PostgreSQL,"Generation of language tags from a table with language information, and a term map with invalid rml:language value","Tests a term map with an invalid rml:language value, which is an error",yes,,,,,,
@@ -385,31 +381,26 @@ RMLTC0018a-MySQL,Generation of triples by using CHAR datatype column,"Generation
385381
RMLTC0018a-PostgreSQL,Generation of triples by using CHAR datatype column,"Generation of triples by using CHAR datatype column, resulting RDF literal is space-padded.",no,,,,,,
386382
RMLTC0018a-SQLServer,Generation of triples by using CHAR datatype column,"Generation of triples by using CHAR datatype column, resulting RDF literal is space-padded.",no,,,,,,
387383
RMLTC0019a-CSV,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
388-
RMLTC0019a-JSON,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in attributes,no,,,,,,
389384
RMLTC0019a-XML,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in elements,no,,,,,,
390385
RMLTC0019a-MySQL,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
391386
RMLTC0019a-PostgreSQL,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
392387
RMLTC0019a-SQLServer,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
393388
RMLTC0019b-CSV,"Generation of triples by using IRI value in columns, with data error","Test the generation of triples by using IRI value in columns, conforming RML mapping with data error (and limited results)",no,,,,,,
394-
RMLTC0019b-JSON,"Generation of triples by using IRI value in columns, with data error","Test the generation of triples by using IRI value in attributes, conforming RML mapping with data error (and limited results)",no,,,,,,
395389
RMLTC0019b-XML,"Generation of triples by using IRI value in columns, with data error","Test the generation of triples by using IRI value in elements, conforming RML mapping with data error (and limited results)",no,,,,,,
396390
RMLTC0019b-MySQL,"Generation of triples by using IRI value in columns, with data error","Test the generation of triples by using IRI value in columns, conforming RML mapping with data error (and limited results)",no,,,,,,
397391
RMLTC0019b-PostgreSQL,"Generation of triples by using IRI value in columns, with data error","Test the generation of triples by using IRI value in columns, conforming RML mapping with data error (and limited results)",no,,,,,,
398392
RMLTC0019b-SQLServer,"Generation of triples by using IRI value in columns, with data error","Test the generation of triples by using IRI value in columns, conforming RML mapping with data error (and limited results)",no,,,,,,
399393
RMLTC0020a-CSV,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
400-
RMLTC0020a-JSON,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in attributes,no,,,,,,
401394
RMLTC0020a-XML,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in elements,no,,,,,,
402395
RMLTC0020a-MySQL,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
403396
RMLTC0020a-PostgreSQL,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
404397
RMLTC0020a-SQLServer,Generation of triples by using IRI value in columns,Test the generation of triples by using IRI value in columns,no,,,,,,
405398
RMLTC0020b-CSV,"Generation of triples by using IRI value in columns, with data errors","Test the generation of triples by using IRI value in columns, conforming R2RML mapping with data error (and no result)",no,,,,,,
406-
RMLTC0020b-JSON,"Generation of triples by using IRI value in columns, with data errors","Test the generation of triples by using IRI value in columns, conforming R2RML mapping with data error (and no result)",no,,,,,,
407399
RMLTC0020b-XML,"Generation of triples by using IRI value in columns, with data errors","Test the generation of triples by using IRI value in columns, conforming R2RML mapping with data error (and no result)",no,,,,,,
408400
RMLTC0020b-MySQL,"Generation of triples by using IRI value in columns, with data errors","Test the generation of triples by using IRI value in columns, conforming R2RML mapping with data error (and no result)",no,,,,,,
409401
RMLTC0020b-PostgreSQL,"Generation of triples by using IRI value in columns, with data errors","Test the generation of triples by using IRI value in columns, conforming R2RML mapping with data error (and no result)",no,,,,,,
410402
RMLTC0020b-SQLServer,"Generation of triples by using IRI value in columns, with data errors","Test the generation of triples by using IRI value in columns, conforming R2RML mapping with data error (and no result)",no,,,,,,
411403
RMLTC0021a-CSV,Generation of triples referencing object map,Tests the mapping specification referencing object map with same logical source and join condition,no,,,,,,
412-
RMLTC0021a-JSON,Generation of triples referencing object map,Tests the mapping specification referencing object map with same logical source and join condition,no,,,,,,
413404
RMLTC0021a-XML,Generation of triples referencing object map,Tests the mapping specification referencing object map with same logical source and join condition,no,,,,,,
414405
RMLTC0021a-MySQL,Generation of triples referencing object map,Tests the mapping specification referencing object map with same logical source and join condition,no,,,,,,
415406
RMLTC0021a-PostgreSQL,Generation of triples referencing object map,Tests the mapping specification referencing object map with same logical source and join condition,no,,,,,,
@@ -428,10 +419,14 @@ RMLTC0023f-JSON,Invalid IRI template 6,Test handling of invalid IRI template,yes
428419
RMLTC0025a-JSON,Generation of triples with constant blank node ,Tests the generation of triples with a constant blank node,no,,,,,,
429420
RMLTC0025b-JSON,Usage of constant term maps in combination with explicitly defined term types,Tests the usage of constant term maps in combination with explicitly defined term types,yes,,,,,,
430421
RMLTC0026a-JSON,Generation of triples from arrays,Tests the generation of triples from array input data structures,no,,,,,,
422+
RMLTC0026b-JSON,Generation of triples from arrays with wrong reference,Tests the generation of triples from array input data structures. Test should fail as reference points to the array and not the values of the array,yes,,,,,,
431423
RMLTC0027a-JSON,"Two triples maps, one with rml:baseIRI and one without and generating absolute IRIs",Tests the generation of triples from relative IRIs using base IRI,no,,,,,,
432424
RMLTC0027b-JSON,"Two triples maps, one with rml:baseIRI one one without and generating relative IRIs using baseIRI parameter",Tests the generation of triples from relative IRI using base IRI parameter,no,,,,,,
433425
RMLTC0027c-JSON,"Two triples maps, both with rml:baseIRI defined","Tests the generation of triples using relative IRIs with base IRIs defined only in triples maps, without base IRI parameter",no,,,,,,
434-
RMLTC0027d-JSON,"Two triples maps,both with rml:bseIRI defined overwritten by baseIRI parameter",Tests the generation of triples by with base IRIs different than the base IRI parameter,no,,,,,,
426+
RMLTC0027d-JSON,"Two triples maps,both with rml:bseIRI defined and baseIRI parameter defined",Tests the generation of triples by with base IRIs different than the base IRI parameter,no,,,,,,
435427
RMLTC0028a-JSON,Generation of triples using the URI term type,Tests the generation of triples with a URI term type in the subject or object,no,,,,,,
436428
RMLTC0028b-JSON,Generation of triples using the UnsafeURI term type,Tests the generation of triples with a UnsafeURI term type in the subject or object,no,,,,,,
437-
RMLTC0028c-JSON,Generation of triples using the UnsafeIRI term type,Tests the generation of triples with a UnsafeIRI term type in the subject or object,no,,,,,,
429+
RMLTC0028c-JSON,Generation of triples using the UnsafeIRI term type,Tests the generation of triples with a UnsafeIRI term type in the subject or object,no,,,,,,
430+
RMLTC0029a-JSON,Generation of the right datatype for a constant in the mapping,Test the honoring of the datatype specified by the constant term in the mapping,no,,,,,,
431+
RMLTC0029b-JSON,Generation of all named graphs when rml:defaultGraph is involved,Test if the default graph is also generated correctly.,no,,,,,,
432+
RMLTC0029c-JSON,Generation of the right language tag for a constant in the mapping,Test the honoring of the language tag specified by the constant term in the mapping,no,,,,,,

test-cases/dev.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@
146146
<section id="RMLTC0025a-JSON" data-include="RMLTC0025a-JSON/README.md" data-include-format=markdown></section>
147147
<section id="RMLTC0025b-JSON" data-include="RMLTC0025b-JSON/README.md" data-include-format=markdown></section>
148148
<section id="RMLTC0026a-JSON" data-include="RMLTC0026a-JSON/README.md" data-include-format=markdown></section>
149+
<section id="RMLTC0027a-JSON" data-include="RMLTC0027a-JSON/README.md" data-include-format=markdown></section>
150+
<section id="RMLTC0027b-JSON" data-include="RMLTC0027b-JSON/README.md" data-include-format=markdown></section>
151+
<section id="RMLTC0027c-JSON" data-include="RMLTC0027c-JSON/README.md" data-include-format=markdown></section>
152+
<section id="RMLTC0027d-JSON" data-include="RMLTC0027d-JSON/README.md" data-include-format=markdown></section>
153+
<section id="RMLTC0028a-JSON" data-include="RMLTC0028a-JSON/README.md" data-include-format=markdown></section>
154+
<section id="RMLTC0028b-JSON" data-include="RMLTC0028b-JSON/README.md" data-include-format=markdown></section>
155+
<section id="RMLTC0028c-JSON" data-include="RMLTC0028c-JSON/README.md" data-include-format=markdown></section>
156+
<section id="RMLTC0029a-JSON" data-include="RMLTC0029a-JSON/README.md" data-include-format=markdown></section>
157+
<section id="RMLTC0029b-JSON" data-include="RMLTC0029b-JSON/README.md" data-include-format=markdown></section>
158+
<section id="RMLTC0029c-JSON" data-include="RMLTC0029c-JSON/README.md" data-include-format=markdown></section>
149159

150160
</body>
151161

0 commit comments

Comments
 (0)