Fixed deprecated method & compatibilty issue in SPARQL Endpoint