Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BNF for URIs #123

Open
Mathieu-COSYNS-Student opened this issue May 19, 2022 · 2 comments
Open

BNF for URIs #123

Mathieu-COSYNS-Student opened this issue May 19, 2022 · 2 comments

Comments

@Mathieu-COSYNS-Student
Copy link
Contributor

In the Hypertext Transfer Protocol section, there is a subset of the BNF for URIs. It's a subset, it's not the full description of all URIs but I found it odd that the query and the fragment are included twice.

URI           = scheme ":" "//" authority path [ "?" query ] [ "#" fragment ]
scheme        = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
authority     = [ userinfo "@" ] host [ ":" port ]
query         = *( pchar / "/" / "?" )                                             <----------- HERE -----------
fragment      = *( pchar / "/" / "?" )                                             <----------- HERE -----------
pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
query         = *( pchar / "/" / "?" )                                             <----------- HERE -----------
fragment      = *( pchar / "/" / "?" )                                             <----------- HERE -----------
pct-encoded   = "%" HEXDIG HEXDIG
unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
reserved      = gen-delims / sub-delims
gen-delims    = ":" / "/" / "?" / "#" / "[" / "]" / "@"
sub-delims    = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
@obonaventure
Copy link
Contributor

Agreed, this is an error, feel free to propose an updated text

@leonardomaccari
Copy link

The error is still there, and there is another inconsistency, the URI scheme that is proposed requires "//", it is also mentioned in the text that The characters : and // follow the scheme of any URI. but then in the URN example in the footnote there is no "//": urn:isbn:0-380-81593-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants