Closed jiaoxlong closed 2 years ago
This is actually a problem in the GREL functions implementation, an MR is on its way
@ghsnd provides me an ad-hoc rmlmapper jar with the merge of https://github.com/FnOio/grel-functions-java/pull/9. The no mapping error should have been solved, but now we encounter another error "14:12:19.347 [main] ERROR be.ugent.rml.cli.Main .main(392) - No suitable method 'sum' with matching parameter types found in class 'io.fno.grel.ArrayFunctions'.".
Have you tried adding rr:termType xsd:integer to the object maps?
rr:predicateObjectMap [
rr:predicate mv:totalCapacity;
rr:objectMap [
fnml:functionValue [
rr:predicateObjectMap [
rr:predicate fno:executes ;
rr:objectMap [ rr:constant grel:array_sum ; ]
];
rr:predicateObjectMap [
rr:predicate grel:p_array_a ;
rr:objectMap [ rml:reference "bikes_in_use"; rr:datatype xsd:integer ]
];
rr:predicateObjectMap [
rr:predicate grel:p_array_a ;
rr:objectMap [ rml:reference "bikes_available"; rr:datatype xsd:integer ]
];
];
] ;
].
By introducing rr:datatype xsd:integer or using the intermediate build rmlmapper-5.0.0-r366-all.jar, the error has been solved.
Let me know if you need sample input data to reproduce the error.