in src/main/java/com/amazonaws/neptune/client/rdf4j/NeptuneRdf4JSigV4Example.java [75:88]
public static void main(final String[] args) throws Exception {
if (args.length == 0 || StringUtils.isEmpty(args[0])) {
System.err.println("Please specify your endpoint as program argument "
+ "(e.g.: http://<my_neptune_host>:<my_neptune_port>)");
System.exit(1);
}
final String endpoint = args[0];
// example of sending a signed query against the SPARQL endpoint
// use default SAMPLE_QUERY if not specified from input args
final String query = (args.length > 1 && !StringUtils.isEmpty(args[1])) ? args[1] : SAMPLE_QUERY;
executeSignedQueryRequest(endpoint, query);
}