Am 25.10.2015 um 02:18 schrieb Kingsley Idehen:
Out of curiosity, can you share a SPARQL query example (text or query results url) that demonstrates your point?
See https://phabricator.wikimedia.org/T116298
The example query I tried (again, just now) is:
prefix wd: http://www.wikidata.org/entity/ prefix wdt: http://www.wikidata.org/prop/direct/
SELECT DISTINCT ?city WHERE { ?city wdt:P31/wdt:P279* wd:Q515 . # find instances of subclasses of city ?city wdt:P131* wd:Q1202 . # ...located in Saxony. }
This will work fine of course if the data is fixed. So if it doesn't time out for you, try it with a data set that is known to contain cycles.