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

empty columns of database table are not skipped #159

Closed
JBPressac opened this issue Apr 20, 2022 · 2 comments
Closed

empty columns of database table are not skipped #159

JBPressac opened this issue Apr 20, 2022 · 2 comments
Labels
bug Something isn't working more-information-needed

Comments

@JBPressac
Copy link

Hello,

As mentioned for CSV files in #140 (comment), RmlMapper (v5.0.0.) does not skips triples with empty values from VARCHAR type columns of database tables, resulting in triples like subject predicate "" .

Thanks,

@DylanVanAssche DylanVanAssche added the bug Something isn't working label May 11, 2022
@DylanVanAssche
Copy link
Contributor

Hi @JBPressac !

Thanks for your issue! We will have a look, did it work differently in previous versions?

@LvanWissen
Copy link

I can confirm that the latest release (v.6.1.3) does not skip empty column values. As mentioned in #140, v4.11 behaves as wanted/expected.

Example:
I have a CSV with a column with IRIs, but these are not always filled. I want them to be IRIs in my output, if they are available.

My mapping:

[
  rr:predicate <http://xmlns.com/foaf/0.1/depiction>;
  rr:objectMap [ rml:reference "Image URL"; rr:termType rr:IRI ]
]

Output in v.6.1.3:

[main] ERROR be.ugent.rml.cli.Main               .run(416) - Not a valid (absolute) IRI: null

If removing the rr:termType rr:IRI, I get an empty literal. And all the values in this column are treated here as literal.

<myurihere> <http://xmlns.com/foaf/0.1/depiction> "" .

Output in v.4.11:
No triple is created (as expected). The other (filled in) values are treated as IRIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more-information-needed
Projects
None yet
Development

No branches or pull requests

3 participants