/** * Test whether a {@link RDFConnectionRemote} connects to a Fuseki server. This * operation can not guaranttee to detech a Fuseki server - for example, it may be * behind a reverse proxy that masks the signature. */ public static boolean isFuseki(RDFConnectionRemote connection) { HttpOptions request = new HttpOptions(connection.getDestination()); HttpClient httpClient = connection.getHttpClient(); if ( httpClient == null ) httpClient = HttpClients.createSystem(); HttpContext httpContext = connection.getHttpContext(); return isFuseki(request, httpClient, httpContext); }
/** * Test whether a {@link RDFConnectionRemote} connects to a Fuseki server. This * operation can not guaranttee to detech a Fuseki server - for example, it may be * behind a reverse proxy that masks the signature. */ public static boolean isFuseki(RDFConnectionRemote connection) { HttpOptions request = new HttpOptions(connection.getDestination()); HttpClient httpClient = connection.getHttpClient(); if ( httpClient == null ) httpClient = HttpClients.createSystem(); HttpContext httpContext = connection.getHttpContext(); return isFuseki(request, httpClient, httpContext); }