This problem is described in the "Breaking Stardog" section of
http://baskauf.blogspot.com/2016/02/stress-testing-stardog-reasoner.html
I ran the query
SELECT DISTINCT ?class
WHERE {
?occurrence dsw:hasEvidence ?token.
?token a ?class.
?occurrence dsw:atEvent ?event.
?event dsw:locatedAt ?location.
?location dwc:countryCode "US".
}
without reasoning turned on and it quickly returned the correct classes:
dcmitype:StillImage
dwc:PreservedSpecimen
With reasoning turned on, the first time I ran the query, it timed out. On subsequent attempts, the query took 12 minutes to complete, but no results were returned. At a minimum, the same classes should be returned as before, but the results should also include the class
dsw:Token
which is entailed by use of a predicate with a range declaration. There was no error message or timeout message given that I could see.