SPARQL.js icon indicating copy to clipboard operation
SPARQL.js copied to clipboard

Serialising a double inverse property path results in a syntactically invalid query

Open MPvHarmelen opened this issue 2 years ago • 3 comments

When serialising the following query, the surrounding ( ) are forgotten, causing a syntactically invalid query to be generated:

ASK WHERE { ?s ^(^<a:a>) ?o. }

becomes:

ASK WHERE { ?s ^^<a:a> ?o. }

which is syntactically invalid.

This pull-request contains a failing test for this case.

MPvHarmelen avatar Dec 22 '22 17:12 MPvHarmelen

@MPvHarmelen I just had a glance at the files changed and there is only a commit adding the test file; did you forget to commit the actual code changes?

I'm not a maintainer so I can't run the workflow to see if the tests are currently failing or not.

jeswr avatar Dec 28 '22 03:12 jeswr

Sorry, no! I encountered this issue and wanted to create an issue/pull-request combination to improve the DX for debugging the problem, but I forgot the issue half of it...

MPvHarmelen avatar Dec 28 '22 10:12 MPvHarmelen

(Quickly rebased this one to trigger CI.)

RubenVerborgh avatar Aug 10 '24 09:08 RubenVerborgh