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

[Turtle/TriG] The empty prefix is fine #1485

Closed
kaefer3000 opened this issue Apr 7, 2020 · 2 comments · Fixed by #1494
Closed

[Turtle/TriG] The empty prefix is fine #1485

kaefer3000 opened this issue Apr 7, 2020 · 2 comments · Fixed by #1494
Assignees
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@kaefer3000
Copy link

kaefer3000 commented Apr 7, 2020

Name of the lexer
Turtle/TriG

Code sample

@prefix : <http://example.org/#> .

:this a :Test .

This data with a colon, preceded by the empty string, is valid.
Renders OK on GitHub, but not with Rogue, see:
Link to a Code Sample.

Additional context
The official Turtle grammar
The line where I would try a fix if I knew Ruby

@kaefer3000 kaefer3000 added the bugfix-request A request for a bugfix to be developed. label Apr 7, 2020
@pyrmont pyrmont self-assigned this Apr 8, 2020
@pyrmont
Copy link
Contributor

pyrmont commented Apr 8, 2020

@kaefer3000 That's indeed the right line. I gather there's no other use for :?

@kaefer3000
Copy link
Author

kaefer3000 commented Apr 9, 2020

From the top of my head, no. It may appear in a Literal, though. The following is weird, but valid.

@prefix : <http://example.org/#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

: a :AdditionalTest ;
  rdfs:comment ":-)"^^: .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants