Closed lpmeyer closed 2 years ago
@lpmeyer Thanks for your report! This shouldn't happen indeed, we will have a look at the issue.
This was supposed to be fixed in 4.14.X but the fix didn't make it into the release. Will make sure that it is fixed in the next release!
@lpmeyer I pushed some commits to the development
branch which should fix this issue.
Can you please verify your issue is fixed by building the RMLMapper from the development branch?
git checkout development
mvn install -DskipTest=true
java -jar target/rmlmapper-4.14.3-r*-all.jar -m mapping.rml.ttl
@DylanVanAssche Thanks for fixing! The output from current development version looks good as expected. I am looking forward to the next release!
@lpmeyer Great that it works! Expect a release this week somewhere ;)
Fixed in 4.15.0, closing.
RmlMapper seems to no longer skip triples with empty values from CSV input since version 4.12, resulting in triples like
subject predicate ""
. I am not sure about the rml spec, but I would expect rml to skip rdf triples for empty input as it was RmlMappers behaviour with version 4.11.This seems to be caused by a change in src/main/java/be/ugent/rml/records/CSVRecord.java of the commit https://github.com/RMLio/rmlmapper-java/commit/17c841ede06b775f29e5d165ba14dbfc38472ff0
The following patch fixed the problem for me:
example sparseInput.csv with a missing value in column 'B':
example rml:
output from rmlmapper 4.12 and 4.13, containing the line
ex:B "" .
:output as expected from rmlmapper v4.10 and v4.11: