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

Don't allow multiple #'s in URLs #36

Open
andrefs opened this issue Oct 25, 2022 · 0 comments
Open

Don't allow multiple #'s in URLs #36

andrefs opened this issue Oct 25, 2022 · 0 comments

Comments

@andrefs
Copy link

andrefs commented Oct 25, 2022

https://prefix.cc/latitude currently maps to two possible URLs. One of them is:

https://www.w3.org/2006/vcard/ns#latitude#

This is mal-formed, as URLs cannot contain multiple hash signs.

I noticed when trying to parse https://prefix.cc/popular/all.file.ttl with rio's TurtleParser and got

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: 
TurtleError { 
    kind: InvalidIri { 
        iri: "https://www.w3.org/2006/vcard/ns#latitude#", 
        error: IriParseError { kind: InvalidIriCodePoint('#') } 
    }, 
    position: Some(LineBytePosition { line_number: 1286, byte_number: 65 }) 
}', src/prefixes/prefixcc.rs:31:10
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

1 participant