Skip to content

Commit

Permalink
new test cases for issue 102
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRazorace committed Feb 12, 2025
1 parent bf53275 commit 7d24b73
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-cases/RMLSTC0010a/Friends.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,age
6,Phoebe Buffay 37
35 changes: 35 additions & 0 deletions test-cases/RMLSTC0010a/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@base <http://example.com/rules/> .

<#DCATSourceAccessJSON> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0010a/Friends.csv>;
rml:encoding rml:UTF-8;
.

<#TriplesMap2> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccessJSON>;
rml:referenceFormulation rml:CSV;
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{id}";
];
rml:predicateObjectMap [ a rml:PredicateObjectMap;
rml:predicateMap [ a rml:PredicateMap;
rml:constant foaf:name;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "name";
];
];
rml:predicateObjectMap [ a rml:PredicateObjectMap;
rml:predicateMap [ a rml:PredicateMap;
rml:constant foaf:age;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "age";
];
].
2 changes: 2 additions & 0 deletions test-cases/RMLSTC0010b/Friends.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,age
6,Phoebe Buffay 37
27 changes: 27 additions & 0 deletions test-cases/RMLSTC0010b/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@base <http://example.com/rules/> .

<#DCATSourceAccessJSON> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0010b/Friends.csv>;
rml:encoding rml:UTF-8;
.

<#TriplesMap2> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccessJSON>;
rml:referenceFormulation rml:CSV;
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{id}";
];
rml:predicateObjectMap [ a rml:PredicateObjectMap;
rml:predicateMap [ a rml:PredicateMap;
rml:constant foaf:name;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "name";
];
].

0 comments on commit 7d24b73

Please sign in to comment.