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

Relative IRIs containing a forward slash and a colon #45

Open
wouterbeek opened this issue Jan 1, 2021 · 0 comments
Open

Relative IRIs containing a forward slash and a colon #45

wouterbeek opened this issue Jan 1, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@wouterbeek
Copy link

Files that contain rdf:about="{x}/{y}:{z}" are incorrectly parsed ATM.

Example dataset:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns="https://example.com/default/"
         xml:base="https://example.com/base/">
  <C rdf:about="x/y:z">
  </C>
</rdf:RDF>

The expected behavior / reproducible with Rapper is to parse the above as:

<https://example.com/base/x/y:z> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://example.com/default/C>.

Maybe x/y:z is considered a full IRI by the parser. If so, this is incorrect because the scheme component is not allowed to contain a forward slash (/). Therefore, x/y:z should be considered a relative IRI which must be made absolute.

@rubensworks rubensworks added the bug Something isn't working label Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants