scala-uri
scala-uri copied to clipboard
Introduce support for IRI
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.
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?
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.
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.