in src/main/java/software/aws/neptune/sparql/SparqlQueryExecutor.java [91:134]
public static RDFConnectionRemoteBuilder createRDFBuilder(final SparqlConnectionProperties properties)
throws SQLException {
final RDFConnectionRemoteBuilder builder = RDFConnectionRemote.create();
if (properties.containsKey(SparqlConnectionProperties.DESTINATION_KEY)) {
builder.destination(properties.getDestination());
}
if (properties.containsKey(SparqlConnectionProperties.QUERY_ENDPOINT_KEY)) {
builder.queryEndpoint(properties.getQueryEndpoint());
}
if (properties.containsKey(SparqlConnectionProperties.ACCEPT_HEADER_ASK_QUERY_KEY)) {
builder.acceptHeaderAskQuery(properties.getAcceptHeaderAskQuery());
}
if (properties.containsKey(SparqlConnectionProperties.ACCEPT_HEADER_DATASET_KEY)) {
builder.acceptHeaderDataset(properties.getAcceptHeaderDataset());
}
if (properties.containsKey(SparqlConnectionProperties.ACCEPT_HEADER_QUERY_KEY)) {
builder.acceptHeaderQuery(properties.getAcceptHeaderQuery());
}
if (properties.containsKey(SparqlConnectionProperties.ACCEPT_HEADER_SELECT_QUERY_KEY)) {
builder.acceptHeaderSelectQuery(properties.getAcceptHeaderSelectQuery());
}
if (properties.containsKey(SparqlConnectionProperties.PARSE_CHECK_SPARQL_KEY)) {
builder.parseCheckSPARQL(properties.getParseCheckSparql());
}
if (properties.getAuthScheme() == AuthScheme.IAMSigV4) {
builder.httpClient(createV4SigningClient(properties));
} else if (properties.containsKey(SparqlConnectionProperties.HTTP_CLIENT_KEY)) {
builder.httpClient(properties.getHttpClient());
}
if (properties.containsKey(SparqlConnectionProperties.HTTP_CONTEXT_KEY)) {
builder.httpContext(properties.getHttpContext());
}
return builder;
}