SPARQLExecutor { @Deprecated public static boolean isEndpointAlive(final String endpoint) { try { QueryExecution qeExe = QueryExecutionFactory.sparqlService(endpoint, "PREFIX foaf: <http: qeExe.execAsk(); return true; } catch (Exception e) { } return false; }  @Deprecated static boolean isEndpointAlive(final String endpoint); @Deprecated static Results executeSelect(final String query, final String endpoint); @Deprecated static Boolean executeAsk(final String query, final String endpoint); @Deprecated static Set<RDFNode> sparql(final String service, final String query);  }
@Test public void testEndpointAlive() { assertTrue(SPARQLExecutor.isEndpointAlive("http: assertFalse(SPARQLExecutor.isEndpointAlive("http: }