We're updating the issue view to help you get more done. 

SPARQL editor incorrectly marks line as invalid syntax

Description

When entering this query:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 PREFIX movies: <http://example.org/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?p ?p1 ?genre WHERE { values ?p { movies:user1 } ?p movies:hasRated [ movies:ratedMovie/movies:hasGenre ?genre ; movies:hasRating ?rating ]. ?p1 foaf:knows ?p ; movies:hasRated [ movies:ratedMovie/movies:hasGenre ?genre ; movies:hasRating ?ratingp1 ]. } GROUP BY ?p ?p1 ?genre HAVING (abs (AVG(?rating)-AVG(?ratingp1))<1.0)

into the workbench query editor, the editor marks the line underneath the `foaf:knows ?p ;` bit as syntactically invalid, which is incorrect because this is a legal query. See

If the query is changed to:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 PREFIX movies: <http://example.org/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?p ?p1 ?genre WHERE { values ?p { movies:user1 } ?p movies:hasRated [ movies:ratedMovie/movies:hasGenre ?genre ; movies:hasRating ?rating ]. ?p1 foaf:knows ?p . ?p movies:hasRated [ movies:ratedMovie/movies:hasGenre ?genre ; movies:hasRating ?ratingp1 ]. } GROUP BY ?p ?p1 ?genre HAVING (abs (AVG(?rating)-AVG(?ratingp1))<1.0)

the error disappears.

Environment

None

Status

Assignee

Dale W. Visser

Reporter

JeenB

Labels

None

Components

Fix versions

Affects versions

2.8.3
2.7.15

Priority

Minor