added retries for sparql query (in case endpoint unavailable)