Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support COUNT() aggregation #16

Closed
niklas88 opened this issue Jul 11, 2017 · 3 comments
Closed

Support COUNT() aggregation #16

niklas88 opened this issue Jul 11, 2017 · 3 comments
Assignees

Comments

@niklas88
Copy link
Member

Aqqu generates queries using e.g. "SELECT COUNT(?var) WHERE .." to count (distinct?) entities. To port Aqqu to QLever the cleanest solution would be to support this. It should however also be possible to count client side in the specific use case in Aqqu.

@Buchhold
Copy link
Member

I absolutely agree. A "clean" solution, however, should also add support for GROUP BY when starting with aggregates. I think this is very desirable. Maybe adding COUNT without GROUP BY is a good start, though. It should be extremely easy to add and would probably already help with everything Aqqu needs.

@niklas88
Copy link
Member Author

Also Aqqu uses SELECT COUNT(?var0) WHERE {SELECT ?var0 ?var1 .. WHERE ..} like so

PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT count(?1) WHERE {
SELECT ?1 WHERE {
 fb:m.01gbbz fb:award.award_nominee.award_nominations ?0 .
 ?0 fb:award.award_nomination.award_nominee ?1 .
 FILTER (?1 != fb:m.01gbbz) 
} LIMIT 30000}

@Buchhold Buchhold self-assigned this Jul 26, 2017
@niklas88
Copy link
Member Author

This has been implemented by now, thus closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants