-
Notifications
You must be signed in to change notification settings - Fork 5
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
Hashtag (#) from @base prefix is lost during parsing? #15
Comments
According to the Turtle specification, the base IRI should be resolved as described in RFC 3986, which says:
To my understanding, the behavior is correct, and the parsed output of the mentioned web page is wrong. This library is just a wrapper for N3.js, where the parsing of the base and prefixes happens. Let's forward the question: @RubenVerborgh can you confirm my assumption? |
Correct indeed; we have a whole bunch of tests for IRI resolution cases (https://github.com/rdfjs/N3.js/blob/v1.17.3/test/N3Parser-test.js#L2591), because we discovered back in the day that many parsers had different interpretations (https://lists.w3.org/Archives/Public/public-rdf-comments/2015Aug/0000.html). |
I see, thank you very much @bergos and @RubenVerborgh for your time! Then I will forward this to my turtle source 😅 |
Hello,
when I execute the example code from the README with the following turtle data, the resulting quads are not what I am expecting.
Please note the missing hash symbol (#) at the end of the
rdfs
prefix in line 2, which is propagated to every place where the prefix was used in the turtle data:I hope this is not just me being stupid, but at least on this website, the turtle is parsed as expected.
Thank you for your time!
The text was updated successfully, but these errors were encountered: