I am trying to get list of all the authors who have had 3 or more piece of work done (in DBpedia).
my example can be run on : http://dbpedia.org/sparql
HAVING (?tw > 3)
is correct SPARQL. HAVING
filters after assignments due to SELECT
, so ?tw
is visible, and before projection.
(prefix ((dbo: ))
(project (?tw ?author)
(filter (> ?tw 3)
(extend ((?tw ?.0))
(group (?author) ((?.0 (count ?work)))
(bgp (triple ?work dbo:author ?author)))))))
where ?.0
is the assignment of count
.