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

\/ syntax not fully supported in prefixed URIs #187

Open
NicoRobertIn opened this issue Jun 4, 2024 · 0 comments
Open

\/ syntax not fully supported in prefixed URIs #187

NicoRobertIn opened this issue Jun 4, 2024 · 0 comments

Comments

@NicoRobertIn
Copy link

NicoRobertIn commented Jun 4, 2024

Issue Description:

Corese does not parse the prefixed URIs containing "\/" in the suffix

Bug Details:

The syntax of the turtle prefixed URIs is described there, in a form that are almost regex: https://www.w3.org/TR/turtle/#terminals

Wee see that the prefix is described by PNAME_LN, which describes the suffix as PN_LOCAL, which contains PLX which itself contains PN_LOCAL_ESC.

This last specification validates "\/" which therefore can be included in a suffix.

So given a prefix named my-prefix: that has the namespace https://www.example.org/, the URI my-prefix:a\/b is valid and should correspond to the URI https://www.example.org/a/b

Corese accepts this syntax but links it to the URI https://www.example.org/a\/b which is an error

It can be managed programmatically but it should be Corese responsibility to deal with it

Steps to Reproduce:

  1. Open Corese and add the following code to the turtle editor:
@prefix ex: <https://www.example.org/>

ex:a\/b a owl:Class .
  1. Execute the following SparQL request:
select * where {
  ?x ?p ?y
}

Expected Behavior:

The ex:a\/b node should be seen as URI https://www.example.org/a/b

Actual Behavior:

The ex:a\/b node is seen as URI https://www.example.org/a\/b

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