nkons / r2rml-parser

R2RML Parser is an award-winning tool that can export relational database contents as RDF graphs, based on an R2RML mapping document.
Apache License 2.0
68 stars 21 forks source link

IRI as object #19

Open charta77 opened 8 years ago

charta77 commented 8 years ago

Hi, in our project we have mapping rule rr:predicateObjectMap [ rr:predicate jup:seeAlso; rr:objectMap [ rr:column "web_url" ; rr:termType rr:IRI; ]; ];

so we expect something like this [] jup:seeAlso http://www.another-example.org .

but the parser generates this :( [] jup:seeAlso http://lod.mapybezbarier.cz/resource/http%3A%2F%2Fwww.another-example.org .

Can anybody help me please?

Thank you

Petr

nkons commented 8 years ago

Hi Petr,

Thanks for bringing this up. I added one more property, default.forceURI in r2rml.properties that configures the tool to treat objects as URIs (even if they are explicitly declared as Literals).

See latest commit (960b099) and please let me know if this solves this issue.

Best, Nikolaos

charta77 commented 8 years ago

Hi, property default.forceURI in r2rml.properties works if there is a rr:template, not a rr:column. In our case: rr:predicateObjectMap [ rr:predicate jup:seeAlso; rr:objectMap [ rr:template "{web_url}" ; ]; ];

Thank you very much Nikos! Petr