diff --git a/src/rio/turtle/turtle_grammar.rustpeg b/src/rio/turtle/turtle_grammar.rustpeg index 57f8e101..9e2b45fb 100644 --- a/src/rio/turtle/turtle_grammar.rustpeg +++ b/src/rio/turtle/turtle_grammar.rustpeg @@ -167,7 +167,7 @@ PNAME_NS -> &'input str = ns:$(PN_PREFIX? ":") { //[140s] PNAME_LN -> Url = ns:$(PNAME_NS) local:PN_LOCAL {? match state.namespaces.get(ns) { - Some(ns) => match ns.join(&local) { + Some(ns) => match Url::parse(&(ns.to_string() + &local)) { Ok(url) => Ok(url), Err(error) => Err("IRI parsing failed") },