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

SPARQL parsing fails filter with trailing dot after group #237

Closed
langsamu opened this issue Apr 1, 2019 · 0 comments
Closed

SPARQL parsing fails filter with trailing dot after group #237

langsamu opened this issue Apr 1, 2019 · 0 comments
Milestone

Comments

@langsamu
Copy link
Contributor

langsamu commented Apr 1, 2019

The SPARQL parser fails a FILTER with a trailing dot if it follows a group

ASK 
{
    { }
    FILTER(true) .
}

with an RdfParseException in SparqlQueryParser.TryParseGraphPattern@1309:

[DotToken at Line 5 Column 18 to Line 5 Column 19] Unexpected Token encountered, expected the start of a Graph Pattern

The grammar allows an optional dot after a GraphPatternNotTriples (which includes FILTER).

A real example can be found in the SHACL Test Suite:

langsamu added a commit to langsamu/dotnetrdf that referenced this issue Apr 1, 2019
@kal kal closed this as completed in c8fb971 Apr 22, 2019
langsamu added a commit to langsamu/dotnetrdf that referenced this issue Apr 22, 2019
@kal kal added this to the 2.3 milestone Nov 29, 2019
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