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

Invalid URLs are being passed to RDF Turtle output #6799

Open
ebremer opened this issue May 24, 2023 · 4 comments
Open

Invalid URLs are being passed to RDF Turtle output #6799

ebremer opened this issue May 24, 2023 · 4 comments
Assignees

Comments

@ebremer
Copy link

ebremer commented May 24, 2023

Invalid URLs are also breaking Turtle as well. In the example, "https://orcid.org/0000-0003-3039-2116", the user has a url specified as

https://dial.uclouvain.be/pr/boreal/search/site/sm_creator:\"Van de Ven, Annelies\"

this will be passed back with text/turtle as

<https://dial.uclouvain.be/pr/boreal/search/site/sm_creator:"Van de Ven, Annelies">

which is invalid and will throw an error when read in by Apache Jena even though ORCID used Jena to generate the RDF.
It's not something Jean will "fix" as per:

https://issues.apache.org/jira/browse/JENA-2351
and
apache/jena#1879

Spaces and quotes are illegal in the IRI.

@wjrsimpson
Copy link
Member

@TomDemeranville Any thoughts?

@TomDemeranville
Copy link
Contributor

Hi @ebremer . Thanks for reporting this. I think I understand the problem here. However, I've read through the issues you've linked to and I'm not sure I understand the solution. What should it do?

@ebremer
Copy link
Author

ebremer commented Dec 8, 2023

Minimally, only emit the URI as a string and not as a bad URI. Preferably, rewrite the URI to make it legal, but not all sites will accept a corrected version so I understand it become problematical.

@ebremer
Copy link
Author

ebremer commented Dec 14, 2023

Anything that is an invalid URI could be handle like this:

"https://dial.uclouvain.be/pr/boreal/search/site/sm_creator:\"Van de Ven, Annelies\""^^xsd:anyURI

see: https://www.w3.org/TR/xmlschema11-2/#anyURI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants