During querying LOD datasets (using Sparql queries), we could face connection or server problems. Is there a reliable strategy that helps us to get data is a reliable way ? I'm looking for a tool (in java) that helps to schedule querying tasks so that when an interruption occurs, the task will be re-run again until getting all data ?
I generally use Jena library to query remote Sparql dataset and use retrieved data to do some stuff. Is there a mechanism to automatically cache returned data so when I re-query the dataset with same query, data is retrieved from local cache instead of remote dataset endpoint.