RMLio / rmlmapper-java

The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources
http://rml.io
MIT License
144 stars 61 forks source link

Generating and IRI from an email address #216

Closed psiotwo closed 10 months ago

psiotwo commented 10 months ago

I need to turn a value like 'a@example.com' into an IRI <a@example.com>:

But I need <a@example.com>.

Is it possible? If yes, how? Thanks a lot.

DylanVanAssche commented 10 months ago

The IRI must be a valid one, yours:

<a@example.com>

Is not really a valid one. If the IRI is not an absolute one, the [R2]RML specification [1] specifies that the base IRI of the mapping should be used to get an absolute IRI. This is what you see here.

<mailto:a@example.com>

This should be a valid absolute IRI, thus the base IRI is not put in front then.

[1] https://www.w3.org/TR/r2rml/