Skip to content

Commit

Permalink
Merge branch 'fix/test-cases' into 'development'
Browse files Browse the repository at this point in the history
sync with rml-test-cases without breaking

See merge request rml/proc/rmlmapper-java!98
  • Loading branch information
pheyvaer committed Jul 3, 2020
2 parents e176714 + ab9d322 commit 5b1076d
Show file tree
Hide file tree
Showing 68 changed files with 133 additions and 66 deletions.
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0000-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://www.example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://www.example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://www.example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0002a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -44,4 +45,4 @@
rr:predicateObjectMap [
rr:predicate foaf:name ;
rr:objectMap [ rml:reference "Name.value" ]
].
].
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0002b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -39,4 +40,4 @@
rr:predicateObjectMap [
rr:predicate foaf:name;
rr:objectMap [ rml:reference "Name.value" ]
].
].
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
rr:predicateObjectMap [
rr:predicate ex:id ;
rr:objectMap [ rml:reference "IDs" ]
].
].
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
rr:predicateObjectMap [
rr:predicate ex:id ;
rr:objectMap [ rml:reference "IDs" ]
].
].
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0003c-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -42,4 +43,4 @@
rr:template "{FirstName.value} {LastName.value}";
rr:termType rr:Literal;
]
].
].
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
rr:predicateObjectMap [
rr:predicateMap [ rr:constant ex:description ];
rr:objectMap [ rr:constant "Bad Student"; ]
].
].
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0007a-JSON/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1> a rr:TriplesMap;
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0007a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down
4 changes: 3 additions & 1 deletion src/test/resources/test-cases/RMLTC0007b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -45,4 +47,4 @@
rr:predicateObjectMap [
rr:predicate foaf:name;
rr:objectMap [ rml:reference "FirstName.value" ]
].
].
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0007b-XML/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1> a rr:TriplesMap;
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0007c-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -40,4 +41,4 @@
rr:predicateObjectMap [
rr:predicate foaf:name;
rr:objectMap [ rml:reference "FirstName.value" ]
].
].
5 changes: 3 additions & 2 deletions src/test/resources/test-cases/RMLTC0007d-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -50,4 +51,4 @@
rr:predicateObjectMap [
rr:predicate foaf:name;
rr:objectMap [ rml:reference "FirstName.value" ]
].
].
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0007e-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -36,4 +37,4 @@
rr:template "http://example.com/Student/{ID.value}/{FirstName.value}";
rr:graph ex:PersonGraph ;
rr:class foaf:Person
].
].
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0007f-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0007g-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -42,4 +43,4 @@
rr:objectMap [
rml:reference "FirstName.value"
]
].
].
3 changes: 2 additions & 1 deletion src/test/resources/test-cases/RMLTC0007h-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -42,4 +43,4 @@
rr:objectMap [
rml:reference "Name.value"
]
].
].
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0008a-JSON/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1>
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0008a-MySQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

Expand Down
4 changes: 3 additions & 1 deletion src/test/resources/test-cases/RMLTC0008a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -56,4 +58,4 @@
rr:predicateObjectMap [
rr:predicate ex:Sport ;
rr:objectMap [ rml:reference "Sport.value" ]
] .
] .
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0008a-XML/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1>
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0008b-CSV/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap2>
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0008b-JSON/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap2>
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0008b-MySQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

Expand Down
4 changes: 3 additions & 1 deletion src/test/resources/test-cases/RMLTC0008b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
@prefix activity: <http://example.com/activity/> .
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -85,4 +87,4 @@

<RefObjectMap1>
a rr:RefObjectMap;
rr:parentTriplesMap <TriplesMap2> .
rr:parentTriplesMap <TriplesMap2> .
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

Expand Down
17 changes: 9 additions & 8 deletions src/test/resources/test-cases/RMLTC0008c-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

<#InputSPARQL>
a sd:Service ;
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0009a-CSV/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://example.com/base/> .

<TriplesMap1>
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0009a-JSON/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://example.com/base/> .

<TriplesMap1>
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/test-cases/RMLTC0009a-MySQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

Expand Down
Loading

0 comments on commit 5b1076d

Please sign in to comment.