oeg-upm / mapeathor

Translator of spreadsheet mappings into R2RML, RML or YARRRML
https://morph.oeg.fi.upm.es/tool/mapeathor
Apache License 2.0
30 stars 10 forks source link

<prefix:property> in output #34

Closed RichDijk closed 2 years ago

RichDijk commented 2 years ago

Using Mapeathor 1.5.2 and having in the template

ID            Predicate                  Object                                  DataType
IdEmployee    vph:heeftWerkOvereenkomst  http://data#overeenkomst_{objectId}     anyURI

results in the following mapping

<#IdEmployee>
    a rr:TriplesMap;
    rml:logicalSource [
        rml:source "employees.csv";
        rml:referenceFormulation ql:CSV;
    ];
    rr:subjectMap [
        a rr:Subject;
        rr:termType rr:IRI;
        rr:template "http://data#employee_{identificationNo}";
        rr:class vph:Human;
    ];
    rr:predicateObjectMap [
        rr:predicateMap [ rr:constant "vph:heeftWerkOvereenkomst"];
        rr:objectMap    [ rr:template "http://data#overeenkomst_{objectId}"; rr:termType rr:IRI; rr:datatype xsd:anyURI ]
    ];
.

and the following triples using rmlmapper or rdfizer

<http://data#employee_10> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.purl.org/vph#Human>.
<http://data#employee_10> <vph:heeftWerkOvereenkomst> <http://data#overeenkomst_1>.
<http://data#employee_20> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.purl.org/vph#Human>.
<http://data#employee_20> <vph:heeftWerkOvereenkomst> <http://data#overeenkomst_2>.

in which <vph:heeftWerkOvereenkomst> is not correct.

anaigmo commented 2 years ago

That must be the quotes in the predicateMap, I'll let you know when it is fixed

anaigmo commented 2 years ago

Fixed in v1.5.3

RichDijk commented 2 years ago

Perfect, thank you.