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

Parsing empty prefix #206

Closed
TimMeuser opened this issue Jun 3, 2021 · 0 comments · Fixed by #208
Closed

Parsing empty prefix #206

TimMeuser opened this issue Jun 3, 2021 · 0 comments · Fixed by #208
Assignees
Labels
bug Something isn't working

Comments

@TimMeuser
Copy link

Hi,

I am using the RuleParser to parse a datalog rule. If I try to parse a empty prefix like
@prefix : <http://example.org/> . with RuleParser.parse("@prefix : <http://example.org/> ."); I get an Exception
org.semanticweb.rulewerk.parser.javacc.ParseException: Encountered " ":" ": "" at line 1, column 9. Was expecting: <PNAME_NS> ...

Based on the used prefix syntax an empty prefix should work.
PREFIX ::= '@prefix' PNAME_NS?':' IRIREF '.'

Best regards,
Tim

@mmarx mmarx self-assigned this Jun 21, 2021
@mmarx mmarx added the bug Something isn't working label Jun 21, 2021
mmarx added a commit that referenced this issue Jun 21, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
fixes #206
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

Successfully merging a pull request may close this issue.

2 participants