Every time I do a query in http://dbpedia.org/sparql endpoint or my local Virtuoso store, I get a time out error after some considerably large time (like 30 mins through my own experience) .
For querying DBpedia's online SPARQL endpoint, I use the following statements:
Query query = QueryFactory.create(q); //q - query string
QueryExecution qexec = QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql/", query);
qexec.setTimeout(-100);
I read that Timeout value less than zero (i.e., negative) will never allow a timeout to happen, so I have set qexec.setTimeout(-100) value. But still I get a timeout.
How to solve this problem? Is it also true that http://dbpedia.org/sparql blocks your IP address after certain amount of large queries? Can I not run continuous unlimited (i.e., very large, 10^6) queries? Thanks.