afs commented on issue #1669: URL: https://github.com/apache/jena/issues/1669#issuecomment-1348134294
It happens because `file:/some/path` is not an absolute URL (despite looking like it is). The parser sort this out making it `file:///` A hierarchical URI (one that has a path) is `schema://authority/path?query#fragment`. For a `file:` there is no authority section - it's empty. That leaves `file:///`. The same happens with "http:/path". [RFC1738](https://datatracker.ietf.org/doc/html/rfc1738) is a bit loose. How did the data get into the database? The Java runtime (e.g. URL class) tends to write `file:/path` which is not a fully resolved URL. The newer RFC is more lenient in the syntax but not the underlying resolved form. It allows the "//authority" to be omitted altogether but that is a relative URL and the resolved form is `file:///` https://datatracker.ietf.org/doc/html/rfc8089 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
