GitHub user afs edited a comment on the discussion: Is `https://` a valid IRI
according to RFC 3986?
Hi Barry,
Which version are you upgrading from?
You should be able to use `IRIx` and not need to use IRI3986 as of Jena 6.0.0
It is "absolute" - RFC 3986 URI syntax allows the `hier-part` to have a `host`
that is an empty string for `reg-name`. "absolute does not mean much more than
"has scheme, does not have fragment".
However, that's just the basic syntax. Mistakes in URI syntax are exceptions.
URI schemes are layered on top of the URI syntax; errors and warning in URI
schemes are recorded with the IRIx.
https/http (also defined in RFC 3986) require a non-empty host - that's
https/http specific.
Jena will parse that and print a warning for errors in scheme-specific rules.
Parser errors are fatal errors.
```
IRIx iri = IRIx.create("https://");
iri.handleViolations((err,str)->System.out.printf("Error=%s :
%s\n",(err?"yes":"no"),str));
System.out.println(iri.isReference());
```
prints
```
Error=yes : <https://> http and https URI schemes do not allow the host to be
empty
true
```
the "isReference" value is a Jena bug (#3825). It should be false.
RDF 1.2 Concepts introduces RDF Reference IRIs" in [section
3.3.1](https://www.w3.org/TR/rdf12-concepts/#reference-iris).
These are advisory - and includes the advice "follow the URI scheme rules".
`IRIX.isReference` needs to be brought up-to-date.
GitHub link:
https://github.com/apache/jena/discussions/3824#discussioncomment-16397719
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]