Add Base IRI to objects with relative IRIs#45
Add Base IRI to objects with relative IRIs#45marioscrock wants to merge 1 commit intoRMLio:masterfrom marioscrock:master
Conversation
|
@marioscrock thank you for your remark. I will let one of the other guys look into the implementation but I will just add a clarification following your comment: There are actually multiple ways of generating an IRI in RML and we need to make sure that the base IRI is properly handled in all cases. I think the table in this chapter: http://ebooks.iospress.nl/volumearticle/56006 has a very detailed table with all possible cases. |
|
Hi @marioscrock Apologies for the long response time! When generating an absolute IRI from a relative one, a string concat is used, but this may not always be correct as As @andimou mentioned, we need to take into account all possible cases for this: Your patch only does this for objects from Object Maps, while the vanilla RMLMapper does it only for subjects of Subject Maps. In short:
Please let us know what you think :) |
|
Thank you @DylanVanAssche and @andimou for your reply and very detailed explanation. I think this pull request is associated with a quite old version of the source code, so if you prefer we can close it and maybe add an issue on this topic.
|
|
@marioscrock Indeed, we need a set of test cases first, we can discuss that and add them at https://github.com/kg-construct/rml-test-cases-support :) |



Hi everyone,
the R2RML specification says the base IRI is added to a term if the term map's term type is rr:IRI and the IRI is relative. As far as I understand, in the current version, this behavior is implemented only with respect to subjects so I modified the Executor to behave similarly also for named objects. Please let me know if the behavior described is correct and, eventually if the proposed changes can be the right way to introduce the modification. I tested it and it seems to behave as expected.