:- use_module(library(semweb/sparql_client)).
sparql_set_server([ host(localhost), port(8080) path(world) ])
The default for port is 80 and path is /sparql/.
/sparql/