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

ql:has-relation segfaults with COUNT #84

Closed
niklas88 opened this issue Aug 2, 2018 · 1 comment
Closed

ql:has-relation segfaults with COUNT #84

niklas88 opened this issue Aug 2, 2018 · 1 comment
Assignees
Labels
Projects

Comments

@niklas88
Copy link
Member

niklas88 commented Aug 2, 2018

On the Clueweb Freebase (built with a version before the latest ql:has-predicate renaming) corpus running with the latest master QLever the following query results in a SEGFAULT

PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT ?predicate (COUNT(?predicate) as ?count) WHERE {
 ?person fb:people.person.profession ?profession .
 ?profession fb:type.object.name "Astronaut"@en .
 ?person ql:has-predicate ?predicate .
}
GROUP BY ?predicate
ORDER BY ?count

However removing the COUNT the following query works

PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT ?predicate WHERE {
 ?person fb:people.person.profession ?profession .
 ?profession fb:type.object.name "Astronaut"@en .
 ?person ql:has-predicate ?predicate .
}

And also restricting just by fb:type.object.type works:

PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT ?predicate (COUNT(?predicate) as ?count) WHERE {
 ?person fb:type.object.type fb:people.person .
 ?person ql:has-predicate ?predicate .
}
GROUP BY ?predicate
ORDER BY ?count

The log output is as follows
qlever_crash_log_count_has_predicate.txt

@floriankramer
Copy link
Member

This seems to have been closed by #118.

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

No branches or pull requests

2 participants