From 6cd1db58bdec3d961c5f3786728383c6bc3ba90b Mon Sep 17 00:00:00 2001 From: Ben De Meester Date: Tue, 26 Mar 2024 15:49:04 +0100 Subject: [PATCH] fix 0005 --- test-cases/RMLFNOTC0005b-CSV/mapping.ttl | 37 ++++++++++++++++++++++++ test-cases/RMLFNOTC0005b-CSV/output.nq | 1 + test-cases/RMLFNOTC0005b-CSV/student.csv | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 test-cases/RMLFNOTC0005b-CSV/mapping.ttl create mode 100644 test-cases/RMLFNOTC0005b-CSV/output.nq create mode 100644 test-cases/RMLFNOTC0005b-CSV/student.csv diff --git a/test-cases/RMLFNOTC0005b-CSV/mapping.ttl b/test-cases/RMLFNOTC0005b-CSV/mapping.ttl new file mode 100644 index 0000000..d555b3d --- /dev/null +++ b/test-cases/RMLFNOTC0005b-CSV/mapping.ttl @@ -0,0 +1,37 @@ +@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:functionExecution <#Execution> ; + ]; + rml:predicateObjectMap [ + rml:predicate foaf:name; + rml:objectMap [ rml:reference "Name"] + ] . + +<#Execution> + rml:function fns:schema ; + rml:input + [ + rml:parameter fns:stringParameter ; + rml:inputValueMap [ + rml:reference "Name" + ]; + ] . diff --git a/test-cases/RMLFNOTC0005b-CSV/output.nq b/test-cases/RMLFNOTC0005b-CSV/output.nq new file mode 100644 index 0000000..e52c6cd --- /dev/null +++ b/test-cases/RMLFNOTC0005b-CSV/output.nq @@ -0,0 +1 @@ + "Venus" . diff --git a/test-cases/RMLFNOTC0005b-CSV/student.csv b/test-cases/RMLFNOTC0005b-CSV/student.csv new file mode 100644 index 0000000..c33048c --- /dev/null +++ b/test-cases/RMLFNOTC0005b-CSV/student.csv @@ -0,0 +1,2 @@ +Id,Name,url +1,Venus,www.example.com