scala-uri icon indicating copy to clipboard operation
scala-uri copied to clipboard

Introduce support for IRI

Open DamianReeves opened this issue 1 year ago • 3 comments

Description I am interested in implementing Linked Data and in particular JSON-LD and a foundational piece of that is IRI. Rather than rolling my own, it seems like it makes sense to see if scala-uri could include parsing for this as well.

DamianReeves avatar Jul 19 '22 14:07 DamianReeves

Hello! Thanks for raising this.

I've not fully read the IRI spec, but at a glance, I think many of the things in there are already supported in scala-uri. By default, we already have permissive support for unicode, both in domain names (with punycode) and paths/query-strings via percent encoding.

Glancing through the example IRIs in the json-ld spec here, they all look like they would parse fine with scala-uri.

Is there a specific aspect of IRIs you've got in mind that is currently missing support in scala-uri?

theon avatar Jul 19 '22 18:07 theon

I had a feeling that might be the case given what I've seen from this great library. I have no specific callouts. So perhaps there is nothing here to do. I just wanted to be sure things here are compliant with the spec and what kind of lift might be necessary (if any) to be compliant.

DamianReeves avatar Jul 19 '22 20:07 DamianReeves

Thanks 🙇 If you come across anything whilst working with json-ld, let me know 👍

I'll take another pass through that IRI spec in the next couple days to double check if anything stands out, and if not will close this issue for now.

theon avatar Jul 19 '22 22:07 theon