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 • 0 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.

#165 contains a breaking test for this case.

MPvHarmelen avatar Dec 28 '22 10:12 MPvHarmelen