Skip to content

Commit

Permalink
test-cases: RMLTC0024*-CSV: add invalid template test cases
Browse files Browse the repository at this point in the history
Contributes to #79
  • Loading branch information
DylanVanAssche committed Jul 9, 2024
1 parent 4fbd135 commit d580402
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test-cases/RMLTC0024a-CSV/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rml: <http://w3id.org/rml/> .

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:referenceFormulation rml:CSV;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path "student.csv"
]
];
rml:subjectMap [
rml:template "http://example.com/{NON_EXISTING_COLUMN}"
rml:class foaf:Person;
] .
2 changes: 2 additions & 0 deletions test-cases/RMLTC0024a-CSV/student.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Name
Venus
15 changes: 15 additions & 0 deletions test-cases/RMLTC0024b-CSV/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rml: <http://w3id.org/rml/> .

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:referenceFormulation rml:CSV;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path "student.csv"
]
];
rml:subjectMap [
rml:template "http://example.com/{{Name}}"
rml:class foaf:Person;
] .
2 changes: 2 additions & 0 deletions test-cases/RMLTC0024b-CSV/student.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{Name}
Venus
15 changes: 15 additions & 0 deletions test-cases/RMLTC0024c-CSV/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rml: <http://w3id.org/rml/> .

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:referenceFormulation rml:CSV;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path "student.csv"
]
];
rml:subjectMap [
rml:template "http://example.com/{N\ame}"
rml:class foaf:Person;
] .
2 changes: 2 additions & 0 deletions test-cases/RMLTC0024c-CSV/student.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
N\ame
Venus
15 changes: 15 additions & 0 deletions test-cases/RMLTC0024d-CSV/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rml: <http://w3id.org/rml/> .

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:referenceFormulation rml:CSV;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path "student.csv"
]
];
rml:subjectMap [
rml:template "http://example.com/{NON_EXISTING_COLUMN\}"
rml:class foaf:Person;
] .
2 changes: 2 additions & 0 deletions test-cases/RMLTC0024d-CSV/student.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Name
Venus

0 comments on commit d580402

Please sign in to comment.