lvaudor / glitter

an R package which writes SPARQL queries
https://lvaudor.github.io/glitter
44 stars 5 forks source link

refactor spq_group_by #117

Closed maelle closed 1 year ago

maelle commented 1 year ago

I am not sure I understand all the steps

maelle commented 1 year ago

I also need more examples. For instance, can one group by a variable created in select.

I know this doesn't work, but maybe for other reasons:

SELECT (COUNT(*) AS ?n) (YEAR(?date) AS ?year)
WHERE{

?film wdt:P31 wd:Q11424.
?film wdt:P577 ?date.

SERVICE wikibase:label { bd:serviceParam wikibase:language "en".}
}
GROUP BY ?year

LIMIT 10