diff --git a/test-cases/README.md b/test-cases/README.md index b7da408..982b909 100644 --- a/test-cases/README.md +++ b/test-cases/README.md @@ -46,6 +46,8 @@ Some test cases are under discussion, proposed alternatives are noted via a suff | 0004b | Function on predicate, 1 parameter (replaces 0004) | Tests if a function can be used on a predicate | CSV | FALSE | student.csv | | 0005 | Function on subject, 1 parameter | Tests if a function can be used on a subject | CSV | FALSE | student.csv | | 0005 | Function on subject, default termType | Tests if the default termType assigned to the output of the function to be correct | | | | +| 0005b | Function on subject, default termType (replaces 0005) | Tests if the default termType assigned to the output of the function to be correct | | | | | 0006 | Function on object, the output termType is IRI | Tests if the output of the function is assigned the correct termType | | | | +| 0006b | Function on object, the output termType is IRI (replaces 0006) | Tests if the output of the function is assigned the correct termType | | | | | 0008 | Function on object, 1 template parameter | Tests if a function with a template parameter can be used | CSV | FALSE | student.csv | | 0009 | Nested function - Test A | Tests if a composite function of form f(g(x1),x2) works (i.e., the inner function is only one argument of the outer function) | CSV | FALSE | student.csv | \ No newline at end of file diff --git a/test-cases/RMLFNOTC0006b-CSV/mapping.ttl b/test-cases/RMLFNOTC0006b-CSV/mapping.ttl new file mode 100644 index 0000000..e599e66 --- /dev/null +++ b/test-cases/RMLFNOTC0006b-CSV/mapping.ttl @@ -0,0 +1,40 @@ +@prefix foaf: . +@prefix ex: . +@prefix xsd: . +@prefix rml: . +@prefix fno: . +@prefix fns: . +@prefix morph-kgc: . +@prefix grel: . +@prefix idlab-fn: . + +@base . + + + rml:logicalSource [ + rml:source [ a rml:RelativePathSource; + rml:root rml:MappingDirectory; + rml:path "student.csv" + ]; + rml:referenceFormulation rml:CSV + ]; + rml:subjectMap [ + rml:template "http://example.com/{Name}" + ]; + rml:predicateObjectMap [ + rml:predicate foaf:name; + rml:objectMap [ + rml:functionExecution <#Execution> ; + rml:termType rml:IRI + ]; + ] . + +<#Execution> + rml:function fns:schema ; + rml:input + [ + rml:parameter fns:stringParameter ; + rml:inputValueMap [ + rml:reference "Name" + ]; + ] . diff --git a/test-cases/RMLFNOTC0006b-CSV/output.nq b/test-cases/RMLFNOTC0006b-CSV/output.nq new file mode 100644 index 0000000..c8c94db --- /dev/null +++ b/test-cases/RMLFNOTC0006b-CSV/output.nq @@ -0,0 +1 @@ + . diff --git a/test-cases/RMLFNOTC0006b-CSV/student.csv b/test-cases/RMLFNOTC0006b-CSV/student.csv new file mode 100644 index 0000000..5c20b3c --- /dev/null +++ b/test-cases/RMLFNOTC0006b-CSV/student.csv @@ -0,0 +1,2 @@ +Id,Name,Comment,Class,url +1,Venus,A&B,A,http://example.com/venus