better_sparql_client
A SPARQL 1.1 http client built on top of types in the oxigraph ecosystem. Exising SPARQL clients were either incomplete or used panics internally, which led to the creation of better_sparql_client.
Install
Usage
use Url;
use SparqlClient;
let client = new;
// a select query
let solutions = client
.query
.await
.unwrap;
// a construct query (describe works the same)
let graph = client
.query_graph
.await
.unwrap;
// an ask query
let is_true = client
.ask
.await
.unwrap;
// an update query
client
.update
.await
.unwrap;
Note on Separate Query & Update endpoints
Some services such as Apache Jena use segregated endpoints for query and updating operations.
In this scenario, you should just instantiate two clients, one for querying and one for updating.
// use this client for queries
let query_client = new;
// use this client for updates
let update_client = new;