Fixes #1429, add iri2uri · Pull Request #1902 · RDFLib/rdflib (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation14 Commits11 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

ghost

Fixes #1429

#1429 (comment))

why park this in the "restore-pyrdfa" branch? This fix will work for non-HTML sources with non-ASCII chars in the IRI, perhaps something like http://example.com/thing/Almería.ttl for instance. So this is a generic fix for parse()

Summary of changes

Add an iri-to-uri conversion utility to encode IRIs to URIs for Graph.parse() sources. Added a couple of tests because feeding it with a suite of IRIs to check seems overkill (not that I could find one).

Checklist

@coveralls

Coverage Status

Coverage increased (+0.009%) to 88.431% when pulling 72f5b59 on gjhiggins:fix-for-issue1429 into ccb9c4a on RDFLib:master.

@ghost ghost self-requested a review

May 9, 2022 21:55

@sonarqubecloud

@gjhiggins

aucampia

@gjhiggins

aucampia

@aucampia

@aucampia

Made some changes now to your branch, in brief:

aucampia

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aucampia

@gjhiggins

edmondchuc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks good.

@ghost ghost removed the review wanted

This indicates that the PR is ready for review

label

Jun 4, 2022