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

add rml:UnsafeIRI and rml:UnsafeURI to ontology, shapes and spec #72

Open
bjdmeest opened this issue Oct 27, 2023 · 4 comments
Open

add rml:UnsafeIRI and rml:UnsafeURI to ontology, shapes and spec #72

bjdmeest opened this issue Oct 27, 2023 · 4 comments
Assignees
Labels
proposal issue has a proposal to be solved

Comments

@bjdmeest
Copy link
Member

bjdmeest commented Oct 27, 2023

Right now, termmaps with rml:template and termtype rml:IRI always does percent encoding and there is a note that non-encoded values can only be achieved using rml:reference and thus preprocessing is needed spec. Alternatively, a FnO string concatenation function could be used.

However, this turns out to be a very common case, e.g. creating a mailto: resource from an emailadres: you just want to be able to do rml:template "mailto:{mailadres}", but that doesn't work because the @ will be percent-encoded (see RMLio/rmlmapper-java#219 (comment) for a recent similar request).

Does it make sense to introduce a rml:templateUnsafe predicate or similar to have an easy-to-use construct for handling this common request? This does the same as rml:template, but never performs a reference value transforming function

@DylanVanAssche
Copy link
Collaborator

I would rather be in favor of rml:termType rml:UnsafeIRI then instead of introducing another template option. This would be in line with rml:URI idea of #50

@DylanVanAssche DylanVanAssche added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 29, 2024
@dachafra dachafra changed the title rr:template: also provide an URI-unsafe alternative? add rml:UnsafeIRI to ontology, shapes and spec Jul 3, 2024
@dachafra dachafra added proposal issue has a proposal to be solved and removed documentation Improvements or additions to documentation enhancement New feature or request labels Jul 3, 2024
@dachafra
Copy link
Member

dachafra commented Jul 3, 2024

Similar as in #50. These are the required tasks:

DylanVanAssche added a commit that referenced this issue Jul 4, 2024
@DylanVanAssche
Copy link
Collaborator

We should also have rml:UnsafeURI as we have rml:URI now.

DylanVanAssche added a commit that referenced this issue Jul 4, 2024
@dachafra dachafra changed the title add rml:UnsafeIRI to ontology, shapes and spec add rml:UnsafeIRI and rml:UnsafeURI to ontology, shapes and spec Jul 4, 2024
@dachafra dachafra changed the title add rml:UnsafeIRI and rml:UnsafeURI to ontology, shapes and spec add rml:UnsafeIRI and rml:UnsafeURI to ontology, shapes and spec Jul 5, 2024
@VladimirAlexiev
Copy link

Maybe related:
For a long time I wondered what's the purpose of xsd:anyURI (literal datatype).
I think the only benefit over a real URL is that it can accommodate invalid URLs.
So eg in our Crunchbase KG, we use it for things like website, linkedin, twitter, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal issue has a proposal to be solved
Projects
None yet
Development

No branches or pull requests

7 participants