Skip to content

Commit

Permalink
add formats prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaria authored and DylanVanAssche committed Mar 5, 2024
1 parent 632c290 commit f3438ec
Show file tree
Hide file tree
Showing 27 changed files with 59 additions and 32 deletions.
3 changes: 2 additions & 1 deletion test-cases/RMLTC0000-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -9,7 +10,7 @@
WHERE {
?name a rdfs:Literal .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0001a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -10,7 +11,7 @@
WHERE {
?x foaf:name ?name .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0001b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -10,7 +11,7 @@
WHERE {
?x foaf:name ?name .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0002a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -13,7 +14,7 @@
?x foaf:name ?Name ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0002b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -12,7 +13,7 @@
?x foaf:name ?Name ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0002g-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix ex: <http://example.com/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -12,7 +13,7 @@
?x foaf:name ?Name ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0002h-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix ex: <http://example.com/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -11,7 +12,7 @@
WHERE {
?x foaf:name ?Name ;
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0003c-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -13,7 +14,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
5 changes: 3 additions & 2 deletions test-cases/RMLTC0004a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -14,7 +15,7 @@ ex:TriplesMap1 a rml:TriplesMap;
?x a <http://example.com/Student> ;
foaf:name ?Student .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base#InputSPARQL>
Expand Down Expand Up @@ -43,7 +44,7 @@ ex:TriplesMap2 a rml:TriplesMap;
<http://example.com/plays> ?sportObject .
?sportObject foaf:name ?Sport .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base#InputSPARQL>
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0004b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -13,7 +14,7 @@ ex:TriplesMap1 a rml:TriplesMap;
WHERE {
?x foaf:name ?Name .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base#InputSPARQL>
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0006a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix ex: <http://example.com/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -12,7 +13,7 @@ ex:TriplesMap1 a rml:TriplesMap;
WHERE {
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base#InputSPARQL>
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
Expand All @@ -14,7 +15,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
Expand All @@ -15,7 +16,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007c-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -14,7 +15,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007d-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
Expand All @@ -15,7 +16,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007e-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -14,7 +15,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:subjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007f-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
Expand All @@ -15,7 +16,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007g-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -13,7 +14,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007h-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -13,7 +14,7 @@
foaf:lastName ?LastName ;
rdf:ID ?ID .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0008a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
Expand All @@ -16,7 +17,7 @@
<http://example.com/plays> ?sportObject .
?sportObject foaf:name ?Sport .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source <http://example.com/base#InputSPARQL>
];
rml:predicateObjectMap [
Expand Down
5 changes: 3 additions & 2 deletions test-cases/RMLTC0008b-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@prefix activity: <http://example.com/activity/> .
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
Expand All @@ -16,7 +17,7 @@ ex:TriplesMap1 a rml:TriplesMap;
?x foaf:name ?Name ;
rdf:ID ?ID ;
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base#InputSPARQL>
Expand Down Expand Up @@ -57,7 +58,7 @@ ex:TriplesMap2 a rml:TriplesMap;
?x a <http://example.com/Sport> .
?x foaf:name ?Sport .
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base#InputSPARQL>
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0008c-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@prefix ex: <http://example.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

Expand All @@ -14,7 +15,7 @@
?x foaf:name ?Name ;
rdf:ID ?ID ;
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base/#InputSPARQL>
Expand Down
5 changes: 3 additions & 2 deletions test-cases/RMLTC0009a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
Expand All @@ -17,7 +18,7 @@
OPTIONAL { ?sportObject a <http://example.com/Sport> ;
rdf:ID ?Sport . }
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base/#InputSPARQL1>
Expand Down Expand Up @@ -61,7 +62,7 @@
?x foaf:name ?Name ;
rdf:ID ?ID ;
} """;
rml:referenceFormulation <https://www.w3.org/ns/formats/SPARQL_Results_JSON>;
rml:referenceFormulation formats:SPARQL_Results_JSON;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path <http://example.com/base/#InputSPARQL2>
Expand Down
Loading

0 comments on commit f3438ec

Please sign in to comment.