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

Aggregate query with only one ql:has-predicate triple fails #81

Closed
hannahbast opened this issue Jul 31, 2018 · 0 comments
Closed

Aggregate query with only one ql:has-predicate triple fails #81

hannahbast opened this issue Jul 31, 2018 · 0 comments
Assignees

Comments

@hannahbast
Copy link
Member

The following example query currently fails on Wikidata EN+DE @ vulcano:

PREFIX we: <http://www.wikidata.org/entity/>
PREFIX wp: <http://www.wikidata.org/prop/direct/>
SELECT ?r (COUNT(?r) AS ?count) WHERE {
  ?a ql:has-predicate ?r
}
GROUP BY ?r
ORDER BY DESC(?count)

The reason is that the query planner decides to use the "pattern trick", which leads to an empty query after the only triple is taken out. The correct handling would be to process ql:has-predicate without the pattern trick.

niklas88 added a commit that referenced this issue Aug 14, 2018
Added support for using the pattern trick without a subquery. Fixes #81.
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