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

Local part of prefixed name may not start with hyphen-minus (-) or full stop (.) #4

Closed
sgoetz-brox opened this issue Dec 9, 2022 · 2 comments

Comments

@sgoetz-brox
Copy link

test.ttl:

@prefix ex: <https://example.org/> .

<https://example.org/-10> a <https://example.org/Test> .

owl write test.ttl generates:

@prefix ex: <https://example.org/> .

ex:-10 a ex:Test .

If I’m not mistaken, the generated Turtle is invalid, because the local part of a prefixed name must not start with -.

(The same issue exists for ., and maybe also other characters.)

Allowed first character in the local part of a prefixed name

If I read it correctly, the local part may start with (PN_CHARS_U | ':' | [0-9] | PLX). Following the references, this seems to be the list of allowed start characters:

  • _
  • :
  • % (followed by HEX HEX)
  • \ (followed by one of: _ ~ . - ! $ & ' ( ) * + , ; = / ? # @ %)
  • [0-9]
  • [A-Z]
  • [a-z]
  • [#x00C0-#x00D6]
  • [#x00D8-#x00F6]
  • [#x00F8-#x02FF]
  • [#x0370-#x037D]
  • [#x037F-#x1FFF]
  • [#x200C-#x200D]
  • [#x2070-#x218F]
  • [#x2C00-#x2FEF]
  • [#x3001-#xD7FF]
  • [#xF900-#xFDCF]
  • [#xFDF0-#xFFFD]
  • [#x10000-#xEFFFF]
@atextor
Copy link
Owner

atextor commented Dec 14, 2022

Hi @sgoetz-brox, thanks for reporting!
From preliminarily scanning the given sections I think you're right. (I might have to concentrate a bit more though, since I've been laying down with fever the past couple days and still do)

@atextor
Copy link
Owner

atextor commented Mar 30, 2023

Fixed in v1.2.3.

@atextor atextor closed this as completed Mar 30, 2023
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

2 participants