final String updateEndpointUrl) {
if (null == queryEndpointUrl) {
throw new IllegalArgumentException("Query endpoint URL may not be null");
}
SPARQLRepository r = null == updateEndpointUrl
? new SPARQLRepository(queryEndpointUrl)
: new SPARQLRepository(queryEndpointUrl, updateEndpointUrl);
return new RepositorySail(r);
}