Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non valid turtle from Function #43

Open
mnieuwland opened this issue Apr 13, 2022 · 0 comments
Open

Non valid turtle from Function #43

mnieuwland opened this issue Apr 13, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mnieuwland
Copy link

Given the following configuration in the Function tab:

FunctionID Feature Value
<Divide> fno:executes ex:function
<Divide> zin:p_dec_a {omvang}
<Divide> zin:p_dec_b 36

The following RML file is generated:

<#Divide>
    a rr:TriplesMap;
    a fnml:FunctionTermMap;
    rr:termType rr:IRI;

    fnml:functionValue [
        rml:logicalSource [
            rml:source "source.csv";
            rml:referenceFormulation ql:CSV;
        ];
        rr:predicateObjectMap [
            rr:predicate fno:executes ;
            rr:objectMap rr:constant ex:function
        ];
        rr:predicateObjectMap [
            rr:predicate zin:p_dec_a ;
            rr:objectMap rml:reference [ "omvang" ]
        ];
        rr:predicateObjectMap [
            rr:predicate zin:p_dec_b ;
            rr:objectMap rr:constant [ "36" ]
        ];
    ]
.

I believe this should be:

<#Divide>
    a rr:TriplesMap;
    a fnml:FunctionTermMap;
    rr:termType rr:IRI;

    fnml:functionValue [
        rml:logicalSource [
            rml:source "source.csv";
            rml:referenceFormulation ql:CSV;
        ];
        rr:predicateObjectMap [
            rr:predicate fno:executes ;
            rr:objectMap [ rr:constant ex:function ]
        ];
        rr:predicateObjectMap [
            rr:predicate zin:p_dec_a ;
            rr:objectMap [ rml:reference "omvang" ]
        ];
        rr:predicateObjectMap [
            rr:predicate zin:p_dec_b ;
            rr:objectMap [ rr:constant "36" ]
        ];
    ]
.

Notice the difference in the use of brackets in lines following rr:objectMap (three times, line numbers 13, 17 and 21)

@dachafra dachafra added the bug Something isn't working label Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants